Skip to content
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

New Swagger specification for Microsoft.SqlVirtualMachine Resource Provider. #4385

Merged
merged 6 commits into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
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": {}
}
}
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": {}
}
}
Loading