-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add terminate profile and scheduled events profile to Microsoft.Compu…
…te (#6683) * Add terminate notification profile and scheduled events profile to the Microosft.Compute autorest config. * Correct definition format * Update specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json Co-Authored-By: Nick Schonning <nschonni@gmail.com> * Update specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json Co-Authored-By: Nick Schonning <nschonni@gmail.com> * Add ScheduledEventsProfile to the UpdateVMScaleSetVM model, and add instance view expansion to get VM Scale Set VM. * Add an example for terminate scheduled events, and add type:object to scheudled events and termiante profile schemas. * Add example reference into compute.json * Fix example file naming. * Fix terminate scheduled event reference.
- Loading branch information
1 parent
e30b61d
commit ab88105
Showing
2 changed files
with
281 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
233 changes: 233 additions & 0 deletions
233
...Compute/stable/2019-03-01/examples/CreateAScaleSetWithTerminateScheduledEventEnabled.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,233 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"vmScaleSetName": "{vmss-name}", | ||
"api-version": "2019-03-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" | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"adminPassword": "{your-password}" | ||
}, | ||
"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}" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"scheduledEventsProfile" : { | ||
"terminateNotificationProfile" : { | ||
"enable": true, | ||
"notBeforeTimeout": "PT5M" | ||
} | ||
} | ||
}, | ||
"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" | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"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 | ||
} | ||
} | ||
] | ||
}, | ||
"scheduledEventsProfile" : { | ||
"terminateNotificationProfile" : { | ||
"enable": true, | ||
"notBeforeTimeout": "PT5M" | ||
} | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "westus", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
}, | ||
"201": { | ||
"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" | ||
} | ||
}, | ||
"osProfile": { | ||
"computerNamePrefix": "{vmss-name}", | ||
"adminUsername": "{your-username}", | ||
"secrets": [], | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
} | ||
}, | ||
"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 | ||
} | ||
} | ||
] | ||
}, | ||
"scheduledEventsProfile" : { | ||
"terminateNotificationProfile" : { | ||
"enable": true, | ||
"notBeforeTimeout": "PT5M" | ||
} | ||
} | ||
}, | ||
"upgradePolicy": { | ||
"mode": "Manual" | ||
}, | ||
"provisioningState": "Creating" | ||
}, | ||
"location": "westus", | ||
"type": "Microsoft.Compute/virtualMachineScaleSets", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" | ||
} | ||
} | ||
} | ||
} |