Skip to content

Commit cbfd33d

Browse files
authored
Update quickstart-create-azure-cli.md
1 parent 892c477 commit cbfd33d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/azure-compute-fleet/quickstart-create-azure-cli.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The Azure CLI is used to create and manage Azure resources from the command line
2525

2626
Register the Azure Compute Fleet resource provider with your subscription using Azure CLI. Registration can take up to 30 minutes to successfully show as registered.
2727

28-
```bash
28+
```azurecli-interactive
2929
az provider register --namespace 'Microsoft.AzureFleet'
3030
```
3131
### Set Environment variables
@@ -45,19 +45,19 @@ export MY_VM_SN_PREFIX="10.$NETWORK_PREFIX.0.0/24"
4545

4646
### Create a resource group
4747

48-
```bash
48+
```azurecli-interactive
4949
az group create --name $MY_RESOURCE_GROUP_NAME --location $REGION
5050
```
5151

5252
### Create virtual network and subnet
5353

54-
```bash
54+
```azurecli-interactive
5555
az network vnet create --name $MY_VNET_NAME --resource-group $MY_RESOURCE_GROUP_NAME --location $REGION --address-prefix $MY_VNET_PREFIX --subnet-name $MY_VM_SN_NAME --subnet-prefix $MY_VM_SN_PREFIX
5656
```
5757

5858
Get the subnet ARM ID
5959

60-
```bash
60+
```azurecli-interactive
6161
export MY_SUBNET_ID="$(az network vnet subnet show \
6262
--resource-group $MY_RESOURCE_GROUP_NAME \
6363
--vnet-name $MY_VNET_NAME \
@@ -81,7 +81,7 @@ Set up the compute profile which is applied to the underlying VMs.
8181
export COMPUTE_PROFILE="{ 'baseVirtualMachineProfile': { 'storageProfile': { 'imageReference': { 'publisher':'canonical', 'offer':'0001-com-ubuntu-server-focal', 'sku': '20_04-lts-gen2', 'version': 'latest' } }, 'osProfile': { 'computerNamePrefix': 'vm', 'adminUsername': '$MY_USERNAME', 'adminPassword': '$ADMIN_PASSWORD'}, 'networkProfile': { 'networkInterfaceConfigurations': [{ 'name': 'nic', 'primary': 'true', 'enableIPForwarding': 'true', 'ipConfigurations': [{ 'name': 'ipc', 'subnet': { 'id': '$MY_SUBNET_ID' } }] }], 'networkApiVersion': '2020-11-01'} } }"
8282
```
8383

84-
```bash
84+
```azurecli-interactive
8585
az compute-fleet create --name $MY_FLEET_NAME --resource-group $MY_RESOURCE_GROUP_NAME --location $REGION \
8686
--spot-priority-profile "{ 'capacity': 5 }" \
8787
--regular-priority-profile "{ 'capacity': 5 }" \

0 commit comments

Comments
 (0)