Skip to content

Commit 5741b80

Browse files
committed
updates
1 parent 70e673a commit 5741b80

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

articles/virtual-machine-scale-sets/standby-pools-create.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,30 +101,30 @@ New-AzStandbyVMPool `
101101
Create a standby pool and associate it with an existing scale set. Create a template and deploy it using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
102102

103103

104-
```ARM
104+
```json
105105
{
106106
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
107107
"contentVersion": "1.0.0.0",
108108
"parameters": {
109109
"location": {
110110
"type": "string",
111-
"defaultValue": "{location}"
111+
"defaultValue": "east us"
112112
},
113113
"name": {
114114
"type": "string",
115-
"defaultValue": "{standbyPoolName}"
115+
"defaultValue": "myStandbyPool"
116116
},
117117
"maxReadyCapacity" : {
118118
"type": "int",
119-
"defaultValue": {maxReadyCapacity}
119+
"defaultValue": 10
120120
},
121121
"virtualMachineState" : {
122122
"type": "string",
123-
"defaultValue": "{Deallocated or Running}"
123+
"defaultValue": "Deallocated"
124124
},
125125
"attachedVirtualMachineScaleSetId" : {
126126
"type": "string",
127-
"defaultValue": "/subscriptions/{subscriptionID}/resourceGroups/StandbyPools/providers/Microsoft.Compute/virtualMachineScaleSets/{scaleSetName}"
127+
"defaultValue": "/subscriptions/{subscriptionID}/resourceGroups/StandbyPools/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
128128
}
129129
},
130130
"resources": [
@@ -152,14 +152,14 @@ Create a standby pool and associate it with an existing scale set. Deploy the te
152152

153153
```bicep
154154
param location string = resourceGroup().location
155-
param standbyPoolName string = '{standbyPoolName}'
156-
param maxReadyCapacity int = {maxReadyCapacityCount}
155+
param standbyPoolName string = 'myStandbyPool'
156+
param maxReadyCapacity int = 20
157157
@allowed([
158158
'Running'
159159
'Deallocated'
160160
])
161-
param vmState string = '{vmState}'
162-
param virtualMachineScaleSetId string = '{vmssId}'
161+
param vmState string = 'Deallocated'
162+
param virtualMachineScaleSetId string = '/subscriptions/{subscriptionID}/resourceGroups/StandbyPools/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet}'
163163
164164
resource standbyPool 'Microsoft.standbypool/standbyvirtualmachinepools@2023-12-01-preview' = {
165165
name: standbyPoolName
@@ -178,17 +178,17 @@ resource standbyPool 'Microsoft.standbypool/standbyvirtualmachinepools@2023-12-0
178178
Create a standby pool and associate it with an existing scale set using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update)
179179

180180
```HTTP
181-
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyPoolName}?api-version=2023-12-01-preview
181+
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2023-12-01-preview
182182
{
183183
"type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
184-
"name": "{standbyPoolName}",
185-
"location": "{location}",
184+
"name": "myStandbyPool",
185+
"location": "east us",
186186
"properties": {
187187
"elasticityProfile": {
188188
"maxReadyCapacity": 20
189189
},
190190
"virtualMachineState":"Deallocated",
191-
"attachedVirtualMachineScaleSetId": "/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{scaleSetName}"
191+
"attachedVirtualMachineScaleSetId": "/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
192192
}
193193
}
194194
```

articles/virtual-machine-scale-sets/standby-pools-update-delete.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,30 @@ Update-AzStandbyVMPool `
5555
Update an existing standby pool deployment. Deploy the updated template using [az deployment group create](/cli/azure/deployment/group) or [New-AzResourceGroupDeployment](/powershell/module/az.resources/new-azresourcegroupdeployment).
5656

5757

58-
```ARM
58+
```JSON
5959
{
6060
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
6161
"contentVersion": "1.0.0.0",
6262
"parameters": {
6363
"location": {
6464
"type": "string",
65-
"defaultValue": "{location}"
65+
"defaultValue": "east us"
6666
},
6767
"name": {
6868
"type": "string",
69-
"defaultValue": "{standbyPoolName}"
69+
"defaultValue": "myStandbyPool"
7070
},
7171
"maxReadyCapacity" : {
7272
"type": "int",
73-
"defaultValue": {maxReadyCapacity}
73+
"defaultValue": 10
7474
},
7575
"virtualMachineState" : {
7676
"type": "string",
77-
"defaultValue": "{Deallocated or Running}"
77+
"defaultValue": "Deallocated"
7878
},
7979
"attachedVirtualMachineScaleSetId" : {
8080
"type": "string",
81-
"defaultValue": "/subscriptions/{subscriptionID}/resourceGroups/StandbyPools/providers/Microsoft.Compute/virtualMachineScaleSets/{scaleSetName}"
81+
"defaultValue": "/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
8282
}
8383
},
8484
"resources": [
@@ -106,14 +106,14 @@ Update an existing standby pool deployment. Deploy the updated template using [a
106106

107107
```bicep
108108
param location string = resourceGroup().location
109-
param standbyPoolName string = '{standbyPoolName}'
110-
param maxReadyCapacity int = {maxReadyCapacityCount}
109+
param standbyPoolName string = 'myStandbyPool'
110+
param maxReadyCapacity int = 10
111111
@allowed([
112112
'Running'
113113
'Deallocated'
114114
])
115-
param vmState string = '{vmState}'
116-
param virtualMachineScaleSetId string = '{vmssId}'
115+
param vmState string = 'Deallocated'
116+
param virtualMachineScaleSetId string = '/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet'
117117
118118
resource standbyPool 'Microsoft.standbypool/standbyvirtualmachinepools@2023-12-01-preview' = {
119119
name: standbyPoolName
@@ -132,17 +132,17 @@ resource standbyPool 'Microsoft.standbypool/standbyvirtualmachinepools@2023-12-0
132132
Update an existing standby pool using [Create or Update](/rest/api/standbypool/standby-virtual-machine-pools/create-or-update).
133133

134134
```HTTP
135-
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyPoolName}?api-version=2023-12-01-preview
135+
PUT https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2023-12-01-preview
136136
{
137137
"type": "Microsoft.StandbyPool/standbyVirtualMachinePools",
138-
"name": "{standbyPoolName}",
139-
"location": "{location}",
138+
"name": "myStandbyPool",
139+
"location": "east us",
140140
"properties": {
141141
"elasticityProfile": {
142142
"maxReadyCapacity": 20
143143
},
144144
"virtualMachineState":"Deallocated",
145-
"attachedVirtualMachineScaleSetId": "/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{scaleSetName}"
145+
"attachedVirtualMachineScaleSetId": "/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/myScaleSet"
146146
}
147147
}
148148
```
@@ -179,7 +179,7 @@ Remove-AzStandbyVMPool -ResourceGroup myResourceGroup -Name myStandbyPool -Nowai
179179
Delete an existing standby pool using [Delete](/rest/api/standbypool/standby-virtual-machine-pools/delete).
180180

181181
```HTTP
182-
DELETE https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyPoolName}?api-version=2023-12-01-preview
182+
DELETE https://management.azure.com/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/myStandbyPool?api-version=2023-12-01-preview
183183
```
184184

185185
---

0 commit comments

Comments
 (0)