-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating GET example (+1 squashed commits)
Squashed commits: [61920933d] fix (+1 squashed commits) Squashed commits: [f0151eb78] updated with extensionsTimeBudget
- Loading branch information
1 parent
da8a011
commit d8ed894
Showing
4 changed files
with
307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 183 additions & 0 deletions
183
...Microsoft.Compute/stable/2020-06-01/examples/CreateAScaleSetWithExtensionsTimeBudget.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmScaleSetName": "{vmss-name}", | ||
"api-version": "2020-06-01", | ||
"parameters": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_D1_v2" | ||
}, | ||
"location": "westus", | ||
"properties": { | ||
"overprovision": true, | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://{existing-storage-account-name}.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"adminPassword": "{your-password}" | ||
}, | ||
"extensionProfile": { | ||
"extensions": [ | ||
{ | ||
"name": "{extension-name}", | ||
"properties": { | ||
"autoUpgradeMinorVersion": false, | ||
"publisher": "{extension-Publisher}", | ||
"type": "{extension-Type}", | ||
"typeHandlerVersion": "{handler-version}", | ||
"settings": {} | ||
} | ||
} | ||
], | ||
"extensionsTimeBudget": "PT1H20M" | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"primary": true, | ||
"enableIPForwarding": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"sku": { | ||
"tier": "Standard", | ||
"capacity": 3, | ||
"name": "Standard_D1_v2" | ||
}, | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"singlePlacementGroup": true, | ||
"overprovision": true, | ||
"uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://nsgdiagnostic.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"secrets": [ ], | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"extensionProfile": { | ||
"extensions": [ | ||
{ | ||
"name": "{extension-name}", | ||
"properties": { | ||
"autoUpgradeMinorVersion": false, | ||
"publisher": "{extension-Publisher}", | ||
"type": "{extension-Type}", | ||
"typeHandlerVersion": "{handler-version}", | ||
"settings": {} | ||
} | ||
} | ||
], | ||
"extensionsTimeBudget": "PT1H20M" | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"dnsSettings": { | ||
"dnsServers": [ ] | ||
}, | ||
"primary": true, | ||
"enableIPForwarding": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "{vmss-name}", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" | ||
}, | ||
"privateIPAddressVersion": "IPv4" | ||
} | ||
} | ||
], | ||
"enableAcceleratedNetworking": false | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "westus", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
} | ||
} | ||
} |
115 changes: 115 additions & 0 deletions
115
...ger/Microsoft.Compute/stable/2020-06-01/examples/CreateAVmInWithExtensionsTimeBudget.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmName": "myVM", | ||
"api-version": "2020-06-01", | ||
"parameters": { | ||
"location": "westus", | ||
"properties": { | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D1_v2" | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
}, | ||
"name": "myVMosdisk", | ||
"createOption": "FromImage" | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", | ||
"properties": { | ||
"primary": true | ||
} | ||
} | ||
] | ||
}, | ||
"osProfile": { | ||
"adminUsername": "{your-username}", | ||
"computerName": "myVM", | ||
"adminPassword": "{your-password}" | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://{existing-storage-account-name}.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"extensionsTimeBudget": "PT30M" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", | ||
"type": "Microsoft.Compute/virtualMachines", | ||
"properties": { | ||
"osProfile": { | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"computerName": "myVM", | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", | ||
"properties": { | ||
"primary": true | ||
} | ||
} | ||
] | ||
}, | ||
"storageProfile": { | ||
"imageReference": { | ||
"sku": "2016-Datacenter", | ||
"publisher": "MicrosoftWindowsServer", | ||
"version": "latest", | ||
"offer": "WindowsServer" | ||
}, | ||
"osDisk": { | ||
"osType": "Windows", | ||
"caching": "ReadWrite", | ||
"createOption": "FromImage", | ||
"name": "myVMosdisk", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS" | ||
} | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"storageUri": "http://nsgdiagnostic.blob.core.windows.net", | ||
"enabled": true | ||
} | ||
}, | ||
"vmId": "676420ba-7a24-4bfe-80bd-9c841ee184fa", | ||
"hardwareProfile": { | ||
"vmSize": "Standard_D1_v2" | ||
}, | ||
"extensionsTimeBudget": "PT30M", | ||
"provisioningState": "Creating" | ||
}, | ||
"name": "myVM", | ||
"location": "westus" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters