|
| 1 | +{ |
| 2 | + "parameters": { |
| 3 | + "subscriptionId": "{subscription-id}", |
| 4 | + "resourceGroupName": "myResourceGroup", |
| 5 | + "vmScaleSetName": "{vmss-name}", |
| 6 | + "api-version": "2023-09-01", |
| 7 | + "parameters": { |
| 8 | + "sku": { |
| 9 | + "tier": "Standard", |
| 10 | + "capacity": 3, |
| 11 | + "name": "Standard_D1_v2" |
| 12 | + }, |
| 13 | + "location": "westus", |
| 14 | + "properties": { |
| 15 | + "overprovision": false, |
| 16 | + "virtualMachineProfile": { |
| 17 | + "storageProfile": { |
| 18 | + "imageReference": { |
| 19 | + "sku": "2016-Datacenter", |
| 20 | + "publisher": "MicrosoftWindowsServer", |
| 21 | + "version": "latest", |
| 22 | + "offer": "WindowsServer" |
| 23 | + }, |
| 24 | + "osDisk": { |
| 25 | + "caching": "ReadWrite", |
| 26 | + "managedDisk": { |
| 27 | + "storageAccountType": "Standard_LRS" |
| 28 | + }, |
| 29 | + "createOption": "FromImage" |
| 30 | + } |
| 31 | + }, |
| 32 | + "osProfile": { |
| 33 | + "computerNamePrefix": "{vmss-name}", |
| 34 | + "adminUsername": "{your-username}", |
| 35 | + "adminPassword": "{your-password}" |
| 36 | + }, |
| 37 | + "networkProfile": { |
| 38 | + "networkInterfaceConfigurations": [ |
| 39 | + { |
| 40 | + "name": "{vmss-name}", |
| 41 | + "properties": { |
| 42 | + "primary": true, |
| 43 | + "enableIPForwarding": true, |
| 44 | + "ipConfigurations": [ |
| 45 | + { |
| 46 | + "name": "{vmss-name}", |
| 47 | + "properties": { |
| 48 | + "subnet": { |
| 49 | + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" |
| 50 | + } |
| 51 | + } |
| 52 | + } |
| 53 | + ] |
| 54 | + } |
| 55 | + } |
| 56 | + ] |
| 57 | + } |
| 58 | + }, |
| 59 | + "upgradePolicy": { |
| 60 | + "mode": "Manual" |
| 61 | + }, |
| 62 | + "resiliencyPolicy": { |
| 63 | + "resilientVMCreationPolicy": { |
| 64 | + "enabled": true |
| 65 | + } |
| 66 | + } |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + "responses": { |
| 71 | + "200": { |
| 72 | + "body": { |
| 73 | + "sku": { |
| 74 | + "tier": "Standard", |
| 75 | + "capacity": 3, |
| 76 | + "name": "Standard_D1_v2" |
| 77 | + }, |
| 78 | + "name": "{vmss-name}", |
| 79 | + "properties": { |
| 80 | + "singlePlacementGroup": true, |
| 81 | + "overprovision": false, |
| 82 | + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", |
| 83 | + "virtualMachineProfile": { |
| 84 | + "storageProfile": { |
| 85 | + "imageReference": { |
| 86 | + "sku": "2016-Datacenter", |
| 87 | + "publisher": "MicrosoftWindowsServer", |
| 88 | + "version": "latest", |
| 89 | + "offer": "WindowsServer" |
| 90 | + }, |
| 91 | + "osDisk": { |
| 92 | + "caching": "ReadWrite", |
| 93 | + "managedDisk": { |
| 94 | + "storageAccountType": "Standard_LRS" |
| 95 | + }, |
| 96 | + "createOption": "FromImage" |
| 97 | + } |
| 98 | + }, |
| 99 | + "osProfile": { |
| 100 | + "computerNamePrefix": "{vmss-name}", |
| 101 | + "adminUsername": "{your-username}", |
| 102 | + "secrets": [], |
| 103 | + "windowsConfiguration": { |
| 104 | + "provisionVMAgent": true, |
| 105 | + "enableAutomaticUpdates": true |
| 106 | + } |
| 107 | + }, |
| 108 | + "networkProfile": { |
| 109 | + "networkInterfaceConfigurations": [ |
| 110 | + { |
| 111 | + "name": "{vmss-name}", |
| 112 | + "properties": { |
| 113 | + "dnsSettings": { |
| 114 | + "dnsServers": [] |
| 115 | + }, |
| 116 | + "primary": true, |
| 117 | + "enableIPForwarding": true, |
| 118 | + "ipConfigurations": [ |
| 119 | + { |
| 120 | + "name": "{vmss-name}", |
| 121 | + "properties": { |
| 122 | + "subnet": { |
| 123 | + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" |
| 124 | + }, |
| 125 | + "privateIPAddressVersion": "IPv4" |
| 126 | + } |
| 127 | + } |
| 128 | + ], |
| 129 | + "enableAcceleratedNetworking": false |
| 130 | + } |
| 131 | + } |
| 132 | + ] |
| 133 | + } |
| 134 | + }, |
| 135 | + "upgradePolicy": { |
| 136 | + "mode": "Manual" |
| 137 | + }, |
| 138 | + "resiliencyPolicy": { |
| 139 | + "resilientVMCreationPolicy": { |
| 140 | + "enabled": true |
| 141 | + } |
| 142 | + }, |
| 143 | + "provisioningState": "Creating" |
| 144 | + }, |
| 145 | + "location": "westus", |
| 146 | + "type": "Microsoft.Compute/virtualMachineScaleSets", |
| 147 | + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" |
| 148 | + } |
| 149 | + }, |
| 150 | + "201": { |
| 151 | + "body": { |
| 152 | + "sku": { |
| 153 | + "tier": "Standard", |
| 154 | + "capacity": 3, |
| 155 | + "name": "Standard_D1_v2" |
| 156 | + }, |
| 157 | + "name": "{vmss-name}", |
| 158 | + "properties": { |
| 159 | + "singlePlacementGroup": true, |
| 160 | + "overprovision": false, |
| 161 | + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", |
| 162 | + "virtualMachineProfile": { |
| 163 | + "storageProfile": { |
| 164 | + "imageReference": { |
| 165 | + "sku": "2016-Datacenter", |
| 166 | + "publisher": "MicrosoftWindowsServer", |
| 167 | + "version": "latest", |
| 168 | + "offer": "WindowsServer" |
| 169 | + }, |
| 170 | + "osDisk": { |
| 171 | + "caching": "ReadWrite", |
| 172 | + "managedDisk": { |
| 173 | + "storageAccountType": "Standard_LRS" |
| 174 | + }, |
| 175 | + "createOption": "FromImage" |
| 176 | + } |
| 177 | + }, |
| 178 | + "osProfile": { |
| 179 | + "computerNamePrefix": "{vmss-name}", |
| 180 | + "adminUsername": "{your-username}", |
| 181 | + "secrets": [], |
| 182 | + "windowsConfiguration": { |
| 183 | + "provisionVMAgent": true, |
| 184 | + "enableAutomaticUpdates": true |
| 185 | + } |
| 186 | + }, |
| 187 | + "networkProfile": { |
| 188 | + "networkInterfaceConfigurations": [ |
| 189 | + { |
| 190 | + "name": "{vmss-name}", |
| 191 | + "properties": { |
| 192 | + "dnsSettings": { |
| 193 | + "dnsServers": [] |
| 194 | + }, |
| 195 | + "primary": true, |
| 196 | + "enableIPForwarding": true, |
| 197 | + "ipConfigurations": [ |
| 198 | + { |
| 199 | + "name": "{vmss-name}", |
| 200 | + "properties": { |
| 201 | + "subnet": { |
| 202 | + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" |
| 203 | + }, |
| 204 | + "privateIPAddressVersion": "IPv4" |
| 205 | + } |
| 206 | + } |
| 207 | + ], |
| 208 | + "enableAcceleratedNetworking": false |
| 209 | + } |
| 210 | + } |
| 211 | + ] |
| 212 | + } |
| 213 | + }, |
| 214 | + "upgradePolicy": { |
| 215 | + "mode": "Manual" |
| 216 | + }, |
| 217 | + "resiliencyPolicy": { |
| 218 | + "resilientVMCreationPolicy": { |
| 219 | + "enabled": true |
| 220 | + } |
| 221 | + }, |
| 222 | + "provisioningState": "Creating" |
| 223 | + }, |
| 224 | + "location": "westus", |
| 225 | + "type": "Microsoft.Compute/virtualMachineScaleSets", |
| 226 | + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" |
| 227 | + } |
| 228 | + } |
| 229 | + } |
| 230 | +} |
0 commit comments