From 9c89948ea1feb2e29b2ccedf480da76171489f5f Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Thu, 1 Nov 2018 15:40:24 -0700 Subject: [PATCH 1/6] Adding new SQL VM Resource Manager swagger and examples --- ...eateOrUpdateAvailabilityGroupListener.json | 71 + .../CreateOrUpdateSqlVirtualMachineGroup.json | 67 + .../CreateOrUpdateSqlVirtualMachineMAX.json | 86 + .../CreateOrUpdateSqlVirtualMachineMIN.json | 44 + ...eateOrUpdateVirtualMachineWithVMGroup.json | 52 + .../DeleteAvailabilityGroupListener.json | 14 + .../examples/DeleteSqlVirtualMachine.json | 13 + .../DeleteSqlVirtualMachineGroup.json | 13 + .../GetAvailabilityGroupListener.json | 35 + .../examples/GetSqlVirtualMachine.json | 27 + .../examples/GetSqlVirtualMachineGroup.json | 35 + .../ListByGroupAvailabilityGroupListener.json | 38 + .../ListByResourceGroupSqlVirtualMachine.json | 41 + ...ByResourceGroupSqlVirtualMachineGroup.json | 81 + .../examples/ListOperation.json | 112 + .../ListSubscriptionSqlVirtualMachine.json | 53 + ...istSubscriptionSqlVirtualMachineGroup.json | 83 + .../examples/UpdateSqlVirtualMachine.json | 33 + .../UpdateSqlVirtualMachineGroup.json | 35 + .../preview/2017-03-01-preview/sqlvm.json | 1868 +++++++++++++++++ 20 files changed, 2801 insertions(+) create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateAvailabilityGroupListener.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMIN.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteAvailabilityGroupListener.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachine.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetAvailabilityGroupListener.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachine.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByGroupAvailabilityGroupListener.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachine.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListOperation.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachine.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachine.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachineGroup.json create mode 100644 specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateAvailabilityGroupListener.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateAvailabilityGroupListener.json new file mode 100644 index 000000000000..6b19a28e1869 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateAvailabilityGroupListener.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..a0abf22727d2 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json @@ -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": "AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg75Tg7/A==" + } + } + } + }, + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json new file mode 100644 index 000000000000..5dc95698e182 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json @@ -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": "Test@zure123!" + }, + "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": "Test@zure123!", + "BackupScheduleType": "Manual", + "BackupSystemDbs": true, + "StorageAccountUrl": "https://teststorage.blob.core.windows.net/", + "StorageAccessKey": "AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg75Tg7/A==", + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMIN.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMIN.json new file mode 100644 index 000000000000..b1afdafb9408 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMIN.json @@ -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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json new file mode 100644 index 000000000000..acd0d427a62e --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json @@ -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": "Test@zure123!", + "ClusterOperatorAccountPassword": "Test@zure123!", + "SqlServiceAccountPassword": "Test@zure123!" + } + } + } + }, + "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" + } + } + } +} diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteAvailabilityGroupListener.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteAvailabilityGroupListener.json new file mode 100644 index 000000000000..98d9c96eb0f2 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteAvailabilityGroupListener.json @@ -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": {} + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachine.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachine.json new file mode 100644 index 000000000000..f4489c95f57e --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachine.json @@ -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": {} + } +} diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..b3d3c439e4cb --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/DeleteSqlVirtualMachineGroup.json @@ -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": {} + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetAvailabilityGroupListener.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetAvailabilityGroupListener.json new file mode 100644 index 000000000000..de85cdc4c309 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetAvailabilityGroupListener.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineGroupName": "testvmgroup", + "availabilityGroupListenerName": "agl-test", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "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/testvm3", + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2" ] + } + ], + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachine.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachine.json new file mode 100644 index 000000000000..36e4c9ee375f --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachine.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineName": "testvm", + "api-version": "2017-03-01-preview", + "parameters": { + } + }, + "responses": { + "200": { + "body": { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2016-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", + "name": "testvm", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..2fc27894ba40 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/GetSqlVirtualMachineGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineGroupName": "testvmgroup", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "Succeeded", + "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/" + } + }, + "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" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByGroupAvailabilityGroupListener.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByGroupAvailabilityGroupListener.json new file mode 100644 index 000000000000..b79af039a5df --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByGroupAvailabilityGroupListener.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineGroupName": "testvmgroup", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "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/testvm3", + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2" ] + } + ], + "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" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachine.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachine.json new file mode 100644 index 000000000000..6785d0d40347 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachine.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2016-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", + "name": "testvm", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + }, + { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm1", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2017-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm1", + "name": "testvm1", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..cad9a73fd09d --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListByResourceGroupSqlVirtualMachineGroup.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2017-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/" + } + }, + "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" + }, + { + "properties": { + "provisioningState": "Succeeded", + "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/" + } + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup1", + "name": "testvmgroup1", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + }, + { + "properties": { + "provisioningState": "Succeeded", + "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/" + } + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup2", + "name": "testvmgroup2", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + } + ] + } + } + } +} diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListOperation.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListOperation.json new file mode 100644 index 000000000000..1be629af051c --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListOperation.json @@ -0,0 +1,112 @@ +{ + "parameters": { + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/read", + "display": { + "resource": "SQL VirtualMachine Group", + "operation": "Get SQL VirtualMachine Group details", + "description": "Retrives details of SQL VirtualMachine Group" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/write", + "display": { + "resource": "SQL VirtualMachine Group", + "operation": "Create a new or update existing SQL VirtualMachine Group", + "description": "Create a new or change properties of existing SQL VirtualMachine Group" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/delete", + "display": { + "resource": "SQL VirtualMachine Group", + "operation": "Delete existing SQL VirtualMachine Group", + "description": "Delete existing SQL VirtualMachine Group" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/read", + "display": { + "resource": "SQL AvailabilityGroup Listener", + "operation": "Get AvailabilityGroup Listener details", + "description": "Retrieves details of SQL AvailabilityGroup Listener on a given SQL VirtualMachine Group" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/write", + "display": { + "resource": "SQL AvailabilityGroup Listener", + "operation": "Create new or update exising AvailabilityGroup Listener", + "description": "Create a new or change properties of existing SQL AvailabilityGroup Listener" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/availabilityGroupListeners/delete", + "display": { + "resource": "SQL AvailabilityGroup Listener", + "operation": "Delete existing AvailabilityGroup Listener", + "description": "Delete existing AvailabilityGroup Listener" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/locations/availabilityGroupListenerOperationResults/read", + "display": { + "resource": "SQL AvailabilityGroup Listener", + "operation": "Get AvailabilityGroup Listener operation result", + "description": "Get result of an AvailabilityGroup Listener operation" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/operations/read", + "display": { + "resource": "Available REST operations" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/locations/sqlVirtualMachineGroupOperationResults/read", + "display": { + "resource": "SQL VirtualMachine Group", + "operation": "Get SQL VirtualMachine Group operation result", + "description": "Get result of a SQL VirtualMachine Group operation" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachines/read", + "display": { + "operation": "Get SQL VirtualMachine Instance details", + "description": "Retrieves details of SQL VirtualMachine" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachines/write", + "display": { + "operation": "Create new or update existing SQL VirtualMachine", + "description": "Create a new or change properties of existing SQL VirtualMachine" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/sqlVirtualMachines/delete", + "display": { + "operation": "Delete exisiting SQL VirtualMachine", + "description": "Delete exisiting SQL VirtualMachine" + } + }, + { + "name": "Microsoft.SqlVirtualMachine/locations/sqlVirtualMachineOperationResults/read", + "display": { + "resource": "SQL VirtualMachine", + "operation": "Get SQL VirtualMachine operation result", + "description": "Get result of SQL VirtualMachine operation" + } + } + ] + } + } + } +} diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachine.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachine.json new file mode 100644 index 000000000000..74eee8a07a81 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachine.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2016-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", + "name": "testvm", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + }, + { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm1", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2017-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm1", + "name": "testvm1", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + }, + { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg1/providers/Microsoft.Compute/virtualMachines/testvm2", + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2016-WS2016", + "sqlImageSku": "Enterprise", + "sqlServerLicenseType": "PAYG" + }, + "location": "northeurope", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2", + "name": "testvm2", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..03299ea25f4f --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json @@ -0,0 +1,83 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "api-version": "2017-03-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "provisioningState": "Succeeded", + "sqlImageOffer": "SQL2017-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/" + } + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "name": "testvmgroup", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + }, + { + "properties": { + "provisioningState": "Succeeded", + "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/" + } + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "name": "testvmgroup1", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + }, + { + "properties": { + "provisioningState": "Succeeded", + "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/" + } + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "name": "testvmgroup2", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + } + ] + } + } + } +} diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachine.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachine.json new file mode 100644 index 000000000000..8493fc02413a --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachine.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineName": "testvm", + "api-version": "2017-03-01-preview", + "parameters": { + "location": "northeurope", + "tags": { + "mytag": "myval" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm", + "provisioningState": "Updating", + "sqlServerLicenseType": "PAYG", + "sqlImageSku": "Unknown" + }, + "location": "northeurope", + "tags": { + "mytag": "myval" + }, + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm", + "name": "testvm", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachineGroup.json new file mode 100644 index 000000000000..7808f0432f6c --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/UpdateSqlVirtualMachineGroup.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "testrg", + "sqlVirtualMachineGroupName": "testvmgroup", + "api-version": "2017-03-01-preview", + "parameters": { + "location": "northeurope", + "tags": { + "mytag": "myval" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "provisioningState": "UpdatingDomainful", + "sqlImageOffer": "SQL2017-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/sqlVirtualMachines/testvm", + "name": "testvmgroup", + "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" + } + } + } +} \ No newline at end of file diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json new file mode 100644 index 000000000000..de86c67f8612 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -0,0 +1,1868 @@ +{ + "swagger": "2.0", + "info": { + "version": "2017-03-01-preview", + "title": "ArmSqlVMResourceProviderModule", + "description": "The SqlVM management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your Sql Server Virtual Machine. The API enables users to create, delete and retrieve the single SqlVm and SqlVm cluster." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}": { + "get": { + "tags": [ + "AvailabilityGroupListeners" + ], + "description": "Gets an AvailabilityGroupListener.", + "operationId": "AvailabilityGroupListeners_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "name": "availabilityGroupListenerName", + "in": "path", + "description": "The name of the Availability Group Listener.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the AvailabilityGroupListeners.", + "schema": { + "$ref": "#/definitions/AvailabilityGroupListener" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + } + }, + "x-ms-examples": { + "Gets an AvailabilityGroupListener.": { + "$ref": "./examples/GetAvailabilityGroupListener.json" + } + } + }, + "put": { + "tags": [ + "AvailabilityGroupListeners" + ], + "description": "Creates or Updates a AvailabilityGroupListener.", + "operationId": "AvailabilityGroupListeners_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "name": "availabilityGroupListenerName", + "in": "path", + "description": "The name of the Availability Group Listener.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The AvailabilityGroup listener Resource.", + "required": true, + "schema": { + "$ref": "#/definitions/AvailabilityGroupListener" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the AvailabilityGroupListener.", + "schema": { + "$ref": "#/definitions/AvailabilityGroupListener" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + }, + "201": { + "description": "Successfully created the AvailabilityGroupListener.", + "schema": { + "$ref": "#/definitions/AvailabilityGroupListener" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Creates or Updates a AvailabilityGroupListener.": { + "$ref": "./examples/CreateOrUpdateAvailabilityGroupListener.json" + } + } + }, + "delete": { + "tags": [ + "AvailabilityGroupListeners" + ], + "description": "Deletes the AvailabilityGroup Listener with the given name.", + "operationId": "AvailabilityGroupListeners_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "name": "availabilityGroupListenerName", + "in": "path", + "description": "The name of the Availability Group Listener.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the AvailabilityGroup Listener." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + }, + "202": { + "description": "Deleting the AvailabilityGroup Listener." + }, + "204": { + "description": "The specified AvailabilityGroup Listener does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes the AvailabilityGroup Listener with the given name.": { + "$ref": "./examples/DeleteAvailabilityGroupListener.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners": { + "get": { + "tags": [ + "AvailabilityGroupListeners" + ], + "description": "Lists AvailabilityGroup Listener by SqlVirtualMachineGroup.", + "operationId": "AvailabilityGroupListeners_ListByGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of AvailabilityGroup Listener.", + "schema": { + "$ref": "#/definitions/AvailabilityGroupListenerListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Lists AvailabilityGroup Listener by Sql Virtual Machine Group.": { + "$ref": "./examples/ListByGroupAvailabilityGroupListener.json" + } + } + } + }, + "/providers/Microsoft.SqlVirtualMachine/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available SQL Rest API operations.", + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Lists all of the available SQL Rest API operations.": { + "$ref": "./examples/ListOperation.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}": { + "get": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Gets a SQL VirtualMachine Group.", + "operationId": "SqlVirtualMachineGroups_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the SQL VirtualMachine Group.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + } + }, + "x-ms-examples": { + "Gets a SQL VirtualMachine Group.": { + "$ref": "./examples/GetSqlVirtualMachineGroup.json" + } + } + }, + "put": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Creates or Updates SQL VirtualMachine Group.", + "operationId": "SqlVirtualMachineGroups_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL VirtualMachine Group resource.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL VirtualMachine Group.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + }, + "201": { + "description": "Successfully created the SQL VirtualMachine Group.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Creates or Updates SQL VirtualMachine Group.": { + "$ref": "./examples/CreateOrUpdateSqlVirtualMachineGroup.json" + } + } + }, + "delete": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Deletes the SQL VirtualMachine Group with the given name.", + "operationId": "SqlVirtualMachineGroups_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the SQL VirtualMachine Group." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + }, + "202": { + "description": "Deleting the SQL VirtualMachine Group." + }, + "204": { + "description": "The specified SQL VirtualMachine Group does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes the SQL VirtualMachine Group with the given name.": { + "$ref": "./examples/DeleteSqlVirtualMachineGroup.json" + } + } + }, + "patch": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Updates a SQL VirtualMachine Group.", + "operationId": "SqlVirtualMachineGroups_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineGroupName", + "in": "path", + "description": "The name of the Sql VirtualMachine Group.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL VirtualMachine Group update resource.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroupUpdate" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL VirtualMachine Group.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Updates a VirtualMachine Group tags.": { + "$ref": "./examples/UpdateSqlVirtualMachineGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups": { + "get": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Gets SQL VirtualMachine Groups by ResourceGroup.", + "operationId": "SqlVirtualMachineGroups_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of SQL VirtualMachine Groups within the given Resource Group.", + "schema": { + "$ref": "#/definitions/SqlVmGroupListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets SQL VirtualMachine Groups by ResourceGroup.": { + "$ref": "./examples/ListByResourceGroupSqlVirtualMachineGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups": { + "get": { + "tags": [ + "SqlVirtualMachineGroups" + ], + "description": "Gets all Sql VirtualMachine Groups in a subscription.", + "operationId": "SqlVirtualMachineGroups_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of SqlVirtualMachineGroup of the given Subscription.", + "schema": { + "$ref": "#/definitions/SqlVmGroupListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets all Sql VirtualMachine Groups in a subscription.": { + "$ref": "./examples/ListSubscriptionSqlVirtualMachineGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}": { + "get": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Gets SQL VirtualMachine by name.", + "operationId": "SqlVirtualMachines_Get", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineName", + "in": "path", + "description": "The name of the Sql Virtual Machine.", + "required": true, + "type": "string" + }, + { + "name": "$expand", + "in": "query", + "description": "The child resources to include in the response.", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the SQL VirtualMachine.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachine" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + } + }, + "x-ms-examples": { + "Gets SQL VirtualMachine by name.": { + "$ref": "./examples/GetSqlVirtualMachine.json" + } + } + }, + "put": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Creates or Updates a SqlVirtualMachineResource.", + "operationId": "SqlVirtualMachines_CreateOrUpdate", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineName", + "in": "path", + "description": "The name of the Sql Virtual Machine.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL VirtualMachine resource.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlVirtualMachine" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL VirtualMachine.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachine" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + }, + "201": { + "description": "Successfully created the SQL VirtualMachine.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachine" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Creates or Updates a SqlVirtualMachineResource to join a Sql Virtual Machine Group.": { + "$ref": "./examples/CreateOrUpdateVirtualMachineWithVMGroup.json" + }, + "Creates or Updates a SqlVirtualMachineResource with minimal parameters.": { + "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMIN.json" + }, + "Creates or Updates a SqlVirtualMachineResource with all possible paramenters.": { + "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMAX.json" + } + } + }, + "delete": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Deletes a SqlVm.", + "operationId": "SqlVirtualMachines_Delete", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineName", + "in": "path", + "description": "The name of the Sql Virtual Machine.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted a SQL VirtualMachine." + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + }, + "202": { + "description": "Deleting the SQL VirtualMachine." + }, + "204": { + "description": "The specified SQL VirtualMachine does not exist." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Deletes a SqlVm.": { + "$ref": "./examples/DeleteSqlVirtualMachine.json" + } + } + }, + "patch": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Updates a SqlVirtualMachine.", + "operationId": "SqlVirtualMachines_Update", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "name": "sqlVirtualMachineName", + "in": "path", + "description": "The name of the Sql Virtual Machine.", + "required": true, + "type": "string" + }, + { + "name": "parameters", + "in": "body", + "description": "The SQL VirtualMachine update resource.", + "required": true, + "schema": { + "$ref": "#/definitions/SqlVirtualMachineUpdate" + } + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the SQL VirtualMachine.", + "schema": { + "$ref": "#/definitions/SqlVirtualMachine" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Updates a SqlVirtualMachine tags.": { + "$ref": "./examples/UpdateSqlVirtualMachine.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines": { + "get": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Gets SQL VirtualMachines by ResourceGroup.", + "operationId": "SqlVirtualMachines_ListByResourceGroup", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of SQL VirtualMachines within the given Resource Group.", + "schema": { + "$ref": "#/definitions/SqlVmListResult" + } + }, + "default": { + "description": "*** Error Responses: ***" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets SQL VirtualMachines by ResourceGroup.": { + "$ref": "./examples/ListByResourceGroupSqlVirtualMachine.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines": { + "get": { + "tags": [ + "SqlVirtualMachines" + ], + "description": "Gets all Sql VirtualMachines in a subscription.", + "operationId": "SqlVirtualMachines_List", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of SqlVirtualMachine of the given Subscription.", + "schema": { + "$ref": "#/definitions/SqlVmListResult" + } + }, + "default": { + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 404 ResourceNotFound - The requested resource was not found." + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Gets all Sql VirtualMachines in a subscription.": { + "$ref": "./examples/ListSubscriptionSqlVirtualMachine.json" + } + } + } + } + }, + "definitions": { + "AvailabilityGroupListenerProperties": { + "description": "The properties of a AvailabilityGroupListener.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning State to track the aysnc provisoning operation status", + "type": "string", + "readOnly": true + }, + "availabilityGroupName": { + "description": "The list of the Sql Virtual Machine Instance that enrolled into the AvailabilityGroup Listener.", + "type": "string" + }, + "loadBalancerConfigurations": { + "description": "The list of load balancer configurations for AvailabilityGroup Listener.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancerConfiguration" + } + }, + "createDefaultAvailabilityGroupIfNotExist": { + "description": "Create Default AvailabilityGroup if does not exist", + "type": "boolean" + }, + "port": { + "format": "int32", + "description": "Listener port", + "type": "integer" + } + } + }, + "LoadBalancerConfiguration": { + "description": "Loadbalancer configuration for AvailabilityGroupListener.", + "type": "object", + "properties": { + "privateIpAddress": { + "$ref": "#/definitions/PrivateIPAddress", + "description": "Private IP address" + }, + "publicIpAddressResourceId": { + "description": "The ResourceId of the Public IP.", + "type": "string" + }, + "loadBalancerResourceId": { + "description": "The subnet used to include private IP.", + "type": "string" + }, + "probePort": { + "format": "int32", + "description": "Probe port", + "type": "integer" + }, + "sqlVirtualMachineInstances": { + "description": "The list of the Sql Virtual Machine Instance that enrolled into the AvailabilityGroup Listener.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Resource": { + "description": "ARM resource.", + "type": "object", + "properties": { + "id": { + "description": "Resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + } + }, + "x-ms-azure-resource": true + }, + "PrivateIPAddress": { + "description": "Private IP Address.", + "type": "object", + "properties": { + "ipAddress": { + "description": "The private IP Address bound to the Availability Group Listener.", + "type": "string" + }, + "subnetResourceId": { + "description": "The subnet used to include private IP.", + "type": "string" + } + } + }, + "ProxyResource": { + "description": "ARM proxy resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": {} + }, + "AvailabilityGroupListener": { + "description": "A SQL Virtual Machine Cluster AvailabilityGroupListener.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AvailabilityGroupListenerProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "AvailabilityGroupListenerListResult": { + "description": "A list of AvailabilityGroupListeners.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilityGroupListener" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "Result of the request to list SQL operations.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "SQL REST API operation definition.", + "type": "object", + "properties": { + "name": { + "description": "The name of the operation being performed on this particular object.", + "type": "string", + "readOnly": true + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "The localized display information for this particular operation / action.", + "readOnly": true + }, + "origin": { + "description": "The intended executor of the operation.", + "enum": [ + "user", + "system" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "OperationOrigin", + "modelAsString": true + } + }, + "properties": { + "description": "Additional descriptions for the operation.", + "type": "object", + "additionalProperties": { + "type": "object" + }, + "readOnly": true, + "x-ms-client-flatten": false + } + } + }, + "OperationDisplay": { + "description": "Display metadata associated with the operation.", + "type": "object", + "properties": { + "provider": { + "description": "The localized friendly form of the resource provider name.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The localized friendly form of the resource type related to this action/operation.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "The localized friendly name for the operation.", + "type": "string", + "readOnly": true + }, + "description": { + "description": "The localized friendly description for the operation.", + "type": "string", + "readOnly": true + } + } + }, + "SqlVmGroupProperties": { + "description": "The properties of a SqlVirtualMachineGroup.", + "type": "object", + "properties": { + "provisioningState": { + "description": "Provisioning State to track the aysnc provisoning operation status.", + "type": "string", + "readOnly": true + }, + "sqlImageOffer": { + "description": "Sql image offer", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "sqlImageSku": { + "description": "Sql Image Sku", + "enum": [ + "Developer", + "Express", + "Standard", + "Enterprise" + ], + "type": "string", + "x-ms-enum": { + "name": "SqlImageSku", + "modelAsString": true + }, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "scaleType": { + "description": "The Scale type: HA or ReadOnly", + "enum": [ + "HA" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ScaleType", + "modelAsString": true + } + }, + "clusterManagerType": { + "description": "The type of the Cluster Manager( WSFC | NONE ), implied by the Scale Type of the Group and the OS Type", + "enum": [ + "WSFC" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "ClusterManagerType", + "modelAsString": true + } + }, + "clusterConfiguration": { + "description": "The cluster type Domainful or Domainless.", + "enum": [ + "Domainful" + ], + "type": "string", + "x-ms-enum": { + "name": "ClusterConfiguration", + "modelAsString": true + }, + "x-ms-mutability": [ + "read", + "create" + ] + }, + "wsfcDomainProfile": { + "$ref": "#/definitions/WSFCDomainProfile", + "description": "The Cluster AD Domain Profile", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "domainlessProfile": { + "$ref": "#/definitions/DomainlessProfile", + "description": "The Cluster Domainless Profile", + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "WSFCDomainProfile": { + "description": "The AD Domain Profile.", + "type": "object", + "properties": { + "domainFqdn": { + "description": "Fully qualified name of the Domain.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "ouPath": { + "description": "OU path in which the nodes and cluster will be present.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "clusterBootstrapAccount": { + "description": "The account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "clusterOperatorAccount": { + "description": "The account name used for operating cluster i.e. will be part of administrators group on all the participating Virtual Machines in the cluster.", + "type": "string", + "x-ms-mutability": [ + "update" + ] + }, + "sqlServiceAccount": { + "description": "The account name under which SQL service will run on all participating SQL Virtual Machines in the cluster.", + "type": "string", + "x-ms-mutability": [ + "update" + ] + }, + "fileShareWitnessPath": { + "description": "Optional path for Fileshare witness.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "storageAccountUrl": { + "description": "The fully qualified ARM resource ID of the Witness Storage Account", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "storageAccountPrimaryKey": { + "description": "The Primary Key of the Witness Storage Account", + "type": "string", + "x-ms-mutability": [ + "create" + ] + } + } + }, + "DomainlessProfile": { + "description": "The Domain less Profile.", + "type": "object", + "properties": { + "domainlessAccountPassword": { + "description": "The administrator login password required for creating windows account on nodes for domain-less cluster creation.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "storageAccountUrl": { + "description": "The fully qualified ARM resource ID of the Witness Storage Account", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "storageAccountPrimaryKey": { + "description": "The Primary Key of the Witness Storage Account", + "type": "string", + "x-ms-mutability": [ + "create" + ] + } + } + }, + "TrackedResource": { + "description": "ARM tracked top level resource.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "location": { + "description": "Resource location.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SqlVirtualMachineGroup": { + "description": "A SQL Virtual Machine Group.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SqlVmGroupProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "SqlVirtualMachineGroupUpdate": { + "description": "An update to Sql VirtualMachine Group.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SqlVmGroupListResult": { + "description": "A list of SqlVmGroups.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/SqlVirtualMachineGroup" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + }, + "ResourceIdentity": { + "description": "Azure Active Directory identity configuration for a resource.", + "type": "object", + "properties": { + "principalId": { + "format": "uuid", + "description": "The Azure Active Directory principal id.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an Azure Active Directory principal for the resource.", + "enum": [ + "SystemAssigned" + ], + "type": "string", + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } + }, + "tenantId": { + "format": "uuid", + "description": "The Azure Active Directory tenant id.", + "type": "string", + "readOnly": true + } + } + }, + "Sql Virtual Machine Properties": { + "description": "The SqlVm's properties.", + "type": "object", + "properties": { + "virtualMachineResourceId": { + "description": "ARM Resource Id of underlying Virtual Machine created from SQL marketplace image.", + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "provisioningState": { + "description": "Provisioning State to track the aysnc provisoning operation status.", + "type": "string", + "readOnly": true + }, + "sqlImageOffer": { + "description": "SQL image offer.", + "type": "string", + "readOnly": true + }, + "sqlServerLicenseType": { + "description": "SQL Server License Type.", + "enum": [ + "PAYG", + "AHUB" + ], + "type": "string", + "x-ms-enum": { + "name": "SqlServerLicenseType", + "modelAsString": true + } + }, + "sqlImageSku": { + "description": "SQL Image Sku.", + "enum": [ + "Developer", + "Express", + "Standard", + "Enterprise" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "SqlImageSku", + "modelAsString": true + } + }, + "sqlVirtualMachineGroupResourceId": { + "description": "ARM resource Id of the SQL VirtualMachine Group this SQL Virtual Machine is part of.", + "type": "string", + "x-ms-mutability": [ + "update" + ] + }, + "wsfcDomainCredentials": { + "$ref": "#/definitions/WSFCDomainCredentials", + "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL Availability Group." + }, + "autoTelemetrySettings": { + "$ref": "#/definitions/AutoTelemetrySettings", + "description": "Auto telemetry settings for SQL VirtualMachine." + }, + "autoPatchingSettings": { + "$ref": "#/definitions/AutoPatchingSettings", + "description": "Auto patching settings for applying critical security updates to SQL VirtualMachine." + }, + "autoBackupSettings": { + "$ref": "#/definitions/AutoBackupSettings", + "description": "Auto backup settings for SQL Server." + }, + "keyVaultCredentialSettings": { + "$ref": "#/definitions/KeyVaultCredentialSettings", + "description": "Keyvault credential settings." + }, + "serverConfigurationsManagementSettings": { + "$ref": "#/definitions/ServerConfigurationsManagementSettings", + "description": "SQL Server configuration management settings." + } + } + }, + "WSFCDomainCredentials": { + "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL Availability Group.", + "type": "object", + "properties": { + "clusterBootstrapAccountPassword": { + "description": "Cluster Bootstrap account password.", + "type": "string" + }, + "clusterOperatorAccountPassword": { + "description": "Cluster Operator account password.", + "type": "string" + }, + "sqlServiceAccountPassword": { + "description": "SQL Service account password.", + "type": "string" + } + } + }, + "AutoTelemetrySettings": { + "description": "Autotelemetry settings.", + "type": "object", + "properties": { + "region": { + "description": "Region for autotelemetry setting.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + } + } + }, + "AutoPatchingSettings": { + "description": "Autopatching settings.", + "type": "object", + "properties": { + "enable": { + "description": "Enable or disable autopatching on Sql VirtualMachine.", + "type": "boolean" + }, + "dayOfWeek": { + "description": "Day of week to apply the patch on.", + "type": "string" + }, + "maintenanceWindowStartingHour": { + "format": "int32", + "description": "Hour of the day when patching is initiated.", + "type": "integer" + }, + "maintenanceWindowDuration": { + "format": "int32", + "description": "Duration of patching.", + "type": "integer" + } + } + }, + "AutoBackupSettings": { + "description": "Autobackup settings on Sql VirtualMachine.", + "type": "object", + "properties": { + "enable": { + "description": "Enable or disable autobackup on Sql VirtualMachine.", + "type": "boolean" + }, + "enableEncryption": { + "description": "Enable or disable encryption for backup on Sql VirtualMachine.", + "type": "boolean" + }, + "retentionPeriod": { + "format": "int32", + "description": "Retention period of backup.", + "type": "integer" + }, + "storageAccountUrl": { + "description": "Storage account Url where backup will be taken to.", + "type": "string" + }, + "storageAccessKey": { + "description": "Storage account key where backup will be taken to.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "password": { + "description": "Password for encryption on backup.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "backupSystemDbs": { + "description": "Include or exclude system Databases from auto backup.", + "type": "boolean" + }, + "backupScheduleType": { + "description": "Backup schedule type.", + "enum": [ + "Manual", + "Automated" + ], + "type": "string", + "x-ms-enum": { + "name": "BackupScheduleType", + "modelAsString": true + } + }, + "fullBackupFrequency": { + "description": "Full backup frequency.", + "enum": [ + "Daily", + "Weekly" + ], + "type": "string", + "x-ms-enum": { + "name": "FullBackupFrequencyType", + "modelAsString": true + } + }, + "fullBackupStartTime": { + "format": "int32", + "description": "Full backup startup time.", + "type": "integer" + }, + "fullBackupWindowHours": { + "format": "int32", + "description": "Full backup window hours.", + "type": "integer" + }, + "logBackupFrequency": { + "format": "int32", + "description": "Log backup frequency.", + "type": "integer" + } + } + }, + "KeyVaultCredentialSettings": { + "description": "Keyvault credential settings.", + "type": "object", + "properties": { + "enable": { + "description": "Enable or disable Keyvault credential setting.", + "type": "boolean" + }, + "credentialName": { + "description": "Credential name.", + "type": "string" + }, + "azureKeyVaultUrl": { + "description": "Azure keyvault Url.", + "type": "string" + }, + "servicePrincipalName": { + "description": "Service principal name to access keyvault.", + "type": "string" + }, + "servicePrincipalSecret": { + "description": "Service principal name secret to access keyvault.", + "type": "string", + "x-ms-mutability": [ + "create", + "update" + ] + } + } + }, + "ServerConfigurationsManagementSettings": { + "description": "ServerConfiguration management settings.", + "type": "object", + "properties": { + "sqlConnectivityUpdateSettings": { + "$ref": "#/definitions/SQLConnectivityUpdateSettings", + "description": "Sql cnnectivity type settings." + }, + "sqlWorkloadTypeUpdateSettings": { + "$ref": "#/definitions/SQLWorkloadTypeUpdateSettings", + "description": "Sql workloadtype settings." + }, + "sqlStorageUpdateSettings": { + "$ref": "#/definitions/SQLStorageUpdateSettings", + "description": "Sql storage update settings." + }, + "additionalFeaturesServerConfigurations": { + "$ref": "#/definitions/AdditionalFeaturesServerConfigurations", + "description": "Additional SQL feature settings." + } + } + }, + "SQLConnectivityUpdateSettings": { + "description": "SQL VirtualMachine connectivity update settings.", + "type": "object", + "properties": { + "connectivityType": { + "description": "SQL Server conectivity option.", + "enum": [ + "LOCAL", + "PRIVATE", + "PUBLIC" + ], + "type": "string", + "x-ms-enum": { + "name": "ConnectivityType", + "modelAsString": true + } + }, + "port": { + "format": "int32", + "description": "SQL Server port.", + "type": "integer" + }, + "sqlAuthUpdateUserName": { + "description": "SQL Server sysadmin sql login to create.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + }, + "sqlAuthUpdatePassword": { + "description": "SQL Server sysadmin sql login password.", + "type": "string", + "x-ms-mutability": [ + "create" + ] + } + } + }, + "SQLWorkloadTypeUpdateSettings": { + "description": "SQL Server workload type update settings.", + "type": "object", + "properties": { + "sqlWorkloadType": { + "description": "SQL Server workload type.", + "enum": [ + "GENERAL", + "OLTP", + "DW" + ], + "type": "string", + "x-ms-enum": { + "name": "SqlWorkloadType", + "modelAsString": true + }, + "x-ms-mutability": [ + "read", + "create" + ] + } + } + }, + "SQLStorageUpdateSettings": { + "description": "SQL Server disk storage setting.", + "type": "object", + "properties": { + "diskCount": { + "format": "int32", + "description": "Virtual Mahcine disk count.", + "type": "integer" + }, + "diskConfigurationType": { + "description": "Disk configuration to apply to SQL Server.", + "enum": [ + "NEW", + "EXTEND", + "ADD" + ], + "type": "string", + "x-ms-enum": { + "name": "DiskConfigurationType", + "modelAsString": true + } + } + } + }, + "AdditionalFeaturesServerConfigurations": { + "description": "Additional SQL Server feature settings.", + "type": "object", + "properties": { + "isRServicesEnabled": { + "description": "Enable or Disable R Services (SQL 2016 onwards).", + "type": "boolean" + }, + "backupPermissionsForAzureBackupSvc": { + "description": "Enable or disable Azure Backup service.", + "type": "boolean" + } + } + }, + "SqlVirtualMachine": { + "description": "A SQL Virtual Machine.", + "required": [ + "location" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "$ref": "#/definitions/ResourceIdentity", + "description": "The Azure Active Directory identity of the server.", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "properties": { + "$ref": "#/definitions/Sql Virtual Machine Properties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + } + }, + "SqlVirtualMachineUpdate": { + "description": "An update to Sql Virtual Machine.", + "type": "object", + "properties": { + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "SqlVmListResult": { + "description": "A list of SqlVms.", + "type": "object", + "properties": { + "value": { + "description": "Array of results.", + "type": "array", + "items": { + "$ref": "#/definitions/SqlVirtualMachine" + }, + "readOnly": true + }, + "nextLink": { + "description": "Link to retrieve next page of results.", + "type": "string", + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "The subscription ID that identifies an Azure subscription.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for the request.", + "required": true, + "type": "string", + "x-ms-parameter-location": "client" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "description": "The name of the server.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ManagedInstanceNameParameter": { + "name": "managedInstanceName", + "in": "path", + "description": "The name of the managed instance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "description": "The name of the database.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "BlobAuditingPolicyNameParameter": { + "name": "blobAuditingPolicyName", + "in": "path", + "description": "The name of the blob auditing policy.", + "required": true, + "type": "string", + "enum": [ + "default" + ], + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineInstanceNameParameter": { + "name": "sqlVirtualMachineInstanceName", + "in": "path", + "description": "The name of the SqlVirtualMachineInstance.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "SqlVirtualMachineContainerNameParameter": { + "name": "sqlVirtualMachineContainerName", + "in": "path", + "description": "The name of the SqlVirtualMachineContainer.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "VirtualClusterNameParameter": { + "name": "virtualClusterName", + "in": "path", + "description": "The name of the virtual cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file From ccb25f200f930465c71ddc63dcce2fd98dc3151a Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Thu, 1 Nov 2018 17:35:29 -0700 Subject: [PATCH 2/6] Final swagger --- .../examples/CreateOrUpdateSqlVirtualMachineGroup.json | 2 +- .../examples/CreateOrUpdateSqlVirtualMachineMAX.json | 6 +++--- .../examples/CreateOrUpdateVirtualMachineWithVMGroup.json | 6 +++--- .../preview/2017-03-01-preview/sqlvm.json | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json index a0abf22727d2..d59a19ce0fba 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json @@ -19,7 +19,7 @@ "ClusterOperatorAccount": "testrp@testdomain.com", "SqlServiceAccount": "sqlservice@testdomain.com", "StorageAccountUrl": "https://storgact.blob.core.windows.net/", - "StorageAccountPrimaryKey": "AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg75Tg7/A==" + "StorageAccountPrimaryKey": "" } } } diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json index 5dc95698e182..eb165d5d9f3b 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineMAX.json @@ -14,7 +14,7 @@ "ConnectivityType": "Private", "Port": 1433, "SQLAuthUpdateUserName": "sqllogin", - "SQLAuthUpdatePassword": "Test@zure123!" + "SQLAuthUpdatePassword": "" }, "SQLStorageUpdateSettings": { "DiskCount": 1, @@ -40,11 +40,11 @@ "Enable": true, "RetentionPeriod": 17, "EnableEncryption": true, - "Password": "Test@zure123!", + "Password": "", "BackupScheduleType": "Manual", "BackupSystemDbs": true, "StorageAccountUrl": "https://teststorage.blob.core.windows.net/", - "StorageAccessKey": "AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg7AoMV73vJbgrQXiRpYqg75Tg7/A==", + "StorageAccessKey": "", "FullBackupFrequency": "Daily", "FullBackupStartTime": 6, "FullBackupWindowHours": 11, diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json index acd0d427a62e..01d45d389945 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json @@ -10,9 +10,9 @@ "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": "Test@zure123!", - "ClusterOperatorAccountPassword": "Test@zure123!", - "SqlServiceAccountPassword": "Test@zure123!" + "ClusterBootstrapAccountPassword": "", + "ClusterOperatorAccountPassword": "", + "SqlServiceAccountPassword": "" } } } diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index de86c67f8612..b687734bea6a 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -622,7 +622,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." }, "201": { "description": "Successfully created the SQL VirtualMachine.", @@ -673,7 +673,7 @@ "description": "Successfully deleted a SQL VirtualMachine." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." }, "202": { "description": "Deleting the SQL VirtualMachine." @@ -730,7 +730,7 @@ } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." } }, "x-ms-long-running-operation": true, From 5e8b28090177ca4a22ae577fdecc8f4bae4ebcd0 Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Mon, 5 Nov 2018 15:50:48 -0800 Subject: [PATCH 3/6] Addressing code review comments, adding readme file --- .../CreateOrUpdateSqlVirtualMachineGroup.json | 2 +- ...eateOrUpdateVirtualMachineWithVMGroup.json | 4 +- .../preview/2017-03-01-preview/sqlvm.json | 432 ++++++++---------- .../resource-manager/readme.md | 101 ++++ 4 files changed, 302 insertions(+), 237 deletions(-) create mode 100644 specification/sqlvirtualmachine/resource-manager/readme.md diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json index d59a19ce0fba..9797079548a8 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateSqlVirtualMachineGroup.json @@ -12,7 +12,7 @@ "properties": { "SqlImageOffer": "SQL2016-WS2016", "SqlImageSku": "Enterprise", - "WSFCDomainProfile": { + "WsfcDomainProfile": { "DomainFQDN": "testdomain.com", "OUPath": "OU=WSCluster,DC=testdomain,DC=com", "ClusterBootstrapAccount": "testrpadmin", diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json index 01d45d389945..1d591806ded8 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/CreateOrUpdateVirtualMachineWithVMGroup.json @@ -8,8 +8,8 @@ "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": { + "SqlVirtualMachineGroupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup", + "WsfcDomainCredentials": { "ClusterBootstrapAccountPassword": "", "ClusterOperatorAccountPassword": "", "SqlServiceAccountPassword": "" diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index b687734bea6a..a224485d1778 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "version": "2017-03-01-preview", - "title": "ArmSqlVMResourceProviderModule", - "description": "The SqlVM management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your Sql Server Virtual Machine. The API enables users to create, delete and retrieve the single SqlVm and SqlVm cluster." + "title": "SqlVirtualMachineManagementClient", + "description": "The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener." }, "host": "management.azure.com", "schemes": [ @@ -21,7 +21,7 @@ "tags": [ "AvailabilityGroupListeners" ], - "description": "Gets an AvailabilityGroupListener.", + "description": "Gets an availability group listener.", "operationId": "AvailabilityGroupListeners_Get", "parameters": [ { @@ -30,14 +30,14 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, { "name": "availabilityGroupListenerName", "in": "path", - "description": "The name of the Availability Group Listener.", + "description": "Name of the availability group listener.", "required": true, "type": "string" }, @@ -50,17 +50,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved the AvailabilityGroupListeners.", + "description": "Successfully retrieved the availability group listener.", "schema": { "$ref": "#/definitions/AvailabilityGroupListener" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 DifferentSubSqlVmList - All SQL virtual machines should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every virtual machine should have standard public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id provided for subnet parameter.\n\n * 400 VmNicVnetMismatch - Virtual machine NIC VNet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of virtual machines does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - SQL Availability group list does not match the list of virtual machines in SQL Virtual machine group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IP needs to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SQL virtual machine group does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of availability group listener can be updated.\n\n * 400 SqlVmNotInGroup - SQL virtual machine is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SQL virtual machines list cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP allocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - Multiple availability group listeners for same availability group are not allowed.\n\n * 400 AgListenerNotEmpty - Availability group listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided VNet for Availability group listener does not match Vnet of internal load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL virtual machine resource id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 SqlVmGroupIsBusy - SQL virtual machine group is busy." } }, "x-ms-examples": { - "Gets an AvailabilityGroupListener.": { + "Gets an availability group listener.": { "$ref": "./examples/GetAvailabilityGroupListener.json" } } @@ -69,7 +69,7 @@ "tags": [ "AvailabilityGroupListeners" ], - "description": "Creates or Updates a AvailabilityGroupListener.", + "description": "Creates or Updates an availability group listener.", "operationId": "AvailabilityGroupListeners_CreateOrUpdate", "parameters": [ { @@ -78,21 +78,21 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, { "name": "availabilityGroupListenerName", "in": "path", - "description": "The name of the Availability Group Listener.", + "description": "Name of the availability group listener.", "required": true, "type": "string" }, { "name": "parameters", "in": "body", - "description": "The AvailabilityGroup listener Resource.", + "description": "The availability group listener.", "required": true, "schema": { "$ref": "#/definitions/AvailabilityGroupListener" @@ -107,16 +107,16 @@ ], "responses": { "200": { - "description": "Successfully updated the AvailabilityGroupListener.", + "description": "Successfully updated the availability group listener.", "schema": { "$ref": "#/definitions/AvailabilityGroupListener" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 DifferentSubSqlVmList - All SQL virtual machines should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every virtual machine should have standard public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id provided for subnet parameter.\n\n * 400 VmNicVnetMismatch - Virtual machine NIC VNet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of virtual machines does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - SQL Availability group list does not match the list of virtual machines in SQL Virtual machine group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IP needs to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SQL virtual machine group does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of availability group listener can be updated.\n\n * 400 SqlVmNotInGroup - SQL virtual machine is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SQL virtual machines list cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP allocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - Multiple availability group listeners for same availability group are not allowed.\n\n * 400 AgListenerNotEmpty - Availability group listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided VNet for Availability group listener does not match Vnet of internal load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL virtual machine resource id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 SqlVmGroupIsBusy - SQL virtual machine group is busy." }, "201": { - "description": "Successfully created the AvailabilityGroupListener.", + "description": "Successfully created the availability group listener.", "schema": { "$ref": "#/definitions/AvailabilityGroupListener" } @@ -124,7 +124,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Creates or Updates a AvailabilityGroupListener.": { + "Creates or updates an availability group listener.": { "$ref": "./examples/CreateOrUpdateAvailabilityGroupListener.json" } } @@ -133,7 +133,7 @@ "tags": [ "AvailabilityGroupListeners" ], - "description": "Deletes the AvailabilityGroup Listener with the given name.", + "description": "Deletes an availability group listener.", "operationId": "AvailabilityGroupListeners_Delete", "parameters": [ { @@ -142,14 +142,14 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, { "name": "availabilityGroupListenerName", "in": "path", - "description": "The name of the Availability Group Listener.", + "description": "Name of the availability group listener.", "required": true, "type": "string" }, @@ -162,21 +162,21 @@ ], "responses": { "200": { - "description": "Successfully deleted the AvailabilityGroup Listener." + "description": "Successfully deleted the availability group listener." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 DifferentSubSqlVmList - All SQL VM should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every VM should have Standard Public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid Listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource Id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource Id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id propvided for subnet parameter.\n\n * 400 VmNicVnetMismatch - VM NIC Vnet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for Private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of Vms does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - Availability group SQL list does not match the list of VM in SqlVm Group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IPneeds to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SqlVmGroup does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of of AG listener can be updated.\n\n * 400 SqlVmNotInGroup - SqlVM is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SqlVirtualMachines cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP alllocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with Private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - MUltiple AG listeners for same AG are not allowed.\n\n * 400 AgListenerNotEmpty - AG listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided Vnet for AGlistener does not match that of Internal Load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL Vm resource Id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP.\n\n * 500 SqlVmGroupIsBusy - SQL VM Group is busy." + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 DifferentSubSqlVmList - All SQL virtual machines should be under same subscription.\n\n * 400 OnlyStandardPublicIp - Every virtual machine should have standard public IP.\n\n * 400 ListenerNameTooLong - Listener name should not exceed 15 characters.\n\n * 400 InvalidListenerName - Invalid listener name.\n\n * 400 InvalidLBResourceIdParameterValue - Load balancer resource id is invalid.\n\n * 400 InvalidPublicIpResourceIdParameterValue - Public IP resource id is invalid.\n\n * 400 InvalidSubnetIdParameterValue - Invalid resource id provided for subnet parameter.\n\n * 400 VmNicVnetMismatch - Virtual machine NIC VNet mismatch.\n\n * 400 InvalidPrivateIpParameterValue - Invalid address given for private IP address.\n\n * 400 NoAvailabilitySet - Vm is not associated with any availability set.\n\n * 400 AvailabilitySetMismatch - Availability set of virtual machines does not match.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 AgDoesNotExist - Availability group does not exist.\n\n * 400 AgListDoesNotMatch - SQL Availability group list does not match the list of virtual machines in SQL Virtual machine group.\n\n * 400 NoIpProvided - Atleast one IP needs to be provided.\n\n * 400 MoreIpProvided - Only one IP needs to be provided.\n\n * 400 SqlVmGroupDoesNotHaveAGListener - SQL virtual machine group does not have the AG listener.\n\n * 400 AgListenerUpdateNotAllowed - Only handful properties of availability group listener can be updated.\n\n * 400 SqlVmNotInGroup - SQL virtual machine is not part of the group.\n\n * 400 SqlVmListCannotBeEmpty - SQL virtual machines list cannot be empty.\n\n * 400 PublicIpNotIPv4 - Public IP must be IPv4 address.\n\n * 400 PublicIPDynamicAllocation - Public IP allocation mode must be static\n\n * 400 PublicLBInvalid - Load balancer specified is not public.\n\n * 400 SubnetMissingFromPrivateIP - Subnet must be provided with private IP.\n\n * 400 NoIpAvailable - No available IP.\n\n * 400 IPNotInSubnet - IP not part of subnet.\n\n * 400 MultipleListenerSameAG - Multiple availability group listeners for same availability group are not allowed.\n\n * 400 AgListenerNotEmpty - Availability group listener not empty.\n\n * 400 AgListenerVnetMismatch - Provided VNet for Availability group listener does not match Vnet of internal load balancer.\n\n * 400 InternalLBInvalid - Load balancer specified is not internal.\n\n * 400 InvalidSqlVmResourceIdParameterValue - SQL virtual machine resource id provided is invalid.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider.\n\n * 500 SqlVmGroupIsBusy - SQL virtual machine group is busy." }, "202": { - "description": "Deleting the AvailabilityGroup Listener." + "description": "Deleting the availability group listener." }, "204": { - "description": "The specified AvailabilityGroup Listener does not exist." + "description": "The availability group listener does not exist." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Deletes the AvailabilityGroup Listener with the given name.": { + "Deletes an availability group listener.": { "$ref": "./examples/DeleteAvailabilityGroupListener.json" } } @@ -187,7 +187,7 @@ "tags": [ "AvailabilityGroupListeners" ], - "description": "Lists AvailabilityGroup Listener by SqlVirtualMachineGroup.", + "description": "Lists all availability group listeners in a SQL virtual machine group.", "operationId": "AvailabilityGroupListeners_ListByGroup", "parameters": [ { @@ -196,7 +196,7 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, @@ -209,7 +209,7 @@ ], "responses": { "200": { - "description": "Successfully retrieved the list of AvailabilityGroup Listener.", + "description": "Successfully retrieved all availability group listeners in a SQL virtual machine group.", "schema": { "$ref": "#/definitions/AvailabilityGroupListenerListResult" } @@ -222,7 +222,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Lists AvailabilityGroup Listener by Sql Virtual Machine Group.": { + "Lists all availability group listeners in a SQL virtual machine group.": { "$ref": "./examples/ListByGroupAvailabilityGroupListener.json" } } @@ -266,7 +266,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Gets a SQL VirtualMachine Group.", + "description": "Gets a SQL virtual machine group.", "operationId": "SqlVirtualMachineGroups_Get", "parameters": [ { @@ -275,7 +275,7 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, @@ -288,17 +288,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved the SQL VirtualMachine Group.", + "description": "Successfully retrieved the SQL virtual machine group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineGroup" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." } }, "x-ms-examples": { - "Gets a SQL VirtualMachine Group.": { + "Gets a SQL virtual machine group.": { "$ref": "./examples/GetSqlVirtualMachineGroup.json" } } @@ -307,7 +307,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Creates or Updates SQL VirtualMachine Group.", + "description": "Creates or Updates a SQL virtual machine group.", "operationId": "SqlVirtualMachineGroups_CreateOrUpdate", "parameters": [ { @@ -316,14 +316,14 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, { "name": "parameters", "in": "body", - "description": "The SQL VirtualMachine Group resource.", + "description": "The SQL virtual machine group.", "required": true, "schema": { "$ref": "#/definitions/SqlVirtualMachineGroup" @@ -338,16 +338,16 @@ ], "responses": { "200": { - "description": "Successfully updated the SQL VirtualMachine Group.", + "description": "Successfully updated the SQL virtual machine group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineGroup" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." }, "201": { - "description": "Successfully created the SQL VirtualMachine Group.", + "description": "Successfully created the SQL virtual machine group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineGroup" } @@ -355,7 +355,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Creates or Updates SQL VirtualMachine Group.": { + "Creates or updates a SQL virtual machine group.": { "$ref": "./examples/CreateOrUpdateSqlVirtualMachineGroup.json" } } @@ -364,7 +364,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Deletes the SQL VirtualMachine Group with the given name.", + "description": "Deletes a SQL virtual machine group.", "operationId": "SqlVirtualMachineGroups_Delete", "parameters": [ { @@ -373,7 +373,7 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, @@ -386,21 +386,21 @@ ], "responses": { "200": { - "description": "Successfully deleted the SQL VirtualMachine Group." + "description": "Successfully deleted the SQL virtual machine group." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." }, "202": { - "description": "Deleting the SQL VirtualMachine Group." + "description": "Deleting the SQL virtual machine group." }, "204": { - "description": "The specified SQL VirtualMachine Group does not exist." + "description": "The specified SQL virtual machine group does not exist." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Deletes the SQL VirtualMachine Group with the given name.": { + "Deletes a SQL virtual machine group.": { "$ref": "./examples/DeleteSqlVirtualMachineGroup.json" } } @@ -409,7 +409,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Updates a SQL VirtualMachine Group.", + "description": "Updates SQL virtual machine group tags.", "operationId": "SqlVirtualMachineGroups_Update", "parameters": [ { @@ -418,14 +418,14 @@ { "name": "sqlVirtualMachineGroupName", "in": "path", - "description": "The name of the Sql VirtualMachine Group.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string" }, { "name": "parameters", "in": "body", - "description": "The SQL VirtualMachine Group update resource.", + "description": "The SQL virtual machine group.", "required": true, "schema": { "$ref": "#/definitions/SqlVirtualMachineGroupUpdate" @@ -440,18 +440,18 @@ ], "responses": { "200": { - "description": "Successfully updated the SQL VirtualMachine Group.", + "description": "Successfully updated the SQL virtual machine group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineGroup" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - Sql VM Group cannot be updated as it has attached Sql VM.\n\n * 400 InvalidSqlImageOffer - Provided SqlImage offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL Sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup Cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, files share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account Url.\n\n * 400 SqlVmGroupNameTooLong - SQL VM Group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SqlVm Group name.\n\n * 400 SqlVmGroupNotEmpty - SqlVirtualMachineGroup is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQLVirtualMachineGroup is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 SqlVmGroupUpdateFailVmAttached - SQL virtual machine group cannot be updated as it has attached a SQL virtual machine.\n\n * 400 InvalidSqlImageOffer - Provided SQL image offer is invalid.\n\n * 400 InvalidSqlSku - Provided SQL sku is invalid.\n\n * 400 OuPathAndDomainMismatch - OU path is not within the domain provided.\n\n * 400 InvalidAccountNameFormat - Account name format is invalid.\n\n * 400 CloudWitnessUnsupported - For Windows Server 2012R2 setup cloud witness is not allowed.\n\n * 400 FileShareWitnessDisAllowed - For Windows Server 2016 and beyond setup, file share witness is not allowed.\n\n * 400 InvalidStorageAccountUrl - Invalid storage account url.\n\n * 400 SqlVmGroupNameTooLong - SQL virtual machine group name cannot exceed 15 characters.\n\n * 400 InvalidSqlVmGroupName - Invalid SQL virtual machine group name.\n\n * 400 SqlVmGroupNotEmpty - SQL virtual machine group is not empty.\n\n * 400 SqlVmGroupUpdateNotAllowed - Update to SQL virtual machine group is not allowed.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Updates a VirtualMachine Group tags.": { + "Updates a SQL virtual machine group tags.": { "$ref": "./examples/UpdateSqlVirtualMachineGroup.json" } } @@ -462,7 +462,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Gets SQL VirtualMachine Groups by ResourceGroup.", + "description": "Gets all the SQL virtual machine groups in a resource group.", "operationId": "SqlVirtualMachineGroups_ListByResourceGroup", "parameters": [ { @@ -477,9 +477,9 @@ ], "responses": { "200": { - "description": "Successfully retrieved the list of SQL VirtualMachine Groups within the given Resource Group.", + "description": "Successfully retrieved all the SQL virtual machine groups in the given resource group.", "schema": { - "$ref": "#/definitions/SqlVmGroupListResult" + "$ref": "#/definitions/SqlVirtualMachineGroupListResult" } }, "default": { @@ -490,7 +490,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets SQL VirtualMachine Groups by ResourceGroup.": { + "Gets all the SQL virtual machine groups in a resource group.": { "$ref": "./examples/ListByResourceGroupSqlVirtualMachineGroup.json" } } @@ -501,7 +501,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Gets all Sql VirtualMachine Groups in a subscription.", + "description": "Gets all SQL virtual machine groups in a subscription.", "operationId": "SqlVirtualMachineGroups_List", "parameters": [ { @@ -513,9 +513,9 @@ ], "responses": { "200": { - "description": "Successfully retrieved the list of SqlVirtualMachineGroup of the given Subscription.", + "description": "Successfully retrieved all SQL virtual machine groups in the subscription.", "schema": { - "$ref": "#/definitions/SqlVmGroupListResult" + "$ref": "#/definitions/SqlVirtualMachineGroupListResult" } }, "default": { @@ -526,7 +526,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets all Sql VirtualMachine Groups in a subscription.": { + "Gets all SQL virtual machine groups in a subscription.": { "$ref": "./examples/ListSubscriptionSqlVirtualMachineGroup.json" } } @@ -537,7 +537,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Gets SQL VirtualMachine by name.", + "description": "Gets a SQL virtual machine.", "operationId": "SqlVirtualMachines_Get", "parameters": [ { @@ -546,7 +546,7 @@ { "name": "sqlVirtualMachineName", "in": "path", - "description": "The name of the Sql Virtual Machine.", + "description": "Name of the SQL virtual machine.", "required": true, "type": "string" }, @@ -566,17 +566,17 @@ ], "responses": { "200": { - "description": "Successfully retrieved the SQL VirtualMachine.", + "description": "Successfully retrieved the SQL virtual machine.", "schema": { "$ref": "#/definitions/SqlVirtualMachine" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." } }, "x-ms-examples": { - "Gets SQL VirtualMachine by name.": { + "Gets a SQL virtual machine.": { "$ref": "./examples/GetSqlVirtualMachine.json" } } @@ -585,7 +585,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Creates or Updates a SqlVirtualMachineResource.", + "description": "Creates or Updates a SQL virtual machine.", "operationId": "SqlVirtualMachines_CreateOrUpdate", "parameters": [ { @@ -594,14 +594,14 @@ { "name": "sqlVirtualMachineName", "in": "path", - "description": "The name of the Sql Virtual Machine.", + "description": "Name of the SQL virtual machine.", "required": true, "type": "string" }, { "name": "parameters", "in": "body", - "description": "The SQL VirtualMachine resource.", + "description": "The SQL virtual machine.", "required": true, "schema": { "$ref": "#/definitions/SqlVirtualMachine" @@ -616,16 +616,16 @@ ], "responses": { "200": { - "description": "Successfully updated the SQL VirtualMachine.", + "description": "Successfully updated the SQL virtual machine.", "schema": { "$ref": "#/definitions/SqlVirtualMachine" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL kku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VM image is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." }, "201": { - "description": "Successfully created the SQL VirtualMachine.", + "description": "Successfully created the SQL virtual machine.", "schema": { "$ref": "#/definitions/SqlVirtualMachine" } @@ -633,13 +633,13 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Creates or Updates a SqlVirtualMachineResource to join a Sql Virtual Machine Group.": { + "Creates or updates a SQL virtual machine and joins it to a SQL virtual machine group.": { "$ref": "./examples/CreateOrUpdateVirtualMachineWithVMGroup.json" }, - "Creates or Updates a SqlVirtualMachineResource with minimal parameters.": { + "Creates or updates a SQL virtual machine with min parameters.": { "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMIN.json" }, - "Creates or Updates a SqlVirtualMachineResource with all possible paramenters.": { + "Creates or updates a SQL virtual machine with max paramenters.": { "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMAX.json" } } @@ -648,7 +648,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Deletes a SqlVm.", + "description": "Deletes a SQL virtual machine.", "operationId": "SqlVirtualMachines_Delete", "parameters": [ { @@ -657,7 +657,7 @@ { "name": "sqlVirtualMachineName", "in": "path", - "description": "The name of the Sql Virtual Machine.", + "description": "Name of the SQL virtual machine.", "required": true, "type": "string" }, @@ -670,21 +670,21 @@ ], "responses": { "200": { - "description": "Successfully deleted a SQL VirtualMachine." + "description": "Successfully deleted the SQL virtual machine." }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL kku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VM image is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." }, "202": { - "description": "Deleting the SQL VirtualMachine." + "description": "Deleting the SQL virtual machine." }, "204": { - "description": "The specified SQL VirtualMachine does not exist." + "description": "The specified SQL virtual machine does not exist." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Deletes a SqlVm.": { + "Deletes a SQL virtual machine.": { "$ref": "./examples/DeleteSqlVirtualMachine.json" } } @@ -693,7 +693,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Updates a SqlVirtualMachine.", + "description": "Updates a SQL virtual machine.", "operationId": "SqlVirtualMachines_Update", "parameters": [ { @@ -702,14 +702,14 @@ { "name": "sqlVirtualMachineName", "in": "path", - "description": "The name of the Sql Virtual Machine.", + "description": "Name of the SQL virtual machine.", "required": true, "type": "string" }, { "name": "parameters", "in": "body", - "description": "The SQL VirtualMachine update resource.", + "description": "The SQL virtual machine.", "required": true, "schema": { "$ref": "#/definitions/SqlVirtualMachineUpdate" @@ -724,18 +724,18 @@ ], "responses": { "200": { - "description": "Successfully updated the SQL VirtualMachine.", + "description": "Successfully updated the SQL virtual machine.", "schema": { "$ref": "#/definitions/SqlVirtualMachine" } }, "default": { - "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - VirtualMachineResourceId property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SqlVm cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - Sql Virtual machine cannot be removed from Group.\n\n * 400 VmLocationMismatch - VM location does not match that of SqlVm.\n\n * 400 SqlSkuMismatchWithGroup - SQL Sku set on the SQL Virtual Machine Group does not match that of the Sql Virtual Machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VMimage is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NiC Vms are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SqlVmGroup resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription ID for SQL Virtual machine and SqlVm Group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for Domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided Virtual machine resource Id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription Id for Sql Virtual Machine and Virtual Machine resource Id property.\n\n * 400 MismatchSqlVmAndVmName - SQL Virtual Machine name is not same as the Virtual Machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQLVirtualMachine ResourceGroup name is not same as the Virtual Machine Resource Group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SqlVm Group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as AutoBackup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup Schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup Storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - KeyVault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - Sql Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete sql storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other RP.\n\n * 400 InvalidArgument - Invalid Argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument {0} not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL Virtual Machine Group in Resource Group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL Virtual Machine Instance in Resource Group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription Id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation Id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - Sql Extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other RP." + "description": "*** Error Responses: ***\n\n * 400 InvalidVmResourceIdChange - Virtual machine resource id property cannot be updated.\n\n * 400 SqlVmAlreadyIncludedInGroup - SQL virtual machine cannot be moved from one group to another in same operation.\n\n * 400 SqlVmCannotRemoveFromGroup - SQL virtual machine cannot be removed from group.\n\n * 400 VmLocationMismatch - VM location does not match that of SQL virtual machine.\n\n * 400 SqlSkuMismatchWithGroup - SQL kku set on the SQL virtual machine group does not match that of the SQL virtual machine.\n\n * 400 VmLoadBalancerAssociated - LB already associated with the NIC.\n\n * 400 VmInsufficientPermission - Insufficient permission to Vm.\n\n * 400 VmPublisherNotSql - Publisher of VM image is not SQLServer.\n\n * 400 SingleNicOnVmAllowed - Only Single NIC virtual machines are allowed.\n\n * 400 InvalidSqlVmGroupResourceIdParameterValue - SQL virtual machine group resource id is not in correct format.\n\n * 400 MismatchVmGroupSubscription - Subscription id for SQL virtual machine and SQL virtual machine group are different.\n\n * 400 IncompleteDomainCredentialsProperty - Incomplete input provided for domain credentials property.\n\n * 400 InvalidVmResourceIdParameterValue - Provided virtual machine resource id is not valid.\n\n * 400 MismatchInSqlVmAndVmResourceIdSubscription - Mismatch in subscription id for SQL virtual machine and virtual machine resource id property.\n\n * 400 MismatchSqlVmAndVmName - SQL virtual machine name is not same as the virtual machine name provided on VirtualMachineResourceId property.\n\n * 400 MismatchSqlVmAndVmRgName - SQL virtual machine resource group name is not same as the virtual machine resource group name provided on VirtualMachineResourceId property.\n\n * 400 SqlVersionMismatchWithGroup - SQL version mismatch with SQL virtual machine group.\n\n * 400 VmOSVersionMismatchWithGroup - OSversion mismatch with group.\n\n * 400 AutoBackupEncryptionPasswordNotSpecified - Password not provided when enabling encryption as auto backup setting.\n\n * 400 BackupScheduleTypeNotSet - Backup schedule type needs to be set.\n\n * 400 BackupStorageCredentialsNotSpecified - Backup storage credentials are not specified.\n\n * 400 KeyvaultCredentialsNotSpecified - Key vault credentials not specified.\n\n * 400 SqlCredentialsNotSpecified - SQL Server credentials are not specified.\n\n * 400 IncompleteAutoPatchingSettings - Incomplete auto patching settings specified.\n\n * 400 IncompleteAutoBackupSettings - Incomplete auto backup settings specified.\n\n * 400 IncompleteSqlStorageSettings - Incomplete SQL storage settings specified.\n\n * 400 InvalidParameterValue - An invalid value was given to parameter.\n\n * 400 InvalidCrossSubscriptionVmMove - Invalid cross subscription move of resource.\n\n * 400 RPGenericUser - User Failure when calling other Resource Provider.\n\n * 400 InvalidArgument - Invalid argument '{0}'.\n\n * 400 ArgumentNotInRange - Argument '{0}' not in range.\n\n * 403 AccessDenied - Access denied.\n\n * 404 SubscriptionDoesNotHaveSqlVMGroupInResourceGroup - Subscription does not have SQL virtual machine group in resource group.\n\n * 404 SubscriptionDoesNotHaveSqlVMInResourceGroup - Subscription does not have SQL virtual machine Instance in resource group.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SubscriptionDoesNotExist - Subscription id does not exist.\n\n * 404 ResourceDoesNotExist - Resource does not exist.\n\n * 404 OperationIdNotFound - Operation id could not be found.\n\n * 404 OperationTypeNotFound - Operation Type not found.\n\n * 409 OperationInProgress - Operation in progress on resource already.\n\n * 409 OperationCanceled - Operation Cancelled.\n\n * 409 ResourceAlreadyExists - Resource already exists.\n\n * 409 SqlExtnNotInstalled - SQL extension not installed.\n\n * 500 UnExpectedErrorOccured - Unexpected error occured.\n\n * 500 OperationTimeout - Operation timed out.\n\n * 500 RPGenericSystem - System Failure when calling other Resource Provider." } }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Updates a SqlVirtualMachine tags.": { + "Updates a SQL virtual machine tags.": { "$ref": "./examples/UpdateSqlVirtualMachine.json" } } @@ -746,7 +746,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Gets SQL VirtualMachines by ResourceGroup.", + "description": "Gets all SQL virtual machines in a resource group.", "operationId": "SqlVirtualMachines_ListByResourceGroup", "parameters": [ { @@ -761,9 +761,9 @@ ], "responses": { "200": { - "description": "Successfully retrieved the list of SQL VirtualMachines within the given Resource Group.", + "description": "Successfully retrieved all the SQL virtual machines in the resource group.", "schema": { - "$ref": "#/definitions/SqlVmListResult" + "$ref": "#/definitions/SqlVirtualMachineListResult" } }, "default": { @@ -774,7 +774,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets SQL VirtualMachines by ResourceGroup.": { + "Gets all SQL virtual machines in a resource group.": { "$ref": "./examples/ListByResourceGroupSqlVirtualMachine.json" } } @@ -785,7 +785,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Gets all Sql VirtualMachines in a subscription.", + "description": "Gets all the SQL virtual machines in a subscription.", "operationId": "SqlVirtualMachines_List", "parameters": [ { @@ -797,9 +797,9 @@ ], "responses": { "200": { - "description": "Successfully retrieved the list of SqlVirtualMachine of the given Subscription.", + "description": "Successfully retrieved all the SQL virtual machines in the subscription.", "schema": { - "$ref": "#/definitions/SqlVmListResult" + "$ref": "#/definitions/SqlVirtualMachineListResult" } }, "default": { @@ -810,7 +810,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets all Sql VirtualMachines in a subscription.": { + "Gets all the SQL virtual machines in a subscription.": { "$ref": "./examples/ListSubscriptionSqlVirtualMachine.json" } } @@ -819,59 +819,59 @@ }, "definitions": { "AvailabilityGroupListenerProperties": { - "description": "The properties of a AvailabilityGroupListener.", + "description": "The properties of an availability group listener.", "type": "object", "properties": { "provisioningState": { - "description": "Provisioning State to track the aysnc provisoning operation status", + "description": "Provisioning state to track the aysnc operation status.", "type": "string", "readOnly": true }, "availabilityGroupName": { - "description": "The list of the Sql Virtual Machine Instance that enrolled into the AvailabilityGroup Listener.", + "description": "Name of the availability group listener.", "type": "string" }, "loadBalancerConfigurations": { - "description": "The list of load balancer configurations for AvailabilityGroup Listener.", + "description": "List of load balancer configurations for an availability group listener.", "type": "array", "items": { "$ref": "#/definitions/LoadBalancerConfiguration" } }, "createDefaultAvailabilityGroupIfNotExist": { - "description": "Create Default AvailabilityGroup if does not exist", + "description": "Create a default availability group if it does not exist.", "type": "boolean" }, "port": { "format": "int32", - "description": "Listener port", + "description": "Listener port.", "type": "integer" } } }, "LoadBalancerConfiguration": { - "description": "Loadbalancer configuration for AvailabilityGroupListener.", + "description": "A load balancer configuration for an availability group listener.", "type": "object", "properties": { "privateIpAddress": { "$ref": "#/definitions/PrivateIPAddress", - "description": "Private IP address" + "description": "Private IP address." }, "publicIpAddressResourceId": { - "description": "The ResourceId of the Public IP.", + "description": "Resource id of the public IP.", "type": "string" }, "loadBalancerResourceId": { - "description": "The subnet used to include private IP.", + "description": "Subnet used to include private IP.", "type": "string" }, "probePort": { "format": "int32", - "description": "Probe port", + "description": "Probe port.", "type": "integer" }, "sqlVirtualMachineInstances": { - "description": "The list of the Sql Virtual Machine Instance that enrolled into the AvailabilityGroup Listener.", + "description": "List of the SQL virtual machine instance resource id's that are enrolled into the availability group listener.", "type": "array", "items": { "type": "string" @@ -902,15 +902,15 @@ "x-ms-azure-resource": true }, "PrivateIPAddress": { - "description": "Private IP Address.", + "description": "A private IP address bound to the availability group listener.", "type": "object", "properties": { "ipAddress": { - "description": "The private IP Address bound to the Availability Group Listener.", + "description": "Private IP address bound to the availability group listener.", "type": "string" }, "subnetResourceId": { - "description": "The subnet used to include private IP.", + "description": "Subnet used to include private IP.", "type": "string" } } @@ -926,7 +926,7 @@ "properties": {} }, "AvailabilityGroupListener": { - "description": "A SQL Virtual Machine Cluster AvailabilityGroupListener.", + "description": "A SQL Server availability group listener.", "type": "object", "allOf": [ { @@ -942,7 +942,7 @@ } }, "AvailabilityGroupListenerListResult": { - "description": "A list of AvailabilityGroupListeners.", + "description": "A list of availability group listeners.", "type": "object", "properties": { "value": { @@ -1044,16 +1044,16 @@ } }, "SqlVmGroupProperties": { - "description": "The properties of a SqlVirtualMachineGroup.", + "description": "The properties of a SQL virtual machine group.", "type": "object", "properties": { "provisioningState": { - "description": "Provisioning State to track the aysnc provisoning operation status.", + "description": "Provisioning state to track the aysnc operation status.", "type": "string", "readOnly": true }, "sqlImageOffer": { - "description": "Sql image offer", + "description": "SQL image offer.", "type": "string", "x-ms-mutability": [ "read", @@ -1061,12 +1061,13 @@ ] }, "sqlImageSku": { - "description": "Sql Image Sku", + "description": "SQL image sku.", "enum": [ "Developer", "Express", "Standard", - "Enterprise" + "Enterprise", + "Web" ], "type": "string", "x-ms-enum": { @@ -1079,7 +1080,7 @@ ] }, "scaleType": { - "description": "The Scale type: HA or ReadOnly", + "description": "Scale type: HA or ReadOnly.", "enum": [ "HA" ], @@ -1091,7 +1092,7 @@ } }, "clusterManagerType": { - "description": "The type of the Cluster Manager( WSFC | NONE ), implied by the Scale Type of the Group and the OS Type", + "description": "Type of the cluster manager: Windows Server Failover Cluster (WSFC) | NONE, implied by the scale type of the group and the OS type.", "enum": [ "WSFC" ], @@ -1103,23 +1104,20 @@ } }, "clusterConfiguration": { - "description": "The cluster type Domainful or Domainless.", + "description": "Cluster type.", "enum": [ "Domainful" ], "type": "string", + "readOnly": true, "x-ms-enum": { "name": "ClusterConfiguration", "modelAsString": true - }, - "x-ms-mutability": [ - "read", - "create" - ] + } }, "wsfcDomainProfile": { "$ref": "#/definitions/WSFCDomainProfile", - "description": "The Cluster AD Domain Profile", + "description": "Cluster AD domain profile.", "x-ms-mutability": [ "read", "create" @@ -1127,7 +1125,7 @@ }, "domainlessProfile": { "$ref": "#/definitions/DomainlessProfile", - "description": "The Cluster Domainless Profile", + "description": "Cluster domainless profile.", "x-ms-mutability": [ "read", "create" @@ -1136,11 +1134,11 @@ } }, "WSFCDomainProfile": { - "description": "The AD Domain Profile.", + "description": "The Active Directory domain profile.", "type": "object", "properties": { "domainFqdn": { - "description": "Fully qualified name of the Domain.", + "description": "Fully qualified name of the domain.", "type": "string", "x-ms-mutability": [ "read", @@ -1156,7 +1154,7 @@ ] }, "clusterBootstrapAccount": { - "description": "The account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).", + "description": "Account name used for creating cluster (at minimum needs permissions to 'Create Computer Objects' in domain).", "type": "string", "x-ms-mutability": [ "read", @@ -1164,21 +1162,21 @@ ] }, "clusterOperatorAccount": { - "description": "The account name used for operating cluster i.e. will be part of administrators group on all the participating Virtual Machines in the cluster.", + "description": "Account name used for operating cluster i.e. will be part of administrators group on all the participating virtual machines in the cluster.", "type": "string", "x-ms-mutability": [ "update" ] }, "sqlServiceAccount": { - "description": "The account name under which SQL service will run on all participating SQL Virtual Machines in the cluster.", + "description": "Account name under which SQL service will run on all participating SQL virtual machines in the cluster.", "type": "string", "x-ms-mutability": [ "update" ] }, "fileShareWitnessPath": { - "description": "Optional path for Fileshare witness.", + "description": "Optional path for fileshare witness.", "type": "string", "x-ms-mutability": [ "read", @@ -1186,7 +1184,7 @@ ] }, "storageAccountUrl": { - "description": "The fully qualified ARM resource ID of the Witness Storage Account", + "description": "Fully qualified ARM resource id of the witness storage account.", "type": "string", "x-ms-mutability": [ "read", @@ -1194,7 +1192,7 @@ ] }, "storageAccountPrimaryKey": { - "description": "The Primary Key of the Witness Storage Account", + "description": "Primary key of the witness storage account.", "type": "string", "x-ms-mutability": [ "create" @@ -1203,18 +1201,18 @@ } }, "DomainlessProfile": { - "description": "The Domain less Profile.", + "description": "The domainless profile.", "type": "object", "properties": { "domainlessAccountPassword": { - "description": "The administrator login password required for creating windows account on nodes for domain-less cluster creation.", + "description": "Administrator login password required for creating windows account on nodes for domain-less cluster creation.", "type": "string", "x-ms-mutability": [ "create" ] }, "storageAccountUrl": { - "description": "The fully qualified ARM resource ID of the Witness Storage Account", + "description": "Fully qualified ARM resource id of the witness storage account.", "type": "string", "x-ms-mutability": [ "read", @@ -1222,7 +1220,7 @@ ] }, "storageAccountPrimaryKey": { - "description": "The Primary Key of the Witness Storage Account", + "description": "Primary key of the witness storage account.", "type": "string", "x-ms-mutability": [ "create" @@ -1260,7 +1258,7 @@ } }, "SqlVirtualMachineGroup": { - "description": "A SQL Virtual Machine Group.", + "description": "A SQL virtual machine group.", "required": [ "location" ], @@ -1279,7 +1277,7 @@ } }, "SqlVirtualMachineGroupUpdate": { - "description": "An update to Sql VirtualMachine Group.", + "description": "An update to a SQL virtual machine group.", "type": "object", "properties": { "tags": { @@ -1291,8 +1289,8 @@ } } }, - "SqlVmGroupListResult": { - "description": "A list of SqlVmGroups.", + "SqlVirtualMachineGroupListResult": { + "description": "A list of SQL virtual machine groups.", "type": "object", "properties": { "value": { @@ -1339,12 +1337,12 @@ } } }, - "Sql Virtual Machine Properties": { - "description": "The SqlVm's properties.", + "SqlVirtualMachineProperties": { + "description": "The SQL virtual machine properties.", "type": "object", "properties": { "virtualMachineResourceId": { - "description": "ARM Resource Id of underlying Virtual Machine created from SQL marketplace image.", + "description": "ARM Resource id of underlying virtual machine created from SQL marketplace image.", "type": "string", "x-ms-mutability": [ "read", @@ -1352,7 +1350,7 @@ ] }, "provisioningState": { - "description": "Provisioning State to track the aysnc provisoning operation status.", + "description": "Provisioning state to track the aysnc operation status.", "type": "string", "readOnly": true }, @@ -1362,7 +1360,7 @@ "readOnly": true }, "sqlServerLicenseType": { - "description": "SQL Server License Type.", + "description": "SQL Server license type.", "enum": [ "PAYG", "AHUB" @@ -1374,12 +1372,13 @@ } }, "sqlImageSku": { - "description": "SQL Image Sku.", + "description": "SQL image sku.", "enum": [ "Developer", "Express", "Standard", - "Enterprise" + "Enterprise", + "Web" ], "type": "string", "readOnly": true, @@ -1389,7 +1388,7 @@ } }, "sqlVirtualMachineGroupResourceId": { - "description": "ARM resource Id of the SQL VirtualMachine Group this SQL Virtual Machine is part of.", + "description": "ARM resource id of the SQL virtual machine group this SQL virtual machine is part of.", "type": "string", "x-ms-mutability": [ "update" @@ -1397,15 +1396,15 @@ }, "wsfcDomainCredentials": { "$ref": "#/definitions/WSFCDomainCredentials", - "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL Availability Group." + "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL availability group." }, "autoTelemetrySettings": { "$ref": "#/definitions/AutoTelemetrySettings", - "description": "Auto telemetry settings for SQL VirtualMachine." + "description": "Auto telemetry settings for SQL virtual machine." }, "autoPatchingSettings": { "$ref": "#/definitions/AutoPatchingSettings", - "description": "Auto patching settings for applying critical security updates to SQL VirtualMachine." + "description": "Auto patching settings for applying critical security updates to SQL virtual machine." }, "autoBackupSettings": { "$ref": "#/definitions/AutoBackupSettings", @@ -1413,7 +1412,7 @@ }, "keyVaultCredentialSettings": { "$ref": "#/definitions/KeyVaultCredentialSettings", - "description": "Keyvault credential settings." + "description": "Key vault credential settings." }, "serverConfigurationsManagementSettings": { "$ref": "#/definitions/ServerConfigurationsManagementSettings", @@ -1422,25 +1421,25 @@ } }, "WSFCDomainCredentials": { - "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL Availability Group.", + "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.", "type": "object", "properties": { "clusterBootstrapAccountPassword": { - "description": "Cluster Bootstrap account password.", + "description": "Cluster bootstrap account password.", "type": "string" }, "clusterOperatorAccountPassword": { - "description": "Cluster Operator account password.", + "description": "Cluster operator account password.", "type": "string" }, "sqlServiceAccountPassword": { - "description": "SQL Service account password.", + "description": "SQL service account password.", "type": "string" } } }, "AutoTelemetrySettings": { - "description": "Autotelemetry settings.", + "description": "Auto telemetry settings.", "type": "object", "properties": { "region": { @@ -1453,11 +1452,11 @@ } }, "AutoPatchingSettings": { - "description": "Autopatching settings.", + "description": "Auto patching settings.", "type": "object", "properties": { "enable": { - "description": "Enable or disable autopatching on Sql VirtualMachine.", + "description": "Enable or disable autopatching on SQL virtual machine.", "type": "boolean" }, "dayOfWeek": { @@ -1477,15 +1476,15 @@ } }, "AutoBackupSettings": { - "description": "Autobackup settings on Sql VirtualMachine.", + "description": "Auto backup settings.", "type": "object", "properties": { "enable": { - "description": "Enable or disable autobackup on Sql VirtualMachine.", + "description": "Enable or disable autobackup on SQL virtual machine.", "type": "boolean" }, "enableEncryption": { - "description": "Enable or disable encryption for backup on Sql VirtualMachine.", + "description": "Enable or disable encryption for backup on SQL virtual machine.", "type": "boolean" }, "retentionPeriod": { @@ -1494,7 +1493,7 @@ "type": "integer" }, "storageAccountUrl": { - "description": "Storage account Url where backup will be taken to.", + "description": "Storage account url where backup will be taken to.", "type": "string" }, "storageAccessKey": { @@ -1514,7 +1513,7 @@ ] }, "backupSystemDbs": { - "description": "Include or exclude system Databases from auto backup.", + "description": "Include or exclude system databases from auto backup.", "type": "boolean" }, "backupScheduleType": { @@ -1563,7 +1562,7 @@ "type": "object", "properties": { "enable": { - "description": "Enable or disable Keyvault credential setting.", + "description": "Enable or disable keyvault credential setting.", "type": "boolean" }, "credentialName": { @@ -1571,15 +1570,15 @@ "type": "string" }, "azureKeyVaultUrl": { - "description": "Azure keyvault Url.", + "description": "Azure Key Vault url.", "type": "string" }, "servicePrincipalName": { - "description": "Service principal name to access keyvault.", + "description": "Service principal name to access key vault.", "type": "string" }, "servicePrincipalSecret": { - "description": "Service principal name secret to access keyvault.", + "description": "Service principal name secret to access key vault.", "type": "string", "x-ms-mutability": [ "create", @@ -1589,20 +1588,20 @@ } }, "ServerConfigurationsManagementSettings": { - "description": "ServerConfiguration management settings.", + "description": "Server configuration management settings.", "type": "object", "properties": { "sqlConnectivityUpdateSettings": { "$ref": "#/definitions/SQLConnectivityUpdateSettings", - "description": "Sql cnnectivity type settings." + "description": "SQL connectivity type settings." }, "sqlWorkloadTypeUpdateSettings": { "$ref": "#/definitions/SQLWorkloadTypeUpdateSettings", - "description": "Sql workloadtype settings." + "description": "SQL workload type settings." }, "sqlStorageUpdateSettings": { "$ref": "#/definitions/SQLStorageUpdateSettings", - "description": "Sql storage update settings." + "description": "SQL storage update settings." }, "additionalFeaturesServerConfigurations": { "$ref": "#/definitions/AdditionalFeaturesServerConfigurations", @@ -1611,7 +1610,7 @@ } }, "SQLConnectivityUpdateSettings": { - "description": "SQL VirtualMachine connectivity update settings.", + "description": "SQL connectivity update settings.", "type": "object", "properties": { "connectivityType": { @@ -1633,14 +1632,14 @@ "type": "integer" }, "sqlAuthUpdateUserName": { - "description": "SQL Server sysadmin sql login to create.", + "description": "SQL Server sysadmin login to create.", "type": "string", "x-ms-mutability": [ "create" ] }, "sqlAuthUpdatePassword": { - "description": "SQL Server sysadmin sql login password.", + "description": "SQL Server sysadmin login password.", "type": "string", "x-ms-mutability": [ "create" @@ -1649,7 +1648,7 @@ } }, "SQLWorkloadTypeUpdateSettings": { - "description": "SQL Server workload type update settings.", + "description": "SQL workload type update settings.", "type": "object", "properties": { "sqlWorkloadType": { @@ -1672,12 +1671,12 @@ } }, "SQLStorageUpdateSettings": { - "description": "SQL Server disk storage setting.", + "description": "SQL disk storage setting.", "type": "object", "properties": { "diskCount": { "format": "int32", - "description": "Virtual Mahcine disk count.", + "description": "Virtual machine disk count.", "type": "integer" }, "diskConfigurationType": { @@ -1700,7 +1699,7 @@ "type": "object", "properties": { "isRServicesEnabled": { - "description": "Enable or Disable R Services (SQL 2016 onwards).", + "description": "Enable or disable R services (SQL 2016 onwards).", "type": "boolean" }, "backupPermissionsForAzureBackupSvc": { @@ -1710,7 +1709,7 @@ } }, "SqlVirtualMachine": { - "description": "A SQL Virtual Machine.", + "description": "A SQL virtual machine.", "required": [ "location" ], @@ -1723,21 +1722,21 @@ "properties": { "identity": { "$ref": "#/definitions/ResourceIdentity", - "description": "The Azure Active Directory identity of the server.", + "description": "Azure Active Directory identity of the server.", "x-ms-mutability": [ "read", "create" ] }, "properties": { - "$ref": "#/definitions/Sql Virtual Machine Properties", + "$ref": "#/definitions/SqlVirtualMachineProperties", "description": "Resource properties.", "x-ms-client-flatten": true } } }, "SqlVirtualMachineUpdate": { - "description": "An update to Sql Virtual Machine.", + "description": "An update to a SQL virtual machine.", "type": "object", "properties": { "tags": { @@ -1749,8 +1748,8 @@ } } }, - "SqlVmListResult": { - "description": "A list of SqlVms.", + "SqlVirtualMachineListResult": { + "description": "A list of SQL virtual machines.", "type": "object", "properties": { "value": { @@ -1773,7 +1772,7 @@ "SubscriptionIdParameter": { "name": "subscriptionId", "in": "path", - "description": "The subscription ID that identifies an Azure subscription.", + "description": "Subscription ID that identifies an Azure subscription.", "required": true, "type": "string", "x-ms-parameter-location": "client" @@ -1781,7 +1780,7 @@ "ApiVersionParameter": { "name": "api-version", "in": "query", - "description": "The API version to use for the request.", + "description": "API version to use for the request.", "required": true, "type": "string", "x-ms-parameter-location": "client" @@ -1789,66 +1788,31 @@ "ResourceGroupParameter": { "name": "resourceGroupName", "in": "path", - "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "description": "Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "description": "The name of the server.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ManagedInstanceNameParameter": { - "name": "managedInstanceName", - "in": "path", - "description": "The name of the managed instance.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatabaseNameParameter": { - "name": "databaseName", - "in": "path", - "description": "The name of the database.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "BlobAuditingPolicyNameParameter": { - "name": "blobAuditingPolicyName", - "in": "path", - "description": "The name of the blob auditing policy.", - "required": true, - "type": "string", - "enum": [ - "default" - ], - "x-ms-parameter-location": "method" - }, "SqlVirtualMachineInstanceNameParameter": { "name": "sqlVirtualMachineInstanceName", "in": "path", - "description": "The name of the SqlVirtualMachineInstance.", + "description": "Name of the SQL virtual machine.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "SqlVirtualMachineContainerNameParameter": { - "name": "sqlVirtualMachineContainerName", + "SqlVirtualMachineGroupInstanceNameParameter": { + "name": "sqlVirtualMachineGroupInstanceNameParameter", "in": "path", - "description": "The name of the SqlVirtualMachineContainer.", + "description": "Name of the SQL virtual machine group.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "VirtualClusterNameParameter": { - "name": "virtualClusterName", + "AvailabilityGroupListenerInstanceNameParameter": { + "name": "availabilityGroupListenerInstanceNameParameter", "in": "path", - "description": "The name of the virtual cluster.", + "description": "Name of the availability group listener.", "required": true, "type": "string", "x-ms-parameter-location": "method" diff --git a/specification/sqlvirtualmachine/resource-manager/readme.md b/specification/sqlvirtualmachine/resource-manager/readme.md new file mode 100644 index 000000000000..1809a016ac95 --- /dev/null +++ b/specification/sqlvirtualmachine/resource-manager/readme.md @@ -0,0 +1,101 @@ +# SQL virtual machine + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for SQL virtual machine. + + + +--- +## Getting Started +To build the SDK for SQL virtual machine, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + + + +### Basic Information +These are the global settings for the SQL virtual machine API. + +``` yaml +title: SqlVirtualMachineManagementClient +description: The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener. +openapi-type: arm +tag: package-2017-03-01-preview +``` + +### Tag: package-2017-03-01-preview + +These settings apply only when `--tag=package-2017-03-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2017-03-01-preview' +input-file: +- Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +``` + + +--- +# Code Generation + + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +``` yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python +``` + + +### C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.Management.SqlVirtualMachine + output-folder: $(csharp-sdks-folder)/SqlVirtualMachine/Management.SqlVirtualMachine/Generated + clear-output-folder: true +``` + + +### Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. + +``` yaml $(python) +python-mode: create +python: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + namespace: azure.mgmt.sqlvirtualmachine + package-name: azure-mgmt-sqlvirtualmachine + clear-output-folder: true +``` + +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine +``` + +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-sqlvirtualmachine +``` From 94c67824dfa87ffe042c60038259614bbf7005ee Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Tue, 13 Nov 2018 18:43:03 -0800 Subject: [PATCH 4/6] Addressing code review comments --- ...istSubscriptionSqlVirtualMachineGroup.json | 15 +- .../preview/2017-03-01-preview/sqlvm.json | 156 +++++++----------- 2 files changed, 64 insertions(+), 107 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json index 03299ea25f4f..b47490f3b56e 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/examples/ListSubscriptionSqlVirtualMachineGroup.json @@ -23,10 +23,9 @@ }, "location": "northeurope", "tags": { - "mytag": "myval" + "mytag": "myval" }, - "id": - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", "name": "testvmgroup", "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" }, @@ -46,10 +45,9 @@ }, "location": "northeurope", "tags": { - "mytag": "myval" + "mytag": "myval" }, - "id": - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg1/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", "name": "testvmgroup1", "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" }, @@ -69,10 +67,9 @@ }, "location": "northeurope", "tags": { - "mytag": "myval" + "mytag": "myval" }, - "id": - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups//providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", + "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg2/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/", "name": "testvmgroup2", "type": "Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups" } diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index a224485d1778..18c3285a2a03 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -69,7 +69,7 @@ "tags": [ "AvailabilityGroupListeners" ], - "description": "Creates or Updates an availability group listener.", + "description": "Creates or updates an availability group listener.", "operationId": "AvailabilityGroupListeners_CreateOrUpdate", "parameters": [ { @@ -307,7 +307,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Creates or Updates a SQL virtual machine group.", + "description": "Creates or updates a SQL virtual machine group.", "operationId": "SqlVirtualMachineGroups_CreateOrUpdate", "parameters": [ { @@ -462,7 +462,7 @@ "tags": [ "SqlVirtualMachineGroups" ], - "description": "Gets all the SQL virtual machine groups in a resource group.", + "description": "Gets all SQL virtual machine groups in a resource group.", "operationId": "SqlVirtualMachineGroups_ListByResourceGroup", "parameters": [ { @@ -477,7 +477,7 @@ ], "responses": { "200": { - "description": "Successfully retrieved all the SQL virtual machine groups in the given resource group.", + "description": "Successfully retrieved all SQL virtual machine groups in the resource group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineGroupListResult" } @@ -490,7 +490,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets all the SQL virtual machine groups in a resource group.": { + "Gets all SQL virtual machine groups in a resource group.": { "$ref": "./examples/ListByResourceGroupSqlVirtualMachineGroup.json" } } @@ -585,7 +585,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Creates or Updates a SQL virtual machine.", + "description": "Creates or updates a SQL virtual machine.", "operationId": "SqlVirtualMachines_CreateOrUpdate", "parameters": [ { @@ -633,14 +633,14 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { + "Creates or updates a SQL virtual machine with max paramenters.": { + "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMAX.json" + }, "Creates or updates a SQL virtual machine and joins it to a SQL virtual machine group.": { "$ref": "./examples/CreateOrUpdateVirtualMachineWithVMGroup.json" }, "Creates or updates a SQL virtual machine with min parameters.": { "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMIN.json" - }, - "Creates or updates a SQL virtual machine with max paramenters.": { - "$ref": "./examples/CreateOrUpdateSqlVirtualMachineMAX.json" } } }, @@ -761,7 +761,7 @@ ], "responses": { "200": { - "description": "Successfully retrieved all the SQL virtual machines in the resource group.", + "description": "Successfully retrieved all SQL virtual machines in the resource group.", "schema": { "$ref": "#/definitions/SqlVirtualMachineListResult" } @@ -785,7 +785,7 @@ "tags": [ "SqlVirtualMachines" ], - "description": "Gets all the SQL virtual machines in a subscription.", + "description": "Gets all SQL virtual machines in a subscription.", "operationId": "SqlVirtualMachines_List", "parameters": [ { @@ -797,7 +797,7 @@ ], "responses": { "200": { - "description": "Successfully retrieved all the SQL virtual machines in the subscription.", + "description": "Successfully retrieved all SQL virtual machines in the subscription.", "schema": { "$ref": "#/definitions/SqlVirtualMachineListResult" } @@ -810,7 +810,7 @@ "nextLinkName": "nextLink" }, "x-ms-examples": { - "Gets all the SQL virtual machines in a subscription.": { + "Gets all SQL virtual machines in a subscription.": { "$ref": "./examples/ListSubscriptionSqlVirtualMachine.json" } } @@ -828,7 +828,7 @@ "readOnly": true }, "availabilityGroupName": { - "description": "Name of the availability group listener.", + "description": "Name of the availability group.", "type": "string" }, "loadBalancerConfigurations": { @@ -1043,7 +1043,7 @@ } } }, - "SqlVmGroupProperties": { + "SqlVirtualMachineGroupProperties": { "description": "The properties of a SQL virtual machine group.", "type": "object", "properties": { @@ -1053,7 +1053,7 @@ "readOnly": true }, "sqlImageOffer": { - "description": "SQL image offer.", + "description": "SQL image offer. Examples may include SQL2016-WS2016, SQL2017-WS2016.", "type": "string", "x-ms-mutability": [ "read", @@ -1080,7 +1080,7 @@ ] }, "scaleType": { - "description": "Scale type: HA or ReadOnly.", + "description": "Scale type.", "enum": [ "HA" ], @@ -1092,7 +1092,7 @@ } }, "clusterManagerType": { - "description": "Type of the cluster manager: Windows Server Failover Cluster (WSFC) | NONE, implied by the scale type of the group and the OS type.", + "description": "Type of cluster manager: Windows Server Failover Cluster (WSFC), implied by the scale type of the group and the OS type.", "enum": [ "WSFC" ], @@ -1116,16 +1116,8 @@ } }, "wsfcDomainProfile": { - "$ref": "#/definitions/WSFCDomainProfile", - "description": "Cluster AD domain profile.", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "domainlessProfile": { - "$ref": "#/definitions/DomainlessProfile", - "description": "Cluster domainless profile.", + "$ref": "#/definitions/WsfcDomainProfile", + "description": "Cluster Active Directory domain profile.", "x-ms-mutability": [ "read", "create" @@ -1133,8 +1125,8 @@ } } }, - "WSFCDomainProfile": { - "description": "The Active Directory domain profile.", + "WsfcDomainProfile": { + "description": "Active Directory account details to operate Windows Server Failover Cluster.", "type": "object", "properties": { "domainFqdn": { @@ -1146,7 +1138,7 @@ ] }, "ouPath": { - "description": "OU path in which the nodes and cluster will be present.", + "description": "Organizational Unit path in which the nodes and cluster will be present.", "type": "string", "x-ms-mutability": [ "read", @@ -1200,34 +1192,6 @@ } } }, - "DomainlessProfile": { - "description": "The domainless profile.", - "type": "object", - "properties": { - "domainlessAccountPassword": { - "description": "Administrator login password required for creating windows account on nodes for domain-less cluster creation.", - "type": "string", - "x-ms-mutability": [ - "create" - ] - }, - "storageAccountUrl": { - "description": "Fully qualified ARM resource id of the witness storage account.", - "type": "string", - "x-ms-mutability": [ - "read", - "create" - ] - }, - "storageAccountPrimaryKey": { - "description": "Primary key of the witness storage account.", - "type": "string", - "x-ms-mutability": [ - "create" - ] - } - } - }, "TrackedResource": { "description": "ARM tracked top level resource.", "required": [ @@ -1270,7 +1234,7 @@ ], "properties": { "properties": { - "$ref": "#/definitions/SqlVmGroupProperties", + "$ref": "#/definitions/SqlVirtualMachineGroupProperties", "description": "Resource properties.", "x-ms-client-flatten": true } @@ -1355,7 +1319,7 @@ "readOnly": true }, "sqlImageOffer": { - "description": "SQL image offer.", + "description": "SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.", "type": "string", "readOnly": true }, @@ -1388,20 +1352,16 @@ } }, "sqlVirtualMachineGroupResourceId": { - "description": "ARM resource id of the SQL virtual machine group this SQL virtual machine is part of.", + "description": "ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.", "type": "string", "x-ms-mutability": [ "update" ] }, "wsfcDomainCredentials": { - "$ref": "#/definitions/WSFCDomainCredentials", + "$ref": "#/definitions/WsfcDomainCredentials", "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL availability group." }, - "autoTelemetrySettings": { - "$ref": "#/definitions/AutoTelemetrySettings", - "description": "Auto telemetry settings for SQL virtual machine." - }, "autoPatchingSettings": { "$ref": "#/definitions/AutoPatchingSettings", "description": "Auto patching settings for applying critical security updates to SQL virtual machine." @@ -1420,7 +1380,7 @@ } } }, - "WSFCDomainCredentials": { + "WsfcDomainCredentials": { "description": "Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.", "type": "object", "properties": { @@ -1438,21 +1398,8 @@ } } }, - "AutoTelemetrySettings": { - "description": "Auto telemetry settings.", - "type": "object", - "properties": { - "region": { - "description": "Region for autotelemetry setting.", - "type": "string", - "x-ms-mutability": [ - "create" - ] - } - } - }, "AutoPatchingSettings": { - "description": "Auto patching settings.", + "description": "Set a patching window during which Windows and SQL patches will be applied.", "type": "object", "properties": { "enable": { @@ -1461,11 +1408,24 @@ }, "dayOfWeek": { "description": "Day of week to apply the patch on.", - "type": "string" + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string", + "x-ms-enum": { + "name": "DayOfWeek", + "modelAsString": false + } }, "maintenanceWindowStartingHour": { "format": "int32", - "description": "Hour of the day when patching is initiated.", + "description": "Hour of the day when patching is initiated. Local VM time.", "type": "integer" }, "maintenanceWindowDuration": { @@ -1476,7 +1436,7 @@ } }, "AutoBackupSettings": { - "description": "Auto backup settings.", + "description": "Configure backups for databases in your SQL virtual machine.", "type": "object", "properties": { "enable": { @@ -1558,11 +1518,11 @@ } }, "KeyVaultCredentialSettings": { - "description": "Keyvault credential settings.", + "description": "Configure your SQL virtual machine to be able to connect to the Azure Key Vault service.", "type": "object", "properties": { "enable": { - "description": "Enable or disable keyvault credential setting.", + "description": "Enable or disable key vault credential setting.", "type": "boolean" }, "credentialName": { @@ -1588,19 +1548,19 @@ } }, "ServerConfigurationsManagementSettings": { - "description": "Server configuration management settings.", + "description": "Set the connectivity, storage and workload settings.", "type": "object", "properties": { "sqlConnectivityUpdateSettings": { - "$ref": "#/definitions/SQLConnectivityUpdateSettings", + "$ref": "#/definitions/SqlConnectivityUpdateSettings", "description": "SQL connectivity type settings." }, "sqlWorkloadTypeUpdateSettings": { - "$ref": "#/definitions/SQLWorkloadTypeUpdateSettings", + "$ref": "#/definitions/SqlWorkloadTypeUpdateSettings", "description": "SQL workload type settings." }, "sqlStorageUpdateSettings": { - "$ref": "#/definitions/SQLStorageUpdateSettings", + "$ref": "#/definitions/SqlStorageUpdateSettings", "description": "SQL storage update settings." }, "additionalFeaturesServerConfigurations": { @@ -1609,12 +1569,12 @@ } } }, - "SQLConnectivityUpdateSettings": { - "description": "SQL connectivity update settings.", + "SqlConnectivityUpdateSettings": { + "description": "Set the access level and network port settings for SQL Server.", "type": "object", "properties": { "connectivityType": { - "description": "SQL Server conectivity option.", + "description": "SQL Server connectivity option.", "enum": [ "LOCAL", "PRIVATE", @@ -1647,8 +1607,8 @@ } } }, - "SQLWorkloadTypeUpdateSettings": { - "description": "SQL workload type update settings.", + "SqlWorkloadTypeUpdateSettings": { + "description": "Set workload type to optimize storage for SQL Server.", "type": "object", "properties": { "sqlWorkloadType": { @@ -1670,8 +1630,8 @@ } } }, - "SQLStorageUpdateSettings": { - "description": "SQL disk storage setting.", + "SqlStorageUpdateSettings": { + "description": "Set disk storage settings for SQL Server.", "type": "object", "properties": { "diskCount": { From f2820727481088045e25bda0ffe17cd71e304d2c Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Tue, 13 Nov 2018 18:51:25 -0800 Subject: [PATCH 5/6] Addressing code review comments --- .../preview/2017-03-01-preview/sqlvm.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index 18c3285a2a03..a3aca3331f42 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -1753,24 +1753,24 @@ "type": "string", "x-ms-parameter-location": "method" }, - "SqlVirtualMachineInstanceNameParameter": { - "name": "sqlVirtualMachineInstanceName", + "SqlVirtualMachineNameParameter": { + "name": "sqlVirtualMachineName", "in": "path", "description": "Name of the SQL virtual machine.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "SqlVirtualMachineGroupInstanceNameParameter": { - "name": "sqlVirtualMachineGroupInstanceNameParameter", + "SqlVirtualMachineGroupNameParameter": { + "name": "sqlVirtualMachineGroupNameParameter", "in": "path", "description": "Name of the SQL virtual machine group.", "required": true, "type": "string", "x-ms-parameter-location": "method" }, - "AvailabilityGroupListenerInstanceNameParameter": { - "name": "availabilityGroupListenerInstanceNameParameter", + "AvailabilityGroupListenerNameParameter": { + "name": "availabilityGroupListenerNameParameter", "in": "path", "description": "Name of the availability group listener.", "required": true, From 5fb1ee8844dbe6df07569a955405beda98f63e59 Mon Sep 17 00:00:00 2001 From: Yadi Reyes Date: Thu, 15 Nov 2018 17:04:00 -0800 Subject: [PATCH 6/6] Addressing comments --- .../preview/2017-03-01-preview/sqlvm.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json index a3aca3331f42..48070b1972ca 100644 --- a/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json +++ b/specification/sqlvirtualmachine/resource-manager/Microsoft.SqlVirtualMachine/preview/2017-03-01-preview/sqlvm.json @@ -1449,7 +1449,7 @@ }, "retentionPeriod": { "format": "int32", - "description": "Retention period of backup.", + "description": "Retention period of backup: 1-30 days.", "type": "integer" }, "storageAccountUrl": { @@ -1489,7 +1489,7 @@ } }, "fullBackupFrequency": { - "description": "Full backup frequency.", + "description": "Frequency of full backups. In both cases, full backups begin during the next scheduled time window.", "enum": [ "Daily", "Weekly" @@ -1502,17 +1502,17 @@ }, "fullBackupStartTime": { "format": "int32", - "description": "Full backup startup time.", + "description": "Start time of a given day during which full backups can take place. 0-23 hours.", "type": "integer" }, "fullBackupWindowHours": { "format": "int32", - "description": "Full backup window hours.", + "description": "Duration of the time window of a given day during which full backups can take place. 1-23 hours.", "type": "integer" }, "logBackupFrequency": { "format": "int32", - "description": "Log backup frequency.", + "description": "Frequency of log backups. 5-60 minutes.", "type": "integer" } }