-
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.
New Swagger specification for Microsoft.SqlVirtualMachine Resource Pr…
…ovider. (#4385) * Adding new SQL VM Resource Manager swagger and examples * Final swagger * Addressing code review comments, adding readme file * Addressing code review comments * Addressing code review comments * Addressing comments
- Loading branch information
1 parent
5ff6dda
commit 19e68db
Showing
21 changed files
with
2,823 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
...lMachine/preview/2017-03-01-preview/examples/CreateOrUpdateAvailabilityGroupListener.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,71 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineGroupName": "testvmgroup", | ||
"availabilityGroupListenerName": "agl-test", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"AvailabilityGroupName": "ag-test", | ||
"LoadBalancerConfigurations": [ | ||
{ | ||
"PrivateIPAddress": { | ||
"IpAddress": "10.1.0.112", | ||
"SubnetResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default" | ||
}, | ||
"LoadBalancerResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Network/loadBalancers/lb-test", | ||
"ProbePort": "59983", | ||
"SqlVirtualMachineInstances": [ | ||
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", | ||
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm3" | ||
] | ||
} | ||
], | ||
"Port": "1433" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"loadBalancerConfigurations": [ | ||
{ | ||
"privateIpAddress": { | ||
"ipAddress": "10.1.0.113", | ||
"subnetResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default" | ||
}, | ||
"sqlVirtualMachineInstances": [ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", | ||
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm3" ] | ||
} | ||
], | ||
"port": 1433 | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup/availabilityGroupListeners/agl-test", | ||
"name": "agl-test", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "Provisioning", | ||
"loadBalancerConfigurations": [ | ||
{ | ||
"privateIpAddress": { | ||
"ipAddress": "10.1.0.112", | ||
"subnetResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default" | ||
}, | ||
"sqlVirtualMachineInstances": [ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", | ||
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm3" ] | ||
} | ||
], | ||
"port": 1433 | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup/availabilityGroupListeners/agl-test", | ||
"name": "agl-test", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners" | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...tualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.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,67 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineGroupName": "testvmgroup", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"properties": { | ||
"SqlImageOffer": "SQL2016-WS2016", | ||
"SqlImageSku": "Enterprise", | ||
"WsfcDomainProfile": { | ||
"DomainFQDN": "testdomain.com", | ||
"OUPath": "OU=WSCluster,DC=testdomain,DC=com", | ||
"ClusterBootstrapAccount": "testrpadmin", | ||
"ClusterOperatorAccount": "testrp@testdomain.com", | ||
"SqlServiceAccount": "sqlservice@testdomain.com", | ||
"StorageAccountUrl": "https://storgact.blob.core.windows.net/", | ||
"StorageAccountPrimaryKey": "<primary storage access key>" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "UpdatingDomainful", | ||
"sqlImageOffer": "SQL2016-WS2016", | ||
"sqlImageSku": "Enterprise", | ||
"wsfcDomainProfile": { | ||
"storageAccountUrl": "https://storgact.blob.core.windows.net/" | ||
} | ||
}, | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup", | ||
"name": "testvmgroup", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"provisioningState": "ProvisioningDomainful", | ||
"sqlImageOffer": "SQL2016-WS2016", | ||
"sqlImageSku": "Enterprise", | ||
"wsfcDomainProfile": { | ||
"storageAccountUrl": "https://storgact.blob.core.windows.net/" | ||
} | ||
}, | ||
"location": "northeurope", | ||
"tags": { | ||
"mytag": "myval" | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup", | ||
"name": "testvmgroup", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" | ||
} | ||
} | ||
} | ||
} |
86 changes: 86 additions & 0 deletions
86
...irtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.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,86 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineName":"testvm", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "northeurope", | ||
"properties": { | ||
"sqlServerLicenseType": "PAYG", | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", | ||
"ServerConfigurationsManagementSettings": { | ||
"SQLConnectivityUpdateSettings": { | ||
"ConnectivityType": "Private", | ||
"Port": 1433, | ||
"SQLAuthUpdateUserName": "sqllogin", | ||
"SQLAuthUpdatePassword": "<password>" | ||
}, | ||
"SQLStorageUpdateSettings": { | ||
"DiskCount": 1, | ||
"DiskConfigurationType": "NEW" | ||
}, | ||
"SQLWorkloadTypeUpdateSettings": { | ||
"SQLWorkloadType": "OLTP" | ||
}, | ||
"AdditionalFeaturesServerConfigurations": { | ||
"IsRServicesEnabled": false | ||
} | ||
}, | ||
"KeyVaultCredentialSettings": { | ||
"Enable": false | ||
}, | ||
"AutoPatchingSettings": { | ||
"Enable": true, | ||
"DayOfWeek": "Sunday", | ||
"MaintenanceWindowStartingHour": 2, | ||
"MaintenanceWindowDuration": 60 | ||
}, | ||
"AutoBackupSettings": { | ||
"Enable": true, | ||
"RetentionPeriod": 17, | ||
"EnableEncryption": true, | ||
"Password": "<Password>", | ||
"BackupScheduleType": "Manual", | ||
"BackupSystemDbs": true, | ||
"StorageAccountUrl": "https://teststorage.blob.core.windows.net/", | ||
"StorageAccessKey": "<primary storage access key>", | ||
"FullBackupFrequency": "Daily", | ||
"FullBackupStartTime": 6, | ||
"FullBackupWindowHours": 11, | ||
"LogBackupFrequency": 10 | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", | ||
"provisioningState": "Updating", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlImageSku": "Enterprise" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", | ||
"name": "testvm", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", | ||
"provisioningState": "Provisioning", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlImageSku": "Unknown" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", | ||
"name": "testvm", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...irtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMIN.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,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineName": "testvm", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "northeurope", | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", | ||
"provisioningState": "Updating", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlImageSku": "Enterprise" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", | ||
"name": "testvm", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", | ||
"provisioningState": "Provisioning", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlImageSku": "Unknown" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", | ||
"name": "testvm", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...lMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.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,52 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineName": "testvm", | ||
"api-version": "2017-03-01-preview", | ||
"parameters": { | ||
"location": "northeurope", | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm2", | ||
"SqlVirtualMachineGroupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup", | ||
"WsfcDomainCredentials": { | ||
"ClusterBootstrapAccountPassword": "<Password>", | ||
"ClusterOperatorAccountPassword": "<Password>", | ||
"SqlServiceAccountPassword": "<Password>" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm2", | ||
"provisioningState": "Updating", | ||
"sqlImageSku": "Enterprise", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlVirtualMachineGroupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", | ||
"name": "testvm2", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm2", | ||
"provisioningState": "Provisioning", | ||
"sqlImageSku": "Unknown", | ||
"sqlServerLicenseType": "PAYG", | ||
"sqlVirtualMachineGroupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup" | ||
}, | ||
"location": "northeurope", | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", | ||
"name": "testvm2", | ||
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...qlVirtualMachine/preview/2017-03-01-preview/examples/DeleteAvailabilityGroupListener.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,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineGroupName": "testvmgroup", | ||
"availabilityGroupListenerName": "agl-test", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rosoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachine.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineName": "testvm1", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...t.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachineGroup.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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "testrg", | ||
"sqlVirtualMachineGroupName": "testvmgroup", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.