-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add terminate profile and scheduled events profile to Microsoft.Compute #6683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
amarzavery
merged 10 commits into
Azure:master
from
szimmer-dev:dev/szimmer/AddTerminateProfile
Aug 1, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
24bcc42
Add terminate notification profile and scheduled events profile to th…
szimmer-dev 9bb1d5b
Correct definition format
szimmer-dev a7b448e
Update specification/compute/resource-manager/Microsoft.Compute/stabl…
szimmer-dev d99620f
Update specification/compute/resource-manager/Microsoft.Compute/stabl…
szimmer-dev 722acaf
Add ScheduledEventsProfile to the UpdateVMScaleSetVM model, and add i…
szimmer-dev 49bbc92
Merge branch 'master' into dev/szimmer/AddTerminateProfile
szimmer-dev edd04f8
Add an example for terminate scheduled events, and add type:object to…
szimmer-dev 19a6129
Add example reference into compute.json
szimmer-dev 37f3208
Fix example file naming.
szimmer-dev 84963d0
Fix terminate scheduled event reference.
szimmer-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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}" | ||
| } | ||
| } | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.