-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Location based routing for VMSS (newest API version) (#12145)
* add by location for VMSS * minor changes * add default response. Co-authored-by: Sachin Doddaiah Shylaja <sadoddai@microsoft.com>
- Loading branch information
Showing
2 changed files
with
216 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
169 changes: 169 additions & 0 deletions
169
...pute/stable/2020-12-01/examples/ListVirtualMachineScaleSetsInASubscriptionByLocation.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,169 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"location": "eastus", | ||
"api-version": "2020-06-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "{virtualMachineScaleSetName}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"location": "eastus", | ||
"tags": { | ||
"myTag1": "tagValue1" | ||
}, | ||
"sku": { | ||
"name": "Standard_D2s_v3", | ||
"tier": "Standard", | ||
"capacity": 4 | ||
}, | ||
"properties": { | ||
"singlePlacementGroup": false, | ||
"upgradePolicy": { | ||
"mode": "Automatic", | ||
"automaticOSUpgradePolicy": { | ||
"enableAutomaticOSUpgrade": false | ||
} | ||
}, | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"osDisk": { | ||
"createOption": "FromImage", | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Premium_LRS" | ||
}, | ||
"diskSizeGB": 30 | ||
}, | ||
"imageReference": { | ||
"publisher": "azuredatabricks", | ||
"offer": "databricks", | ||
"sku": "databricksworker", | ||
"version": "3.15.2" | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{virtualMachineScaleSetName}", | ||
"adminUsername": "admin", | ||
"linuxConfiguration": { | ||
"disablePasswordAuthentication": false | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "myNic", | ||
"properties": { | ||
"primary": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "myIPConfig", | ||
"properties": { | ||
"primary": true, | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet" | ||
} | ||
} | ||
} | ||
], | ||
"networkSecurityGroup": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"provisioningState": "succeeded", | ||
"overprovision": false, | ||
"doNotRunExtensionsOnOverprovisionedVMs": false, | ||
"platformFaultDomainCount": 1 | ||
} | ||
}, | ||
{ | ||
"name": "{virtualMachineScaleSetName}", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}1", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"location": "eastus", | ||
"tags": { | ||
"myTag1": "tagValue2" | ||
}, | ||
"sku": { | ||
"name": "Standard_D2s_v3", | ||
"tier": "Standard", | ||
"capacity": 4 | ||
}, | ||
"properties": { | ||
"singlePlacementGroup": false, | ||
"upgradePolicy": { | ||
"mode": "Automatic", | ||
"automaticOSUpgradePolicy": { | ||
"enableAutomaticOSUpgrade": false | ||
} | ||
}, | ||
"virtualMachineProfile": { | ||
"storageProfile": { | ||
"osDisk": { | ||
"createOption": "FromImage", | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Premium_LRS" | ||
}, | ||
"diskSizeGB": 30 | ||
}, | ||
"imageReference": { | ||
"publisher": "azuredatabricks", | ||
"offer": "databricks", | ||
"sku": "databricksworker", | ||
"version": "3.15.2" | ||
}, | ||
"dataDisks": [] | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{virtualMachineScaleSetName}", | ||
"adminUsername": "admin", | ||
"linuxConfiguration": { | ||
"disablePasswordAuthentication": false | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkInterfaceConfigurations": [ | ||
{ | ||
"name": "myNic1", | ||
"properties": { | ||
"primary": true, | ||
"ipConfigurations": [ | ||
{ | ||
"name": "myIPConfig", | ||
"properties": { | ||
"primary": true, | ||
"subnet": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet" | ||
} | ||
} | ||
} | ||
], | ||
"networkSecurityGroup": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"provisioningState": "succeeded", | ||
"overprovision": false, | ||
"doNotRunExtensionsOnOverprovisionedVMs": false, | ||
"platformFaultDomainCount": 1 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |