From 0d9a904f95e116b3f92127d7584ea44412991351 Mon Sep 17 00:00:00 2001 From: johnemmanuelm Date: Wed, 19 Sep 2018 21:49:51 +0530 Subject: [PATCH 01/39] Fixed GetOperations route to not have subId (#3951) * Fixed Operations route to not have subId * Remving subid from the path due to prev commit --- .../Microsoft.StorSimple/stable/2016-10-01/StorSimple.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/StorSimple.json b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/StorSimple.json index 101a5f77dee8..5567b907c86d 100644 --- a/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/StorSimple.json +++ b/specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/StorSimple.json @@ -61,7 +61,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.StorSimple/operations": { + "/providers/Microsoft.StorSimple/operations": { "get": { "tags": [ "AvailableProviderOperations" @@ -75,9 +75,6 @@ "application/json" ], "parameters": [ - { - "$ref": "#/parameters/subscriptionIdParameter" - }, { "$ref": "#/parameters/apiVersionParameter" } From f76c5a75b299d1d5b11b5bedd494276745d93852 Mon Sep 17 00:00:00 2001 From: Lana Shafik Date: Wed, 19 Sep 2018 18:27:43 +0200 Subject: [PATCH 02/39] Modifying app version settings GET and UPDATE examples. (#3930) --- .../data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json | 4 ---- .../examples/apps/SuccessfulPublishApplicationRequest.json | 3 +-- .../SuccessfulGetApplicationVersionSettingsRequest.json | 2 +- .../SuccessfulUpdateApplicationVersionSettingsRequest.json | 2 +- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json index a1a938652257..102493766dfe 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/LUIS-Authoring.json @@ -8224,10 +8224,6 @@ "description": "Indicates if the staging slot should be used, instead of the Production one.", "default": false, "type": "boolean" - }, - "region": { - "description": "The target region that the application is published to.", - "type": "string" } } }, diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json index e8d254a76e1d..b9d787b9955d 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/apps/SuccessfulPublishApplicationRequest.json @@ -5,8 +5,7 @@ "appId": "11be6373fca44ded80fbe2afa8597c18", "applicationPublishObject": { "versionId": "0.1", - "isStaging": false, - "region": "westus" + "isStaging": false } }, "responses": { diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionSettingsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionSettingsRequest.json index 7eee4c9f5977..ff1ad8fd36a3 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionSettingsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulGetApplicationVersionSettingsRequest.json @@ -10,7 +10,7 @@ "headers": {}, "body": [ { - "name": "UseNegativeSampling", + "name": "UseAllTrainingData", "value": "false" } ] diff --git a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulUpdateApplicationVersionSettingsRequest.json b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulUpdateApplicationVersionSettingsRequest.json index 4054da4022ae..6af9be19e6cc 100644 --- a/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulUpdateApplicationVersionSettingsRequest.json +++ b/specification/cognitiveservices/data-plane/LUIS/Authoring/stable/v2.0/examples/versions/SuccessfulUpdateApplicationVersionSettingsRequest.json @@ -6,7 +6,7 @@ "versionId": "0.1", "listOfAppVersionSettingObject": [ { - "name": "UseNegativeSampling", + "name": "UseAllTrainingData", "value": "false" } ] From 109c990c26834aa0b5262200972718a2012ab29c Mon Sep 17 00:00:00 2001 From: binz Date: Wed, 19 Sep 2018 10:07:36 -0700 Subject: [PATCH 03/39] [Azure monitor] Add missing enum for aggregation type (#3921) * Add missing enum for aggregation type * Update enum order --- .../microsoft.insights/stable/2015-04-01/autoscale_API.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/autoscale_API.json b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/autoscale_API.json index e54fae6a7958..e154f6651b8e 100644 --- a/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/autoscale_API.json +++ b/specification/monitor/resource-manager/microsoft.insights/stable/2015-04-01/autoscale_API.json @@ -393,7 +393,8 @@ "Minimum", "Maximum", "Total", - "Count" + "Count", + "Last" ], "x-ms-enum": { "name": "TimeAggregationType", From f2de2bb6efef57e6099c59049c23cce9b833b9c9 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 19 Sep 2018 10:11:53 -0700 Subject: [PATCH 04/39] Extract readme.nodejs.md from databox/resource-manager/readme.md (#3955) * Extract readme.nodejs.md from databox/resource-manager/readme.md * Revert changes about azure-sdk-for-ruby and azure-sdk-for-java --- .../databox/resource-manager/readme.md | 19 +------------------ .../databox/resource-manager/readme.nodejs.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 specification/databox/resource-manager/readme.nodejs.md diff --git a/specification/databox/resource-manager/readme.md b/specification/databox/resource-manager/readme.md index b3966b6d0014..f809fa3409d9 100644 --- a/specification/databox/resource-manager/readme.md +++ b/specification/databox/resource-manager/readme.md @@ -102,23 +102,6 @@ python: output-folder: $(python-sdks-folder)/azure-mgmt-databox ``` -## Node - -These settings apply only when `--nodejs` is specified on the command line. -Please also specify `--node-sdks-folder=`. - -``` yaml $(nodejs) -nodejs: - azure-arm: true - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - package-name: azure-arm-databox - output-folder: $(node-sdks-folder)/lib/services/databoxManagement - generate-license-txt: true - generate-package-json: true - generate-readme-md: false -``` - ## Go These settings apply only when `--go` is specified on the command line. @@ -206,4 +189,4 @@ java: output-folder: $(azure-libraries-for-java-folder)/databox/resource-manager/v2018_01_01 regenerate-manager: true generate-interface: true -``` \ No newline at end of file +``` diff --git a/specification/databox/resource-manager/readme.nodejs.md b/specification/databox/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..58dd61126fd0 --- /dev/null +++ b/specification/databox/resource-manager/readme.nodejs.md @@ -0,0 +1,16 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 2 + package-name: azure-arm-databox + output-folder: $(node-sdks-folder)/lib/services/databoxManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: false +``` From 804d4863341c6a69261a3d02ea9290b54bb3d904 Mon Sep 17 00:00:00 2001 From: Jon Arild Torresdal Date: Wed, 19 Sep 2018 19:12:14 +0200 Subject: [PATCH 05/39] [ApiManagement] Added missing 202 Accepted response code (#3952) * Added missing 202 Accepted response code to Api Management * Updated example for Api Management Service using response code 202 * Updated example for Api Management Service MSI using response code 202 * Updated example for Api Management Service with Custom Hostname using response code 202 --- .../stable/2017-03-01/apimdeployment.json | 8 +- ...eMultiRegionServiceWithCustomHostname.json | 83 ++++++++++++++++++- .../examples/ApiManagementCreateService.json | 31 ++++++- .../ApiManagementCreateServiceHavingMsi.json | 31 ++++++- 4 files changed, 148 insertions(+), 5 deletions(-) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json index 28fe8eedda8b..4008049ff1b6 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/apimdeployment.json @@ -215,6 +215,12 @@ "schema": { "$ref": "#/definitions/ApiManagementServiceResource" } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/ApiManagementServiceResource" + } } }, "x-ms-long-running-operation": true @@ -1389,4 +1395,4 @@ } }, "parameters": {} -} \ No newline at end of file +} diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json index 26a8150d2a20..70ddf19e8d14 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateMultiRegionServiceWithCustomHostname.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg1", "api-version": "2017-03-01", "subscriptionId": "subid", - "parameters": { + "parameters": { "location": "Central US", "sku": { "name": "Premium", @@ -206,6 +206,85 @@ "capacity": 1 } } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": {}, + "location": "Central US", + "etag": "AAAAAAAXXwI=", + "properties": { + "publisherEmail": "admin@live.com", + "publisherName": "contoso", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2017-05-30T19:00:47.1121713Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "hostnameConfigurations": [ + { + "type": "Proxy", + "hostName": "proxyhostname1.contoso.com", + "negotiateClientCertificate": false, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=proxyhostname1.contoso.com" + } + }, + { + "type": "Proxy", + "hostName": "proxyhostname2.contoso.com", + "negotiateClientCertificate": true, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=proxyhostname2.contoso.com" + } + }, + { + "type": "Portal", + "hostName": "portalhostname1.contoso.com", + "negotiateClientCertificate": false, + "certificate": { + "expiry": "2018-03-17T21:55:07+00:00", + "thumbprint": "918D7785B926AC5AEE66322778A147BCE7237CF3", + "subject": "CN=portalhostname1.contoso.com" + } + } + ], + "staticIps": [ + "52.173.193.207" + ], + "additionalLocations": [ + { + "location": "West US", + "sku": { + "name": "Premium", + "capacity": 1 + }, + "staticIps": [ + "104.210.41.234" + ], + "virtualNetworkConfiguration": { + "subnetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/westUsVirtualNetwork/subnets/apimSubnet" + } + } + ], + "virtualNetworkConfiguration": { + "subnetResourceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/centralUsVirtualNetwork/subnets/apimSubnet" + }, + "virtualNetworkType": "External" + }, + "sku": { + "name": "Premium", + "capacity": 1 + } + } } } -} \ No newline at end of file +} diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json index bfe0ff2b9d3d..4d0e49141605 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateService.json @@ -72,6 +72,35 @@ "capacity": 1 } } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "tags": {}, + "location": "West US", + "etag": "AAAAAAAV8XM=", + "properties": { + "publisherEmail": "admin@live.com", + "publisherName": "Contoso", + "provisioningState": "Succeeded", + "targetProvisioningState": "", + "createdAtUtc": "2015-09-22T01:52:02.4307221Z", + "gatewayUrl": "https://apimService1.azure-api.net", + "portalUrl": "https://apimService1.portal.azure-api.net", + "managementApiUrl": "https://apimService1.management.azure-api.net", + "scmUrl": "https://apimService1.scm.azure-api.net", + "staticIps": [ + "xx.xx.250.222" + ], + "virtualNetworkType": "None" + }, + "sku": { + "name": "Premium", + "capacity": 1 + } + } } } -} \ No newline at end of file +} diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json index bdf94c12d374..77f2c3b89f3d 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2017-03-01/examples/ApiManagementCreateServiceHavingMsi.json @@ -81,6 +81,35 @@ "tenantId": "72f988bf-xxxx-41af-xxxx-2d7cd011db47" } } + }, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/operationresults/dGVjaGVkX01hbmFnZVJvbGVfNWRiNGI3Ng==?api-version=2017-03-01" + }, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1", + "name": "apimService1", + "type": "Microsoft.ApiManagement/service", + "location": "Japan East", + "etag": "AAAAAAC268k=", + "properties": { + "publisherEmail": "admin@contoso.com", + "publisherName": "Contoso", + "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", + "provisioningState": "Created", + "targetProvisioningState": "Activating", + "createdAtUtc": "2017-10-27T23:41:41.7231779Z" + }, + "sku": { + "name": "Developer", + "capacity": 1 + }, + "identity": { + "type": "SystemAssigned", + "principalId": "f4b0f1c2-xxxx-43db-xxxx-ccd99e1afd22", + "tenantId": "72f988bf-xxxx-41af-xxxx-2d7cd011db47" + } + } } } -} \ No newline at end of file +} From 8571617d145608cc9ac33358a0d8d50c05efaf5e Mon Sep 17 00:00:00 2001 From: Pengfei Ni Date: Thu, 20 Sep 2018 01:15:21 +0800 Subject: [PATCH 06/39] Remove serverAppSecret which is not required for AKS cluster updates (#3949) --- .../stable/2018-03-31/managedClusters.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/containerservices/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json b/specification/containerservices/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json index f88f4d71c2f4..2353eeb279eb 100644 --- a/specification/containerservices/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json +++ b/specification/containerservices/resource-manager/Microsoft.ContainerService/stable/2018-03-31/managedClusters.json @@ -1321,8 +1321,7 @@ }, "required": [ "clientAppID", - "serverAppID", - "serverAppSecret" + "serverAppID" ], "description": "AADProfile specifies attributes for Azure Active Directory integration." }, From 134772bfe08e67a97d1df2ae151148c0329e1c25 Mon Sep 17 00:00:00 2001 From: Jianping Zeng Date: Wed, 19 Sep 2018 12:20:02 -0700 Subject: [PATCH 07/39] Fix Swagger Linting Error for Microsoft.Features (#3841) * Fix Swagger Linting Error for Microsoft.Features * Remove additional properties in examples --- .../2015-12-01/examples/getFeature.json | 21 +++++ .../examples/listFeaturesOperations.json | 30 ++++++ .../examples/listProviderFeatures.json | 32 +++++++ .../examples/listSubscriptionFeatures.json | 31 +++++++ .../2015-12-01/examples/registerFeature.json | 21 +++++ .../stable/2015-12-01/features.json | 93 +++++++++++++++++++ 6 files changed, 228 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/getFeature.json create mode 100644 specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listFeaturesOperations.json create mode 100644 specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listProviderFeatures.json create mode 100644 specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listSubscriptionFeatures.json create mode 100644 specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/registerFeature.json diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/getFeature.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/getFeature.json new file mode 100644 index 000000000000..5e3a0f9f07df --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/getFeature.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceProviderNamespace": "Resource Provider Namespace", + "featureName": "feature", + "api-version": "2015-12-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "Feature1", + "properties": { + "state": "registered" + }, + "id": "feature_id1", + "type": "type1" + } + } + } +} \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listFeaturesOperations.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listFeaturesOperations.json new file mode 100644 index 000000000000..80788c044422 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listFeaturesOperations.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "api-version": "2015-12-01" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "FeaturesOpeartion1", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource1", + "operation": "Read" + } + }, + { + "name": "FeaturesOpeartion2", + "display": { + "provider": "Microsoft.ResourceProvider", + "resource": "Resource2", + "operation": "Write" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listProviderFeatures.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listProviderFeatures.json new file mode 100644 index 000000000000..a8e4702af174 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listProviderFeatures.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "resourceProviderNamespace": "Resource Provider Namespace", + "api-version": "2015-12-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Feature1", + "properties": { + "state": "registered" + }, + "id": "feature_id1", + "type": "type1" + }, + { + "name": "Feature2", + "properties": { + "state": "unregistered" + }, + "id": "feature_id2", + "type": "type2" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listSubscriptionFeatures.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listSubscriptionFeatures.json new file mode 100644 index 000000000000..949fb06947e6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/listSubscriptionFeatures.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "api-version": "2015-12-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Feature1", + "properties": { + "state": "registered" + }, + "id": "feature_id1", + "type": "type1" + }, + { + "name": "Feature2", + "properties": { + "state": "unregistered" + }, + "id": "feature_id2", + "type": "type2" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/registerFeature.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/registerFeature.json new file mode 100644 index 000000000000..5e3a0f9f07df --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/examples/registerFeature.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceProviderNamespace": "Resource Provider Namespace", + "featureName": "feature", + "api-version": "2015-12-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "Feature1", + "properties": { + "state": "registered" + }, + "id": "feature_id1", + "type": "type1" + } + } + } +} \ No newline at end of file diff --git a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/features.json b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/features.json index 5e5b8f0acda4..ca28ad41d445 100644 --- a/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/features.json +++ b/specification/resources/resource-manager/Microsoft.Features/stable/2015-12-01/features.json @@ -36,6 +36,36 @@ } }, "paths": { + "/providers/Microsoft.Features/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Features REST API operations.", + "x-ms-examples": { + "List Features operations": { + "$ref": "./examples/listFeaturesOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/providers/Microsoft.Features/features": { "get": { "tags": [ @@ -43,6 +73,11 @@ ], "operationId": "Features_ListAll", "description": "Gets all the preview features that are available through AFEC for the subscription.", + "x-ms-examples": { + "List subscription Features": { + "$ref": "./examples/listSubscriptionFeatures.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -71,6 +106,11 @@ ], "operationId": "Features_List", "description": "Gets all the preview features in a provider namespace that are available through AFEC for the subscription.", + "x-ms-examples": { + "List provider Features": { + "$ref": "./examples/listProviderFeatures.json" + } + }, "parameters": [ { "name": "resourceProviderNamespace", @@ -106,6 +146,11 @@ ], "operationId": "Features_Get", "description": "Gets the preview feature with the specified name.", + "x-ms-examples": { + "Get feature": { + "$ref": "./examples/getFeature.json" + } + }, "parameters": [ { "name": "resourceProviderNamespace", @@ -145,6 +190,11 @@ ], "operationId": "Features_Register", "description": "Registers the preview feature for the subscription.", + "x-ms-examples": { + "Register feature": { + "$ref": "./examples/registerFeature.json" + } + }, "parameters": [ { "name": "resourceProviderNamespace", @@ -224,6 +274,49 @@ } }, "description": "List of previewed features." + }, + "Operation": { + "description": "Microsoft.Features operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Features", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Features operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Features operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } } }, "parameters": { From 9d33ddd57135413301b759a937631b3d49e5165a Mon Sep 17 00:00:00 2001 From: haricr Date: Wed, 19 Sep 2018 12:53:42 -0700 Subject: [PATCH 08/39] [Datafactory] Add SecureInput property to Activity. Add recursive option to cancel API (#3917) * Add SecureInput Property to Activity Add IsRecursive Option to Cancel API * Fix Formating Issues * Fix formats --- .../stable/2018-06-01/datafactory.json | 7 +++++++ .../stable/2018-06-01/entityTypes/Pipeline.json | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json index 487980ca3532..08948064bf58 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/datafactory.json @@ -2267,6 +2267,13 @@ { "$ref": "#/parameters/runId" }, + { + "name": "isRecursive", + "description": "If true, cancel all the Child pipelines that are triggered by the current pipeline.", + "in": "query", + "required": false, + "type": "boolean" + }, { "$ref": "#/parameters/api-version" } diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index 8510a9e874f0..a430e5c0846e 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -188,6 +188,10 @@ "minimum": 30, "maximum": 86400 }, + "secureInput": { + "type": "boolean", + "description": "When set to true, Input from activity is considered as secure and will not be logged to monitoring." + }, "secureOutput": { "type": "boolean", "description": "When set to true, Output from activity is considered as secure and will not be logged to monitoring." @@ -2854,7 +2858,7 @@ ] }, "FilterActivityTypeProperties": { - "description": "Fitler activity properties.", + "description": "Filter activity properties.", "properties": { "items": { "description": "Input array on which filter should be applied.", From 0e79c73ea5859d7001612f8deb37fc779fe5eb35 Mon Sep 17 00:00:00 2001 From: dagald Date: Wed, 19 Sep 2018 13:38:28 -0700 Subject: [PATCH 09/39] update machine learning compute portion of the machine learning services swagger (#3889) * update machine learning compute portion of the machine learning services swagger * add systemUpdateCompute example * update examples * added long-running op update accordingly * remote wrong readOnly --- .../examples/createBasicAKSCompute.json | 2 +- .../examples/createBasicBatchAICompute.json | 2 +- .../createBasicDataFactoryCompute.json | 2 +- .../examples/getAKSCompute.json | 17 +-- .../examples/getBatchAICompute.json | 11 +- .../examples/getComputes.json | 37 +----- .../examples/systemUpdateCompute.json | 18 +++ .../examples/updateAKSCompute.json | 34 +----- .../examples/updateBatchAICompute.json | 22 +--- .../machineLearningServices.json | 111 ++++++++++++++++-- 10 files changed, 135 insertions(+), 121 deletions(-) create mode 100644 specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/systemUpdateCompute.json diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicAKSCompute.json index 1b668ec3065d..5a9b40a2241e 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicAKSCompute.json @@ -21,7 +21,7 @@ "location": "eastus", "properties": { "computeType": "AKS", - "provisioningState": "Succeeded" + "provisioningState": "Creating" } } }, diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicBatchAICompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicBatchAICompute.json index 7a1eec345fce..d3f2ffe05ffd 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicBatchAICompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicBatchAICompute.json @@ -21,7 +21,7 @@ "location": "eastus", "properties": { "computeType": "BatchAI", - "provisioningState": "Succeeded" + "provisioningState": "Creating" } } }, diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicDataFactoryCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicDataFactoryCompute.json index d23cfe7e2d97..5dcfa2b1644b 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicDataFactoryCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/createBasicDataFactoryCompute.json @@ -21,7 +21,7 @@ "location": "eastus", "properties": { "computeType": "DataFactory", - "provisioningState": "Succeeded" + "provisioningState": "Creating" } } }, diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getAKSCompute.json index f8aee325bc18..2b032361a3fd 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getAKSCompute.json @@ -17,22 +17,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2", "computeType": "AKS", - "provisioningState": "Succeeded", - "properties": { - "clusterFqdn": "compute123-56826-c9b00420020b2-6a3f9fd6.hcp.eastus.azmk8s.io", - "systemServices": [ - { - "systemServiceType": "ScoringFrontEnd", - "publicIpAddress": "1.1.1.1", - "version": "prod/1.20180420.3/v1.0.preview/c8aeb0be7644c2107855662bcc5471ab2b2d5521" - } - ], - "agentCount": 4, - "agentVmSize": "Standard_D3_v2", - "sslConfiguration": { - "status": "Disabled" - } - } + "provisioningState": "Succeeded" } } } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getBatchAICompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getBatchAICompute.json index c3da36c97832..5e5d75a75a47 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getBatchAICompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getBatchAICompute.json @@ -17,16 +17,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.BatchAI/clusters/compute123-ccb488844dcc2", "computeType": "BatchAI", - "provisioningState": "Succeeded", - "properties": { - "vmSize": "STANDARD_NC6", - "vmPriority": "dedicated", - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "autoScaleEnabled": false - } - } + "provisioningState": "Succeeded" } } } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getComputes.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getComputes.json index efa83159b759..899e990ea9ef 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getComputes.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/getComputes.json @@ -18,22 +18,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2", "computeType": "AKS", - "provisioningState": "Succeeded", - "properties": { - "clusterFqdn": "compute123-56826-c9b00420020b2-6a3f9fd6.hcp.eastus.azmk8s.io", - "systemServices": [ - { - "systemServiceType": "ScoringFrontEnd", - "publicIpAddress": "1.1.1.1", - "version": "prod/1.20180420.3/v1.0.preview/c8aeb0be7644c2107855662bcc5471ab2b2d5521" - } - ], - "agentCount": 4, - "agentVmSize": "Standard_D3_v2", - "sslConfiguration": { - "status": "Disabled" - } - } + "provisioningState": "Succeeded" } }, { @@ -45,25 +30,11 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute1234-56826-c9b00420020b2", "computeType": "AKS", - "provisioningState": "Succeeded", - "properties": { - "clusterFqdn": "compute123-56826-c9b00420020b2-6a3f9fd6.hcp.eastus.azmk8s.io", - "systemServices": [ - { - "systemServiceType": "ScoringFrontEnd", - "publicIpAddress": "1.1.1.1", - "version": "prod/1.20180420.3/v1.0.preview/c8aeb0be7644c2107855662bcc5471ab2b2d5521" - } - ], - "agentCount": 4, - "agentVmSize": "Standard_D3_v2", - "sslConfiguration": { - "status": "Disabled" - } - } + "provisioningState": "Succeeded" } } - ] + ], + "nextLink": "nextLink" } } } diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/systemUpdateCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/systemUpdateCompute.json new file mode 100644 index 000000000000..e0b596696809 --- /dev/null +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/systemUpdateCompute.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "testrg123", + "workspaceName": "workspaces123", + "computeName": "compute123", + "api-version": "2018-03-01-preview" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/...pathToOperationStatus...", + "Location": "https://management.azure.com/subscriptions/...pathToOperationResult..." + } + } + } +} \ No newline at end of file diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateAKSCompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateAKSCompute.json index 0009bddaa08c..77a00340ab83 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateAKSCompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateAKSCompute.json @@ -29,22 +29,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2", "computeType": "AKS", - "provisioningState": "Succeeded", - "properties": { - "clusterFqdn": "compute123-56826-c9b00420020b2-6a3f9fd6.hcp.eastus.azmk8s.io", - "systemServices": [ - { - "systemServiceType": "ScoringFrontEnd", - "publicIpAddress": "1.1.1.1", - "version": "prod/1.20180420.3/v1.0.preview/c8aeb0be7644c2107855662bcc5471ab2b2d5521" - } - ], - "agentCount": 4, - "agentVmSize": "Standard_D3_v2", - "sslConfiguration": { - "status": "Disabled" - } - } + "provisioningState": "Updating" } } }, @@ -58,22 +43,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/Microsoft.ContainerService/managedClusters/compute123-56826-c9b00420020b2", "computeType": "AKS", - "provisioningState": "Updating", - "properties": { - "clusterFqdn": "compute123-56826-c9b00420020b2-6a3f9fd6.hcp.eastus.azmk8s.io", - "systemServices": [ - { - "systemServiceType": "ScoringFrontEnd", - "publicIpAddress": "1.1.1.1", - "version": "prod/1.20180420.3/v1.0.preview/c8aeb0be7644c2107855662bcc5471ab2b2d5521" - } - ], - "agentCount": 4, - "agentVmSize": "Standard_D3_v2", - "sslConfiguration": { - "status": "Disabled" - } - } + "provisioningState": "Updating" } }, "headers": { diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateBatchAICompute.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateBatchAICompute.json index 48e76ab7ced7..a81692e3d392 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateBatchAICompute.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/examples/updateBatchAICompute.json @@ -35,16 +35,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.BatchAI/clusters/compute123-ccb488844dcc2", "computeType": "BatchAI", - "provisioningState": "Succeeded", - "properties": { - "vmSize": "STANDARD_NC6", - "vmPriority": "dedicated", - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "autoScaleEnabled": false - } - } + "provisioningState": "Updating" } } }, @@ -58,16 +49,7 @@ "description": "some compute", "resourceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.BatchAI/clusters/compute123-ccb488844dcc2", "computeType": "BatchAI", - "provisioningState": "Updating", - "properties": { - "vmSize": "STANDARD_NC6", - "vmPriority": "dedicated", - "scaleSettings": { - "maxNodeCount": 4, - "minNodeCount": 4, - "autoScaleEnabled": false - } - } + "provisioningState": "Updating" } }, "headers": { diff --git a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json index 084b4f28b00c..6d9dcc5df093 100644 --- a/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json +++ b/specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2018-03-01-preview/machineLearningServices.json @@ -403,7 +403,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes": { "get": { "tags": [ "OperationalizationClusters", @@ -450,7 +450,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}": { "get": { "tags": [ "OperationalizationClusters", @@ -500,8 +500,8 @@ "MachineLearningComputes" ], "operationId": "MachineLearningCompute_CreateOrUpdate", - "x-ms-long-running-operation": true, "description": "Creates or updates compute. This call will overwrite a compute if it exists. This is a nonrecoverable operation. If your intent is to create a new compute, do a GET first to verify that it does not exist yet.", + "x-ms-long-running-operation": true, "x-ms-examples": { "Create a BatchAI Compute": { "$ref": "./examples/createBasicBatchAICompute.json" }, "Create AKS Compute": { "$ref": "./examples/createBasicAKSCompute.json" }, @@ -562,8 +562,8 @@ "MachineLearningComputes" ], "operationId": "MachineLearningCompute_Delete", - "x-ms-long-running-operation": true, "description": "Deletes specified Machine Learning compute.", + "x-ms-long-running-operation": true, "x-ms-examples": { "Delete Compute": { "$ref": "./examples/deleteCompute.json" } }, @@ -608,15 +608,68 @@ } } } + }, + "post": { + "tags": [ + "OperationalizationClusters", + "MachineLearningComputes" + ], + "operationId": "MachineLearningCompute_SystemUpdate", + "description": "System Update On Machine Learning compute.", + "x-ms-long-running-operation": true, + "x-ms-examples": { + "System Update Compute": { "$ref": "./examples/systemUpdateCompute.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "#/parameters/ComputeNameParameter" + }, + { + "$ref": "#/parameters/APIVersionParameter" + } + ], + "responses": { + "200": { + "description": "Compute System updated." + }, + "202": { + "description": "Compute System Update initiated.", + "headers": { + "Azure-AsyncOperation": { + "description": "URI to poll for asynchronous operation status.", + "type": "string" + }, + "Location": { + "description": "URI to poll for asynchronous operation result.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the request failed.", + "schema": { + "$ref": "#/definitions/MachineLearningServiceError" + } + } + } } }, - "/subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys": { "post": { "tags": [ "OperationalizationClusters", "MachineLearningComputes" ], - "operationId": "MachineLearningCompute_GetKeys", + "operationId": "MachineLearningCompute_ListKeys", "description": "Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).", "x-ms-examples": { "List AKS Compute Keys": { "$ref": "./examples/listKeysAKSCompute.json" }, @@ -1071,6 +1124,10 @@ "description": "The type of compute", "$ref": "#/definitions/ComputeType" }, + "computeLocation": { + "description": "Location for the underlying compute", + "type": "string" + }, "provisioningState": { "type": "string", "description": "The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.", @@ -1214,6 +1271,14 @@ "description": "Virtual Machine size", "type": "string" }, + "sshPort": { + "description": "Port open for ssh connections.", + "type": "integer" + }, + "address": { + "description": "Public IP address of the virtual machine.", + "type": "string" + }, "administratorAccount": { "description": "Admin credentials for virtual machine", "$ref": "#/definitions/VirtualMachineSshCredentials" @@ -1225,6 +1290,37 @@ ], "x-ms-discriminator-value": "VirtualMachine" }, + "HDInsight": { + "description": "A HDInsight compute.", + "allOf": [ + { + "$ref": "#/definitions/Compute" + }, + { + "type": "object", + "properties": { + "properties": { + "type": "object", + "properties": { + "sshPort": { + "description": "Port open for ssh connections on the master node of the cluster.", + "type": "integer" + }, + "address": { + "description": "Public IP address of the master node of the cluster.", + "type": "string" + }, + "administratorAccount": { + "description": "Admin credentials for master node of the cluster", + "$ref": "#/definitions/VirtualMachineSshCredentials" + } + } + } + } + } + ], + "x-ms-discriminator-value": "HDInsight" + }, "DataFactory": { "description": "A DataFactory compute.", "allOf": [ @@ -1404,7 +1500,8 @@ "AKS", "BatchAI", "DataFactory", - "VirtualMachine" + "VirtualMachine", + "HDInsight" ], "x-ms-enum": { "name": "ComputeType", From 874b0867c26eda97e281fe8a267467799282b02b Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 19 Sep 2018 14:33:15 -0700 Subject: [PATCH 10/39] Add azure-sdk-for-js to compute/resource-manager/readme.md (#3937) * Add azure-sdk-for-js to compute/resource-manager/readme.md * Fix api-version of disk.json folder in compute/resource-manager/readme.md * Revert disk api-version folder change --- specification/compute/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 4d1993562087..1639d9876bd3 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -445,6 +445,7 @@ swagger-to-sdk: after_scripts: - python ./scripts/multiapi_init_gen.py azure-mgmt-compute - repo: azure-sdk-for-java + - repo: azure-sdk-for-js - repo: azure-sdk-for-go - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby From 7c8e7d19b43a537d343beb21a4942e1031a6217e Mon Sep 17 00:00:00 2001 From: axayjo <42394396+axayjo@users.noreply.github.com> Date: Wed, 19 Sep 2018 15:16:41 -0700 Subject: [PATCH 11/39] More detail added to the descriptions. (#3956) * More detail added to the descriptions. Changes made to description strings. * Addressed review comments Addressed review comments on the updateable fields. * Added another updateable property description Added another updateable property description --- .../stable/2018-06-01/gallery.json | 154 +++++++++--------- 1 file changed, 77 insertions(+), 77 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json index 2ad463df365d..f9b854ef86a4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json @@ -40,7 +40,7 @@ "Galleries" ], "operationId": "Galleries_CreateOrUpdate", - "description": "Create or update a gallery.", + "description": "Create or update a Shared Image Gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -53,7 +53,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -65,7 +65,7 @@ "schema": { "$ref": "#/definitions/Gallery" }, - "description": "Parameters supplied to the create or update gallery operation." + "description": "Parameters supplied to the create or update Shared Image Gallery operation." } ], "responses": { @@ -106,7 +106,7 @@ "Galleries" ], "operationId": "Galleries_Get", - "description": "Retrieves information about a gallery.", + "description": "Retrieves information about a Shared Image Gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -119,7 +119,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -150,7 +150,7 @@ "Galleries" ], "operationId": "Galleries_Delete", - "description": "Delete a gallery.", + "description": "Delete a Shared Image Gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -163,7 +163,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery to be deleted." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -200,7 +200,7 @@ "GalleryImages" ], "operationId": "GalleryImages_CreateOrUpdate", - "description": "Create or update a gallery image.", + "description": "Create or update a gallery Image Definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -213,14 +213,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition is to be created." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -273,7 +273,7 @@ "GalleryImages" ], "operationId": "GalleryImages_Get", - "description": "Retrieves information about a gallery image.", + "description": "Retrieves information about a gallery Image Definition.", "parameters":[ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -286,14 +286,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery from which the Image Definitions are to be retrieved." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition to be retrieved." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -337,14 +337,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition is to be deleted." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition to be deleted." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -381,7 +381,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_CreateOrUpdate", - "description": "Create or update a gallery image version.", + "description": "Create or update a gallery Image Version.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -394,21 +394,21 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition resides." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition in which the Image Version is to be created." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -420,7 +420,7 @@ "schema": { "$ref": "#/definitions/GalleryImageVersion" }, - "description": "Parameters supplied to the create or update gallery image version operation." + "description": "Parameters supplied to the create or update gallery Image Version operation." } ], "responses": { @@ -451,7 +451,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Create or update a simple gallery image version.": { + "Create or update a simple gallery Image Version.": { "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersion.json" } } @@ -461,7 +461,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_Get", - "description": "Retrieves information about a gallery image version.", + "description": "Retrieves information about a gallery Image Version.", "parameters":[ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -474,21 +474,21 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition resides." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition in which the Image Version resides." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image version." + "description": "The name of the gallery Image Version to be retrieved." }, { "name": "$expand", @@ -523,10 +523,10 @@ } }, "x-ms-examples": { - "Get a gallery image version.": { + "Get a gallery Image Version.": { "$ref": "./examples/GetAGalleryImageVersion.json" }, - "Get a gallery image version with replication status.": { + "Get a gallery Image Version with replication status.": { "$ref": "./examples/GetAGalleryImageVersionWithReplicationStatus.json" } } @@ -536,7 +536,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_Delete", - "description": "Delete a gallery image version.", + "description": "Delete a gallery Image Version.", "parameters":[ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -549,21 +549,21 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition resides." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the gallery Image Definition in which the Image Version resides." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image version." + "description": "The name of the gallery Image Version to be deleted." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -588,7 +588,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete a gallery image version.": { + "Delete a gallery Image Version.": { "$ref": "./examples/DeleteAGalleryImageVersion.json" } } @@ -681,7 +681,7 @@ "GalleryImages" ], "operationId": "GalleryImages_ListByGallery", - "description": "List gallery images under a gallery.", + "description": "List gallery Image Definitions in a gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -694,7 +694,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery from which Image Definitions are to be listed." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -730,7 +730,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_ListByGalleryImage", - "description": "List gallery image versions under a gallery image.", + "description": "List gallery Image Versions in a gallery Image Definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -743,14 +743,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery." + "description": "The name of the Shared Image Gallery in which the Image Definition resides." }, { "name": "galleryImageName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery image." + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -771,7 +771,7 @@ } }, "x-ms-examples": { - "List gallery image versions in a gallery image.": { + "List gallery Image Versions in a gallery Image Definition.": { "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" } }, @@ -794,13 +794,13 @@ "$ref": "#/definitions/Resource" } ], - "description": "Specifies information about the gallery that you want to create or update." + "description": "Specifies information about the Shared Image Gallery that you want to create or update." }, "GalleryProperties": { "properties": { "description": { "type": "string", - "description": "The description of this gallery resource." + "description": "The description of this Shared Image Gallery resource. This property is updateable." }, "identifier": { "$ref": "#/definitions/GalleryIdentifier" @@ -820,14 +820,14 @@ ] } }, - "description": "Describes the properties of a gallery." + "description": "Describes the properties of a Shared Image Gallery." }, "GalleryIdentifier": { "properties": { "uniqueName": { "readOnly": true, "type": "string", - "description": "The unique name of the gallery" + "description": "The unique name of the Shared Image Gallery. This name is generated automatically by Azure." } }, "description": "Describes the gallery unique name." @@ -844,17 +844,17 @@ "$ref": "#/definitions/Resource" } ], - "description": "Specifies information about the gallery image that you want to create or update." + "description": "Specifies information about the gallery Image Definition that you want to create or update." }, "GalleryImageProperties": { "properties": { "description": { "type": "string", - "description": "The description of this gallery image resource." + "description": "The description of this gallery Image Definition resource. This property is updateable." }, "eula": { "type": "string", - "description": "The Eula agreement for the gallery image." + "description": "The Eula agreement for the gallery Image Definition." }, "privacyStatementUri": { "type": "string", @@ -866,7 +866,7 @@ }, "osType": { "type": "string", - "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux**", + "description": "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**", "enum": [ "Windows", "Linux" @@ -878,7 +878,7 @@ }, "osState": { "type": "string", - "description": "The OS State.", + "description": "The allowed values for OS State are 'Generalized'.", "enum": [ "Generalized", "Specialized" @@ -891,7 +891,7 @@ "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life of this gallery image." + "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updateable." }, "identifier": { "$ref": "#/definitions/GalleryImageIdentifier" @@ -908,7 +908,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "title": "The current state of the gallery image.", + "title": "The current state of the gallery Image Definition.", "description": "The provisioning state, which only appears in the response.", "enum": [ "Creating", @@ -925,21 +925,21 @@ "osState", "identifier" ], - "description": "Describes the properties of a gallery image." + "description": "Describes the properties of a gallery Image Definition." }, "GalleryImageIdentifier": { "properties":{ "publisher": { "type": "string", - "description": "The gallery image publisher name." + "description": "The name of the gallery Image Definition publisher." }, "offer": { "type": "string", - "description": "The gallery image offer name." + "description": "The name of the gallery Image Definition offer." }, "sku": { "type": "string", - "description": "The gallery image sku name." + "description": "The name of the gallery Image Definition SKU." } }, "required": [ @@ -947,7 +947,7 @@ "offer", "sku" ], - "description": "This is the gallery image identifier." + "description": "This is the gallery Image Definition identifier." }, "RecommendedMachineConfiguration": { "properties": { @@ -958,7 +958,7 @@ "$ref": "#/definitions/ResourceRange" } }, - "description": "Describes the recommended machine configuration." + "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updateable." }, "ResourceRange": { "properties": { @@ -1002,7 +1002,7 @@ "description": "The product ID." } }, - "description": "Describes the gallery image purchase plan. This is used by marketplace images." + "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." }, "GalleryImageVersion": { "properties": { @@ -1016,7 +1016,7 @@ "$ref": "#/definitions/Resource" } ], - "description": "Specifies information about the gallery image version that you want to create or update." + "description": "Specifies information about the gallery Image Version that you want to create or update." }, "GalleryImageVersionProperties": { "properties":{ @@ -1026,7 +1026,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "title": "The current state of the gallery image version.", + "title": "The current state of the gallery Image Version.", "description": "The provisioning state, which only appears in the response.", "enum": [ "Creating", @@ -1049,7 +1049,7 @@ "required": [ "publishingProfile" ], - "description": "Describes the properties of a gallery image version." + "description": "Describes the properties of a gallery Image Version." }, "GalleryArtifactPublishingProfileBase": { "properties": { @@ -1058,7 +1058,7 @@ "items": { "$ref": "#/definitions/TargetRegion" }, - "description": "The target regions where the artifact is going to be published." + "description": "The target regions where the Image Version is going to be replicated to. This property is updateable." }, "source": { "$ref": "#/definitions/GalleryArtifactSource" @@ -1078,7 +1078,7 @@ "regionalReplicaCount": { "type": "integer", "format": "int32", - "description": "This is the number of source blob copies in this specific region." + "description": "The number of replicas of the Image Version to be created per region. This property is updateable." } }, "description": "Describes the target region information." @@ -1092,7 +1092,7 @@ "required": [ "managedImage" ], - "description": "The source of the gallery artifact." + "description": "The source image from which the Image Version is going to be created." }, "ManagedArtifact": { "properties": { @@ -1111,22 +1111,22 @@ "replicaCount": { "type": "integer", "format": "int32", - "description": "This is the number of source blob copies in a region." + "description": "The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updateable." }, "excludeFromLatest": { "type": "boolean", - "description": "The flag means that if it is set to true, people deploying VMs with 'latest' as version will not use this version." + "description": "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version." }, "publishedDate": { "readOnly": true, "type": "string", "format": "date-time", - "description": "The time when the gallery image version is published." + "description": "The timestamp for when the gallery Image Version is published." }, "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life date of the gallery image version." + "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updateable." } }, "allOf": [ @@ -1134,7 +1134,7 @@ "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" } ], - "description": "The publishing profile of a gallery image version." + "description": "The publishing profile of a gallery Image Version." }, "GalleryImageVersionStorageProfile": { "properties": { @@ -1151,7 +1151,7 @@ "description": "A list of data disk images." } }, - "description": "This is the storage profile of a gallery image version." + "description": "This is the storage profile of a gallery Image Version." }, "GalleryOSDiskImage": { "allOf": [ @@ -1167,7 +1167,7 @@ "readOnly": true, "type": "integer", "format": "int32", - "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + "description": "This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine." } }, "allOf": [ @@ -1183,7 +1183,7 @@ "readOnly": true, "type": "integer", "format": "int32", - "description": "It indicates the size of the VHD to create." + "description": "This property indicates the size of the VHD to be created." }, "hostCaching":{ "readOnly": true, @@ -1207,7 +1207,7 @@ "aggregatedState": { "readOnly": true, "type": "string", - "description": "This is the aggregated replication status based on the regional replication status.", + "description": "This is the aggregated replication status based on all the regional replication status flags.", "enum": [ "Unknown", "InProgress", @@ -1228,14 +1228,14 @@ "description": "This is a summary of replication status for each region." } }, - "description": "This is the replication status of the gallery image version." + "description": "This is the replication status of the gallery Image Version." }, "RegionalReplicationStatus": { "properties": { "region": { "readOnly": true, "type": "string", - "description": "The region where the gallery image version is published to." + "description": "The region to which the gallery Image Version is being replicated to." }, "state": { "readOnly": true, @@ -1292,11 +1292,11 @@ "items": { "$ref": "#/definitions/GalleryImage" }, - "description": "A list of gallery images." + "description": "A list of Shared Image Gallery images." }, "nextLink": { "type": "string", - "description": "The uri to fetch the next page of gallery images. Call ListNext() with this to fetch the next page of gallery images." + "description": "The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions." } }, "required": [ @@ -1311,11 +1311,11 @@ "items": { "$ref": "#/definitions/GalleryImageVersion" }, - "description": "A list of gallery image versions." + "description": "A list of gallery Image Versions." }, "nextLink": { "type": "string", - "description": "The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image versions." + "description": "The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch the next page of gallery Image Versions." } }, "required": [ From 93986e5aeb0e3539e04b4af289a4157ba9f53e35 Mon Sep 17 00:00:00 2001 From: Jianping Zeng Date: Wed, 19 Sep 2018 15:49:06 -0700 Subject: [PATCH 12/39] Fix typo, the provider should be Microsoft.Authorization (#3960) --- .../Microsoft.Authorization/stable/2016-09-01/locks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json index 32824e63f09a..b956c255c74a 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json @@ -34,7 +34,7 @@ } }, "paths": { - "/providers/Microsoft.Features/operations": { + "/providers/Microsoft.Authorization/operations": { "get": { "tags": [ "Operations" From 1a88657d9de7d02cf439fa84dd26d9a0462b370f Mon Sep 17 00:00:00 2001 From: hosunmsft <38794040+hosunmsft@users.noreply.github.com> Date: Wed, 19 Sep 2018 17:02:46 -0700 Subject: [PATCH 13/39] Add hierarchyQueueNode into JobInformation(Basic) (#3942) * Add degreeOfParallelismPercent to JobInformationBasic * Add degreeOfParallelismPercent to JobInformationBasic * add hierarchyQueueNode to JobInformation(Basic) * Tiny change to test github merge --- .../preview/2015-11-01-preview/job.json | 5 +++++ .../preview/2016-03-20-preview/job.json | 5 +++++ .../preview/2017-09-01-preview/job.json | 5 +++++ .../Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json index 90b44489aee0..62c0782c97dd 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2015-11-01-preview/job.json @@ -962,6 +962,11 @@ }, "description": "Gets the job state audit records, indicating when various operations have been performed on this job." }, + "hierarchyQueueNode": { + "type": "string", + "readOnly": true, + "description": "the name of hierarchy queue node this job is assigned to, null if job has not been assigned yet or the account doesn't have hierarchy queue." + }, "properties": { "$ref": "#/definitions/JobProperties", "description": "Gets or sets the job specific properties." diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json index 763c6c704d8c..453b306eb2f5 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2016-03-20-preview/job.json @@ -1018,6 +1018,11 @@ }, "description": "the job state audit records, indicating when various operations have been performed on this job." }, + "hierarchyQueueNode": { + "type": "string", + "readOnly": true, + "description": "the name of hierarchy queue node this job is assigned to, null if job has not been assigned yet or the account doesn't have hierarchy queue." + }, "properties": { "$ref": "#/definitions/JobProperties", "description": "the job specific properties." diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json index 124f6d86ad52..c40b8f92d7c5 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/preview/2017-09-01-preview/job.json @@ -778,6 +778,11 @@ "type": "string" }, "description": "The key-value pairs used to add additional metadata to the job information. (Only for use internally with Scope job type.)" + }, + "hierarchyQueueNode": { + "type": "string", + "readOnly": true, + "description": "the name of hierarchy queue node this job is assigned to, Null if job has not been assigned yet or the account doesn't have hierarchy queue." } }, "description": "The common Data Lake Analytics job information properties." diff --git a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json index 42d8fdbaa2a1..083bd538bbc6 100644 --- a/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json +++ b/specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/stable/2016-11-01/job.json @@ -1574,6 +1574,11 @@ "related": { "$ref": "#/definitions/JobRelationshipProperties", "description": "the recurring job relationship information properties." + }, + "hierarchyQueueNode": { + "type": "string", + "readOnly": true, + "description": "the name of hierarchy queue node this job is assigned to, null if job has not been assigned yet or the account doesn't have hierarchy queue." } }, "required": [ From 3b01760158b49ac0aa5e0f53535ff52177eba47a Mon Sep 17 00:00:00 2001 From: Jianping Zeng Date: Wed, 19 Sep 2018 21:23:43 -0700 Subject: [PATCH 14/39] Fix ARMViolations for Microsoft.Solutions (#3914) --- .../managedapplications.json | 72 +++++++++++++++++-- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json b/specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json index c276b1b11e37..e59e7750943a 100644 --- a/specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json +++ b/specification/resources/resource-manager/Microsoft.Solutions/preview/2016-09-01-preview/managedapplications.json @@ -34,6 +34,31 @@ } }, "paths": { + "/providers/Microsoft.Solutions/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "ListOperations", + "description": "Lists all of the available Microsoft.Solutions REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/appliances/{applianceName}": { "get": { "tags": [ @@ -889,10 +914,6 @@ "pattern": "^[-\\w\\._,\\(\\)]+$" } }, - "required": [ - "properties", - "kind" - ], "allOf": [ { "$ref": "#/definitions/GenericResource" @@ -1346,6 +1367,49 @@ "type": "string" } } + }, + "Operation": { + "description": "Microsoft.Solutions operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Solutions", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Solutions operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Solutions operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } } }, "parameters": { From b3d4480977b810eadf8dab9e20b025531057edc8 Mon Sep 17 00:00:00 2001 From: liatbezalel <41256041+liatbezalel@users.noreply.github.com> Date: Thu, 20 Sep 2018 17:28:46 +0300 Subject: [PATCH 15/39] =?UTF-8?q?Kusto:=20Added=20more=20features=20such?= =?UTF-8?q?=20as:=20database=20operations,=20check=20cluste=E2=80=A6=20(#3?= =?UTF-8?q?895)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Kusto: Added more features such as: database operations, check cluster/database name availability, cluster - start/stop, event hub data connection, list skus, list resource skus * added missed refrence + minor fixes * fixed enum definition * renamed example * Added renamed example * Fixed tracked resource validation errors * fixed model validation errors * Fixed missing comma * model validation error fix * Revert "model validation error fix" This reverts commit c04ad73d1a783bbfe7d5a1e4a4c3658126b6bfcd. * fixed exmaple * PR changes * Moved files to "preview" folder * fixed broken refrences * readme file syntax fixes * fixed ListSkusByResource operation id * renamed query uri to uri and removed tags definition from databases (as it is not supported) * change "capacity" value in examples from null to 2 --- .../2017-09-07-privatepreview/kusto.json | 894 ------- .../KustoClustersCheckNameAvailability.json | 20 + .../examples/KustoClustersCreateOrUpdate.json | 36 + .../examples/KustoClustersDelete.json | 0 .../examples/KustoClustersGet.json | 5 + .../examples/KustoClustersList.json | 10 + .../KustoClustersListByResourceGroup.json | 10 + .../KustoClustersListResourceSkus.json | 68 + .../examples/KustoClustersListSkus.json | 35 + .../examples/KustoClustersStart.json | 12 + .../examples/KustoClustersStop.json | 12 + .../examples/KustoClustersUpdate.json | 5 + .../KustoDataConnectionValidation.json | 29 + .../examples/KustoDatabaseAddPrincipals.json | 69 + .../examples/KustoDatabaseListPrincipals.json | 41 + .../KustoDatabaseRemovePrincipals.json | 69 + .../KustoDatabasesCheckNameAvailability.json | 21 + .../KustoDatabasesCreateOrUpdate.json | 0 .../examples/KustoDatabasesDelete.json | 0 .../examples/KustoDatabasesGet.json | 0 .../examples/KustoDatabasesListByCluster.json | 0 .../examples/KustoDatabasesUpdate.json | 0 ...ustoEventHubConnectionsCreateOrUpdate.json | 33 + .../KustoEventHubConnectionsDelete.json | 15 + .../examples/KustoEventHubConnectionsGet.json | 24 + ...ustoEventHubConnectionsListByDatabase.json | 37 + .../KustoEventHubConnectionsUpdate.json | 33 + .../examples/KustoOperationsList.json | 2 +- .../2017-09-07-privatepreview/kusto.json | 2116 +++++++++++++++++ .../KustoClustersCheckNameAvailability.json | 20 + .../examples/KustoClustersCreateOrUpdate.json | 36 + .../examples/KustoClustersDelete.json | 13 + .../examples/KustoClustersGet.json | 27 + .../examples/KustoClustersList.json | 44 + .../KustoClustersListByResourceGroup.json | 45 + .../KustoClustersListResourceSkus.json | 68 + .../examples/KustoClustersListSkus.json | 35 + .../examples/KustoClustersStart.json | 12 + .../examples/KustoClustersStop.json | 12 + .../examples/KustoClustersUpdate.json} | 9 +- .../KustoDataConnectionValidation.json | 29 + .../examples/KustoDatabaseAddPrincipals.json | 69 + .../examples/KustoDatabaseListPrincipals.json | 41 + .../KustoDatabaseRemovePrincipals.json | 69 + .../KustoDatabasesCheckNameAvailability.json | 21 + .../KustoDatabasesCreateOrUpdate.json | 32 + .../examples/KustoDatabasesDelete.json | 14 + .../examples/KustoDatabasesGet.json | 24 + .../examples/KustoDatabasesListByCluster.json | 38 + .../examples/KustoDatabasesUpdate.json | 32 + ...ustoEventHubConnectionsCreateOrUpdate.json | 33 + .../KustoEventHubConnectionsDelete.json | 15 + .../examples/KustoEventHubConnectionsGet.json | 24 + ...ustoEventHubConnectionsListByDatabase.json | 37 + .../KustoEventHubConnectionsUpdate.json | 33 + .../examples/KustoOperationsList.json | 22 + .../preview/2018-09-07-preview/kusto.json | 2116 +++++++++++++++++ .../azure-kusto/resource-manager/readme.md | 27 +- 58 files changed, 5692 insertions(+), 901 deletions(-) delete mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoClustersDelete.json (100%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoClustersGet.json (86%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoClustersList.json (82%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json (82%) create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListResourceSkus.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListSkus.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStart.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStop.json rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoClustersUpdate.json (87%) create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDataConnectionValidation.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseAddPrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseListPrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseRemovePrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json (100%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoDatabasesDelete.json (100%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoDatabasesGet.json (100%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json (100%) rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json (100%) create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsDelete.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{ => preview}/2017-09-07-privatepreview/examples/KustoOperationsList.json (89%) create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersDelete.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListResourceSkus.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListSkus.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStart.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStop.json rename specification/azure-kusto/resource-manager/Microsoft.Kusto/{2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json => preview/2018-09-07-preview/examples/KustoClustersUpdate.json} (82%) create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDataConnectionValidation.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseAddPrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseListPrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseRemovePrincipals.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesDelete.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsDelete.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoOperationsList.json create mode 100644 specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/kusto.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json deleted file mode 100644 index 0bd1e4ed2a63..000000000000 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/kusto.json +++ /dev/null @@ -1,894 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "KustoManagementClient", - "version": "2017-09-07-privatepreview" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Get", - "x-ms-examples": { - "KustoClustersGet": { - "$ref": "./examples/KustoClustersGet.json" - } - }, - "description": "Gets a Kusto cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The Kusto cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "put": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_CreateOrUpdate", - "x-ms-examples": { - "KustoClustersCreateOrUpdate": { - "$ref": "./examples/KustoClustersCreateOrUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Create or update a Kusto cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Cluster" - }, - "description": "The Kusto cluster parameters supplied to the CreateOrUpdate operation." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully updated the Cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "201": { - "description": "Successfully created the cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "patch": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Update", - "x-ms-examples": { - "KustoClustersUpdate": { - "$ref": "./examples/KustoClustersUpdate.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Update a Kusto cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ClusterUpdate" - }, - "description": "The Kusto cluster parameters supplied to the Update operation." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully updated the Cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "201": { - "description": "Successfully updated the cluster.", - "schema": { - "$ref": "#/definitions/Cluster" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "delete": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_Delete", - "x-ms-examples": { - "KustoClustersDelete": { - "$ref": "./examples/KustoClustersDelete.json" - } - }, - "x-ms-long-running-operation": true, - "description": "Deletes a Kusto cluster.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK -- cluster deleted successfully." - }, - "202": { - "description": "Accepted the delete cluster request." - }, - "204": { - "description": "NoContent -- cluster does not exist in the subscription." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_ListByResourceGroup", - "x-ms-examples": { - "KustoClustersListByResourceGroup": { - "$ref": "./examples/KustoClustersListByResourceGroup.json" - } - }, - "description": "Lists all Kusto clusters within a resource group.", - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters": { - "get": { - "tags": [ - "Clusters" - ], - "operationId": "Clusters_List", - "x-ms-examples": { - "KustoClustersList": { - "$ref": "./examples/KustoClustersList.json" - } - }, - "description": "Lists all Kusto clusters within a subscription.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "", - "schema": { - "$ref": "#/definitions/ClusterListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases": { - "get": { - "tags": [ - "Databases" - ], - "description": "Returns the list of databases of the given Kusto cluster.", - "operationId": "Databases_ListByCluster", - "x-ms-examples": { - "KustoDatabasesListByCluster": { - "$ref": "./examples/KustoDatabasesListByCluster.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of databases.", - "schema": { - "$ref": "#/definitions/DatabaseListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}": { - "get": { - "tags": [ - "Databases" - ], - "description": "Returns a database.", - "operationId": "Databases_Get", - "x-ms-examples": { - "KustoDatabasesGet": { - "$ref": "./examples/KustoDatabasesGet.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the specified database.", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - }, - "put": { - "tags": [ - "Databases" - ], - "description": "Creates or updates a database.", - "operationId": "Databases_CreateOrUpdate", - "x-ms-examples": { - "KustoDatabasesCreateOrUpdate": { - "$ref": "./examples/KustoDatabasesCreateOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The database parameters supplied to the CreateOrUpdate operation." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully updated the database.", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Successfully created the database.", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted the create database request." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Databases" - ], - "description": "Updates a database.", - "operationId": "Databases_Update", - "x-ms-examples": { - "KustoDatabasesUpdate": { - "$ref": "./examples/KustoDatabasesUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseUpdate" - }, - "description": "The database parameters supplied to the Update operation." - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully updated the database.", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Successfully updated the database.", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted the update database request." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Databases" - ], - "description": "Deletes the database with the given name.", - "operationId": "Databases_Delete", - "x-ms-examples": { - "KustoDatabasesDelete": { - "$ref": "./examples/KustoDatabasesDelete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ClusterNameParameter" - }, - { - "$ref": "#/parameters/DatabaseNameParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "Successfully deleted the database." - }, - "202": { - "description": "Accepted" - }, - "204": { - "description": "The specified database does not exist." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-long-running-operation": true - } - }, - "/providers/Microsoft.Kusto/operations": { - "get": { - "tags": [ - "Operations" - ], - "operationId": "Operations_List", - "x-ms-examples": { - "KustoOperationsList": { - "$ref": "./examples/KustoOperationsList.json" - } - }, - "description": "Lists available operations for the Microsoft.Kusto provider", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "The operation was successful. The response contains the list of available operations.", - "schema": { - "$ref": "#/definitions/OperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "ClusterProperties": { - "properties": { - "provisioningState": { - "type": "string", - "readOnly": true, - "description": "The provisioned state of the resource", - "enum": [ - "Running", - "Creating", - "Deleting", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - } - }, - "description": "Class representing the Kusto cluster properties." - }, - "DatabaseProperties": { - "properties": { - "provisioningState": { - "type": "string", - "readOnly": true, - "description": "The provisioned state of the resource", - "enum": [ - "Running", - "Creating", - "Deleting", - "Succeeded", - "Failed" - ], - "x-ms-enum": { - "name": "ProvisioningState", - "modelAsString": true - } - }, - "softDeletePeriodInDays": { - "type": "integer", - "description": "The number of days data should be kept before it stops being accessible to queries." - } - }, - "required": [ - "softDeletePeriodInDays" - ], - "description": "Class representing the Kusto database properties." - }, - "Cluster": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "etag": { - "readOnly": true, - "type": "string", - "description": "An etag of the resource created" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Class representing a Kusto cluster." - }, - "ClusterUpdate": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ClusterProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ], - "description": "Class representing an update to a Kusto cluster." - }, - "Database": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "etag": { - "readOnly": true, - "type": "string", - "description": "An etag of the resource created" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DatabaseProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" - } - ], - "description": "Class representing a Kusto database." - }, - "DatabaseUpdate": { - "properties": { - "location": { - "type": "string", - "description": "Resource location" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/DatabaseProperties" - } - }, - "allOf": [ - { - "$ref": "../../../../common-types/resource-management/v1/types.json#/definitions/Resource" - } - ], - "description": "Class representing an update to a Kusto database." - }, - "ClusterListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Cluster" - }, - "description": "The list of Kusto clusters." - } - }, - "description": "The list Kusto clusters operation response." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of Kusto databases." - } - }, - "description": "The list Kusto databases operation response." - }, - "CloudError": { - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/CloudErrorBody" - } - }, - "description": "An error response from Kusto." - }, - "CloudErrorBody": { - "x-ms-external": true, - "properties": { - "code": { - "type": "string", - "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." - }, - "message": { - "type": "string", - "description": "A message describing the error, intended to be suitable for displaying in a user interface." - }, - "target": { - "type": "string", - "description": "The target of the particular error. For example, the name of the property in error." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CloudErrorBody" - }, - "description": "A list of additional details about the error." - } - }, - "description": "An error response from Kusto." - }, - "OperationListResult": { - "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "title": "The list of operations supported by the resource provider." - }, - "nextLink": { - "type": "string", - "title": "The URL to get the next set of operation list results if there are any." - } - } - }, - "Operation": { - "title": "A REST API operation", - "type": "object", - "properties": { - "name": { - "title": "The operation name.", - "description": "This is of the format {provider}/{resource}/{operation}", - "type": "string" - }, - "display": { - "title": "The object that describes the operation.", - "properties": { - "provider": { - "title": "Friendly name of the resource provider.", - "type": "string" - }, - "operation": { - "title": "The operation type.", - "description": "For example: read, write, delete.", - "type": "string" - }, - "resource": { - "title": "The resource type on which the operation is performed.", - "type": "string" - }, - "description": { - "title": "The friendly name of the operation", - "type": "string" - } - } - }, - "origin": { - "title": "The intended executor of the operation.", - "type": "string" - }, - "properties": { - "title": "Properties of the operation.", - "type": "object" - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ClusterNameParameter": { - "name": "clusterName", - "in": "path", - "description": "The name of the Kusto cluster.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "description": "The name of the resource group containing the Kusto cluster.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "DatabaseNameParameter": { - "name": "databaseName", - "in": "path", - "description": "The name of the database in the Kusto cluster.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - } -} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json new file mode 100644 index 000000000000..1a4f73e1b30b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2017-09-07-privatepreview", + "location": "wus", + "clusterName": { + "name": "kuskusprod", + "type": "Microsoft.Kusto/Clusters" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskusprod", + "nameAvailable": false, + "message": "Name 'kuskusprod' is already taken. Please specify a different name" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json new file mode 100644 index 000000000000..a2243ef5f47b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2017-09-07-privatepreview", + "parameters": { + "location": "westus", + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + }, + "201": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersDelete.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersDelete.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersDelete.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json similarity index 86% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersGet.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json index 0d4827a551e9..bea1df57b5fe 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersGet.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersGet.json @@ -15,6 +15,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } } } diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json similarity index 82% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersList.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json index 2cfa287edaac..514bb1a48263 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersList.json @@ -15,6 +15,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } }, { @@ -25,6 +30,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } } ] diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json similarity index 82% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json index 417004d0553e..5b7e724499be 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListByResourceGroup.json @@ -16,6 +16,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } }, { @@ -26,6 +31,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } } ] diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListResourceSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListResourceSkus.json new file mode 100644 index 000000000000..032767145373 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListResourceSkus.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "clusters", + "sku": { + "name": "KC8", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KC16", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KS8", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KS16", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListSkus.json new file mode 100644 index 000000000000..2e6c91211183 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersListSkus.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "D13_v2", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "D14_v2", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "L8", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "L16", + "tier": "Standard", + "capacity": 2 + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStart.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStart.json new file mode 100644 index 000000000000..87a617c8f016 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStop.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStop.json new file mode 100644 index 000000000000..87a617c8f016 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json similarity index 87% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersUpdate.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json index 101e322f90e6..ee9d0599e98f 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoClustersUpdate.json @@ -18,6 +18,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } } }, diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDataConnectionValidation.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDataConnectionValidation.json new file mode 100644 index 000000000000..75c26a6edf72 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDataConnectionValidation.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": + [ + { + "errorMessage": "event hub namespace does not exist" + }, + { + "errorMessage": "database does not exist" + } + ] + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseAddPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseAddPrincipals.json new file mode 100644 index 000000000000..351556ebe13f --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseAddPrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2017-09-07-privatepreview", + "databasePrincipalsToAdd": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseListPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseListPrincipals.json new file mode 100644 index 000000000000..5beb817e5850 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseListPrincipals.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseRemovePrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseRemovePrincipals.json new file mode 100644 index 000000000000..8eead0ee697a --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabaseRemovePrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2017-09-07-privatepreview", + "databasePrincipalsToRemove": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json new file mode 100644 index 000000000000..d243d526921f --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2017-09-07-privatepreview", + "resourceGroupName": "kustorptest", + "clusterName": "kustoProd", + "databaseName": { + "name": "kuskus", + "type": "Microsoft.Kusto/Clusters/Databases" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskus", + "nameAvailable": false, + "message": "Name 'kuskus' is already taken. Please specify a different name" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesCreateOrUpdate.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesDelete.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesDelete.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesDelete.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesGet.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesGet.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesListByCluster.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json similarity index 100% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoDatabasesUpdate.json diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json new file mode 100644 index 000000000000..9d219c2d704b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsDelete.json new file mode 100644 index 000000000000..ea0e482b9070 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview", + "eventHubConnectionName": "kustoeventhubconnection1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json new file mode 100644 index 000000000000..36996267c3b2 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview", + "eventHubConnectionName": "kustoeventhubconnection1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json new file mode 100644 index 000000000000..509259ada771 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsListByDatabase.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "name": "KustoClusterRPTest4/KustoDatabase9", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2", + "consumerGroup": "testConsumerGroup2" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json new file mode 100644 index 000000000000..924d17cdd895 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoEventHubConnectionsUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2017-09-07-privatepreview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoOperationsList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoOperationsList.json similarity index 89% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoOperationsList.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoOperationsList.json index daf102011299..a3dd8103fd1b 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoOperationsList.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/examples/KustoOperationsList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2017-09-07-privatepreview" + "api-version": "2015-04-08" }, "responses": { "200": { diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json new file mode 100644 index 000000000000..212d8602cb78 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json @@ -0,0 +1,2116 @@ +{ + "swagger": "2.0", + "info": { + "title": "KustoManagementClient", + "version": "2017-09-07-privatepreview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Get", + "x-ms-examples": { + "KustoClustersGet": { + "$ref": "./examples/KustoClustersGet.json" + } + }, + "description": "Gets a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Kusto cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CreateOrUpdate", + "x-ms-examples": { + "KustoClustersCreateOrUpdate": { + "$ref": "./examples/KustoClustersCreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Create or update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + }, + "description": "The Kusto cluster parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully created the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Update", + "x-ms-examples": { + "KustoClustersUpdate": { + "$ref": "./examples/KustoClustersUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterUpdate" + }, + "description": "The Kusto cluster parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully updated the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Delete", + "x-ms-examples": { + "KustoClustersDelete": { + "$ref": "./examples/KustoClustersDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- cluster deleted successfully." + }, + "202": { + "description": "Accepted the delete cluster request." + }, + "204": { + "description": "NoContent -- cluster does not exist in the subscription." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Stop", + "x-ms-examples": { + "KustoClustersStop": { + "$ref": "./examples/KustoClustersStop.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Stops a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Start", + "x-ms-examples": { + "KustoClustersStart": { + "$ref": "./examples/KustoClustersStart.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Starts a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListByResourceGroup", + "x-ms-examples": { + "KustoClustersListByResourceGroup": { + "$ref": "./examples/KustoClustersListByResourceGroup.json" + } + }, + "description": "Lists all Kusto clusters within a resource group.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_List", + "x-ms-examples": { + "KustoClustersList": { + "$ref": "./examples/KustoClustersList.json" + } + }, + "description": "Lists all Kusto clusters within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus": { + "get": { + "description": "Lists eligible SKUs for Kusto resource provider.", + "x-ms-examples": { + "KustoClustersListSkus": { + "$ref": "./examples/KustoClustersListSkus.json" + } + }, + "operationId": "Clusters_ListSkus", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/ListSkusResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CheckNameAvailability", + "x-ms-examples": { + "KustoClustersCheckNameAvailability": { + "$ref": "./examples/KustoClustersCheckNameAvailability.json" + } + }, + "description": "Checks that the cluster name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Azure location.", + "required": true, + "type": "string" + }, + { + "name": "clusterName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterCheckNameRequest" + }, + "description": "The name of the cluster." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CheckNameAvailability", + "x-ms-examples": { + "KustoDatabaseCheckNameAvailability": { + "$ref": "./examples/KustoDatabasesCheckNameAvailability.json" + } + }, + "description": "Checks that the database name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "databaseName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseCheckNameRequest" + }, + "description": "The name of the database." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListSkusByResource", + "x-ms-examples": { + "KustoClustersListResourceSkus": { + "$ref": "./examples/KustoClustersListResourceSkus.json" + } + }, + "description": "Returns the SKUs available for the provided resource.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/ListResourceSkusResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns the list of databases of the given Kusto cluster.", + "operationId": "Databases_ListByCluster", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoDatabasesListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of databases.", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns a database.", + "operationId": "Databases_Get", + "x-ms-examples": { + "KustoDatabasesGet": { + "$ref": "./examples/KustoDatabasesGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Databases" + ], + "description": "Creates or updates a database.", + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "KustoDatabasesCreateOrUpdate": { + "$ref": "./examples/KustoDatabasesCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The database parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully created the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the create database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Databases" + ], + "description": "Updates a database.", + "operationId": "Databases_Update", + "x-ms-examples": { + "KustoDatabasesUpdate": { + "$ref": "./examples/KustoDatabasesUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseUpdate" + }, + "description": "The database parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the update database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "description": "Deletes the database with the given name.", + "operationId": "Databases_Delete", + "x-ms-examples": { + "KustoDatabasesDelete": { + "$ref": "./examples/KustoDatabasesDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the database." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified database does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "description": "Returns a list of database principals of the given Kusto cluster and database.", + "operationId": "Databases_ListPrincipals", + "x-ms-examples": { + "KustoDatabaseListPrincipals": { + "$ref": "./examples/KustoDatabaseListPrincipals.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of database principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_AddPrincipals", + "x-ms-examples": { + "KustoDatabaseAddPrincipals": { + "$ref": "./examples/KustoDatabaseAddPrincipals.json" + } + }, + "description": "Add Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToAdd", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to add." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully added the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_RemovePrincipals", + "x-ms-examples": { + "KustoDatabaseRemovePrincipals": { + "$ref": "./examples/KustoDatabaseRemovePrincipals.json" + } + }, + "description": "Remove Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToRemove", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to remove." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully removed the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubconnections": { + "get": { + "tags": [ + "EventHubConnections" + ], + "description": "Returns the list of Event Hub connections of the given Kusto database.", + "operationId": "EventHubConnections_ListByDatabase", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoEventHubConnectionsListByDatabase.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of Event Hub connections.", + "schema": { + "$ref": "#/definitions/EventHubConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubConnectionValidation": { + "post": { + "tags": [ + "EventHubConnections" + ], + "operationId": "EventHubConnections_eventhubConnectionValidation", + "x-ms-examples": { + "KustoDataConnectionValidation": { + "$ref": "./examples/KustoDataConnectionValidation.json" + } + }, + "description": "Checks that the Event Hub data connection parameters are valid.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnectionValidation" + }, + "description": "The Event Hub connection parameters supplied to the CreateOrUpdate operation." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/EventHubConnectionValidationListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubconnections/{eventHubConnectionName}": { + "get": { + "tags": [ + "EventHubConnections" + ], + "description": "Returns an Event Hub connection.", + "operationId": "EventHubConnections_Get", + "x-ms-examples": { + "KustoEventHubConnectionsGet": { + "$ref": "./examples/KustoEventHubConnectionsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "EventHubConnections" + ], + "description": "Creates or updates a Event Hub connection.", + "operationId": "EventHubConnections_CreateOrUpdate", + "x-ms-examples": { + "KustoEventHubConnectionsCreateOrUpdate": { + "$ref": "./examples/KustoEventHubConnectionsCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnection" + }, + "description": "The Event Hub connection parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "201": { + "description": "Successfully created the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "202": { + "description": "Accepted the create Event Hub connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "EventHubConnections" + ], + "description": "Updates a Event Hub connection.", + "operationId": "EventHubConnections_Update", + "x-ms-examples": { + "KustoEventHubConnectionsUpdate": { + "$ref": "./examples/KustoEventHubConnectionsUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnectionUpdate" + }, + "description": "The Event Hub connection parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "201": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "202": { + "description": "Accepted the update Event Hub connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "EventHubConnections" + ], + "description": "Deletes the Event Hub connection with the given name.", + "operationId": "EventHubConnections_Delete", + "x-ms-examples": { + "KustoEventHubConnectionsDelete": { + "$ref": "./examples/KustoEventHubConnectionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the Event Hub connection." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified Event Hub connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Kusto/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "KustoOperationsList": { + "$ref": "./examples/KustoOperationsList.json" + } + }, + "description": "Lists available operations for the Microsoft.Kusto provider.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation was successful. The response contains the list of available operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ClusterProperties": { + "properties": { + "state": { + "type": "string", + "readOnly": true, + "description": "The state of the resource.", + "enum": [ + "Creating", + "Unavailable", + "Running", + "Deleting", + "Deleted", + "Stopping", + "Stopped", + "Starting" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "uri": { + "type": "string", + "readOnly": true, + "description": "The cluster URI." + }, + "dataIngestionUri": { + "type": "string", + "readOnly": true, + "description": "The cluster data ingestion URI." + }, + "trustedExternalTenants": { + "type": "array", + "items": { + "$ref": "#/definitions/TrustedExternalTenant" + }, + "description": "The cluster's external tenants." + } + }, + "description": "Class representing the Kusto cluster properties." + }, + "TrustedExternalTenant": { + "properties": { + "value": { + "type": "string", + "description": "GUID representing an external tenant." + } + } + }, + "AzureResourceSku": { + "properties": { + "resourceType": { + "type": "string", + "description": "Resource Namespace and Type." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU details." + }, + "capacity": { + "$ref": "#/definitions/AzureCapacity", + "description": "The SKU capacity." + } + } + }, + "AzureCapacity": { + "type": "object", + "required": [ + "minimum", + "maximum", + "default", + "scaleType" + ], + "properties": { + "scaleType": { + "description": "Scale type.", + "type": "string", + "enum": [ + "automatic", + "manual", + "none" + ], + "x-ms-enum": { + "name": "AzureScaleType", + "modelAsString": true + } + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + }, + "default": { + "description": "The default capacity that would be used.", + "type": "integer" + } + } + }, + "AzureSku": { + "type": "object", + "required": [ + "name", + "tier" + ], + "properties": { + "name": { + "description": "SKU name.", + "type": "string", + "enum": [ + "KC8", + "KC16", + "KS8", + "KS16", + "D13_v2", + "D14_v2", + "L8", + "L16" + ], + "x-ms-enum": { + "name": "AzureSkuName", + "modelAsString": true + } + }, + "capacity": { + "description": "SKU capacity.", + "type": "integer" + }, + "tier": { + "description": "SKU tier.", + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "AzureSkuTier", + "modelAsString": true + } + } + } + }, + "DatabaseStatistics": { + "type": "object", + "readOnly": true, + "properties": { + "size": { + "type": "number", + "description": "The database size - the total size of compressed data and index in bytes." + } + } + }, + "DatabaseProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "softDeletePeriodInDays": { + "type": "integer", + "description": "The number of days data should be kept before it stops being accessible to queries." + }, + "hotCachePeriodInDays": { + "type": "integer", + "description": "The number of days of data that should be kept in cache for fast queries." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "description": "The statistics of the database." + } + }, + "required": [ + "softDeletePeriodInDays" + ], + "description": "Class representing the Kusto database properties." + }, + "EventHubConnectionValidation": { + "properties": { + "eventhubConnectionName": { + "type": "string", + "description": "The name of the event hub connection." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "description": "Class representing an event hub connection validation." + }, + "EventHubConnectionProperties": { + "properties": { + "eventHubResourceId": { + "type": "string", + "description": "The resource ID of the event hub to be used to create a data connection." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "description": "The data format of the message. Optionally the data format can be added to each message.", + "type": "string", + "enum": [ + "MULTIJSON", + "JSON", + "CSV" + ], + "x-ms-enum": { + "name": "dataFormat", + "modelAsString": true + } + } + }, + "required": [ + "eventHubResourceId", + "consumerGroup" + ], + "description": "Class representing the Kusto event hub connection properties." + }, + "Cluster": { + "required": [ + "sku" + ], + "properties": { + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource created." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto cluster." + }, + "ClusterUpdate": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource updated." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto cluster." + }, + "Database": { + "properties": { + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource created." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto database." + }, + "DatabaseUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource updated." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto database." + }, + "DatabasePrincipal": { + "type": "object", + "required": [ + "name", + "role", + "type" + ], + "properties": { + "role": { + "description": "Database principal role.", + "type": "string", + "enum": [ + "Admin", + "Ingestor", + "Monitor", + "User", + "UnrestrictedViewers", + "Viewer" + ], + "x-ms-enum": { + "name": "DatabasePrincipalRole", + "modelAsString": true + } + }, + "name": { + "description": "Database principal name.", + "type": "string" + }, + "type": { + "description": "Database principal type.", + "type": "string", + "enum": [ + "App", + "Group", + "User" + ], + "x-ms-enum": { + "name": "DatabasePrincipalType", + "modelAsString": true + } + }, + "fqn": { + "description": "Database principal fully qualified name.", + "type": "string" + }, + "email": { + "description": "Database principal email if exists.", + "type": "string" + }, + "appId": { + "description": "Application id - relevant only for application principal type.", + "type": "string" + } + } + }, + "EventHubConnectionUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an update to event hub connection." + }, + "EventHubConnection": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an event hub connection." + }, + "EventHubConnectionValidationResult": { + "type": "object", + "properties": { + "errorMessage": { + "type": "string", + "description": "A message which indicates a problem in event hub connection validation." + } + } + }, + "ClusterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of Kusto clusters." + } + }, + "description": "The list Kusto clusters operation response." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of Kusto databases." + } + }, + "description": "The list Kusto databases operation response." + }, + "DatabasePrincipalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation response." + }, + "DatabasePrincipalListRequest": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation request." + }, + "EventHubConnectionValidationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventHubConnectionValidationResult" + }, + "description": "The list of Kusto event hub connection validation errors." + } + }, + "description": "The list Kusto event hub connection validation result." + }, + + "EventHubConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventHubConnection" + }, + "description": "The list of Kusto event hub connections." + } + }, + "description": "The list Kusto event hub connections operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from Kusto." + }, + "ClusterCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Cluster name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters." + } + }, + "required": [ + "name", + "type" + ] + }, + "DatabaseCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Database name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases." + } + }, + "required": [ + "name", + "type" + ] + }, + "CheckNameResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies a Boolean value that indicates if the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." + }, + "message": { + "type": "string", + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + } + } + }, + "ListResourceSkusResult": { + "description": "List of available SKUs for an existing Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureResourceSku" }, + "description": "The collection of available SKUs for an existing resource." + } + } + }, + "ListSkusResult": { + "description": "List of available SKUs for a new Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureSku" }, + "description": "The collection of available SKUs for new resources." + } + } + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for displaying in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from Kusto." + }, + "OperationListResult": { + "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "title": "The list of operations supported by the resource provider." + }, + "nextLink": { + "type": "string", + "title": "The URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "title": "A REST API operation", + "type": "object", + "properties": { + "name": { + "title": "The operation name.", + "description": "This is of the format {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "title": "The object that describes the operation.", + "properties": { + "provider": { + "title": "Friendly name of the resource provider.", + "type": "string" + }, + "operation": { + "title": "The operation type.", + "description": "For example: read, write, delete.", + "type": "string" + }, + "resource": { + "title": "The resource type on which the operation is performed.", + "type": "string" + }, + "description": { + "title": "The friendly name of the operation.", + "type": "string" + } + } + }, + "origin": { + "title": "The intended executor of the operation.", + "type": "string" + }, + "properties": { + "title": "Properties of the operation.", + "type": "object" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API Version." + }, + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "description": "The name of the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group containing the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "description": "The name of the database in the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "EventHubConnectionNameParameter": { + "name": "eventHubConnectionName", + "in": "path", + "description": "The name of the event hub connection.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json new file mode 100644 index 000000000000..5db4f36f9007 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCheckNameAvailability.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2018-09-07-preview", + "location": "wus", + "clusterName": { + "name": "kuskusprod", + "type": "Microsoft.Kusto/Clusters" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskusprod", + "nameAvailable": false, + "message": "Name 'kuskusprod' is already taken. Please specify a different name" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json new file mode 100644 index 000000000000..80bfc3a12d6c --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersCreateOrUpdate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview", + "parameters": { + "location": "westus", + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + }, + "201": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersDelete.json new file mode 100644 index 000000000000..c2cf957e438f --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json new file mode 100644 index 000000000000..d673f9ab2f78 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersGet.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json new file mode 100644 index 000000000000..da9d9afb584a --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "name": "KustoClusterRPTest3", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json new file mode 100644 index 000000000000..272ce79d375a --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListByResourceGroup.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4", + "name": "KustoClusterRPTest4", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3", + "name": "KustoClusterRPTest3", + "type": "Microsoft.Kusto/Clusters", + "etag": "W/\"datetime'2017-12-06T12%3A05%3A57.2528942Z'\"", + "location": "westus", + "properties": { + "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListResourceSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListResourceSkus.json new file mode 100644 index 000000000000..686099a27441 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListResourceSkus.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resourceType": "clusters", + "sku": { + "name": "KC8", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KC16", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KS8", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + }, + { + "resourceType": "clusters", + "sku": { + "name": "KS16", + "tier": "Standard" + }, + "capacity": { + "minimum": 2, + "maximum": 100, + "default": 2, + "scaleType": "automatic" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListSkus.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListSkus.json new file mode 100644 index 000000000000..9d3c8f88d314 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersListSkus.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "D13_v2", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "D14_v2", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "L8", + "tier": "Standard", + "capacity": 2 + }, + { + "name": "L16", + "tier": "Standard", + "capacity": 2 + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStart.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStart.json new file mode 100644 index 000000000000..ed5d7fc85867 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStart.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStop.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStop.json new file mode 100644 index 000000000000..ed5d7fc85867 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersStop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json similarity index 82% rename from specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json rename to specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json index 5c4dbc44dd1a..267293047e7e 100644 --- a/specification/azure-kusto/resource-manager/Microsoft.Kusto/2017-09-07-privatepreview/examples/KustoClustersCreateOrUpdate.json +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoClustersUpdate.json @@ -1,9 +1,9 @@ -{ +{ "parameters": { "subscriptionId": "12345678-1234-1234-1234-123456789098", "resourceGroupName": "kustorptest", "clusterName": "KustoClusterRPTest4", - "api-version": "2017-09-07-privatepreview", + "api-version": "2018-09-07-preview", "parameters": { "location": "westus" } @@ -18,6 +18,11 @@ "location": "westus", "properties": { "provisioningState": "Succeeded" + }, + "sku": { + "name": "L8", + "capacity": 2, + "tier": "Standard" } } }, diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDataConnectionValidation.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDataConnectionValidation.json new file mode 100644 index 000000000000..12cc96fd4dec --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDataConnectionValidation.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": + [ + { + "errorMessage": "event hub namespace does not exist" + }, + { + "errorMessage": "database does not exist" + } + ] + } + } +} diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseAddPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseAddPrincipals.json new file mode 100644 index 000000000000..b9938c3d75f1 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseAddPrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2018-09-07-preview", + "databasePrincipalsToAdd": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseListPrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseListPrincipals.json new file mode 100644 index 000000000000..30c283b54db7 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseListPrincipals.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseRemovePrincipals.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseRemovePrincipals.json new file mode 100644 index 000000000000..20e5cce235b9 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabaseRemovePrincipals.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "databaseName1", + "api-version": "2018-09-07-preview", + "databasePrincipalsToRemove": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Some User", + "role": "Admin", + "type": "User", + "fqn": "aaduser=some_guid", + "email": "user@microsoft.com", + "appId": "" + }, + { + "name": "Kusto", + "role": "Viewer", + "type": "Group", + "fqn": "aadgroup=some_guid", + "email": "kusto@microsoft.com", + "appId": "" + }, + { + "name": "SomeApp", + "role": "Admin", + "type": "App", + "fqn": "aadapp=some_guid_app_id", + "email": "", + "appId": "some_guid_app_id" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json new file mode 100644 index 000000000000..b6cc74fb5755 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCheckNameAvailability.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "api-version": "2018-09-07-preview", + "resourceGroupName": "kustorptest", + "clusterName": "kustoProd", + "databaseName": { + "name": "kuskus", + "type": "Microsoft.Kusto/Clusters/Databases" + } + }, + "responses": { + "200": { + "body": { + "name": "kuskus", + "nameAvailable": false, + "message": "Name 'kuskus' is already taken. Please specify a different name" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json new file mode 100644 index 000000000000..e179071e5a33 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesCreateOrUpdate.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "parameters": { + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1, + "provisioningState": "Succeeded" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesDelete.json new file mode 100644 index 000000000000..4aed9fd1dc40 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json new file mode 100644 index 000000000000..3f63ff864511 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1, + "provisioningState": "Succeeded" + } + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json new file mode 100644 index 000000000000..2eefde5366db --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesListByCluster.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1, + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "name": "KustoClusterRPTest4/KustoDatabase9", + "type": "Microsoft.Kusto/Clusters/Databases", + "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1, + "provisioningState": "Succeeded" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json new file mode 100644 index 000000000000..c704619cf168 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoDatabasesUpdate.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "parameters": { + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "etag": "W/\"datetime'2017-12-05T15%3A28%3A05.732611Z'\"", + "location": "westus", + "properties": { + "softDeletePeriodInDays": 1, + "provisioningState": "Succeeded" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json new file mode 100644 index 000000000000..28c166f0e087 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsCreateOrUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsDelete.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsDelete.json new file mode 100644 index 000000000000..a77f67921085 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsDelete.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "eventHubConnectionName": "kustoeventhubconnection1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json new file mode 100644 index 000000000000..b78c416b2692 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsGet.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "eventHubConnectionName": "kustoeventhubconnection1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json new file mode 100644 index 000000000000..5dbee10cbf9d --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsListByDatabase.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + }, + { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase9", + "name": "KustoClusterRPTest4/KustoDatabase9", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2", + "consumerGroup": "testConsumerGroup2" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json new file mode 100644 index 000000000000..6da0b56ee504 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoEventHubConnectionsUpdate.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "12345678-1234-1234-1234-123456789098", + "resourceGroupName": "kustorptest", + "clusterName": "KustoClusterRPTest4", + "databaseName": "KustoDatabase8", + "api-version": "2018-09-07-preview", + "eventHubConnectionName": "kustoeventhubconnection1", + "parameters": { + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8", + "name": "KustoClusterRPTest4/KustoDatabase8", + "type": "Microsoft.Kusto/Clusters/Databases", + "location": "westus", + "properties": { + "eventHubResourceId": "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1", + "consumerGroup": "testConsumerGroup1" + } + } + }, + "201": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoOperationsList.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoOperationsList.json new file mode 100644 index 000000000000..a3dd8103fd1b --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/examples/KustoOperationsList.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2015-04-08" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "operationName", + "display": { + "provider": "providerName", + "resource": "resourceName", + "operation": "operationName", + "description": "description" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/kusto.json b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/kusto.json new file mode 100644 index 000000000000..a6bf82fede56 --- /dev/null +++ b/specification/azure-kusto/resource-manager/Microsoft.Kusto/preview/2018-09-07-preview/kusto.json @@ -0,0 +1,2116 @@ +{ + "swagger": "2.0", + "info": { + "title": "KustoManagementClient", + "version": "2018-09-07-preview" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Get", + "x-ms-examples": { + "KustoClustersGet": { + "$ref": "./examples/KustoClustersGet.json" + } + }, + "description": "Gets a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The Kusto cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CreateOrUpdate", + "x-ms-examples": { + "KustoClustersCreateOrUpdate": { + "$ref": "./examples/KustoClustersCreateOrUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Create or update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Cluster" + }, + "description": "The Kusto cluster parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully created the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "patch": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Update", + "x-ms-examples": { + "KustoClustersUpdate": { + "$ref": "./examples/KustoClustersUpdate.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Update a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterUpdate" + }, + "description": "The Kusto cluster parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "201": { + "description": "Successfully updated the cluster.", + "schema": { + "$ref": "#/definitions/Cluster" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Delete", + "x-ms-examples": { + "KustoClustersDelete": { + "$ref": "./examples/KustoClustersDelete.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Deletes a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK -- cluster deleted successfully." + }, + "202": { + "description": "Accepted the delete cluster request." + }, + "204": { + "description": "NoContent -- cluster does not exist in the subscription." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Stop", + "x-ms-examples": { + "KustoClustersStop": { + "$ref": "./examples/KustoClustersStop.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Stops a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_Start", + "x-ms-examples": { + "KustoClustersStart": { + "$ref": "./examples/KustoClustersStart.json" + } + }, + "x-ms-long-running-operation": true, + "description": "Starts a Kusto cluster.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK." + }, + "202": { + "description": "Accepted." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListByResourceGroup", + "x-ms-examples": { + "KustoClustersListByResourceGroup": { + "$ref": "./examples/KustoClustersListByResourceGroup.json" + } + }, + "description": "Lists all Kusto clusters within a resource group.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_List", + "x-ms-examples": { + "KustoClustersList": { + "$ref": "./examples/KustoClustersList.json" + } + }, + "description": "Lists all Kusto clusters within a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/ClusterListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus": { + "get": { + "description": "Lists eligible SKUs for Kusto resource provider.", + "x-ms-examples": { + "KustoClustersListSkus": { + "$ref": "./examples/KustoClustersListSkus.json" + } + }, + "operationId": "Clusters_ListSkus", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/ListSkusResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability": { + "post": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_CheckNameAvailability", + "x-ms-examples": { + "KustoClustersCheckNameAvailability": { + "$ref": "./examples/KustoClustersCheckNameAvailability.json" + } + }, + "description": "Checks that the cluster name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "location", + "in": "path", + "description": "Azure location.", + "required": true, + "type": "string" + }, + { + "name": "clusterName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ClusterCheckNameRequest" + }, + "description": "The name of the cluster." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CheckNameAvailability", + "x-ms-examples": { + "KustoDatabaseCheckNameAvailability": { + "$ref": "./examples/KustoDatabasesCheckNameAvailability.json" + } + }, + "description": "Checks that the database name is valid and is not already in use.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "databaseName", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseCheckNameRequest" + }, + "description": "The name of the database." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/CheckNameResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus": { + "get": { + "tags": [ + "Clusters" + ], + "operationId": "Clusters_ListSkusByResource", + "x-ms-examples": { + "KustoClustersListResourceSkus": { + "$ref": "./examples/KustoClustersListResourceSkus.json" + } + }, + "description": "Returns the SKUs available for the provided resource.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { "$ref": "#/definitions/ListResourceSkusResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns the list of databases of the given Kusto cluster.", + "operationId": "Databases_ListByCluster", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoDatabasesListByCluster.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of databases.", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}": { + "get": { + "tags": [ + "Databases" + ], + "description": "Returns a database.", + "operationId": "Databases_Get", + "x-ms-examples": { + "KustoDatabasesGet": { + "$ref": "./examples/KustoDatabasesGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "Databases" + ], + "description": "Creates or updates a database.", + "operationId": "Databases_CreateOrUpdate", + "x-ms-examples": { + "KustoDatabasesCreateOrUpdate": { + "$ref": "./examples/KustoDatabasesCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The database parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully created the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the create database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Databases" + ], + "description": "Updates a database.", + "operationId": "Databases_Update", + "x-ms-examples": { + "KustoDatabasesUpdate": { + "$ref": "./examples/KustoDatabasesUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseUpdate" + }, + "description": "The database parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Successfully updated the database.", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted the update database request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "description": "Deletes the database with the given name.", + "operationId": "Databases_Delete", + "x-ms-examples": { + "KustoDatabasesDelete": { + "$ref": "./examples/KustoDatabasesDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the database." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified database does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "description": "Returns a list of database principals of the given Kusto cluster and database.", + "operationId": "Databases_ListPrincipals", + "x-ms-examples": { + "KustoDatabaseListPrincipals": { + "$ref": "./examples/KustoDatabaseListPrincipals.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of database principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_AddPrincipals", + "x-ms-examples": { + "KustoDatabaseAddPrincipals": { + "$ref": "./examples/KustoDatabaseAddPrincipals.json" + } + }, + "description": "Add Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToAdd", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to add." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully added the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals": { + "post": { + "tags": [ + "Databases" + ], + "operationId": "Databases_RemovePrincipals", + "x-ms-examples": { + "KustoDatabaseRemovePrincipals": { + "$ref": "./examples/KustoDatabaseRemovePrincipals.json" + } + }, + "description": "Remove Database principals permissions.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "databasePrincipalsToRemove", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabasePrincipalListRequest" + }, + "description": "List of database principals to remove." + } + ], + "responses": { + "200": { + "description": "OK -- Successfully removed the list of database principals. Returns the updated list of principals.", + "schema": { + "$ref": "#/definitions/DatabasePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubconnections": { + "get": { + "tags": [ + "EventHubConnections" + ], + "description": "Returns the list of Event Hub connections of the given Kusto database.", + "operationId": "EventHubConnections_ListByDatabase", + "x-ms-examples": { + "KustoDatabasesListByCluster": { + "$ref": "./examples/KustoEventHubConnectionsListByDatabase.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of Event Hub connections.", + "schema": { + "$ref": "#/definitions/EventHubConnectionListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubConnectionValidation": { + "post": { + "tags": [ + "EventHubConnections" + ], + "operationId": "EventHubConnections_eventhubConnectionValidation", + "x-ms-examples": { + "KustoDataConnectionValidation": { + "$ref": "./examples/KustoDataConnectionValidation.json" + } + }, + "description": "Checks that the Event Hub data connection parameters are valid.", + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnectionValidation" + }, + "description": "The Event Hub connection parameters supplied to the CreateOrUpdate operation." + } + ], + "responses": { + "200": { + "description": "OK -- Operation to check the kusto resource name availability was successful.", + "schema": { + "$ref": "#/definitions/EventHubConnectionValidationListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/eventhubconnections/{eventHubConnectionName}": { + "get": { + "tags": [ + "EventHubConnections" + ], + "description": "Returns an Event Hub connection.", + "operationId": "EventHubConnections_Get", + "x-ms-examples": { + "KustoEventHubConnectionsGet": { + "$ref": "./examples/KustoEventHubConnectionsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the specified Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "put": { + "tags": [ + "EventHubConnections" + ], + "description": "Creates or updates a Event Hub connection.", + "operationId": "EventHubConnections_CreateOrUpdate", + "x-ms-examples": { + "KustoEventHubConnectionsCreateOrUpdate": { + "$ref": "./examples/KustoEventHubConnectionsCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnection" + }, + "description": "The Event Hub connection parameters supplied to the CreateOrUpdate operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "201": { + "description": "Successfully created the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "202": { + "description": "Accepted the create Event Hub connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "EventHubConnections" + ], + "description": "Updates a Event Hub connection.", + "operationId": "EventHubConnections_Update", + "x-ms-examples": { + "KustoEventHubConnectionsUpdate": { + "$ref": "./examples/KustoEventHubConnectionsUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubConnectionUpdate" + }, + "description": "The Event Hub connection parameters supplied to the Update operation." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "201": { + "description": "Successfully updated the Event Hub connection.", + "schema": { + "$ref": "#/definitions/EventHubConnection" + } + }, + "202": { + "description": "Accepted the update Event Hub connection request." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "EventHubConnections" + ], + "description": "Deletes the Event Hub connection with the given name.", + "operationId": "EventHubConnections_Delete", + "x-ms-examples": { + "KustoEventHubConnectionsDelete": { + "$ref": "./examples/KustoEventHubConnectionsDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "#/parameters/DatabaseNameParameter" + }, + { + "$ref": "#/parameters/EventHubConnectionNameParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Successfully deleted the Event Hub connection." + }, + "202": { + "description": "Accepted." + }, + "204": { + "description": "The specified Event Hub connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/providers/Microsoft.Kusto/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "x-ms-examples": { + "KustoOperationsList": { + "$ref": "./examples/KustoOperationsList.json" + } + }, + "description": "Lists available operations for the Microsoft.Kusto provider.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation was successful. The response contains the list of available operations.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ClusterProperties": { + "properties": { + "state": { + "type": "string", + "readOnly": true, + "description": "The state of the resource.", + "enum": [ + "Creating", + "Unavailable", + "Running", + "Deleting", + "Deleted", + "Stopping", + "Stopped", + "Starting" + ], + "x-ms-enum": { + "name": "State", + "modelAsString": true + } + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "uri": { + "type": "string", + "readOnly": true, + "description": "The cluster URI." + }, + "dataIngestionUri": { + "type": "string", + "readOnly": true, + "description": "The cluster data ingestion URI." + }, + "trustedExternalTenants": { + "type": "array", + "items": { + "$ref": "#/definitions/TrustedExternalTenant" + }, + "description": "The cluster's external tenants." + } + }, + "description": "Class representing the Kusto cluster properties." + }, + "TrustedExternalTenant": { + "properties": { + "value": { + "type": "string", + "description": "GUID representing an external tenant." + } + } + }, + "AzureResourceSku": { + "properties": { + "resourceType": { + "type": "string", + "description": "Resource Namespace and Type." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU details." + }, + "capacity": { + "$ref": "#/definitions/AzureCapacity", + "description": "The SKU capacity." + } + } + }, + "AzureCapacity": { + "type": "object", + "required": [ + "minimum", + "maximum", + "default", + "scaleType" + ], + "properties": { + "scaleType": { + "description": "Scale type.", + "type": "string", + "enum": [ + "automatic", + "manual", + "none" + ], + "x-ms-enum": { + "name": "AzureScaleType", + "modelAsString": true + } + }, + "minimum": { + "description": "Minimum allowed capacity.", + "type": "integer" + }, + "maximum": { + "description": "Maximum allowed capacity.", + "type": "integer" + }, + "default": { + "description": "The default capacity that would be used.", + "type": "integer" + } + } + }, + "AzureSku": { + "type": "object", + "required": [ + "name", + "tier" + ], + "properties": { + "name": { + "description": "SKU name.", + "type": "string", + "enum": [ + "KC8", + "KC16", + "KS8", + "KS16", + "D13_v2", + "D14_v2", + "L8", + "L16" + ], + "x-ms-enum": { + "name": "AzureSkuName", + "modelAsString": true + } + }, + "capacity": { + "description": "SKU capacity.", + "type": "integer" + }, + "tier": { + "description": "SKU tier.", + "type": "string", + "enum": [ + "Standard" + ], + "x-ms-enum": { + "name": "AzureSkuTier", + "modelAsString": true + } + } + } + }, + "DatabaseStatistics": { + "type": "object", + "readOnly": true, + "properties": { + "size": { + "type": "number", + "description": "The database size - the total size of compressed data and index in bytes." + } + } + }, + "DatabaseProperties": { + "properties": { + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "The provisioned state of the resource.", + "enum": [ + "Running", + "Creating", + "Deleting", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "ProvisioningState", + "modelAsString": true + } + }, + "softDeletePeriodInDays": { + "type": "integer", + "description": "The number of days data should be kept before it stops being accessible to queries." + }, + "hotCachePeriodInDays": { + "type": "integer", + "description": "The number of days of data that should be kept in cache for fast queries." + }, + "statistics": { + "$ref": "#/definitions/DatabaseStatistics", + "description": "The statistics of the database." + } + }, + "required": [ + "softDeletePeriodInDays" + ], + "description": "Class representing the Kusto database properties." + }, + "EventHubConnectionValidation": { + "properties": { + "eventhubConnectionName": { + "type": "string", + "description": "The name of the event hub connection." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "description": "Class representing an event hub connection validation." + }, + "EventHubConnectionProperties": { + "properties": { + "eventHubResourceId": { + "type": "string", + "description": "The resource ID of the event hub to be used to create a data connection." + }, + "consumerGroup": { + "type": "string", + "description": "The event hub consumer group." + }, + "tableName": { + "type": "string", + "description": "The table where the data should be ingested. Optionally the table information can be added to each message." + }, + "mappingRuleName": { + "type": "string", + "description": "The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message." + }, + "dataFormat": { + "description": "The data format of the message. Optionally the data format can be added to each message.", + "type": "string", + "enum": [ + "MULTIJSON", + "JSON", + "CSV" + ], + "x-ms-enum": { + "name": "dataFormat", + "modelAsString": true + } + } + }, + "required": [ + "eventHubResourceId", + "consumerGroup" + ], + "description": "Class representing the Kusto event hub connection properties." + }, + "Cluster": { + "required": [ + "sku" + ], + "properties": { + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource created." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto cluster." + }, + "ClusterUpdate": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource updated." + }, + "sku": { + "$ref": "#/definitions/AzureSku", + "description": "The SKU of the cluster." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ClusterProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto cluster." + }, + "Database": { + "properties": { + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource created." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Class representing a Kusto database." + }, + "DatabaseUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "etag": { + "readOnly": true, + "type": "string", + "description": "An ETag of the resource updated." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DatabaseProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/Resource" + } + ], + "description": "Class representing an update to a Kusto database." + }, + "DatabasePrincipal": { + "type": "object", + "required": [ + "name", + "role", + "type" + ], + "properties": { + "role": { + "description": "Database principal role.", + "type": "string", + "enum": [ + "Admin", + "Ingestor", + "Monitor", + "User", + "UnrestrictedViewers", + "Viewer" + ], + "x-ms-enum": { + "name": "DatabasePrincipalRole", + "modelAsString": true + } + }, + "name": { + "description": "Database principal name.", + "type": "string" + }, + "type": { + "description": "Database principal type.", + "type": "string", + "enum": [ + "App", + "Group", + "User" + ], + "x-ms-enum": { + "name": "DatabasePrincipalType", + "modelAsString": true + } + }, + "fqn": { + "description": "Database principal fully qualified name.", + "type": "string" + }, + "email": { + "description": "Database principal email if exists.", + "type": "string" + }, + "appId": { + "description": "Application id - relevant only for application principal type.", + "type": "string" + } + } + }, + "EventHubConnectionUpdate": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an update to event hub connection." + }, + "EventHubConnection": { + "properties": { + "location": { + "type": "string", + "description": "Resource location." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubConnectionProperties" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "description": "Class representing an event hub connection." + }, + "EventHubConnectionValidationResult": { + "type": "object", + "properties": { + "errorMessage": { + "type": "string", + "description": "A message which indicates a problem in event hub connection validation." + } + } + }, + "ClusterListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Cluster" + }, + "description": "The list of Kusto clusters." + } + }, + "description": "The list Kusto clusters operation response." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of Kusto databases." + } + }, + "description": "The list Kusto databases operation response." + }, + "DatabasePrincipalListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation response." + }, + "DatabasePrincipalListRequest": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DatabasePrincipal" + }, + "description": "The list of Kusto database principals." + } + }, + "description": "The list Kusto database principals operation request." + }, + "EventHubConnectionValidationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventHubConnectionValidationResult" + }, + "description": "The list of Kusto event hub connection validation errors." + } + }, + "description": "The list Kusto event hub connection validation result." + }, + + "EventHubConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventHubConnection" + }, + "description": "The list of Kusto event hub connections." + } + }, + "description": "The list Kusto event hub connections operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CloudErrorBody" + } + }, + "description": "An error response from Kusto." + }, + "ClusterCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Cluster name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters." + } + }, + "required": [ + "name", + "type" + ] + }, + "DatabaseCheckNameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Database name." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Kusto/clusters/databases" + ], + "x-ms-enum": { + "name": "Type", + "modelAsString": false + }, + "description": "The type of resource, Microsoft.Kusto/clusters/databases." + } + }, + "required": [ + "name", + "type" + ] + }, + "CheckNameResult": { + "type": "object", + "properties": { + "nameAvailable": { + "type": "boolean", + "description": "Specifies a Boolean value that indicates if the name is available." + }, + "name": { + "type": "string", + "description": "The name that was checked." + }, + "message": { + "type": "string", + "description": "Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated." + } + } + }, + "ListResourceSkusResult": { + "description": "List of available SKUs for an existing Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureResourceSku" }, + "description": "The collection of available SKUs for an existing resource." + } + } + }, + "ListSkusResult": { + "description": "List of available SKUs for a new Kusto Cluster.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { "$ref": "#/definitions/AzureSku" }, + "description": "The collection of available SKUs for new resources." + } + } + }, + "CloudErrorBody": { + "x-ms-external": true, + "properties": { + "code": { + "type": "string", + "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." + }, + "message": { + "type": "string", + "description": "A message describing the error, intended to be suitable for displaying in a user interface." + }, + "target": { + "type": "string", + "description": "The target of the particular error. For example, the name of the property in error." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "A list of additional details about the error." + } + }, + "description": "An error response from Kusto." + }, + "OperationListResult": { + "title": "Result of the request to list REST API operations. It contains a list of operations and a URL nextLink to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "title": "The list of operations supported by the resource provider." + }, + "nextLink": { + "type": "string", + "title": "The URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "title": "A REST API operation", + "type": "object", + "properties": { + "name": { + "title": "The operation name.", + "description": "This is of the format {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "title": "The object that describes the operation.", + "properties": { + "provider": { + "title": "Friendly name of the resource provider.", + "type": "string" + }, + "operation": { + "title": "The operation type.", + "description": "For example: read, write, delete.", + "type": "string" + }, + "resource": { + "title": "The resource type on which the operation is performed.", + "type": "string" + }, + "description": { + "title": "The friendly name of the operation.", + "type": "string" + } + } + }, + "origin": { + "title": "The intended executor of the operation.", + "type": "string" + }, + "properties": { + "title": "Properties of the operation.", + "type": "object" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API Version." + }, + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "description": "The name of the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group containing the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DatabaseNameParameter": { + "name": "databaseName", + "in": "path", + "description": "The name of the database in the Kusto cluster.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "EventHubConnectionNameParameter": { + "name": "eventHubConnectionName", + "in": "path", + "description": "The name of the event hub connection.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/azure-kusto/resource-manager/readme.md b/specification/azure-kusto/resource-manager/readme.md index 792c62a33834..c52c08776f31 100644 --- a/specification/azure-kusto/resource-manager/readme.md +++ b/specification/azure-kusto/resource-manager/readme.md @@ -28,7 +28,16 @@ These are the global settings for the Kusto API. title: KustoManagementClient description: The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. openapi-type: arm -tag: package-2017-09-07-privatepreview +tag: package-2018-09-07-preview +``` + +### Tag: package-2018-09-07-preview + +These settings apply only when `--tag=package-2018-09-07-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09-07-preview' +input-file: + - Microsoft.Kusto/preview/2018-09-07-preview/kusto.json ``` ### Tag: package-2017-09-07-privatepreview @@ -37,19 +46,29 @@ These settings apply only when `--tag=package-2017-09-07-privatepreview` is spec ``` yaml $(tag) == 'package-2017-09-07-privatepreview' input-file: - - Microsoft.Kusto/2017-09-07-privatepreview/kusto.json + - Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json ``` +### Tag: schema-2018-09-07-preview + +These settings apply only when `--tag=schema-2018-09-07-preview` is specified on the command line. + +These can be regenerated by running the following PowerShell script from this readme file's folder: `dir .\Microsoft.Kusto\preview\2018-09-07-preview\ -File | Resolve-Path -Relative | % { " - $_".Replace("\", "/") }` + +``` yaml $(tag) == 'schema-2018-09-07-preview' +input-file: + - Microsoft.Kusto/preview/2018-09-07-preview/kusto.json +``` ### Tag: schema-2017-09-07-privatepreview These settings apply only when `--tag=schema-2017-09-07-privatepreview` is specified on the command line. -These can be regenerated by running the following PowerShell script from this readme file's folder: `dir .\Microsoft.Kusto\2017-09-07-privatepreview\ -File | Resolve-Path -Relative | % { " - $_".Replace("\", "/") }` +These can be regenerated by running the following PowerShell script from this readme file's folder: `dir .\Microsoft.Kusto\preview\2017-09-07-privatepreview\ -File | Resolve-Path -Relative | % { " - $_".Replace("\", "/") }` ``` yaml $(tag) == 'schema-2017-09-07-privatepreview' input-file: - - Microsoft.Kusto/2017-09-07-privatepreview/kusto.json + - Microsoft.Kusto/preview/2017-09-07-privatepreview/kusto.json ``` # Code Generation From 38cdfe02f462176e369540a7dcd504bad3137ce4 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Thu, 20 Sep 2018 09:32:19 -0700 Subject: [PATCH 16/39] Add azure-sdk-for-node to signalr/resource-manager/readme.md (#3967) --- specification/signalr/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/signalr/resource-manager/readme.md b/specification/signalr/resource-manager/readme.md index 78b5fe25a292..9f4517f0e619 100644 --- a/specification/signalr/resource-manager/readme.md +++ b/specification/signalr/resource-manager/readme.md @@ -52,6 +52,7 @@ This is not used by Autorest itself. swagger-to-sdk: - repo: azure-sdk-for-python - repo: azure-sdk-for-java + - repo: azure-sdk-for-node - repo: azure-sdk-for-go - repo: azure-sdk-for-ruby after_scripts: From bdfeff118a3e9857bb7c422fd3edbd3bf73d8730 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Thu, 20 Sep 2018 10:42:10 -0700 Subject: [PATCH 17/39] Add MoT to Private Specs Repository (#3950) * Add MoT to Private Specs Repository * PR Comments * PR Comments II * Minor spacing fix * Update momentOfTruthPostProcessing.js --- scripts/momentOfTruthPostProcessing.js | 17 ++++++++++++--- scripts/postToGitHub.js | 29 ++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 scripts/postToGitHub.js diff --git a/scripts/momentOfTruthPostProcessing.js b/scripts/momentOfTruthPostProcessing.js index a747daa2dc0e..29f6c7e0638b 100644 --- a/scripts/momentOfTruthPostProcessing.js +++ b/scripts/momentOfTruthPostProcessing.js @@ -5,7 +5,8 @@ const fs = require('fs'), utils = require('../test/util/utils'), - path = require('path'); + path = require('path'), + gitHubPost = require('./postToGitHub'); let pullRequestNumber = utils.getPullRequestNumber(); let targetBranch = utils.getTargetBranch(); @@ -31,7 +32,7 @@ let githubFooter = `[AutoRest Linter Guidelines](https://github.com/Azure/azure- `\n\nThanks for your co-operation.`; let fileSummaryHeader = (file_name, file_href) => `## Config file: [${file_name}](${file_href})\n`; -let fileSummaryNewTemplate = (issue_type, issue_count, issue_table) => `### ${iconFor(issue_type)} ${issue_count} new ${pluralize(issue_type, issue_count)}\n\n${issue_table}\n`; +let fileSummaryNewTemplate = (issue_type, issue_count, issue_table) => `

${iconFor(issue_type)} ${issue_count} new ${pluralize(issue_type, issue_count)}


\n\n${issue_table}\n
`; let fileSummaryExistingTemplate = (issue_type, issue_count, issue_table) => `
${iconFor(issue_type)} ${issue_count} existing ${pluralize(issue_type, issue_count)}
\n\n${issue_table}\n
\n\n`; let potentialNewWarningErrorSummaryHeader = ` @@ -65,7 +66,10 @@ try { } function compareJsonRef(beforeJsonRef, afterJsonRef) { - return (beforeJsonRef.replace(/json:\d+:\d+/, '') == afterJsonRef.replace(/json:\d+:\d+/, '')); + beforeJsonRef = beforeJsonRef.replace(/.*\.json:\d+:\d+/, '') + afterJsonRef = afterJsonRef.replace(/.*\.json:\d+:\d+/, '') + + return (beforeJsonRef == afterJsonRef); } function getOutputMessages(newSDKErrorsCount, newARMErrorsCount, newSDKWarningsCount, newARMWarningsCount) { @@ -356,6 +360,7 @@ function postProcessing() { console.log("Existing ARM Errors: ", existingARMErrors.length); console.log("Existing ARM Warnings: ", existingARMWarnings.length); console.log(); + if (newSDKErrors.length > 0) { console.log(`Potential new SDK errors`) console.log("========================"); @@ -403,6 +408,12 @@ function postProcessing() { console.log(JSON.stringify(output, null, 2)); console.log("---"); + if(process.env.TRAVIS_REPO_SLUG != undefined && process.env.TRAVIS_REPO_SLUG.endsWith("-pr")) { + let slug = process.env.TRAVIS_REPO_SLUG; + slug = slug.split("/")[1]; + gitHubPost.postGithubComment("Azure", slug, pullRequestNumber, output.text); + } + if (newSDKErrorsCount > 0 || newARMErrorsCount > 0) { process.exitCode = 1; } diff --git a/scripts/postToGitHub.js b/scripts/postToGitHub.js new file mode 100644 index 000000000000..f162b6ad8b8a --- /dev/null +++ b/scripts/postToGitHub.js @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +'use strict'; + +const octokit = require('@octokit/rest')(); +let token = process.env.GITHUB_TOKEN; + +if(token != undefined) { + octokit.authenticate({ + type: 'token', + token: token + }); +} + +module.exports = { + postGithubComment: function(owner, repository, prNumber, commentBody) { + octokit.issues.createComment({ + "owner": owner, + "repo": repository, + "number": prNumber, + "body": commentBody + }).then(data => { + console.log("Comment has been posted"); + }). catch(err => { + console.log(err); + }); + } +} \ No newline at end of file From cc1ac4921a7bc62683036130f020e55ef52d76bf Mon Sep 17 00:00:00 2001 From: Prem Prakash Date: Thu, 20 Sep 2018 10:46:57 -0700 Subject: [PATCH 18/39] Applying changes for new version of Cost Management APIs 2018-08-31 (#3963) * Copy of previous version of API 2018-05-31 * Applying changes for new version of CostManagement APIs 2018-08-31 * Fixing spec errors using validation tools --- .../stable/2018-08-31/costmanagement.json | 1896 +++++++++++++++++ .../BillingAccountDimensionsList.json | 44 + ...lingAccountDimensionsListExpandAndTop.json | 58 + ...illingAccountDimensionsListWithFilter.json | 39 + .../examples/BillingAccountQuery.json | 117 + .../examples/DepartmentDimensionsList.json | 45 + .../DepartmentDimensionsListExpandAndTop.json | 59 + .../DepartmentDimensionsListWithFilter.json | 40 + .../2018-08-31/examples/DepartmentQuery.json | 118 + .../EnrollmentAccountDimensionsList.json | 45 + ...mentAccountDimensionsListExpandAndTop.json | 59 + ...llmentAccountDimensionsListWithFilter.json | 40 + .../examples/EnrollmentAccountQuery.json | 118 + .../ManagementGroupDimensionsList.json | 44 + ...gementGroupDimensionsListExpandAndTop.json | 58 + ...nagementGroupDimensionsListWithFilter.json | 39 + .../examples/ManagementGroupQuery.json | 117 + .../2018-08-31/examples/ReportConfig.json | 87 + .../examples/ReportConfigCreateOrUpdate.json | 287 +++ .../examples/ReportConfigDelete.json | 11 + .../2018-08-31/examples/ReportConfigList.json | 174 ++ .../examples/ResourceGroupDimensionsList.json | 55 + .../examples/ResourceGroupQuery.json | 106 + .../examples/SubscriptionDimensionsList.json | 57 + .../examples/SubscriptionQuery.json | 117 + 25 files changed, 3830 insertions(+) create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListWithFilter.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListWithFilter.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListExpandAndTop.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListWithFilter.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupQuery.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionDimensionsList.json create mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionQuery.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json new file mode 100644 index 000000000000..20415c114b6b --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json @@ -0,0 +1,1896 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-08-31", + "title": "CostManagementClient" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow.", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reportconfigs": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_List", + "description": "Lists all report configs for a subscription.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportConfigList": { + "$ref": "./examples/ReportConfigList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfigListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reportconfigs": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_ListByResourceGroupName", + "description": "Lists all report configs for a resource group under a subscription.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportConfigList": { + "$ref": "./examples/ReportConfigList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfigListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reportconfigs/{reportConfigName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_Get", + "description": "Gets the report config for a subscription by report config name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "Report": { + "$ref": "./examples/ReportConfig.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_CreateOrUpdate", + "description": "The operation to create or update a report config. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportConfigCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfig" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_Delete", + "description": "The operation to delete a report.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportConfigDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reportconfigs/{reportConfigName}": { + "get": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_GetByResourceGroupName", + "description": "Gets the report config for a resource group under a subscription by report config name.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ReportConfig": { + "$ref": "./examples/ReportConfig.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_CreateOrUpdateByResourceGroupName", + "description": "The operation to create or update a report config. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "CreateOrUpdateReport": { + "$ref": "./examples/ReportConfigCreateOrUpdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfig" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "201": { + "description": "Created.", + "schema": { + "$ref": "#/definitions/ReportConfig" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Reports" + ], + "operationId": "ReportConfig_DeleteByResourceGroupName", + "description": "The operation to delete a report config.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DeleteReport": { + "$ref": "./examples/ReportConfigDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/reportConfigNameParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListByBillingAccount", + "description": "Lists the dimensions by billingAccount Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "BillingAccountDimensionsList": { + "$ref": "./examples/BillingAccountDimensionsList.json" + }, + "BillingAccountDimensionsListExpandAndTop": { + "$ref": "./examples/BillingAccountDimensionsListExpandAndTop.json" + }, + "BillingAccountDimensionsListWithFilter": { + "$ref": "./examples/BillingAccountDimensionsListWithFilter.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListByEnrollmentAccount", + "description": "Lists the dimensions by Enrollment Account Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "EnrollmentAccountDimensionsList": { + "$ref": "./examples/EnrollmentAccountDimensionsList.json" + }, + "EnrollmentAccountDimensionsListExpandAndTop": { + "$ref": "./examples/EnrollmentAccountDimensionsListExpandAndTop.json" + }, + "EnrollmentAccountDimensionsListWithFilter": { + "$ref": "./examples/EnrollmentAccountDimensionsListWithFilter.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListByDepartment", + "description": "Lists the dimensions by Department Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DepartmentDimensionsList": { + "$ref": "./examples/DepartmentDimensionsList.json" + }, + "DepartmentDimensionsListExpandAndTop": { + "$ref": "./examples/DepartmentDimensionsListExpandAndTop.json" + }, + "DepartmentDimensionsListWithFilter": { + "$ref": "./examples/DepartmentDimensionsListWithFilter.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListByManagementGroup", + "description": "Lists the dimensions by managementGroup Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ManagementGroupDimensionsList": { + "$ref": "./examples/ManagementGroupDimensionsList.json" + }, + "ManagementGroupDimensionsListExpandAndTop": { + "$ref": "./examples/ManagementGroupDimensionsListExpandAndTop.json" + }, + "ManagementGroupDimensionsListWithFilter": { + "$ref": "./examples/ManagementGroupDimensionsListWithFilter.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListBySubscription", + "description": "Lists the dimensions by subscription Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionDimensionsList": { + "$ref": "./examples/SubscriptionDimensionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/dimensions": { + "get": { + "tags": [ + "Dimensions" + ], + "x-ms-odata": "#/definitions/Dimension", + "operationId": "Dimensions_ListByResourceGroup", + "description": "Lists the dimensions by resource group Id.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ResourceGroupDimensionsList": { + "$ref": "./examples/ResourceGroupDimensionsList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "$filter", + "description": "May be used to filter dimensions by properties/category, properties/usageStart, properties/usageEnd. Supported operators are 'eq','lt', 'gt', 'le', 'ge'.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$expand", + "description": "May be used to expand the properties/data within a dimension dategory. By default, data is not included when listing dimensions.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$skiptoken", + "description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "$top", + "description": "May be used to limit the number of results to the most recent N dimension data.", + "in": "query", + "required": false, + "type": "integer", + "minimum": 1, + "maximum": 1000 + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/DimensionsListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageBySubscription", + "description": "Query the usage data for subscriptionId.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "SubscriptionQuery": { + "$ref": "./examples/SubscriptionQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByResourceGroup", + "description": "Query the usage data for subscriptionId and resource group.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ResourceGroupQuery": { + "$ref": "./examples/ResourceGroupQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByBillingAccount", + "description": "Query the usage data for billing account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "BillingAccountQuery": { + "$ref": "./examples/BillingAccountQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByEnrollmentAccount", + "description": "Query the usage data for an enrollment account.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "EnrollmentAccountQuery": { + "$ref": "./examples/EnrollmentAccountQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/enrollmentAccountIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByDepartment", + "description": "Query the usage data for department.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "DepartmentQuery": { + "$ref": "./examples/DepartmentQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/billingAccountIdParameter" + }, + { + "$ref": "#/parameters/departmentIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.CostManagement/Query": { + "post": { + "tags": [ + "Query" + ], + "operationId": "Query_UsageByManagmentGroup", + "description": "Lists the usage data for managment group.", + "externalDocs": { + "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" + }, + "x-ms-examples": { + "ManagmentGroupQuery": { + "$ref": "./examples/ManagementGroupQuery.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/managementGroupIdParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ReportConfigDefinition" + }, + "description": "Parameters supplied to the CreateOrUpdate Report Config operation." + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/QueryResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/providers/Microsoft.CostManagement/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available consumption REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ErrorDetails": { + "description": "The details of the error.", + "properties": { + "code": { + "description": "Error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorResponse": { + "description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "error": { + "description": "The details of the error.", + "$ref": "#/definitions/ErrorDetails" + } + } + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "tags": { + "readOnly": true, + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "x-ms-azure-resource": true + }, + "ReportConfigListResult": { + "description": "Result of listing report configs. It contains a list of available report configurations in the scope provided.", + "properties": { + "value": { + "description": "The list of report configs.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReportConfig" + } + } + } + }, + "ReportConfig": { + "description": "A report config resource.", + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ReportConfigProperties", + "title": "Report config properties" + } + } + }, + "ReportConfigProperties": { + "description": "The properties of the report config.", + "properties": { + "schedule": { + "description": "Has schedule information for the report config.", + "$ref": "#/definitions/ReportConfigSchedule" + }, + "format": { + "description": "The format of the report being delivered.", + "type": "string", + "enum": [ + "Csv" + ], + "x-ms-enum": { + "name": "FormatType", + "modelAsString": true + } + }, + "deliveryInfo": { + "description": "Has delivery information for the report config.", + "$ref": "#/definitions/ReportConfigDeliveryInfo" + }, + "definition": { + "description": "Has definition for the report config.", + "$ref": "#/definitions/ReportConfigDefinition" + } + }, + "required": [ + "deliveryInfo", + "definition" + ] + }, + "ReportConfigSchedule": { + "description": "The schedule associated with a report config.", + "properties": { + "status": { + "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.", + "type": "string", + "enum": [ + "Active", + "Inactive" + ], + "x-ms-enum": { + "name": "StatusType", + "modelAsString": true + } + }, + "recurrence": { + "description": "The schedule recurrence.", + "type": "string", + "enum": [ + "Daily", + "Weekly", + "Monthly", + "Annually" + ], + "x-ms-enum": { + "name": "RecurrenceType", + "modelAsString": true + } + }, + "recurrencePeriod": { + "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.", + "$ref": "#/definitions/ReportConfigRecurrencePeriod" + } + }, + "required": [ + "recurrence", + "recurrencePeriod" + ] + }, + "ReportConfigDeliveryInfo": { + "description": "The delivery information associated with a report config.", + "properties": { + "destination": { + "description": "Has destination for the report being delivered.", + "$ref": "#/definitions/ReportConfigDeliveryDestination" + } + }, + "required": [ + "destination" + ] + }, + "ReportConfigDefinition": { + "description": "The definition of a report config.", + "properties": { + "type": { + "description": "The type of the report.", + "type": "string", + "enum": [ + "Usage" + ], + "x-ms-enum": { + "name": "ReportType", + "modelAsString": true + } + }, + "timeframe": { + "description": "The time frame for pulling data for the report. If custom, then a specific time period must be provided.", + "type": "string", + "enum": [ + "WeekToDate", + "MonthToDate", + "YearToDate", + "Custom" + ], + "x-ms-enum": { + "name": "TimeframeType", + "modelAsString": true + } + }, + "timePeriod": { + "description": "Has time period for pulling data for the report.", + "$ref": "#/definitions/ReportConfigTimePeriod" + }, + "dataset": { + "description": "Has definition for data in this report config.", + "$ref": "#/definitions/ReportConfigDataset" + } + }, + "required": [ + "type", + "timeframe" + ] + }, + "ReportConfigRecurrencePeriod": { + "description": "The start and end date for recurrence schedule.", + "properties": { + "from": { + "description": "The start date of recurrence.", + "type": "string", + "format": "date-time" + }, + "to": { + "description": "The end date of recurrence. If not provided, we default this to 10 years from the start date.", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "from" + ] + }, + "ReportConfigDeliveryDestination": { + "description": "The destination information for the delivery of the report.", + "properties": { + "resourceId": { + "description": "The resource id of the storage account where reports will be delivered.", + "type": "string" + }, + "container": { + "description": "The name of the container where reports will be uploaded.", + "type": "string" + }, + "rootFolderPath": { + "description": "The name of the directory where reports will be uploaded.", + "type": "string" + } + }, + "required": [ + "resourceId", + "container" + ] + }, + "ReportConfigTimePeriod": { + "description": "The start and end date for pulling data for the report.", + "properties": { + "from": { + "description": "The start date to pull data from.", + "type": "string", + "format": "date-time" + }, + "to": { + "description": "The end date to pull data to.", + "type": "string", + "format": "date-time" + } + }, + "required": [ + "from", + "to" + ] + }, + "ReportConfigDataset": { + "description": "The definition of data present in the report.", + "properties": { + "granularity": { + "description": "The granularity of rows in the report.", + "type": "string", + "enum": [ + "Daily" + ], + "x-ms-enum": { + "name": "GranularityType", + "modelAsString": true + } + }, + "configuration": { + "description": "Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.", + "$ref": "#/definitions/ReportConfigDatasetConfiguration" + }, + "aggregation": { + "type": "object", + "description": "Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have upto 2 aggregation clauses.", + "additionalProperties": { + "type": "object", + "$ref": "#/definitions/ReportConfigAggregation" + }, + "maxItems": 2 + }, + "grouping": { + "description": "Array of group by expression to use in the report. Report can have upto 2 group by clauses.", + "type": "array", + "items": { + "$ref": "#/definitions/ReportConfigGrouping" + }, + "maxItems": 2 + }, + "filter": { + "type": "object", + "description": "Has filter expression to use in the report.", + "$ref": "#/definitions/ReportConfigFilter" + } + } + }, + "ReportConfigDatasetConfiguration": { + "description": "The configuration of dataset in the report.", + "properties": { + "columns": { + "description": "Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReportConfigAggregation": { + "description": "The aggregation expression to be used in the report.", + "properties": { + "name": { + "description": "The name of the column to aggregate.", + "type": "string" + }, + "function": { + "description": "The name of the aggregation function to use.", + "type": "string", + "enum": [ + "Sum" + ], + "x-ms-enum": { + "name": "FunctionType", + "modelAsString": true + } + } + }, + "required": [ + "name", + "function" + ] + }, + "ReportConfigGrouping": { + "description": "The group by expression to be used in the report.", + "properties": { + "columnType": { + "description": "Has type of the column to group.", + "$ref": "#/definitions/ReportConfigColumnType" + }, + "name": { + "description": "The name of the column to group.", + "type": "string" + } + }, + "required": [ + "columnType", + "name" + ] + }, + "ReportConfigFilter": { + "description": "The filter expression to be used in the report.", + "properties": { + "and": { + "description": "The logical \"AND\" expression. Must have atleast 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ReportConfigFilter" + }, + "minItems": 2 + }, + "or": { + "description": "The logical \"OR\" expression. Must have atleast 2 items.", + "type": "array", + "items": { + "$ref": "#/definitions/ReportConfigFilter" + }, + "minItems": 2 + }, + "not": { + "description": "The logical \"NOT\" expression.", + "$ref": "#/definitions/ReportConfigFilter" + }, + "dimension": { + "description": "Has comparison expression for a dimension", + "$ref": "#/definitions/ReportConfigComparisonExpression" + }, + "tag": { + "description": "Has comparison expression for a tag", + "$ref": "#/definitions/ReportConfigComparisonExpression" + } + } + }, + "ReportConfigColumnType": { + "description": "The type of the column in the report.", + "type": "string", + "enum": [ + "Tag", + "Dimension" + ], + "x-ms-enum": { + "name": "ReportConfigColumnType", + "modelAsString": true + } + }, + "ReportConfigComparisonExpression": { + "description": "The comparison expression to be used in the report.", + "properties": { + "name": { + "description": "The name of the column to use in comaprison.", + "type": "string" + }, + "operator": { + "description": "The operator to use for comparison.", + "type": "string", + "enum": [ + "In", + "Contains" + ], + "x-ms-enum": { + "name": "OperatorType", + "modelAsString": true + } + }, + "values": { + "description": "Array of values to use for comparison", + "type": "array", + "items": { + "type": "string" + }, + "minItems": 1 + } + }, + "required": [ + "name", + "operator", + "values" + ] + }, + "DimensionsListResult": { + "description": "Result of listing dimensions. It contains a list of available dimensions.", + "type": "object", + "properties": { + "value": { + "description": "The list of dimensions.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Dimension" + } + } + } + }, + "Dimension": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DimensionProperties", + "title": "Dimension properties" + } + } + }, + "DimensionProperties": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "filterEnabled": { + "type": "boolean" + }, + "groupingEnabled": { + "type": "boolean" + }, + "data": { + "type": "array", + "items": { + "type": "string" + } + }, + "total": { + "format": "int32", + "type": "integer" + }, + "category": { + "type": "string" + }, + "usageStart": { + "format": "date-time", + "type": "string" + }, + "usageEnd": { + "format": "date-time", + "type": "string" + }, + "nextLink": { + "type": "string" + } + } + }, + "QueryResult": { + "description": "Result of query. It contains all columns listed under groupings and aggregation.", + "type": "object", + "properties": { + "value": { + "description": "The list of usage data.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Query" + } + } + } + }, + "Query": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/QueryProperties", + "title": "Query properties" + } + } + }, + "QueryProperties": { + "type": "object", + "properties": { + "nextLink": { + "type": "string" + }, + "columns": { + "description": "Array of columns", + "type": "array", + "items": { + "$ref": "#/definitions/QueryColumn" + } + }, + "rows": { + "type": "array", + "items": { + "type": "array", + "items": {} + } + } + } + }, + "QueryColumn": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "OperationListResult": { + "description": "Result of listing cost management operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "description": "List of cost management operations supported by the Microsoft.CostManagement resource provider.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Operation" + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string", + "readOnly": true + } + } + }, + "Operation": { + "description": "A Cost management REST API operation.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string", + "readOnly": true + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.CostManagement.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "Resource on which the operation is performed: Dimensions, Query.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string", + "readOnly": true + } + } + } + } + } + }, + "parameters": { + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request. The current version is 2018-05-31." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "description": "Azure Resource Group Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "billingAccountIdParameter": { + "name": "billingAccountId", + "in": "path", + "description": "BillingAccount ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "managementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "description": "ManagementGroup ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "departmentIdParameter": { + "name": "departmentId", + "in": "path", + "description": "Department ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "enrollmentAccountIdParameter": { + "name": "enrollmentAccountId", + "in": "path", + "description": "Enrollment Account ID", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + }, + "reportConfigNameParameter": { + "name": "reportConfigName", + "in": "path", + "description": "Report Config Name.", + "required": true, + "type": "string", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsList.json new file mode 100644 index 000000000000..d3f3e91b4636 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..367253e9ff40 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListExpandAndTop.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..dbd780e35bcb --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountDimensionsListWithFilter.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "$expand": "properties/data", + "$top": 5, + "$filter": "properties/category eq 'resourceId'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/providers/microsoft.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/ccmapi/providers/Microsoft.Billing/billingAccounts/100/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2018-08-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountQuery.json new file mode 100644 index 000000000000..abeb0c67633d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/BillingAccountQuery.json @@ -0,0 +1,117 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "70664866", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.359416562625452, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsList.json new file mode 100644 index 000000000000..fc5f5bb9343d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "departmentId": "123" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..b0cc5fd3fece --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListExpandAndTop.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "departmentId": "123", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListWithFilter.json new file mode 100644 index 000000000000..8abc0e6934ee --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentDimensionsListWithFilter.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "departmentId": "123", + "$expand": "properties/data", + "$top": 5, + "$filter": "properties/category eq 'resourceId'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/microsoft.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/departments/123/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2018-08-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentQuery.json new file mode 100644 index 000000000000..e52ac3ca6e0e --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/DepartmentQuery.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "70664866", + "departmentId": "123", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/departments/123/providers/Microsoft.CostManagement/Query?api-version=2018-08-31&$skiptoken=AQAAAA%3D%3D", + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.359416562625452, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsList.json new file mode 100644 index 000000000000..257b17cb2782 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsList.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "enrollmentAccountId": "456" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..738ec11c1640 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListExpandAndTop.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListWithFilter.json new file mode 100644 index 000000000000..9a491309fd3e --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountDimensionsListWithFilter.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "100", + "enrollmentAccountId": "456", + "$expand": "properties/data", + "$top": 5, + "$filter": "properties/category eq 'resourceId'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/microsoft.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2018-08-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountQuery.json new file mode 100644 index 000000000000..8ebf58fde08a --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/EnrollmentAccountQuery.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "billingAccountId": "70664866", + "enrollmentAccountId": "456", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": "https://management.azure.com/providers/Microsoft.Billing/billingAccounts/70664866/enrollmentAccounts/456/providers/Microsoft.CostManagement/Query?api-version=2018-08-31&$skiptoken=AQAAAA%3D%3D", + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.359416562625452, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsList.json new file mode 100644 index 000000000000..3ab2156da7a5 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsList.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "managementGroupId": "MyMgId" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListExpandAndTop.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListExpandAndTop.json new file mode 100644 index 000000000000..57584d5a5e1a --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListExpandAndTop.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "managementGroupId": "MyMgId", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "thoroetrg01", + "default-notificationhubs-westus", + "jedikeyvaultrg", + "contosocodeflow8d4a", + "noobaa" + ], + "total": 377, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.automation/automationaccounts", + "microsoft.databricks/workspaces", + "microsoft.dbformysql/servers", + "microsoft.containerregistry/registries", + "microsoft.search/searchservices" + ], + "total": 37, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListWithFilter.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListWithFilter.json new file mode 100644 index 000000000000..a3361a53b160 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupDimensionsListWithFilter.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "managementGroupId": "MyMgId", + "$expand": "properties/data", + "$top": 5, + "$filter": "properties/category eq 'resourceId'" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/microsoft.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/urphealthaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/67e24f6b-1ec2-4c90-993a-dc2d25b00b6c/resourcegroups/defaultresourcegroup-eus/providers/microsoft.operationalinsights/workspaces/defaultworkspace-67e24f6b-1ec2-4c90-993a-dc2d25b00b6c-eus", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/rg-sql-ha/providers/microsoft.compute/virtualmachines/sql-4qqp1", + "/subscriptions/a98d6dc5-eb8f-46cf-8938-f1fb08f03706/resourcegroups/databricks-rg-testwsp-xijmsdubneexm/providers/microsoft.compute/disks/488cdb42bf74474a98075415be3f806c-containerrootvolume" + ], + "total": 1409, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true, + "nextLink": "http://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.Consumption/Dimensions?$filter=properties/category eq 'resourceId'&$top=5&api-version=2018-08-31&$expand=properties/data&$skiptoken=AQAAAA%3D%3D" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupQuery.json new file mode 100644 index 000000000000..861b32caefda --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ManagementGroupQuery.json @@ -0,0 +1,117 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "managementGroupId": "MyMgId", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query/ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "name": "ad67fd91-c131-4bda-9ba9-7187ecb1cebd", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": "https://management.azure.com/providers/Microsoft.Management/managementGroups/MyMgId/providers/Microsoft.CostManagement/Query?api-version=2018-05-31&$skiptoken=AQAAAA%3D%3D", + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 19.545363672276512, + "JapanUnifia-Trial", + 20180331, + "USD" + ], + [ + 173.41979241290323, + "RVIIOT-TRIAL", + 20180331, + "USD" + ], + [ + 20.359416562625452, + "VSTSHOL-1595322048000", + 20180331, + "USD" + ], + [ + 0.16677720329728665, + "gs-stms-dev", + 20180331, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json new file mode 100644 index 000000000000..e6e813eceaff --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportConfigName": "TestReportConfig" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", + "name": "TestReportConfig", + "type": "Microsoft.Consumption/reportconfigs", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "UsageDate", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Dimension", + "name": "SubscriptionName" + }, + { + "columnType": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "Contains", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json new file mode 100644 index 000000000000..d3852feef0fc --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json @@ -0,0 +1,287 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportConfigName": "TestReportConfig", + "parameters": { + "properties": { + "schedule": { + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Dimension", + "name": "SubscriptionName" + }, + { + "columnType": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", + "name": "TestReportConfig", + "type": "Microsoft.Consumption/reportconfigs", + "properties": { + "schedule": { + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Dimension", + "name": "SubscriptionName" + }, + { + "columnType": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + }, + "200": { + "body": { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", + "name": "TestReportConfig", + "type": "Microsoft.Consumption/reportconfigs", + "properties": { + "schedule": { + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Dimension", + "name": "SubscriptionName" + }, + { + "columnType": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json new file mode 100644 index 000000000000..ecddaf005478 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG", + "reportConfigName": "TestReport" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json new file mode 100644 index 000000000000..797e73df1cd3 --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json @@ -0,0 +1,174 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "MYDEVTESTRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig1", + "name": "TestReportConfig1", + "type": "Microsoft.Consumption/reportconfigs", + "properties": { + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "Custom", + "timePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + }, + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "PreTaxCost" + ] + }, + "aggregation": { + "costSum": { + "name": "PreTaxCost", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Dimension", + "name": "SubscriptionName" + } + ], + "filter": { + "and": [ + { + "or": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + } + }, + { + "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig2", + "name": "TestReportConfig2", + "type": "Microsoft.Consumption/reportconfigs", + "properties": { + "schedule": { + "status": "Active", + "recurrence": "Weekly", + "recurrencePeriod": { + "from": "2018-06-01T00:00:00Z", + "to": "2018-10-31T00:00:00Z" + } + }, + "format": "Csv", + "deliveryInfo": { + "destination": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", + "container": "reports", + "rootFolderPath": "ad-hoc" + } + }, + "definition": { + "type": "Usage", + "timeframe": "WeekToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "Date", + "MeterId", + "InstanceId", + "ResourceLocation", + "UsageQuantity" + ] + }, + "aggregation": { + "usageSum": { + "name": "UsageQuantity", + "function": "Sum" + } + }, + "grouping": [ + { + "columnType": "Tag", + "name": "Environment" + } + ], + "filter": { + "and": [ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + } + } + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupDimensionsList.json new file mode 100644 index 000000000000..38cbb2b7285d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupDimensionsList.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", + "resourceGroupName": "system.orlando", + "$expand": "properties/data", + "$top": 5 + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.storage/storageaccounts" + ], + "total": 1, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourceGroups/system.orlando/providers/microsoft.consumption/dimensions_ResourceId_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceId_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/authprod", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/systemevents", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/armadminprod", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/srphytenaccount", + "/subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/resourcegroups/system.orlando/providers/microsoft.storage/storageaccounts/publicsystemportal" + ], + "total": 27, + "category": "ResourceId", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource Id", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupQuery.json new file mode 100644 index 000000000000..75ce51df032d --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ResourceGroupQuery.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "55312978-ba1b-415c-9304-c4b9c43c0481", + "resourceGroupName": "ScreenSharingTest-peer", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/55312978-ba1b-415c-9304-c4b9c43c0481/resourcegroups/ScreenSharingTest-peer/providers/Microsoft.CostManagement/Query/9af9459d-441d-4055-9ed0-83d4c4a363fb", + "name": "9af9459d-441d-4055-9ed0-83d4c4a363fb", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": null, + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180417, + "USD" + ], + [ + 20.10333307059661, + "ScreenSharingTest-peer", + 20180418, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionDimensionsList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionDimensionsList.json new file mode 100644 index 000000000000..51856b6336ec --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionDimensionsList.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "39ae8bea-c3fd-4e24-8936-7c34974326ce", + "$top": 5, + "$expand": "properties/data" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceGroup_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "dcrg", + "rg", + "offlinegalleryrg", + "system.orlando.adminkeyvault", + "system.orlando.keyvault" + ], + "total": 68, + "category": "ResourceGroup", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource group", + "filterEnabled": true, + "groupingEnabled": true + } + }, + { + "id": "subscriptions/39ae8bea-c3fd-4e24-8936-7c34974326ce/providers/Microsoft.Consumption/dimensions_ResourceType_2018-05-01_2018-05-31_5", + "name": "dimensions_ResourceType_2018-05-01_2018-05-31_5", + "type": "microsoft.consumption/dimensions", + "properties": { + "data": [ + "microsoft.storage/storageaccounts", + "microsoft.web.admin/role", + "microsoft.sql/servers", + "microsoft.compute/virtualmachines" + ], + "total": 4, + "category": "ResourceType", + "usageStart": "2018-05-01T00:00:00-07:00", + "usageEnd": "2018-05-31T00:00:00-07:00", + "description": "Resource type", + "filterEnabled": true, + "groupingEnabled": true + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionQuery.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionQuery.json new file mode 100644 index 000000000000..ce2425d170ac --- /dev/null +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/SubscriptionQuery.json @@ -0,0 +1,117 @@ +{ + "parameters": { + "api-version": "2018-08-31", + "subscriptionId": "55312978-ba1b-415c-9304-c6b9c43c0481", + "parameters":{ + "type": "Usage", + "timeframe": "MonthToDate", + "dataset": { + "granularity": "Daily", + "configuration": { + "columns": [ + "PreTaxCost", + "ResourceGroup", + "UsageDate" + ] + }, + "filter":{ + "and": [ + { + "or":[ + { + "dimension": { + "name": "ResourceLocation", + "operator": "In", + "values": [ + "East US", + "West Europe" + ] + } + }, + { + "tag": { + "name": "Environment", + "operator": "In", + "values": [ + "UAT", + "Prod" + ] + } + } + ] + }, + { + "dimension": { + "name": "ResourceGroup", + "operator": "In", + "values": [ + "API" + ] + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/55312978-ba1b-415c-9304-c6b9c43c0481/providers/Microsoft.CostManagement/Query/55312978-ba1b-415c-9304-c6b9c43c0481", + "name": "55312978-ba1b-415c-9304-cfd9c43c0481", + "type": "microsoft.costmanagement/Query", + "properties": { + "nextLink": null, + "columns": [ + { + "name": "PreTaxCost", + "type": "Number" + }, + { + "name": "ResourceGroup", + "type": "String" + }, + { + "name": "UsageDate", + "type": "Number" + }, + { + "name": "Currency", + "type": "String" + } + ], + "rows": [ + [ + 2.10333307059661, + "ScreenSharingTest-peer", + 20180417, + "USD" + ], + [ + 218.68795741935486, + "Ict_StratAndPlan_GoldSprova_Prod", + 20180331, + "USD" + ], + [ + 0.14384913581657052, + "ssbciotelement01", + 20180331, + "USD" + ], + [ + 0.009865586851323632, + "ict_stratandplan_goldsprova_prod", + 20180331, + "USD" + ] + ] + } + } + ] + } + } + } +} \ No newline at end of file From 57cc3b1c16e4d747ac1163c2da6e73c06f28fdcb Mon Sep 17 00:00:00 2001 From: Jianping Zeng Date: Thu, 20 Sep 2018 11:06:29 -0700 Subject: [PATCH 19/39] Change operationId of Microsoft.Authorization (#3969) --- .../Microsoft.Authorization/stable/2016-09-01/locks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json index b956c255c74a..37454a4fd91d 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2016-09-01/locks.json @@ -39,7 +39,7 @@ "tags": [ "Operations" ], - "operationId": "ListOperations", + "operationId": "AuthorizationOperations_List", "description": "Lists all of the available Microsoft.Authorization REST API operations.", "parameters": [ { From 9948def62c2193364cc611f9078a8b6d746676e2 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Thu, 20 Sep 2018 11:30:04 -0700 Subject: [PATCH 20/39] Minor Fix (#3970) --- scripts/momentOfTruthPostProcessing.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/momentOfTruthPostProcessing.js b/scripts/momentOfTruthPostProcessing.js index 29f6c7e0638b..e838c8e683aa 100644 --- a/scripts/momentOfTruthPostProcessing.js +++ b/scripts/momentOfTruthPostProcessing.js @@ -300,7 +300,7 @@ function postProcessing() { let beforeErrorsAndWarningsArray = jsonData['files'][fileName]['before']; beforeErrorsAndWarningsArray.forEach(beforeErrorOrWarning => { - if(beforeErrorOrWarning.type.toLowerCase() == 'warning'){ + if(beforeErrorOrWarning.type != undefined && beforeErrorOrWarning.type.toLowerCase() == 'warning'){ if(beforeErrorOrWarning.validationCategory.toLowerCase() == 'sdkviolation') { beforeWarningsSDKArray.push(beforeErrorOrWarning); } else { @@ -308,7 +308,7 @@ function postProcessing() { } } - if(beforeErrorOrWarning.type.toLowerCase() == 'error'){ + if(beforeErrorOrWarning.type != undefined && beforeErrorOrWarning.type.toLowerCase() == 'error'){ if(beforeErrorOrWarning.validationCategory.toLowerCase() == 'sdkviolation') { beforeErrorsSDKArray.push(beforeErrorOrWarning); } else { @@ -319,7 +319,7 @@ function postProcessing() { let afterErrorsAndWarningsArray = jsonData['files'][fileName]['after']; afterErrorsAndWarningsArray.forEach(afterErrorOrWarning => { - if(afterErrorOrWarning.type.toLowerCase() == 'warning'){ + if(afterErrorOrWarning.type != undefined && afterErrorOrWarning.type.toLowerCase() == 'warning'){ if(afterErrorOrWarning.validationCategory.toLowerCase() == 'sdkviolation') { afterWarningsSDKArray.push(afterErrorOrWarning); } else { @@ -327,7 +327,7 @@ function postProcessing() { } } - if(afterErrorOrWarning.type.toLowerCase() == 'error'){ + if(afterErrorOrWarning.type != undefined && afterErrorOrWarning.type.toLowerCase() == 'error'){ if(afterErrorOrWarning.validationCategory.toLowerCase() == 'sdkviolation') { afterErrorsSDKArray.push(afterErrorOrWarning); } else { From 4869e3050d1d39d47514a37599ae170f988e233f Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Thu, 20 Sep 2018 14:48:15 -0700 Subject: [PATCH 21/39] Move Go SDK config for back to its own config file (#3975) --- .../resource-manager/readme.go.md | 46 ++++++++++++++++++ .../resource-manager/readme.md | 48 ------------------- 2 files changed, 46 insertions(+), 48 deletions(-) create mode 100644 specification/recoveryservicesbackup/resource-manager/readme.go.md diff --git a/specification/recoveryservicesbackup/resource-manager/readme.go.md b/specification/recoveryservicesbackup/resource-manager/readme.go.md new file mode 100644 index 000000000000..eeaa6270b20f --- /dev/null +++ b/specification/recoveryservicesbackup/resource-manager/readme.go.md @@ -0,0 +1,46 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + clear-output-folder: true + namespace: backup +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2017-07 + - tag: package-2016-12 + - tag: package-2016-06 +``` + +### Tag: package-2017-07 and go + +These settings apply only when `--tag=package-2017-07 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2017-07' && $(go) +output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2017-07-01/backup +``` + +### Tag: package-2016-12 and go + +These settings apply only when `--tag=package-2016-12 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2016-12' && $(go) +output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2016-12-01/backup +``` + +### Tag: package-2016-06 and go + +These settings apply only when `--tag=package-2016-06 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2016-06' && $(go) +output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2016-06-01/backup +``` diff --git a/specification/recoveryservicesbackup/resource-manager/readme.md b/specification/recoveryservicesbackup/resource-manager/readme.md index 782c24197442..d0c28babaa2f 100644 --- a/specification/recoveryservicesbackup/resource-manager/readme.md +++ b/specification/recoveryservicesbackup/resource-manager/readme.md @@ -191,51 +191,3 @@ java: regenerate-manager: true generate-interface: true ``` - - -## Go - -These settings apply only when `--go` is specified on the command line. - -``` yaml $(go) -go: - license-header: MICROSOFT_APACHE_NO_VERSION - clear-output-folder: true - namespace: backup -``` - -### Go multi-api - -``` yaml $(go) && $(multiapi) -batch: - - tag: package-2017-07 - - tag: package-2016-12 - - tag: package-2016-06 -``` - -### Tag: package-2017-07 and go - -These settings apply only when `--tag=package-2017-07 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2017-07' && $(go) -output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2017-07-01/backup -``` - -### Tag: package-2016-12 and go - -These settings apply only when `--tag=package-2016-12 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2016-12' && $(go) -output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2016-12-01/backup -``` - -### Tag: package-2016-06 and go - -These settings apply only when `--tag=package-2016-06 --go` is specified on the command line. -Please also specify `--go-sdk-folder=`. - -``` yaml $(tag)=='package-2016-06' && $(go) -output-folder: $(go-sdk-folder)/services/recoveryservices/mgmt/2016-06-01/backup -``` From e9b8241965b77cbb89ea3a0661d25753e1027eec Mon Sep 17 00:00:00 2001 From: khughes66 Date: Thu, 20 Sep 2018 15:35:04 -0700 Subject: [PATCH 22/39] Quick fix to response type of runbookdraftcontent get (#3913) --- .../Microsoft.Automation/stable/2018-06-30/runbook.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json index eebcd8be7a27..46df5d6fb89d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json @@ -79,7 +79,7 @@ "200": { "description": "OK", "schema": { - "type": "string" + "type": "file" } }, "default": { From be88f66cc94c0572a1f025443c0409d1a4ee46e4 Mon Sep 17 00:00:00 2001 From: robhat1 Date: Fri, 21 Sep 2018 08:56:17 -0700 Subject: [PATCH 23/39] Updated comments and introduced AvailabilitySetSkuType to help users use predefined constants (#3971) --- .../stable/2018-06-01/compute.json | 84 +++++++++++-------- 1 file changed, 48 insertions(+), 36 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json index a58e696a1d5b..028fff2d752b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json @@ -1437,7 +1437,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via":"location" + "final-state-via": "location" } } }, @@ -4130,7 +4130,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via":"azure-async-operation" + "final-state-via": "azure-async-operation" } } }, @@ -4184,7 +4184,7 @@ }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { - "final-state-via":"azure-async-operation" + "final-state-via": "azure-async-operation" } } } @@ -4312,6 +4312,18 @@ }, "description": "The instance view of a resource." }, + "AvailabilitySetSkuType": { + "type": "string", + "description": "Specifies the sku of an Availability Set. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.", + "enum": [ + "Classic", + "Aligned" + ], + "x-ms-enum": { + "name": "AvailabilitySetSkuTypes", + "modelAsString": true + } + }, "AvailabilitySet": { "properties": { "properties": { @@ -4320,7 +4332,7 @@ }, "sku": { "$ref": "#/definitions/Sku", - "description": "Sku of the availability set" + "description": "Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'." } }, "allOf": [ @@ -5164,7 +5176,7 @@ }, "StorageAccountType": { "type": "string", - "description": "Specifies the storage account type for the managed disk. UltraSSD_LRS can only be used for data disks.", + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.", "enum": [ "Standard_LRS", "Premium_LRS", @@ -5180,7 +5192,7 @@ "properties": { "storageAccountType": { "$ref": "#/definitions/StorageAccountType", - "description": "Specifies the storage account type for the managed disk. UltraSSD_LRS can only be used for data disks." + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." } }, "allOf": [ @@ -5315,13 +5327,13 @@ "description": "Specifies the storage settings for the virtual machine disks." }, "AdditionalCapabilities": { - "properties": { - "ultraSSDEnabled": { - "type": "boolean", - "description": "Enables or disables a capability to have 1 or more managed data disks with UltraSSD_LRS storage account on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled." - } - }, - "description": "Enables or disables a capability on the virtual machine or virtual machine scale set" + "properties": { + "ultraSSDEnabled": { + "type": "boolean", + "description": "The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled." + } + }, + "description": "Enables or disables a capability on the virtual machine or virtual machine scale set." }, "AdditionalUnattendContent": { "properties": { @@ -5840,10 +5852,10 @@ "$ref": "#/definitions/StorageProfile", "description": "Specifies the storage settings for the virtual machine disks." }, - "additionalCapabilities": { - "$ref": "#/definitions/AdditionalCapabilities", - "description": "Specifies additional capabilities enabled or disabled on the virtual machine. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." - }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine." + }, "osProfile": { "$ref": "#/definitions/OSProfile", "description": "Specifies the operating system settings for the virtual machine." @@ -6112,7 +6124,7 @@ }, "storageAccountType": { "$ref": "#/definitions/StorageAccountType", - "description": "Specifies the storage account type for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and StandardSSD_LRS." + "description": "Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk." } }, "required": [ @@ -6160,7 +6172,7 @@ }, "storageAccountType": { "$ref": "#/definitions/StorageAccountType", - "description": "Specifies the storage account type for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and StandardSSD_LRS." + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." } }, "required": [ @@ -6183,7 +6195,7 @@ }, "zoneResilient": { "type": "boolean", - "description": "Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS)." + "description": "Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS)." } }, "description": "Describes a storage profile." @@ -6365,7 +6377,7 @@ "properties": { "storageAccountType": { "$ref": "#/definitions/StorageAccountType", - "description": "Specifies the storage account type for the managed disk. Possible values are: Standard_LRS, Premium_LRS, and StandardSSD_LRS." + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." } }, "description": "Describes the parameters of a ScaleSet managed disk." @@ -6890,8 +6902,8 @@ }, "description": "The list of IP tags associated with the public IP address." }, - "publicIPPrefix" : { - "$ref":"#/definitions/SubResource", + "publicIPPrefix": { + "$ref": "#/definitions/SubResource", "description": "The PublicIPPrefix from which to allocate publicIP addresses." } }, @@ -7036,10 +7048,10 @@ "$ref": "#/definitions/VirtualMachineScaleSetStorageProfile", "description": "Specifies the storage settings for the virtual machine disks." }, - "additionalCapabilities": { - "$ref": "#/definitions/AdditionalCapabilities", - "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." - }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." + }, "networkProfile": { "$ref": "#/definitions/VirtualMachineScaleSetNetworkProfile", "description": "Specifies properties of the network interfaces of the virtual machines in the scale set." @@ -7445,20 +7457,20 @@ "description": "The Virtual Machine Scale Set List Skus operation response." }, "RollbackStatusInfo": { - "properties":{ - "successfullyRolledbackInstanceCount" : { + "properties": { + "successfullyRolledbackInstanceCount": { "readOnly": true, "type": "integer", "format": "int32", "description": "The number of instances which have been successfully rolled back." }, - "failedRolledbackInstanceCount" : { + "failedRolledbackInstanceCount": { "readOnly": true, "type": "integer", "format": "int32", "description": "The number of instances which failed to rollback." }, - "rollbackError" : { + "rollbackError": { "$ref": "#/definitions/ApiError", "readOnly": true, "description": "Error details if OS rollback failed." @@ -7606,10 +7618,10 @@ "$ref": "#/definitions/StorageProfile", "description": "Specifies the storage settings for the virtual machine disks." }, - "additionalCapabilities": { - "$ref": "#/definitions/AdditionalCapabilities", - "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." - }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." + }, "osProfile": { "$ref": "#/definitions/OSProfile", "description": "Specifies the operating system settings for the virtual machine." @@ -8133,4 +8145,4 @@ "description": "Client Api Version." } } -} +} \ No newline at end of file From d5b947894f4609bae422a306cd4d1136054df2a6 Mon Sep 17 00:00:00 2001 From: vanbasten2323 Date: Fri, 21 Sep 2018 11:09:17 -0700 Subject: [PATCH 24/39] Made minor change to gallery swagger. (#3981) --- .../Microsoft.Compute/stable/2018-06-01/gallery.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json index f9b854ef86a4..2f01f93941a4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json @@ -53,7 +53,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1081,6 +1081,9 @@ "description": "The number of replicas of the Image Version to be created per region. This property is updateable." } }, + "required": [ + "name" + ], "description": "Describes the target region information." }, "GalleryArtifactSource": { From acaf947b0c6140bcb22d3e56a4c87d68c18e475f Mon Sep 17 00:00:00 2001 From: rareddaz <33238748+rareddaz@users.noreply.github.com> Date: Fri, 21 Sep 2018 12:25:18 -0700 Subject: [PATCH 25/39] Added API version 2018-10-01 (#3896) --- .../stable/2018-10-01/compute.json | 8148 +++++++++++++++++ ...eSetFromAnUnmanagedGeneralizedOsImage.json | 202 + ...geVmFromAnUnmanagedGeneralizedOsImage.json | 146 + .../CreateALinuxVmWithoutExtensions.json | 183 + .../CreateALinuxVmWithoutGuestAgent.json | 183 + ...formImageScaleSetWithUnmanagedOsDisks.json | 222 + ...ormImageVmWithUnmanagedOsAndDataDisks.json | 214 + .../CreateAScaleSetFromACustomImage.json | 204 + ...ateAScaleSetWithAMarketplaceImagePlan.json | 230 + ...ScaleSetWithAnAzureApplicationGateway.json | 230 + ...reateAScaleSetWithAnAzureLoadBalancer.json | 245 + .../CreateAScaleSetWithBootDiagnostics.json | 233 + ...teAScaleSetWithEmptyDataDisksOnEachVm.json | 270 + ...teAScaleSetWithPasswordAuthentication.json | 215 + .../CreateAScaleSetWithPremiumStorage.json | 215 + .../CreateAScaleSetWithSshAuthentication.json | 239 + ...reateAScaleSetWithVMsInDifferentZones.json | 284 + ...managedBlobFromADifferentSubscription.json | 49 + ...nUnmanagedBlobFromTheSameSubscription.json | 46 + ...CreateASnapshotFromAnExistingSnapshot.json | 46 + .../examples/CreateAVmFromACustomImage.json | 145 + .../CreateAVmInAnAvailabilitySet.json | 163 + .../CreateAVmWithAMarketplaceImagePlan.json | 169 + .../CreateAVmWithBootDiagnostics.json | 172 + .../examples/CreateAVmWithEmptyDataDisks.json | 204 + .../CreateAVmWithPasswordAuthentication.json | 154 + .../examples/CreateAVmWithPremiumStorage.json | 154 + .../CreateAVmWithSshAuthentication.json | 178 + .../CreateAWindowsVmWithoutExtensions.json | 157 + .../CreateAWindowsVmWithoutGuestAgent.json | 159 + .../examples/CreateAnAvailabilitySet.json | 32 + .../examples/CreateAnImageFromABlob.json | 62 + .../CreateAnImageFromAManagedDisk.json | 68 + .../examples/CreateAnImageFromASnapshot.json | 68 + .../examples/CreateAnImageFromAVM.json | 68 + ...AnImageThatIncludesADataDiskFromABlob.json | 78 + ...ThatIncludesADataDiskFromAManagedDisk.json | 90 + ...ageThatIncludesADataDiskFromASnapshot.json | 90 + .../GetInformationAboutASnapshot.json | 46 + .../examples/GetInformationAboutAnImage.json | 49 + .../ListAvailabilitySetsInASubscription.json | 46 + .../examples/ListImagesInAResourceGroup.json | 51 + .../examples/ListImagesInASubscription.json | 50 + .../ListSnapshotsInAResourceGroup.json | 50 + .../ListSnapshotsInASubscription.json | 85 + .../LogAnalyticsRequestRateByInterval.json | 30 + .../LogAnalyticsThrottledRequests.json | 30 + .../VMScaleSetExtensionRollingUpgrade.json | 20 + .../examples/VirtualMachineRunCommand.json | 36 + .../examples/VirtualMachineRunCommandGet.json | 38 + .../VirtualMachineRunCommandList.json | 75 + .../stable/2018-10-01/runCommands.json | 461 + .../compute/resource-manager/readme.md | 26 +- 53 files changed, 15107 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutExtensions.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutGuestAgent.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetFromACustomImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAMarketplaceImagePlan.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureApplicationGateway.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureLoadBalancer.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithBootDiagnostics.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPasswordAuthentication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPremiumStorage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithSshAuthentication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithVMsInDifferentZones.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotFromAnExistingSnapshot.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmFromACustomImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmInAnAvailabilitySet.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithAMarketplaceImagePlan.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithBootDiagnostics.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithEmptyDataDisks.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPasswordAuthentication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPremiumStorage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithSshAuthentication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutExtensions.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutGuestAgent.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnAvailabilitySet.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromABlob.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAManagedDisk.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromASnapshot.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAVM.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromABlob.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutASnapshot.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutAnImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInAResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInASubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInAResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInASubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VMScaleSetExtensionRollingUpgrade.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandGet.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandList.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/runCommands.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json new file mode 100644 index 000000000000..c19a15e92dcf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json @@ -0,0 +1,8148 @@ +{ + "swagger": "2.0", + "info": { + "title": "ComputeManagementClient", + "description": "The Compute Management Client.", + "version": "2018-10-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Compute/operations": { + "get": { + "tags": [ + "ComputeOperations" + ], + "operationId": "Operations_List", + "description": "Gets a list of compute operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ComputeOperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}": { + "put": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_CreateOrUpdate", + "description": "Create or update an availability set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "availabilitySetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the availability set." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AvailabilitySet" + }, + "description": "Parameters supplied to the Create Availability Set operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + } + }, + "x-ms-examples": { + "Create an availability set.": { + "$ref": "./examples/CreateAnAvailabilitySet.json" + } + } + }, + "patch": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Update", + "description": "Update an availability set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "availabilitySetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the availability set." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AvailabilitySetUpdate" + }, + "description": "Parameters supplied to the Update Availability Set operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + } + } + }, + "delete": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Delete", + "description": "Delete an availability set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "availabilitySetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the availability set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "No Content" + } + } + }, + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_Get", + "description": "Retrieves information about an availability set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "availabilitySetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the availability set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AvailabilitySet" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_ListBySubscription", + "description": "Lists all availability sets in a subscription.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AvailabilitySetListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_List", + "description": "Lists all availability sets in a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AvailabilitySetListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes": { + "get": { + "tags": [ + "AvailabilitySets" + ], + "operationId": "AvailabilitySets_ListAvailableSizes", + "description": "Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "availabilitySetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the availability set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineSizeListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}": { + "get": { + "tags": [ + "VirtualMachineExtensionImages" + ], + "operationId": "VirtualMachineExtensionImages_Get", + "description": "Gets a virtual machine extension image.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "type", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "version", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineExtensionImage" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types": { + "get": { + "tags": [ + "VirtualMachineExtensionImages" + ], + "operationId": "VirtualMachineExtensionImages_ListTypes", + "description": "Gets a list of virtual machine extension image types.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtensionImage" + } + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions": { + "get": { + "tags": [ + "VirtualMachineExtensionImages" + ], + "operationId": "VirtualMachineExtensionImages_ListVersions", + "description": "Gets a list of virtual machine extension image versions.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "type", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtensionImage" + } + } + } + }, + "x-ms-odata": "#/definitions/VirtualMachineExtensionImage" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}": { + "put": { + "tags": [ + "VirtualMachineExtensions" + ], + "operationId": "VirtualMachineExtensions_CreateOrUpdate", + "description": "The operation to create or update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine where the extension should be created or updated." + }, + { + "name": "vmExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineExtension" + }, + "description": "Parameters supplied to the Create Virtual Machine Extension operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineExtension" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachineExtension" + } + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "VirtualMachineExtensions" + ], + "operationId": "VirtualMachineExtensions_Update", + "description": "The operation to update the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine where the extension should be updated." + }, + { + "name": "vmExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineExtensionUpdate" + }, + "description": "Parameters supplied to the Update Virtual Machine Extension operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineExtension" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachineExtensions" + ], + "operationId": "VirtualMachineExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine where the extension should be deleted." + }, + { + "name": "vmExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine extension." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "VirtualMachineExtensions" + ], + "operationId": "VirtualMachineExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine containing the extension." + }, + { + "name": "vmExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineExtension" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions": { + "get": { + "tags": [ + "VirtualMachineExtensions" + ], + "operationId": "VirtualMachineExtensions_List", + "description": "The operation to get all extensions of a Virtual Machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine containing the extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineExtensionsListResult" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}": { + "get": { + "tags": [ + "VirtualMachineImages" + ], + "operationId": "VirtualMachineImages_Get", + "description": "Gets a virtual machine image.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher." + }, + { + "name": "offer", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher offer." + }, + { + "name": "skus", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image SKU." + }, + { + "name": "version", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image SKU version." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineImage" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions": { + "get": { + "tags": [ + "VirtualMachineImages" + ], + "operationId": "VirtualMachineImages_List", + "description": "Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher." + }, + { + "name": "offer", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher offer." + }, + { + "name": "skus", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image SKU." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "$orderby", + "in": "query", + "required": false, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineImageResource" + } + } + } + }, + "x-ms-odata": "#/definitions/VirtualMachineImageResource" + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers": { + "get": { + "tags": [ + "VirtualMachineImages" + ], + "operationId": "VirtualMachineImages_ListOffers", + "description": "Gets a list of virtual machine image offers for the specified location and publisher.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineImageResource" + } + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers": { + "get": { + "tags": [ + "VirtualMachineImages" + ], + "operationId": "VirtualMachineImages_ListPublishers", + "description": "Gets a list of virtual machine image publishers for the specified Azure location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineImageResource" + } + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus": { + "get": { + "tags": [ + "VirtualMachineImages" + ], + "operationId": "VirtualMachineImages_ListSkus", + "description": "Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The name of a supported Azure region." + }, + { + "name": "publisherName", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher." + }, + { + "name": "offer", + "in": "path", + "required": true, + "type": "string", + "description": "A valid image publisher offer." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineImageResource" + } + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages": { + "get": { + "tags": [ + "Usage" + ], + "operationId": "Usage_List", + "description": "Gets, for the specified location, the current compute resource usage information as well as the limits for compute resources under the subscription.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location for which resource usage is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ListUsagesResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes": { + "get": { + "tags": [ + "VirtualMachineSizes" + ], + "operationId": "VirtualMachineSizes_List", + "description": "This API is deprecated. Use [Resources Skus](https://docs.microsoft.com/en-us/rest/api/compute/resourceskus/list)", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location upon which virtual-machine-sizes is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineSizeListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}": { + "put": { + "tags": [ + "Images" + ], + "operationId": "Images_CreateOrUpdate", + "description": "Create or update an image.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Image" + }, + "description": "Parameters supplied to the Create Image operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Image" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Image" + } + } + }, + "x-ms-examples": { + "Create a virtual machine image from a blob.": { + "$ref": "./examples/CreateAnImageFromABlob.json" + }, + "Create a virtual machine image from a snapshot.": { + "$ref": "./examples/CreateAnImageFromASnapshot.json" + }, + "Create a virtual machine image from a managed disk.": { + "$ref": "./examples/CreateAnImageFromAManagedDisk.json" + }, + "Create a virtual machine image from an existing virtual machine.": { + "$ref": "./examples/CreateAnImageFromAVM.json" + }, + "Create a virtual machine image that includes a data disk from a blob.": { + "$ref": "./examples/CreateAnImageThatIncludesADataDiskFromABlob.json" + }, + "Create a virtual machine image that includes a data disk from a snapshot.": { + "$ref": "./examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json" + }, + "Create a virtual machine image that includes a data disk from a managed disk.": { + "$ref": "./examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Images" + ], + "operationId": "Images_Update", + "description": "Update an image.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ImageUpdate" + }, + "description": "Parameters supplied to the Update Image operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Image" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Image" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Images" + ], + "operationId": "Images_Delete", + "description": "Deletes an Image.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Images" + ], + "operationId": "Images_Get", + "description": "Gets an image.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "imageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the image." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Image" + } + } + }, + "x-ms-examples": { + "Get information about a virtual machine image.": { + "$ref": "./examples/GetInformationAboutAnImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images": { + "get": { + "tags": [ + "Images" + ], + "operationId": "Images_ListByResourceGroup", + "description": "Gets the list of images under a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ImageListResult" + } + } + }, + "x-ms-examples": { + "List all virtual machine images in a resource group.": { + "$ref": "./examples/ListImagesInAResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images": { + "get": { + "tags": [ + "Images" + ], + "operationId": "Images_List", + "description": "Gets the list of Images in the subscription. Use nextLink property in the response to get the next page of Images. Do this till nextLink is null to fetch all the Images.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ImageListResult" + } + } + }, + "x-ms-examples": { + "List all virtual machine images in a subscription.": { + "$ref": "./examples/ListImagesInASubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Capture", + "description": "Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineCaptureParameters" + }, + "description": "Parameters supplied to the Capture Virtual Machine operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineCaptureResult" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via":"location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}": { + "put": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_CreateOrUpdate", + "description": "The operation to create or update a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachine" + }, + "description": "Parameters supplied to the Create Virtual Machine operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a vm with password authentication.": { + "$ref": "./examples/CreateAVmWithPasswordAuthentication.json" + }, + "Create a vm with ssh authentication.": { + "$ref": "./examples/CreateAVmWithSshAuthentication.json" + }, + "Create a vm with premium storage.": { + "$ref": "./examples/CreateAVmWithPremiumStorage.json" + }, + "Create a vm in an availability set.": { + "$ref": "./examples/CreateAVmInAnAvailabilitySet.json" + }, + "Create a vm with boot diagnostics.": { + "$ref": "./examples/CreateAVmWithBootDiagnostics.json" + }, + "Create a vm with empty data disks.": { + "$ref": "./examples/CreateAVmWithEmptyDataDisks.json" + }, + "Create a vm with a marketplace image plan.": { + "$ref": "./examples/CreateAVmWithAMarketplaceImagePlan.json" + }, + "Create a vm from a custom image.": { + "$ref": "./examples/CreateAVmFromACustomImage.json" + }, + "Create a platform-image vm with unmanaged os and data disks.": { + "$ref": "./examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json" + }, + "Create a custom-image vm from an unmanaged generalized os image.": { + "$ref": "./examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json" + } + } + }, + "patch": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Update", + "description": "The operation to update a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineUpdate" + }, + "description": "Parameters supplied to the Update Virtual Machine operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Delete", + "description": "The operation to delete a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Get", + "description": "Retrieves information about the model view or the instance view of a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "instanceView" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachine" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_InstanceView", + "description": "Retrieves information about the run-time state of a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineInstanceView" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_ConvertToManagedDisks", + "description": "Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Deallocate", + "description": "Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Generalize", + "description": "Sets the state of the virtual machine to generalized.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_List", + "description": "Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_ListAll", + "description": "Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes": { + "get": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_ListAvailableSizes", + "description": "Lists all available virtual machine sizes to which the specified virtual machine can be resized.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineSizeListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_PowerOff", + "description": "The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Restart", + "description": "The operation to restart a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Start", + "description": "The operation to start a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_Redeploy", + "description": "The operation to redeploy a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_PerformMaintenance", + "description": "The operation to perform maintenance on a virtual machine.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}": { + "put": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_CreateOrUpdate", + "description": "Create or update a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set to create or update." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSet" + }, + "description": "The scale set object." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSet" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a scale set with password authentication.": { + "$ref": "./examples/CreateAScaleSetWithPasswordAuthentication.json" + }, + "Create a scale set with ssh authentication.": { + "$ref": "./examples/CreateAScaleSetWithSshAuthentication.json" + }, + "Create a scale set with premium storage.": { + "$ref": "./examples/CreateAScaleSetWithPremiumStorage.json" + }, + "Create a scale set with empty data disks on each vm.": { + "$ref": "./examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json" + }, + "Create a scale set with an azure load balancer.": { + "$ref": "./examples/CreateAScaleSetWithAnAzureLoadBalancer.json" + }, + "Create a scale set with an azure application gateway.": { + "$ref": "./examples/CreateAScaleSetWithAnAzureApplicationGateway.json" + }, + "Create a scale set with boot diagnostics.": { + "$ref": "./examples/CreateAScaleSetWithBootDiagnostics.json" + }, + "Create a scale set with a marketplace image plan.": { + "$ref": "./examples/CreateAScaleSetWithAMarketplaceImagePlan.json" + }, + "Create a scale set from a custom image.": { + "$ref": "./examples/CreateAScaleSetFromACustomImage.json" + }, + "Create a platform-image scale set with unmanaged os disks.": { + "$ref": "./examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json" + }, + "Create a custom-image scale set from an unmanaged generalized os image.": { + "$ref": "./examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json" + }, + "Create a scale set with virtual machines in different zones.": { + "$ref": "./examples/CreateAScaleSetWithVMsInDifferentZones.json" + } + } + }, + "patch": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Update", + "description": "Update a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set to create or update." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdate" + }, + "description": "The scale set object." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSet" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Delete", + "description": "Deletes a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Get", + "description": "Display information about a virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSet" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Deallocate", + "description": "Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and releases the compute resources. You are not billed for the compute resources that this virtual machine scale set deallocates.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_DeleteInstances", + "description": "Deletes virtual machines in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceRequiredIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView": { + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_GetInstanceView", + "description": "Gets the status of a VM scale set instance.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetInstanceView" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets": { + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_List", + "description": "Gets a list of all VM scale sets under a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}": { + "put": { + "tags": [ + "VirtualMachineScaleSetExtensions" + ], + "operationId": "VirtualMachineScaleSetExtensions_CreateOrUpdate", + "description": "The operation to create or update an extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set where the extension should be create or updated." + }, + { + "name": "vmssExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set extension." + }, + { + "name": "extensionParameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + }, + "description": "Parameters supplied to the Create VM scale set Extension operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachineScaleSetExtensions" + ], + "operationId": "VirtualMachineScaleSetExtensions_Delete", + "description": "The operation to delete the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set where the extension should be deleted." + }, + { + "name": "vmssExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set extension." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "VirtualMachineScaleSetExtensions" + ], + "operationId": "VirtualMachineScaleSetExtensions_Get", + "description": "The operation to get the extension.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set containing the extension." + }, + { + "name": "vmssExtensionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set extension." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions": { + "get": { + "tags": [ + "VirtualMachineScaleSetExtensions" + ], + "operationId": "VirtualMachineScaleSetExtensions_List", + "description": "Gets a list of all extensions in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set containing the extension." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetExtensionListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets": { + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_ListAll", + "description": "Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetListWithLinkResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus": { + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_ListSkus", + "description": "Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances allowed for each SKU.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetListSkusResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory": { + "get": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_GetOSUpgradeHistory", + "description": "Gets list of OS upgrades on a VM scale set instance.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetListOSUpgradeHistory" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_PowerOff", + "description": "Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Restart", + "description": "Restarts one or more virtual machines in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Start", + "description": "Starts one or more virtual machines in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Redeploy", + "description": "Redeploy one or more virtual machines in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_PerformMaintenance", + "description": "Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which are not eligible for perform maintenance will be failed. Please refer to best practices for more details: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_UpdateInstances", + "description": "Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceRequiredIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_Reimage", + "description": "Reimages (upgrade the operating system) one or more virtual machines in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_ReimageAll", + "description": "Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This operation is only supported for managed disks.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "vmInstanceIDs", + "in": "body", + "required": false, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceIDs" + }, + "description": "A list of virtual machine instance IDs from the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel": { + "post": { + "tags": [ + "VirtualMachineScaleSetRollingUpgrades" + ], + "operationId": "VirtualMachineScaleSetRollingUpgrades_Cancel", + "description": "Cancels the current virtual machine scale set rolling upgrade.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade": { + "post": { + "tags": [ + "VirtualMachineScaleSetRollingUpgrades" + ], + "operationId": "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade", + "description": "Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade": { + "post": { + "tags": [ + "VirtualMachineScaleSetRollingUpgrades" + ], + "operationId": "VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade", + "description": "Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start an extension rolling upgrade.": { + "$ref": "./examples/VMScaleSetExtensionRollingUpgrade.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest": { + "get": { + "tags": [ + "VirtualMachineScaleSetRollingUpgrades" + ], + "operationId": "VirtualMachineScaleSetRollingUpgrades_GetLatest", + "description": "Gets the status of the latest virtual machine scale set rolling upgrade.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RollingUpgradeStatusInfo" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk": { + "post": { + "tags": [ + "VirtualMachineScaleSets" + ], + "operationId": "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk", + "description": "Manual platform update domain walk to update virtual machines in a service fabric virtual machine scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "name": "platformUpdateDomain", + "in": "query", + "required": true, + "type": "integer", + "description": "The platform update domain for which a manual recovery walk is requested" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RecoveryWalkResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Reimage", + "description": "Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_ReimageAll", + "description": "Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This operation is only supported for managed disks.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Deallocate", + "description": "Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}": { + "put": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Update", + "description": "Updates a virtual machine of a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set where the extension should be create or updated." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVM" + }, + "description": "Parameters supplied to the Update Virtual Machine Scale Sets VM operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVM" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVM" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Delete", + "description": "Deletes a virtual machine from a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Get", + "description": "Gets a virtual machine from a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVM" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView": { + "get": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_GetInstanceView", + "description": "Gets the status of a virtual machine from a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceView" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines": { + "get": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_List", + "description": "Gets a list of all virtual machines in a VM scale sets.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "virtualMachineScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply to the operation." + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "The list parameters." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply to the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/VirtualMachineScaleSetVMListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/VirtualMachineScaleSetVM" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_PowerOff", + "description": "Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Restart", + "description": "Restarts a virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Start", + "description": "Starts a virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_Redeploy", + "description": "Redeploys a virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_PerformMaintenance", + "description": "Performs maintenance on a virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval": { + "post": { + "tags": [ + "LogAnalytics" + ], + "operationId": "LogAnalytics_ExportRequestRateByInterval", + "x-ms-examples": { + "Export logs which contain all Api requests made to Compute Resource Provider within the given time period broken down by intervals.": { + "$ref": "./examples/LogAnalyticsRequestRateByInterval.json" + } + }, + "description": "Export logs that show Api requests made by this subscription in the given time window to show throttling activities.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RequestRateByIntervalInput" + }, + "description": "Parameters supplied to the LogAnalytics getRequestRateByInterval Api." + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location upon which virtual-machine-sizes is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogAnalyticsOperationResult" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via":"azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests": { + "post": { + "tags": [ + "LogAnalytics" + ], + "operationId": "LogAnalytics_ExportThrottledRequests", + "x-ms-examples": { + "Export logs which contain all throttled Api requests made to Compute Resource Provider within the given time period.": { + "$ref": "./examples/LogAnalyticsThrottledRequests.json" + } + }, + "description": "Export logs that show total throttled Api requests for this subscription in the given time window.", + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ThrottledRequestsInput" + }, + "description": "Parameters supplied to the LogAnalytics getThrottledRequests Api." + }, + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location upon which virtual-machine-sizes is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/LogAnalyticsOperationResult" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via":"azure-async-operation" + } + } + } + }, + "definitions": { + "ComputeOperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ComputeOperationValue" + }, + "description": "The list of compute operations" + } + }, + "description": "The List Compute Operation operation response." + }, + "ComputeOperationValue": { + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the compute operation." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the compute operation." + }, + "display": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ComputeOperationValueDisplay" + } + }, + "description": "Describes the properties of a Compute Operation value." + }, + "ComputeOperationValueDisplay": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the compute operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Compute Operation Value Display." + }, + "InstanceViewStatus": { + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": false + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + }, + "AvailabilitySetProperties": { + "properties": { + "platformUpdateDomainCount": { + "type": "integer", + "format": "int32", + "description": "Update Domain count." + }, + "platformFaultDomainCount": { + "type": "integer", + "format": "int32", + "description": "Fault Domain count." + }, + "virtualMachines": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "A list of references to all virtual machines in the availability set." + }, + "statuses": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of a resource." + }, + "AvailabilitySetSkuType": { + "type": "string", + "description": "Specifies the sku of an Availability Set. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.", + "enum": [ + "Classic", + "Aligned" + ], + "x-ms-enum": { + "name": "AvailabilitySetSkuTypes", + "modelAsString": true + } + }, + "AvailabilitySet": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AvailabilitySetProperties" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set." + }, + "AvailabilitySetUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/AvailabilitySetProperties" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "Sku of the availability set" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated." + }, + "AvailabilitySetListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AvailabilitySet" + }, + "description": "The list of availability sets" + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets." + } + }, + "required": [ + "value" + ], + "description": "The List Availability Set operation response." + }, + "VirtualMachineSize": { + "properties": { + "name": { + "type": "string", + "description": "The name of the virtual machine size." + }, + "numberOfCores": { + "type": "integer", + "format": "int32", + "description": "The number of cores supported by the virtual machine size." + }, + "osDiskSizeInMB": { + "type": "integer", + "format": "int32", + "description": "The OS disk size, in MB, allowed by the virtual machine size." + }, + "resourceDiskSizeInMB": { + "type": "integer", + "format": "int32", + "description": "The resource disk size, in MB, allowed by the virtual machine size." + }, + "memoryInMB": { + "type": "integer", + "format": "int32", + "description": "The amount of memory, in MB, supported by the virtual machine size." + }, + "maxDataDiskCount": { + "type": "integer", + "format": "int32", + "description": "The maximum number of data disks that can be attached to the virtual machine size." + } + }, + "description": "Describes the properties of a VM size." + }, + "VirtualMachineSizeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineSize" + }, + "description": "The list of virtual machine sizes." + } + }, + "description": "The List Virtual Machine operation response." + }, + "VirtualMachineExtensionImageProperties": { + "properties": { + "operatingSystem": { + "type": "string", + "description": "The operating system this extension supports." + }, + "computeRole": { + "type": "string", + "description": "The type of role (IaaS or PaaS) this extension supports." + }, + "handlerSchema": { + "type": "string", + "description": "The schema defined by publisher, where extension consumers should provide settings in a matching schema." + }, + "vmScaleSetEnabled": { + "type": "boolean", + "description": "Whether the extension can be used on xRP VMScaleSets. By default existing extensions are usable on scalesets, but there might be cases where a publisher wants to explicitly indicate the extension is only enabled for CRP VMs but not VMSS." + }, + "supportsMultipleExtensions": { + "type": "boolean", + "description": "Whether the handler can support multiple extensions." + } + }, + "required": [ + "operatingSystem", + "computeRole", + "handlerSchema" + ], + "description": "Describes the properties of a Virtual Machine Extension Image." + }, + "VirtualMachineExtensionImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineExtensionImageProperties" + } + }, + "required": [ + "name", + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a Virtual Machine Extension Image." + }, + "VirtualMachineImageResource": { + "properties": { + "name": { + "type": "string", + "description": "The name of the resource." + }, + "location": { + "type": "string", + "description": "The supported Azure location of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md)." + } + }, + "required": [ + "name", + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Virtual machine image resource information." + }, + "VirtualMachineExtensionInstanceView": { + "properties": { + "name": { + "type": "string", + "description": "The virtual machine extension name." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "substatuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of a virtual machine extension." + }, + "VirtualMachineExtensionProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "$ref": "#/definitions/VirtualMachineExtensionInstanceView", + "description": "The virtual machine extension instance view." + } + }, + "description": "Describes the properties of a Virtual Machine Extension." + }, + "VirtualMachineExtensionUpdateProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "How the extension handler should be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + } + }, + "description": "Describes the properties of a Virtual Machine Extension." + }, + "VirtualMachineExtension": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineExtensionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a Virtual Machine Extension." + }, + "VirtualMachineExtensionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineExtensionUpdateProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Virtual Machine Extension." + }, + "VirtualMachineExtensionsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtension" + }, + "description": "The list of extensions" + } + }, + "description": "The List Extension operation response" + }, + "PurchasePlan": { + "properties": { + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "name": { + "type": "string", + "description": "The plan ID." + }, + "product": { + "type": "string", + "description": "Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element." + } + }, + "required": [ + "publisher", + "name", + "product" + ], + "description": "Used for establishing the purchase context of any 3rd Party artifact through MarketPlace." + }, + "OSDiskImage": { + "properties": { + "operatingSystem": { + "type": "string", + "description": "The operating system of the osDiskImage.", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + } + }, + "required": [ + "operatingSystem" + ], + "description": "Contains the os disk image information." + }, + "DataDiskImage": { + "properties": { + "lun": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + } + }, + "description": "Contains the data disk images information." + }, + "VirtualMachineImageProperties": { + "properties": { + "plan": { + "$ref": "#/definitions/PurchasePlan" + }, + "osDiskImage": { + "$ref": "#/definitions/OSDiskImage" + }, + "dataDiskImages": { + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskImage" + } + } + }, + "description": "Describes the properties of a Virtual Machine Image." + }, + "VirtualMachineImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineImageProperties" + } + }, + "required": [ + "name", + "location" + ], + "allOf": [ + { + "$ref": "#/definitions/VirtualMachineImageResource" + } + ], + "description": "Describes a Virtual Machine Image." + }, + "UsageName": { + "properties": { + "value": { + "type": "string", + "description": "The name of the resource." + }, + "localizedValue": { + "type": "string", + "description": "The localized name of the resource." + } + }, + "description": "The Usage Names." + }, + "Usage": { + "properties": { + "unit": { + "type": "string", + "description": "An enum describing the unit of usage measurement.", + "enum": [ + "Count" + ], + "x-ms-enum": { + "name": "UsageUnit", + "modelAsString": false + } + }, + "currentValue": { + "type": "integer", + "format": "int32", + "description": "The current usage of the resource." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "The maximum permitted usage of the resource." + }, + "name": { + "$ref": "#/definitions/UsageName", + "description": "The name of the type of usage." + } + }, + "required": [ + "unit", + "currentValue", + "limit", + "name" + ], + "description": "Describes Compute Resource Usage." + }, + "ListUsagesResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "The list of compute resource usages." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of compute resource usage information. Call ListNext() with this to fetch the next page of compute resource usage information." + } + }, + "required": [ + "value" + ], + "description": "The List Usages operation response." + }, + "VirtualMachineCaptureParameters": { + "properties": { + "vhdPrefix": { + "type": "string", + "description": "The captured virtual hard disk's name prefix." + }, + "destinationContainerName": { + "type": "string", + "description": "The destination container name." + }, + "overwriteVhds": { + "type": "boolean", + "description": "Specifies whether to overwrite the destination virtual hard disk, in case of conflict." + } + }, + "required": [ + "vhdPrefix", + "destinationContainerName", + "overwriteVhds" + ], + "description": "Capture Virtual Machine parameters." + }, + "VirtualMachineCaptureResult": { + "properties": { + "$schema": { + "readOnly": true, + "type": "string", + "description": "the schema of the captured virtual machine" + }, + "contentVersion": { + "readOnly": true, + "type": "string", + "description": "the version of the content" + }, + "parameters": { + "readOnly": true, + "type": "object", + "description": "parameters of the captured virtual machine" + }, + "resources": { + "readOnly": true, + "type": "array", + "items": { + "type": "object", + "description": "resource item" + }, + "description": "a list of resource items of the captured virtual machine" + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Output of virtual machine capture operation." + }, + "Plan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element." + }, + "promotionCode": { + "type": "string", + "description": "The promotion code." + } + }, + "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**." + }, + "HardwareProfile": { + "properties": { + "vmSize": { + "type": "string", + "description": "Specifies the size of the virtual machine. For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

The available VM sizes depend on region and availability set. For a list of available sizes use these APIs:

[List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)

[List all available virtual machine sizes in a region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list)

[List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes)", + "enum": [ + "Basic_A0", + "Basic_A1", + "Basic_A2", + "Basic_A3", + "Basic_A4", + "Standard_A0", + "Standard_A1", + "Standard_A2", + "Standard_A3", + "Standard_A4", + "Standard_A5", + "Standard_A6", + "Standard_A7", + "Standard_A8", + "Standard_A9", + "Standard_A10", + "Standard_A11", + "Standard_A1_v2", + "Standard_A2_v2", + "Standard_A4_v2", + "Standard_A8_v2", + "Standard_A2m_v2", + "Standard_A4m_v2", + "Standard_A8m_v2", + "Standard_B1s", + "Standard_B1ms", + "Standard_B2s", + "Standard_B2ms", + "Standard_B4ms", + "Standard_B8ms", + "Standard_D1", + "Standard_D2", + "Standard_D3", + "Standard_D4", + "Standard_D11", + "Standard_D12", + "Standard_D13", + "Standard_D14", + "Standard_D1_v2", + "Standard_D2_v2", + "Standard_D3_v2", + "Standard_D4_v2", + "Standard_D5_v2", + "Standard_D2_v3", + "Standard_D4_v3", + "Standard_D8_v3", + "Standard_D16_v3", + "Standard_D32_v3", + "Standard_D64_v3", + "Standard_D2s_v3", + "Standard_D4s_v3", + "Standard_D8s_v3", + "Standard_D16s_v3", + "Standard_D32s_v3", + "Standard_D64s_v3", + "Standard_D11_v2", + "Standard_D12_v2", + "Standard_D13_v2", + "Standard_D14_v2", + "Standard_D15_v2", + "Standard_DS1", + "Standard_DS2", + "Standard_DS3", + "Standard_DS4", + "Standard_DS11", + "Standard_DS12", + "Standard_DS13", + "Standard_DS14", + "Standard_DS1_v2", + "Standard_DS2_v2", + "Standard_DS3_v2", + "Standard_DS4_v2", + "Standard_DS5_v2", + "Standard_DS11_v2", + "Standard_DS12_v2", + "Standard_DS13_v2", + "Standard_DS14_v2", + "Standard_DS15_v2", + "Standard_DS13-4_v2", + "Standard_DS13-2_v2", + "Standard_DS14-8_v2", + "Standard_DS14-4_v2", + "Standard_E2_v3", + "Standard_E4_v3", + "Standard_E8_v3", + "Standard_E16_v3", + "Standard_E32_v3", + "Standard_E64_v3", + "Standard_E2s_v3", + "Standard_E4s_v3", + "Standard_E8s_v3", + "Standard_E16s_v3", + "Standard_E32s_v3", + "Standard_E64s_v3", + "Standard_E32-16_v3", + "Standard_E32-8s_v3", + "Standard_E64-32s_v3", + "Standard_E64-16s_v3", + "Standard_F1", + "Standard_F2", + "Standard_F4", + "Standard_F8", + "Standard_F16", + "Standard_F1s", + "Standard_F2s", + "Standard_F4s", + "Standard_F8s", + "Standard_F16s", + "Standard_F2s_v2", + "Standard_F4s_v2", + "Standard_F8s_v2", + "Standard_F16s_v2", + "Standard_F32s_v2", + "Standard_F64s_v2", + "Standard_F72s_v2", + "Standard_G1", + "Standard_G2", + "Standard_G3", + "Standard_G4", + "Standard_G5", + "Standard_GS1", + "Standard_GS2", + "Standard_GS3", + "Standard_GS4", + "Standard_GS5", + "Standard_GS4-8", + "Standard_GS4-4", + "Standard_GS5-16", + "Standard_GS5-8", + "Standard_H8", + "Standard_H16", + "Standard_H8m", + "Standard_H16m", + "Standard_H16r", + "Standard_H16mr", + "Standard_L4s", + "Standard_L8s", + "Standard_L16s", + "Standard_L32s", + "Standard_M64s", + "Standard_M64ms", + "Standard_M128s", + "Standard_M128ms", + "Standard_M64-32ms", + "Standard_M64-16ms", + "Standard_M128-64ms", + "Standard_M128-32ms", + "Standard_NC6", + "Standard_NC12", + "Standard_NC24", + "Standard_NC24r", + "Standard_NC6s_v2", + "Standard_NC12s_v2", + "Standard_NC24s_v2", + "Standard_NC24rs_v2", + "Standard_NC6s_v3", + "Standard_NC12s_v3", + "Standard_NC24s_v3", + "Standard_NC24rs_v3", + "Standard_ND6s", + "Standard_ND12s", + "Standard_ND24s", + "Standard_ND24rs", + "Standard_NV6", + "Standard_NV12", + "Standard_NV24" + ], + "x-ms-enum": { + "name": "VirtualMachineSizeTypes", + "modelAsString": true + } + } + }, + "description": "Specifies the hardware settings for the virtual machine." + }, + "ImageReference": { + "properties": { + "publisher": { + "type": "string", + "description": "The image publisher." + }, + "offer": { + "type": "string", + "description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine." + }, + "sku": { + "type": "string", + "description": "The image SKU." + }, + "version": { + "type": "string", + "description": "Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available." + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations." + }, + "KeyVaultSecretReference": { + "properties": { + "secretUrl": { + "type": "string", + "description": "The URL referencing a secret in a Key Vault." + }, + "sourceVault": { + "$ref": "#/definitions/SubResource", + "description": "The relative URL of the Key Vault containing the secret." + } + }, + "required": [ + "secretUrl", + "sourceVault" + ], + "description": "Describes a reference to Key Vault Secret" + }, + "KeyVaultKeyReference": { + "properties": { + "keyUrl": { + "type": "string", + "description": "The URL referencing a key encryption key in Key Vault." + }, + "sourceVault": { + "$ref": "#/definitions/SubResource", + "description": "The relative URL of the Key Vault containing the key." + } + }, + "required": [ + "keyUrl", + "sourceVault" + ], + "description": "Describes a reference to Key Vault Key" + }, + "DiskEncryptionSettings": { + "properties": { + "diskEncryptionKey": { + "$ref": "#/definitions/KeyVaultSecretReference", + "description": "Specifies the location of the disk encryption key, which is a Key Vault Secret." + }, + "keyEncryptionKey": { + "$ref": "#/definitions/KeyVaultKeyReference", + "description": "Specifies the location of the key encryption key in Key Vault." + }, + "enabled": { + "type": "boolean", + "description": "Specifies whether disk encryption should be enabled on the virtual machine." + } + }, + "description": "Describes a Encryption Settings for a Disk" + }, + "VirtualHardDisk": { + "properties": { + "uri": { + "type": "string", + "description": "Specifies the virtual hard disk's uri." + } + }, + "description": "Describes the uri of a disk." + }, + "Caching": { + "type": "string", + "description": "Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage**", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "CachingTypes", + "modelAsString": false + } + }, + "CreateOption": { + "type": "string", + "description": "Specifies how the virtual machine should be created.

Possible values are:

**Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described.", + "enum": [ + "FromImage", + "Empty", + "Attach" + ], + "x-ms-enum": { + "name": "DiskCreateOptionTypes", + "modelAsString": true + } + }, + "StorageAccountType": { + "type": "string", + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.", + "enum": [ + "Standard_LRS", + "Premium_LRS", + "StandardSSD_LRS", + "UltraSSD_LRS" + ], + "x-ms-enum": { + "name": "StorageAccountTypes", + "modelAsString": true + } + }, + "ManagedDiskParameters": { + "properties": { + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "The parameters of a managed disk." + }, + "OSDisk": { + "properties": { + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "encryptionSettings": { + "$ref": "#/definitions/DiskEncryptionSettings", + "description": "Specifies the encryption settings for the OS Disk.

Minimum api-version: 2015-06-15" + }, + "name": { + "type": "string", + "description": "The disk name." + }, + "vhd": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "The virtual hard disk." + }, + "image": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." + }, + "caching": { + "$ref": "#/definitions/Caching", + "description": "Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage**" + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + }, + "createOption": { + "$ref": "#/definitions/CreateOption", + "description": "Specifies how the virtual machine should be created.

Possible values are:

**Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB" + }, + "managedDisk": { + "description": "The managed disk parameters.", + "$ref": "#/definitions/ManagedDiskParameters" + } + }, + "required": [ + "createOption" + ], + "description": "Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "DataDisk": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + }, + "name": { + "type": "string", + "description": "The disk name." + }, + "vhd": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "The virtual hard disk." + }, + "image": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." + }, + "caching": { + "$ref": "#/definitions/Caching", + "description": "Specifies the caching requirements.

Possible values are:

**None**

**ReadOnly**

**ReadWrite**

Default: **None for Standard storage. ReadOnly for Premium storage**" + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + }, + "createOption": { + "$ref": "#/definitions/CreateOption", + "description": "Specifies how the virtual machine should be created.

Possible values are:

**Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual machine.

**FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

This value cannot be larger than 1023 GB" + }, + "managedDisk": { + "description": "The managed disk parameters.", + "$ref": "#/definitions/ManagedDiskParameters" + } + }, + "required": [ + "lun", + "createOption" + ], + "description": "Describes a data disk." + }, + "StorageProfile": { + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations." + }, + "osDisk": { + "$ref": "#/definitions/OSDisk", + "description": "Specifies information about the operating system disk used by the virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "dataDisks": { + "type": "array", + "items": { + "$ref": "#/definitions/DataDisk" + }, + "description": "Specifies the parameters that are used to add a data disk to a virtual machine.

For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + } + }, + "description": "Specifies the storage settings for the virtual machine disks." + }, + "AdditionalCapabilities": { + "properties": { + "ultraSSDEnabled": { + "type": "boolean", + "description": "The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled." + } + }, + "description": "Enables or disables a capability on the virtual machine or virtual machine scale set." + }, + "AdditionalUnattendContent": { + "properties": { + "passName": { + "type": "string", + "description": "The pass name. Currently, the only allowable value is OobeSystem.", + "enum": [ + "OobeSystem" + ], + "x-ms-enum": { + "name": "PassNames", + "modelAsString": false + } + }, + "componentName": { + "type": "string", + "description": "The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.", + "enum": [ + "Microsoft-Windows-Shell-Setup" + ], + "x-ms-enum": { + "name": "ComponentNames", + "modelAsString": false + } + }, + "settingName": { + "type": "string", + "description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.", + "enum": [ + "AutoLogon", + "FirstLogonCommands" + ], + "x-ms-enum": { + "name": "SettingNames", + "modelAsString": false + } + }, + "content": { + "type": "string", + "description": "Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted." + } + }, + "description": "Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied." + }, + "WinRMListener": { + "properties": { + "protocol": { + "type": "string", + "description": "Specifies the protocol of listener.

Possible values are:
**http**

**https**", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "ProtocolTypes", + "modelAsString": false + } + }, + "certificateUrl": { + "type": "string", + "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
\"data\":\"\",
\"dataType\":\"pfx\",
\"password\":\"\"
}" + } + }, + "description": "Describes Protocol and thumbprint of Windows Remote Management listener" + }, + "WinRMConfiguration": { + "properties": { + "listeners": { + "type": "array", + "items": { + "$ref": "#/definitions/WinRMListener" + }, + "description": "The list of Windows Remote Management listeners" + } + }, + "description": "Describes Windows Remote Management configuration of the VM" + }, + "WindowsConfiguration": { + "properties": { + "provisionVMAgent": { + "type": "boolean", + "description": "Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." + }, + "enableAutomaticUpdates": { + "type": "boolean", + "description": "Indicates whether virtual machine is enabled for automatic updates." + }, + "timeZone": { + "type": "string", + "description": "Specifies the time zone of the virtual machine. e.g. \"Pacific Standard Time\"" + }, + "additionalUnattendContent": { + "type": "array", + "items": { + "$ref": "#/definitions/AdditionalUnattendContent" + }, + "description": "Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup." + }, + "winRM": { + "$ref": "#/definitions/WinRMConfiguration", + "description": "Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell." + } + }, + "description": "Specifies Windows operating system settings on the virtual machine." + }, + "SshPublicKey": { + "properties": { + "path": { + "type": "string", + "description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" + }, + "keyData": { + "type": "string", + "description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + } + }, + "description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed." + }, + "SshConfiguration": { + "properties": { + "publicKeys": { + "type": "array", + "items": { + "$ref": "#/definitions/SshPublicKey" + }, + "description": "The list of SSH public keys used to authenticate with linux based VMs." + } + }, + "description": "SSH configuration for Linux based VMs running on Azure" + }, + "LinuxConfiguration": { + "properties": { + "disablePasswordAuthentication": { + "type": "boolean", + "description": "Specifies whether password authentication should be disabled." + }, + "ssh": { + "$ref": "#/definitions/SshConfiguration", + "description": "Specifies the ssh key configuration for a Linux OS." + }, + "provisionVMAgent": { + "type": "boolean", + "description": "Indicates whether virtual machine agent should be provisioned on the virtual machine.

When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." + } + }, + "description": "Specifies the Linux operating system settings on the virtual machine.

For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)

For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "VaultCertificate": { + "properties": { + "certificateUrl": { + "type": "string", + "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8:

{
\"data\":\"\",
\"dataType\":\"pfx\",
\"password\":\"\"
}" + }, + "certificateStore": { + "type": "string", + "description": "For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account.

For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name .crt for the X509 certificate file and .prv for private key. Both of these files are .pem formatted." + } + }, + "description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM." + }, + "VaultSecretGroup": { + "properties": { + "sourceVault": { + "$ref": "#/definitions/SubResource", + "description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates." + }, + "vaultCertificates": { + "type": "array", + "items": { + "$ref": "#/definitions/VaultCertificate" + }, + "description": "The list of key vault references in SourceVault which contain certificates." + } + }, + "description": "Describes a set of certificates which are all in the same Key Vault." + }, + "OSProfile": { + "properties": { + "computerName": { + "type": "string", + "description": "Specifies the host OS name of the virtual machine.

**Max-length (Windows):** 15 characters

**Max-length (Linux):** 64 characters.

For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions)." + }, + "adminUsername": { + "type": "string", + "description": "Specifies the name of the administrator account.

**Windows-only restriction:** Cannot end in \".\"

**Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\".

**Minimum-length (Linux):** 1 character

**Max-length (Linux):** 64 characters

**Max-length (Windows):** 20 characters

  • For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
  • For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + }, + "adminPassword": { + "type": "string", + "description": "Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\\W_])

    **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)" + }, + "customData": { + "type": "string", + "description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + }, + "windowsConfiguration": { + "$ref": "#/definitions/WindowsConfiguration", + "description": "Specifies Windows operating system settings on the virtual machine." + }, + "linuxConfiguration": { + "$ref": "#/definitions/LinuxConfiguration", + "description": "Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)

    For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/VaultSecretGroup" + }, + "description": "Specifies set of certificates that should be installed onto the virtual machine." + }, + "allowExtensionOperations": { + "type": "boolean", + "description": "Specifies whether extension operations should be allowed on the virtual machine.

    This may only be set to False when no extensions are present on the virtual machine." + } + }, + "description": "Specifies the operating system settings for the virtual machine." + }, + "NetworkInterfaceReferenceProperties": { + "properties": { + "primary": { + "type": "boolean", + "description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." + } + }, + "description": "Describes a network interface reference properties." + }, + "NetworkInterfaceReference": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NetworkInterfaceReferenceProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Describes a network interface reference." + }, + "NetworkProfile": { + "properties": { + "networkInterfaces": { + "type": "array", + "items": { + "$ref": "#/definitions/NetworkInterfaceReference" + }, + "description": "Specifies the list of resource Ids for the network interfaces associated with the virtual machine." + } + }, + "description": "Specifies the network interfaces of the virtual machine." + }, + "BootDiagnostics": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Whether boot diagnostics should be enabled on the Virtual Machine." + }, + "storageUri": { + "type": "string", + "description": "Uri of the storage account to use for placing the console output and screenshot." + } + }, + "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

    For Linux Virtual Machines, you can easily view the output of your console log.

    For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor." + }, + "DiagnosticsProfile": { + "properties": { + "bootDiagnostics": { + "$ref": "#/definitions/BootDiagnostics", + "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

    For Linux Virtual Machines, you can easily view the output of your console log.

    For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor." + } + }, + "description": "Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15." + }, + "VirtualMachineExtensionHandlerInstanceView": { + "properties": { + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "status": { + "$ref": "#/definitions/InstanceViewStatus", + "description": "The extension handler status." + } + }, + "description": "The instance view of a virtual machine extension handler." + }, + "VirtualMachineAgentInstanceView": { + "properties": { + "vmAgentVersion": { + "type": "string", + "description": "The VM Agent full version." + }, + "extensionHandlers": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtensionHandlerInstanceView" + }, + "description": "The virtual machine extension handler instance view." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of the VM Agent running on the virtual machine." + }, + "DiskInstanceView": { + "properties": { + "name": { + "type": "string", + "description": "The disk name." + }, + "encryptionSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/DiskEncryptionSettings" + }, + "description": "Specifies the encryption settings for the OS Disk.

    Minimum api-version: 2015-06-15" + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of the disk." + }, + "BootDiagnosticsInstanceView": { + "properties": { + "consoleScreenshotBlobUri": { + "type": "string", + "description": "The console screenshot blob URI." + }, + "serialConsoleLogBlobUri": { + "type": "string", + "description": "The Linux serial console log blob Uri." + } + }, + "description": "The instance view of a virtual machine boot diagnostics." + }, + "VirtualMachineIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of virtual machine identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the virtual machine." + }, + "MaintenanceRedeployStatus": { + "properties": { + "isCustomerInitiatedMaintenanceAllowed": { + "type": "boolean", + "description": "True, if customer is allowed to perform Maintenance." + }, + "preMaintenanceWindowStartTime": { + "type": "string", + "format": "date-time", + "description": "Start Time for the Pre Maintenance Window." + }, + "preMaintenanceWindowEndTime": { + "type": "string", + "format": "date-time", + "description": "End Time for the Pre Maintenance Window." + }, + "maintenanceWindowStartTime": { + "type": "string", + "format": "date-time", + "description": "Start Time for the Maintenance Window." + }, + "maintenanceWindowEndTime": { + "type": "string", + "format": "date-time", + "description": "End Time for the Maintenance Window." + }, + "lastOperationResultCode": { + "type": "string", + "description": "The Last Maintenance Operation Result Code.", + "enum": [ + "None", + "RetryLater", + "MaintenanceAborted", + "MaintenanceCompleted" + ], + "x-ms-enum": { + "name": "MaintenanceOperationResultCodeTypes", + "modelAsString": false + } + }, + "lastOperationMessage": { + "type": "string", + "description": "Message returned for the last Maintenance Operation." + } + }, + "description": "Maintenance Operation Status." + }, + "VirtualMachineInstanceView": { + "properties": { + "platformUpdateDomain": { + "type": "integer", + "format": "int32", + "description": "Specifies the update domain of the virtual machine." + }, + "platformFaultDomain": { + "type": "integer", + "format": "int32", + "description": "Specifies the fault domain of the virtual machine." + }, + "computerName": { + "type": "string", + "description": "The computer name assigned to the virtual machine." + }, + "osName": { + "type": "string", + "description": "The Operating System running on the virtual machine." + }, + "osVersion": { + "type": "string", + "description": "The version of Operating System running on the virtual machine." + }, + "rdpThumbPrint": { + "type": "string", + "description": "The Remote desktop certificate thumbprint." + }, + "vmAgent": { + "$ref": "#/definitions/VirtualMachineAgentInstanceView", + "description": "The VM Agent running on the virtual machine." + }, + "maintenanceRedeployStatus": { + "$ref": "#/definitions/MaintenanceRedeployStatus", + "description": "The Maintenance Operation status on the virtual machine." + }, + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/DiskInstanceView" + }, + "description": "The virtual machine disk information." + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtensionInstanceView" + }, + "description": "The extensions information." + }, + "bootDiagnostics": { + "$ref": "#/definitions/BootDiagnosticsInstanceView", + "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

    For Linux Virtual Machines, you can easily view the output of your console log.

    For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of a virtual machine." + }, + "VirtualMachineProperties": { + "properties": { + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Specifies the hardware settings for the virtual machine." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Specifies the storage settings for the virtual machine disks." + }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine." + }, + "osProfile": { + "$ref": "#/definitions/OSProfile", + "description": "Specifies the operating system settings for the virtual machine." + }, + "networkProfile": { + "$ref": "#/definitions/NetworkProfile", + "description": "Specifies the network interfaces of the virtual machine." + }, + "diagnosticsProfile": { + "$ref": "#/definitions/DiagnosticsProfile", + "description": "Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15." + }, + "availabilitySet": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

    For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "instanceView": { + "$ref": "#/definitions/VirtualMachineInstanceView", + "readOnly": true, + "description": "The virtual machine instance view." + }, + "licenseType": { + "type": "string", + "description": "Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.

    Possible values are:

    Windows_Client

    Windows_Server

    If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Minimum api-version: 2015-06-15" + }, + "vmId": { + "readOnly": true, + "type": "string", + "description": "Specifies the VM unique ID which is a 128-bits identifier that is encoded and stored in all Azure IaaS VMs SMBIOS and can be read using platform BIOS commands." + } + }, + "description": "Describes the properties of a Virtual Machine." + }, + "VirtualMachine": { + "properties": { + "plan": { + "$ref": "#/definitions/Plan", + "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineProperties" + }, + "resources": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtension" + }, + "description": "The virtual machine child extension resources." + }, + "identity": { + "$ref": "#/definitions/VirtualMachineIdentity", + "description": "The identity of the virtual machine, if configured." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine zones." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a Virtual Machine." + }, + "VirtualMachineUpdate": { + "properties": { + "plan": { + "$ref": "#/definitions/Plan", + "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineProperties" + }, + "identity": { + "$ref": "#/definitions/VirtualMachineIdentity", + "description": "The identity of the virtual machine, if configured." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine zones." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Virtual Machine Update." + }, + "VirtualMachineListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachine" + }, + "description": "The list of virtual machines." + }, + "nextLink": { + "type": "string", + "description": "The URI to fetch the next page of VMs. Call ListNext() with this URI to fetch the next page of Virtual Machines." + } + }, + "required": [ + "value" + ], + "description": "The List Virtual Machine operation response." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "The sku name." + }, + "tier": { + "type": "string", + "description": "Specifies the tier of virtual machines in a scale set.

    Possible Values:

    **Standard**

    **Basic**" + }, + "capacity": { + "type": "integer", + "format": "int64", + "description": "Specifies the number of virtual machines in the scale set." + } + }, + "description": "Describes a virtual machine scale set sku." + }, + "AutomaticOSUpgradePolicy": { + "properties": { + "enableAutomaticOSUpgrade": { + "type": "boolean", + "description": "Whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the image becomes available. Default value is false." + }, + "disableAutomaticRollback": { + "type": "boolean", + "description": "Whether OS image rollback feature should be disabled. Default value is false." + } + }, + "description": "The configuration parameters used for performing automatic OS upgrade." + }, + "UpgradePolicy": { + "properties": { + "mode": { + "type": "string", + "description": "Specifies the mode of an upgrade to virtual machines in the scale set.

    Possible values are:

    **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

    **Automatic** - All virtual machines in the scale set are automatically updated at the same time.", + "enum": [ + "Automatic", + "Manual", + "Rolling" + ], + "x-ms-enum": { + "name": "UpgradeMode", + "modelAsString": false + } + }, + "rollingUpgradePolicy": { + "$ref": "#/definitions/RollingUpgradePolicy", + "description": "The configuration parameters used while performing a rolling upgrade." + }, + "automaticOSUpgradePolicy": { + "$ref": "#/definitions/AutomaticOSUpgradePolicy", + "description": "Configuration parameters used for performing automatic OS Upgrade." + } + }, + "description": "Describes an upgrade policy - automatic, manual, or rolling." + }, + "RollingUpgradePolicy": { + "properties": { + "maxBatchInstancePercent": { + "type": "integer", + "format": "int32", + "minimum": 5, + "maximum": 100, + "description": "The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%." + }, + "maxUnhealthyInstancePercent": { + "type": "integer", + "format": "int32", + "minimum": 5, + "maximum": 100, + "description": "The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%." + }, + "maxUnhealthyUpgradedInstancePercent": { + "type": "integer", + "format": "int32", + "minimum": 0, + "maximum": 100, + "description": "The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%." + }, + "pauseTimeBetweenBatches": { + "type": "string", + "description": "The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S)." + } + }, + "description": "The configuration parameters used while performing a rolling upgrade." + }, + "ImageOSDisk": { + "properties": { + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from a custom image.

    Possible values are:

    **Windows**

    **Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "The OS State.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "modelAsString": false + } + }, + "snapshot": { + "$ref": "#/definitions/SubResource", + "description": "The snapshot." + }, + "managedDisk": { + "$ref": "#/definitions/SubResource", + "description": "The managedDisk." + }, + "blobUri": { + "type": "string", + "description": "The Virtual Hard Disk." + }, + "caching": { + "type": "string", + "description": "Specifies the caching requirements.

    Possible values are:

    **None**

    **ReadOnly**

    **ReadWrite**

    Default: **None for Standard storage. ReadOnly for Premium storage**", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "CachingTypes", + "modelAsString": false + } + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB" + }, + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk." + } + }, + "required": [ + "osType", + "osState" + ], + "description": "Describes an Operating System disk." + }, + "ImageDataDisk": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + }, + "snapshot": { + "$ref": "#/definitions/SubResource", + "description": "The snapshot." + }, + "managedDisk": { + "$ref": "#/definitions/SubResource", + "description": "The managedDisk." + }, + "blobUri": { + "type": "string", + "description": "The Virtual Hard Disk." + }, + "caching": { + "type": "string", + "description": "Specifies the caching requirements.

    Possible values are:

    **None**

    **ReadOnly**

    **ReadWrite**

    Default: **None for Standard storage. ReadOnly for Premium storage**", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "CachingTypes", + "modelAsString": false + } + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB" + }, + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." + } + }, + "required": [ + "lun" + ], + "description": "Describes a data disk." + }, + "ImageStorageProfile": { + "properties": { + "osDisk": { + "$ref": "#/definitions/ImageOSDisk", + "description": "Specifies information about the operating system disk used by the virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "dataDisks": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageDataDisk" + }, + "description": "Specifies the parameters that are used to add a data disk to a virtual machine.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "zoneResilient": { + "type": "boolean", + "description": "Specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS)." + } + }, + "description": "Describes a storage profile." + }, + "ImageProperties": { + "properties": { + "sourceVirtualMachine": { + "$ref": "#/definitions/SubResource", + "description": "The source virtual machine from which Image is created." + }, + "storageProfile": { + "$ref": "#/definitions/ImageStorageProfile", + "description": "Specifies the storage settings for the virtual machine disks." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state." + } + }, + "description": "Describes the properties of an Image." + }, + "Image": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." + }, + "ImageUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "The source user image virtual hard disk. Only tags may be updated." + }, + "ImageListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Image" + }, + "description": "The list of Images." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Images. Call ListNext() with this to fetch the next page of Images." + } + }, + "required": [ + "value" + ], + "description": "The List Image operation response." + }, + "VirtualMachineScaleSetIdentity": { + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of virtual machine scale set identity. This property will only be provided for a system assigned identity." + }, + "tenantId": { + "readOnly": true, + "type": "string", + "description": "The tenant id associated with the virtual machine scale set. This property will only be provided for a system assigned identity." + }, + "type": { + "type": "string", + "description": "The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine scale set.", + "enum": [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ], + "x-ms-enum": { + "name": "ResourceIdentityType", + "modelAsString": false + } + }, + "userAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with the virtual machine scale set. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "description": "Identity for the virtual machine scale set." + }, + "VirtualMachineScaleSetOSProfile": { + "properties": { + "computerNamePrefix": { + "type": "string", + "description": "Specifies the computer name prefix for all of the virtual machines in the scale set. Computer name prefixes must be 1 to 15 characters long." + }, + "adminUsername": { + "type": "string", + "description": "Specifies the name of the administrator account.

    **Windows-only restriction:** Cannot end in \".\"

    **Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\".

    **Minimum-length (Linux):** 1 character

    **Max-length (Linux):** 64 characters

    **Max-length (Windows):** 20 characters

  • For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
  • For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + }, + "adminPassword": { + "type": "string", + "description": "Specifies the password of the administrator account.

    **Minimum-length (Windows):** 8 characters

    **Minimum-length (Linux):** 6 characters

    **Max-length (Windows):** 123 characters

    **Max-length (Linux):** 72 characters

    **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
    Has lower characters
    Has upper characters
    Has a digit
    Has a special character (Regex match [\\W_])

    **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"

    For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)" + }, + "customData": { + "type": "string", + "description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes.

    For using cloud-init for your VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)" + }, + "windowsConfiguration": { + "$ref": "#/definitions/WindowsConfiguration", + "description": "Specifies Windows operating system settings on the virtual machine." + }, + "linuxConfiguration": { + "$ref": "#/definitions/LinuxConfiguration", + "description": "Specifies the Linux operating system settings on the virtual machine.

    For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)

    For running non-endorsed distributions, see [Information for Non-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/VaultSecretGroup" + }, + "description": "Specifies set of certificates that should be installed onto the virtual machines in the scale set." + } + }, + "description": "Describes a virtual machine scale set OS profile." + }, + "VirtualMachineScaleSetUpdateOSProfile": { + "properties": { + "customData": { + "type": "string", + "description": "A base-64 encoded string of custom data." + }, + "windowsConfiguration": { + "$ref": "#/definitions/WindowsConfiguration", + "description": "The Windows Configuration of the OS profile." + }, + "linuxConfiguration": { + "$ref": "#/definitions/LinuxConfiguration", + "description": "The Linux Configuration of the OS profile." + }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/VaultSecretGroup" + }, + "description": "The List of certificates for addition to the VM." + } + }, + "description": "Describes a virtual machine scale set OS profile." + }, + "VirtualMachineScaleSetManagedDiskParameters": { + "properties": { + "storageAccountType": { + "$ref": "#/definitions/StorageAccountType", + "description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." + } + }, + "description": "Describes the parameters of a ScaleSet managed disk." + }, + "VirtualMachineScaleSetOSDisk": { + "properties": { + "name": { + "type": "string", + "description": "The disk name." + }, + "caching": { + "$ref": "#/definitions/Caching", + "description": "Specifies the caching requirements.

    Possible values are:

    **None**

    **ReadOnly**

    **ReadWrite**

    Default: **None for Standard storage. ReadOnly for Premium storage**" + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + }, + "createOption": { + "$ref": "#/definitions/CreateOption", + "description": "Specifies how the virtual machines in the scale set should be created.

    The only allowed value is: **FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB" + }, + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

    Possible values are:

    **Windows**

    **Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "image": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "Specifies information about the unmanaged user image to base the scale set on." + }, + "vhdContainers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the container urls that are used to store operating system disks for the scale set." + }, + "managedDisk": { + "description": "The managed disk parameters.", + "$ref": "#/definitions/VirtualMachineScaleSetManagedDiskParameters" + } + }, + "required": [ + "createOption" + ], + "description": "Describes a virtual machine scale set operating system disk." + }, + "VirtualMachineScaleSetUpdateOSDisk": { + "properties": { + "caching": { + "$ref": "#/definitions/Caching", + "description": "The caching type." + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB" + }, + "image": { + "$ref": "#/definitions/VirtualHardDisk", + "description": "The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist." + }, + "vhdContainers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of virtual hard disk container uris." + }, + "managedDisk": { + "description": "The managed disk parameters.", + "$ref": "#/definitions/VirtualMachineScaleSetManagedDiskParameters" + } + }, + "description": "Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk." + }, + "VirtualMachineScaleSetDataDisk": { + "properties": { + "name": { + "type": "string", + "description": "The disk name." + }, + "lun": { + "type": "integer", + "format": "int32", + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + }, + "caching": { + "$ref": "#/definitions/Caching", + "description": "Specifies the caching requirements.

    Possible values are:

    **None**

    **ReadOnly**

    **ReadWrite**

    Default: **None for Standard storage. ReadOnly for Premium storage**" + }, + "writeAcceleratorEnabled": { + "type": "boolean", + "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." + }, + "createOption": { + "$ref": "#/definitions/CreateOption", + "description": "The create option." + }, + "diskSizeGB": { + "type": "integer", + "format": "int32", + "description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.

    This value cannot be larger than 1023 GB" + }, + "managedDisk": { + "description": "The managed disk parameters.", + "$ref": "#/definitions/VirtualMachineScaleSetManagedDiskParameters" + } + }, + "required": [ + "lun", + "createOption" + ], + "description": "Describes a virtual machine scale set data disk." + }, + "VirtualMachineScaleSetStorageProfile": { + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations." + }, + "osDisk": { + "$ref": "#/definitions/VirtualMachineScaleSetOSDisk", + "description": "Specifies information about the operating system disk used by the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + }, + "dataDisks": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetDataDisk" + }, + "description": "Specifies the parameters that are used to add data disks to the virtual machines in the scale set.

    For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)." + } + }, + "description": "Describes a virtual machine scale set storage profile." + }, + "VirtualMachineScaleSetUpdateStorageProfile": { + "properties": { + "imageReference": { + "$ref": "#/definitions/ImageReference", + "description": "The image reference." + }, + "osDisk": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateOSDisk", + "description": "The OS disk." + }, + "dataDisks": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetDataDisk" + }, + "description": "The data disks." + } + }, + "description": "Describes a virtual machine scale set storage profile." + }, + "ApiEntityReference": { + "properties": { + "id": { + "type": "string", + "description": "The ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/..." + } + }, + "description": "The API entity reference." + }, + "VirtualMachineScaleSetIPConfigurationProperties": { + "properties": { + "subnet": { + "$ref": "#/definitions/ApiEntityReference", + "description": "Specifies the identifier of the subnet." + }, + "primary": { + "type": "boolean", + "description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." + }, + "publicIPAddressConfiguration": { + "$ref": "#/definitions/VirtualMachineScaleSetPublicIPAddressConfiguration", + "description": "The publicIPAddressConfiguration." + }, + "privateIPAddressVersion": { + "type": "string", + "description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.", + "enum": [ + "IPv4", + "IPv6" + ], + "x-ms-enum": { + "name": "IPVersion", + "modelAsString": true + } + }, + "applicationGatewayBackendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "Specifies an array of references to backend address pools of application gateways. A scale set can reference backend address pools of multiple application gateways. Multiple scale sets cannot use the same application gateway." + }, + "applicationSecurityGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "Specifies an array of references to application security group." + }, + "loadBalancerBackendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "Specifies an array of references to backend address pools of load balancers. A scale set can reference backend address pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer." + }, + "loadBalancerInboundNatPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "Specifies an array of references to inbound Nat pools of the load balancers. A scale set can reference inbound nat pools of one public and one internal load balancer. Multiple scale sets cannot use the same load balancer" + } + }, + "description": "Describes a virtual machine scale set network profile's IP configuration properties." + }, + "VirtualMachineScaleSetUpdateIPConfigurationProperties": { + "properties": { + "subnet": { + "$ref": "#/definitions/ApiEntityReference", + "description": "The subnet." + }, + "primary": { + "type": "boolean", + "description": "Specifies the primary IP Configuration in case the network interface has more than one IP Configuration." + }, + "publicIPAddressConfiguration": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + "description": "The publicIPAddressConfiguration." + }, + "privateIPAddressVersion": { + "type": "string", + "description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.", + "enum": [ + "IPv4", + "IPv6" + ], + "x-ms-enum": { + "name": "IPVersion", + "modelAsString": true + } + }, + "applicationGatewayBackendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "The application gateway backend address pools." + }, + "applicationSecurityGroups": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "Specifies an array of references to application security group." + }, + "loadBalancerBackendAddressPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "The load balancer backend address pools." + }, + "loadBalancerInboundNatPools": { + "type": "array", + "items": { + "$ref": "#/definitions/SubResource" + }, + "description": "The load balancer inbound nat pools." + } + }, + "description": "Describes a virtual machine scale set network profile's IP configuration properties." + }, + "VirtualMachineScaleSetIPConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The IP configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetIPConfigurationProperties" + } + }, + "required": [ + "name" + ], + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Describes a virtual machine scale set network profile's IP configuration." + }, + "VirtualMachineScaleSetUpdateIPConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The IP configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetUpdateIPConfigurationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Describes a virtual machine scale set network profile's IP configuration." + }, + "VirtualMachineScaleSetNetworkConfigurationProperties": { + "properties": { + "primary": { + "type": "boolean", + "description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." + }, + "enableAcceleratedNetworking": { + "type": "boolean", + "description": "Specifies whether the network interface is accelerated networking-enabled." + }, + "networkSecurityGroup": { + "$ref": "#/definitions/SubResource", + "description": "The network security group." + }, + "dnsSettings": { + "$ref": "#/definitions/VirtualMachineScaleSetNetworkConfigurationDnsSettings", + "description": "The dns settings to be applied on the network interfaces." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetIPConfiguration" + }, + "description": "Specifies the IP configurations of the network interface." + }, + "enableIPForwarding": { + "type": "boolean", + "description": "Whether IP forwarding enabled on this NIC." + } + }, + "required": [ + "ipConfigurations" + ], + "description": "Describes a virtual machine scale set network profile's IP configuration." + }, + "VirtualMachineScaleSetUpdateNetworkConfigurationProperties": { + "properties": { + "primary": { + "type": "boolean", + "description": "Whether this is a primary NIC on a virtual machine." + }, + "enableAcceleratedNetworking": { + "type": "boolean", + "description": "Specifies whether the network interface is accelerated networking-enabled." + }, + "networkSecurityGroup": { + "$ref": "#/definitions/SubResource", + "description": "The network security group." + }, + "dnsSettings": { + "$ref": "#/definitions/VirtualMachineScaleSetNetworkConfigurationDnsSettings", + "description": "The dns settings to be applied on the network interfaces." + }, + "ipConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateIPConfiguration" + }, + "description": "The virtual machine scale set IP Configuration." + }, + "enableIPForwarding": { + "type": "boolean", + "description": "Whether IP forwarding enabled on this NIC." + } + }, + "description": "Describes a virtual machine scale set updatable network profile's IP configuration.Use this object for updating network profile's IP Configuration." + }, + "VirtualMachineScaleSetNetworkConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The network configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetNetworkConfigurationProperties" + } + }, + "required": [ + "name" + ], + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Describes a virtual machine scale set network profile's network configurations." + }, + "VirtualMachineScaleSetUpdateNetworkConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The network configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetUpdateNetworkConfigurationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResource" + } + ], + "description": "Describes a virtual machine scale set network profile's network configurations." + }, + "VirtualMachineScaleSetNetworkConfigurationDnsSettings": { + "properties": { + "dnsServers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of DNS servers IP addresses" + } + }, + "description": "Describes a virtual machines scale sets network configuration's DNS settings." + }, + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings": { + "properties": { + "domainNameLabel": { + "type": "string", + "description": "The Domain name label.The concatenation of the domain name label and vm index will be the domain name labels of the PublicIPAddress resources that will be created" + } + }, + "required": [ + "domainNameLabel" + ], + "description": "Describes a virtual machines scale sets network configuration's DNS settings." + }, + "VirtualMachineScaleSetIpTag": { + "properties": { + "ipTagType": { + "type": "string", + "description": "IP tag type. Example: FirstPartyUsage." + }, + "tag": { + "type": "string", + "description": "IP tag associated with the public IP. Example: SQL, Storage etc." + } + }, + "description": "Contains the IP tag associated with the public IP address." + }, + "VirtualMachineScaleSetPublicIPAddressConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The publicIP address configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetPublicIPAddressConfigurationProperties" + } + }, + "required": [ + "name" + ], + "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration" + }, + "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration": { + "properties": { + "name": { + "type": "string", + "description": "The publicIP address configuration name." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties" + } + }, + "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration" + }, + "VirtualMachineScaleSetPublicIPAddressConfigurationProperties": { + "properties": { + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The idle timeout of the public IP address." + }, + "dnsSettings": { + "$ref": "#/definitions/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + "description": "The dns settings to be applied on the publicIP addresses ." + }, + "ipTags": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetIpTag" + }, + "description": "The list of IP tags associated with the public IP address." + }, + "publicIPPrefix" : { + "$ref":"#/definitions/SubResource", + "description": "The PublicIPPrefix from which to allocate publicIP addresses." + } + }, + "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration" + }, + "VirtualMachineScaleSetUpdatePublicIPAddressConfigurationProperties": { + "properties": { + "idleTimeoutInMinutes": { + "type": "integer", + "format": "int32", + "description": "The idle timeout of the public IP address." + }, + "dnsSettings": { + "$ref": "#/definitions/VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + "description": "The dns settings to be applied on the publicIP addresses ." + } + }, + "description": "Describes a virtual machines scale set IP Configuration's PublicIPAddress configuration" + }, + "VirtualMachineScaleSetNetworkProfile": { + "properties": { + "healthProbe": { + "$ref": "#/definitions/ApiEntityReference", + "description": "A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'." + }, + "networkInterfaceConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetNetworkConfiguration" + }, + "description": "The list of network configurations." + } + }, + "description": "Describes a virtual machine scale set network profile." + }, + "VirtualMachineScaleSetUpdateNetworkProfile": { + "properties": { + "networkInterfaceConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateNetworkConfiguration" + }, + "description": "The list of network configurations." + } + }, + "description": "Describes a virtual machine scale set network profile." + }, + "VirtualMachineScaleSetExtensionProperties": { + "properties": { + "forceUpdateTag": { + "type": "string", + "description": "If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed." + }, + "publisher": { + "type": "string", + "description": "The name of the extension handler publisher." + }, + "type": { + "type": "string", + "description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." + }, + "typeHandlerVersion": { + "type": "string", + "description": "Specifies the version of the script handler." + }, + "autoUpgradeMinorVersion": { + "type": "boolean", + "description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." + }, + "settings": { + "type": "object", + "description": "Json formatted public settings for the extension." + }, + "protectedSettings": { + "type": "object", + "description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + } + }, + "description": "Describes the properties of a Virtual Machine Scale Set Extension." + }, + "VirtualMachineScaleSetExtension": { + "properties": { + "name": { + "type": "string", + "description": "The name of the extension." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetExtensionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/SubResourceReadOnly" + } + ], + "description": "Describes a Virtual Machine Scale Set Extension." + }, + "VirtualMachineScaleSetExtensionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + }, + "description": "The list of VM scale set extensions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of VM scale set extensions. Call ListNext() with this to fetch the next page of VM scale set extensions." + } + }, + "required": [ + "value" + ], + "description": "The List VM scale set extension operation response." + }, + "VirtualMachineScaleSetExtensionProfile": { + "properties": { + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetExtension" + }, + "description": "The virtual machine scale set child extension resources." + } + }, + "description": "Describes a virtual machine scale set extension profile." + }, + "VirtualMachineScaleSetVMProfile": { + "properties": { + "osProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetOSProfile", + "description": "Specifies the operating system settings for the virtual machines in the scale set." + }, + "storageProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetStorageProfile", + "description": "Specifies the storage settings for the virtual machine disks." + }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." + }, + "networkProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetNetworkProfile", + "description": "Specifies properties of the network interfaces of the virtual machines in the scale set." + }, + "diagnosticsProfile": { + "$ref": "#/definitions/DiagnosticsProfile", + "description": "Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15." + }, + "extensionProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetExtensionProfile", + "description": "Specifies a collection of settings for extensions installed on virtual machines in the scale set." + }, + "licenseType": { + "type": "string", + "description": "Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.

    Possible values are:

    Windows_Client

    Windows_Server

    If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Minimum api-version: 2015-06-15" + }, + "priority": { + "type": "string", + "description": "Specifies the priority for the virtual machines in the scale set.

    Minimum api-version: 2017-10-30-preview", + "enum": [ + "Regular", + "Low" + ], + "x-ms-enum": { + "name": "VirtualMachinePriorityTypes", + "modelAsString": true + } + }, + "evictionPolicy": { + "type": "string", + "description": "Specifies the eviction policy for virtual machines in a low priority scale set.

    Minimum api-version: 2017-10-30-preview", + "enum": [ + "Deallocate", + "Delete" + ], + "x-ms-enum": { + "name": "VirtualMachineEvictionPolicyTypes", + "modelAsString": true + } + } + }, + "description": "Describes a virtual machine scale set virtual machine profile." + }, + "VirtualMachineScaleSetUpdateVMProfile": { + "properties": { + "osProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateOSProfile", + "description": "The virtual machine scale set OS profile." + }, + "storageProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateStorageProfile", + "description": "The virtual machine scale set storage profile." + }, + "networkProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateNetworkProfile", + "description": "The virtual machine scale set network profile." + }, + "diagnosticsProfile": { + "$ref": "#/definitions/DiagnosticsProfile", + "description": "The virtual machine scale set diagnostics profile." + }, + "extensionProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetExtensionProfile", + "description": "The virtual machine scale set extension profile." + }, + "licenseType": { + "type": "string", + "description": "The license type, which is for bring your own license scenario." + } + }, + "description": "Describes a virtual machine scale set virtual machine profile." + }, + "VirtualMachineScaleSetProperties": { + "properties": { + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicy", + "description": "The upgrade policy." + }, + "virtualMachineProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetVMProfile", + "description": "The virtual machine profile." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "overprovision": { + "type": "boolean", + "description": "Specifies whether the Virtual Machine Scale Set should be overprovisioned." + }, + "uniqueId": { + "readOnly": true, + "type": "string", + "description": "Specifies the ID which uniquely identifies a Virtual Machine Scale Set." + }, + "singlePlacementGroup": { + "type": "boolean", + "description": "When true this limits the scale set to a single placement group, of max size 100 virtual machines." + }, + "zoneBalance": { + "type": "boolean", + "description": "Whether to force stictly even Virtual Machine distribution cross x-zones in case there is zone outage." + }, + "platformFaultDomainCount": { + "type": "integer", + "format": "int32", + "description": "Fault Domain count for each placement group." + } + }, + "description": "Describes the properties of a Virtual Machine Scale Set." + }, + "VirtualMachineScaleSetUpdateProperties": { + "properties": { + "upgradePolicy": { + "$ref": "#/definitions/UpgradePolicy", + "description": "The upgrade policy." + }, + "virtualMachineProfile": { + "$ref": "#/definitions/VirtualMachineScaleSetUpdateVMProfile", + "description": "The virtual machine profile." + }, + "overprovision": { + "type": "boolean", + "description": "Specifies whether the Virtual Machine Scale Set should be overprovisioned." + }, + "singlePlacementGroup": { + "type": "boolean", + "description": "When true this limits the scale set to a single placement group, of max size 100 virtual machines." + } + }, + "description": "Describes the properties of a Virtual Machine Scale Set." + }, + "VirtualMachineScaleSet": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The virtual machine scale set sku." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetProperties" + }, + "identity": { + "$ref": "#/definitions/VirtualMachineScaleSetIdentity", + "description": "The identity of the virtual machine scale set, if configured." + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine scale set zones." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a Virtual Machine Scale Set." + }, + "VirtualMachineScaleSetUpdate": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "The virtual machine scale set sku." + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "The purchase plan when deploying a virtual machine scale set from VM Marketplace images." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetUpdateProperties" + }, + "identity": { + "$ref": "#/definitions/VirtualMachineScaleSetIdentity", + "description": "The identity of the virtual machine scale set, if configured." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ], + "description": "Describes a Virtual Machine Scale Set." + }, + "VirtualMachineScaleSetVMInstanceIDs": { + "properties": { + "instanceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set." + } + }, + "description": "Specifies a list of virtual machine instance IDs from the VM scale set." + }, + "VirtualMachineScaleSetVMInstanceRequiredIDs": { + "properties": { + "instanceIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine scale set instance ids." + } + }, + "required": [ + "instanceIds" + ], + "description": "Specifies a list of virtual machine instance IDs from the VM scale set." + }, + "VirtualMachineStatusCodeCount": { + "properties": { + "code": { + "readOnly": true, + "type": "string", + "description": "The instance view status code." + }, + "count": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances having a particular status code." + } + }, + "description": "The status code and count of the virtual machine scale set instance view status summary." + }, + "VirtualMachineScaleSetInstanceViewStatusesSummary": { + "properties": { + "statusesSummary": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineStatusCodeCount" + }, + "description": "The extensions information." + } + }, + "description": "Instance view statuses summary for virtual machines of a virtual machine scale set." + }, + "VirtualMachineScaleSetVMExtensionsSummary": { + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "The extension name." + }, + "statusesSummary": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineStatusCodeCount" + }, + "description": "The extensions information." + } + }, + "description": "Extensions summary for virtual machines of a virtual machine scale set." + }, + "VirtualMachineScaleSetInstanceView": { + "properties": { + "virtualMachine": { + "$ref": "#/definitions/VirtualMachineScaleSetInstanceViewStatusesSummary", + "readOnly": true, + "description": "The instance view status summary for the virtual machine scale set." + }, + "extensions": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetVMExtensionsSummary" + }, + "description": "The extensions information." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + } + }, + "description": "The instance view of a virtual machine scale set." + }, + "VirtualMachineScaleSetListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSet" + }, + "description": "The list of virtual machine scale sets." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of VMSS." + } + }, + "required": [ + "value" + ], + "description": "The List Virtual Machine operation response." + }, + "VirtualMachineScaleSetListWithLinkResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSet" + }, + "description": "The list of virtual machine scale sets." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Virtual Machine Scale Sets. Call ListNext() with this to fetch the next page of Virtual Machine Scale Sets." + } + }, + "required": [ + "value" + ], + "description": "The List Virtual Machine operation response." + }, + "VirtualMachineScaleSetSkuCapacity": { + "properties": { + "minimum": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The minimum capacity." + }, + "maximum": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The maximum capacity that can be set." + }, + "defaultCapacity": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The default capacity." + }, + "scaleType": { + "readOnly": true, + "type": "string", + "description": "The scale type applicable to the sku.", + "enum": [ + "Automatic", + "None" + ], + "x-ms-enum": { + "name": "VirtualMachineScaleSetSkuScaleType", + "modelAsString": false + } + } + }, + "description": "Describes scaling information of a sku." + }, + "VirtualMachineScaleSetSku": { + "properties": { + "resourceType": { + "readOnly": true, + "type": "string", + "description": "The type of resource the sku applies to." + }, + "sku": { + "$ref": "#/definitions/Sku", + "readOnly": true, + "description": "The Sku." + }, + "capacity": { + "$ref": "#/definitions/VirtualMachineScaleSetSkuCapacity", + "readOnly": true, + "description": "Specifies the number of virtual machines in the scale set." + } + }, + "description": "Describes an available virtual machine scale set sku." + }, + "VirtualMachineScaleSetListSkusResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetSku" + }, + "description": "The list of skus available for the virtual machine scale set." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Virtual Machine Scale Set Skus. Call ListNext() with this to fetch the next page of VMSS Skus." + } + }, + "required": [ + "value" + ], + "description": "The Virtual Machine Scale Set List Skus operation response." + }, + "RollbackStatusInfo": { + "properties":{ + "successfullyRolledbackInstanceCount" : { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances which have been successfully rolled back." + }, + "failedRolledbackInstanceCount" : { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances which failed to rollback." + }, + "rollbackError" : { + "$ref": "#/definitions/ApiError", + "readOnly": true, + "description": "Error details if OS rollback failed." + } + }, + "description": "Information about rollback on failed VM instances after a OS Upgrade operation." + }, + "UpgradeOperationHistoryStatus": { + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "Code indicating the current status of the upgrade.", + "enum": [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted" + ], + "x-ms-enum": { + "name": "UpgradeState", + "modelAsString": false + } + }, + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Start time of the upgrade." + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "End time of the upgrade." + } + }, + "description": "Information about the current running state of the overall upgrade." + }, + "UpgradeOperationHistoricalStatusInfoProperties": { + "properties": { + "runningStatus": { + "$ref": "#/definitions/UpgradeOperationHistoryStatus", + "readOnly": true, + "description": "Information about the overall status of the upgrade operation." + }, + "progress": { + "$ref": "#/definitions/RollingUpgradeProgressInfo", + "readOnly": true, + "description": "Counts of the VM's in each state." + }, + "error": { + "$ref": "#/definitions/ApiError", + "readOnly": true, + "description": "Error Details for this upgrade if there are any." + }, + "startedBy": { + "readOnly": true, + "type": "string", + "description": "Invoker of the Upgrade Operation", + "enum": [ + "Unknown", + "User", + "Platform" + ], + "x-ms-enum": { + "name": "UpgradeOperationInvoker", + "modelAsString": false + } + }, + "targetImageReference": { + "$ref": "#/definitions/ImageReference", + "readOnly": true, + "description": "Image Reference details" + }, + "rollbackInfo": { + "$ref": "#/definitions/RollbackStatusInfo", + "readOnly": true, + "description": "Information about OS rollback if performed" + } + }, + "description": "Describes each OS upgrade on the Virtual Machine Scale Set." + }, + "UpgradeOperationHistoricalStatusInfo": { + "properties": { + "properties": { + "$ref": "#/definitions/UpgradeOperationHistoricalStatusInfoProperties", + "readOnly": true, + "description": "Information about the properties of the upgrade operation." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "readOnly": true, + "type": "string", + "description": "Resource location" + } + }, + "description": "Virtual Machine Scale Set OS Upgrade History operation response." + }, + "VirtualMachineScaleSetListOSUpgradeHistory": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UpgradeOperationHistoricalStatusInfo" + }, + "description": "The list of OS upgrades performed on the virtual machine scale set." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of OS Upgrade History. Call ListNext() with this to fetch the next page of history of upgrades." + } + }, + "required": [ + "value" + ], + "description": "List of Virtual Machine Scale Set OS Upgrade History operation response." + }, + "VirtualMachineScaleSetVMProperties": { + "properties": { + "latestModelApplied": { + "readOnly": true, + "type": "boolean", + "description": "Specifies whether the latest model has been applied to the virtual machine." + }, + "vmId": { + "readOnly": true, + "type": "string", + "description": "Azure VM unique ID." + }, + "instanceView": { + "$ref": "#/definitions/VirtualMachineScaleSetVMInstanceView", + "readOnly": true, + "description": "The virtual machine instance view." + }, + "hardwareProfile": { + "$ref": "#/definitions/HardwareProfile", + "description": "Specifies the hardware settings for the virtual machine." + }, + "storageProfile": { + "$ref": "#/definitions/StorageProfile", + "description": "Specifies the storage settings for the virtual machine disks." + }, + "additionalCapabilities": { + "$ref": "#/definitions/AdditionalCapabilities", + "description": "Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type." + }, + "osProfile": { + "$ref": "#/definitions/OSProfile", + "description": "Specifies the operating system settings for the virtual machine." + }, + "networkProfile": { + "$ref": "#/definitions/NetworkProfile", + "description": "Specifies the network interfaces of the virtual machine." + }, + "diagnosticsProfile": { + "$ref": "#/definitions/DiagnosticsProfile", + "description": "Specifies the boot diagnostic settings state.

    Minimum api-version: 2015-06-15." + }, + "availabilitySet": { + "$ref": "#/definitions/SubResource", + "description": "Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Manage the availability of virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

    For more information on Azure planned maintainance, see [Planned maintenance for virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set." + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "licenseType": { + "type": "string", + "description": "Specifies that the image or disk that is being used was licensed on-premises. This element is only used for images that contain the Windows Server operating system.

    Possible values are:

    Windows_Client

    Windows_Server

    If this element is included in a request for an update, the value must match the initial value. This value cannot be updated.

    For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)

    Minimum api-version: 2015-06-15" + } + }, + "description": "Describes the properties of a virtual machine scale set virtual machine." + }, + "VirtualMachineScaleSetVM": { + "properties": { + "instanceId": { + "readOnly": true, + "type": "string", + "description": "The virtual machine instance ID." + }, + "sku": { + "$ref": "#/definitions/Sku", + "readOnly": true, + "description": "The virtual machine SKU." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/VirtualMachineScaleSetVMProperties" + }, + "plan": { + "$ref": "#/definitions/Plan", + "description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**." + }, + "resources": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtension" + }, + "description": "The virtual machine child extension resources." + }, + "zones": { + "readOnly": true, + "type": "array", + "items": { + "type": "string" + }, + "description": "The virtual machine zones." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Describes a virtual machine scale set virtual machine." + }, + "VirtualMachineScaleSetVMInstanceView": { + "properties": { + "platformUpdateDomain": { + "type": "integer", + "format": "int32", + "description": "The Update Domain count." + }, + "platformFaultDomain": { + "type": "integer", + "format": "int32", + "description": "The Fault Domain count." + }, + "rdpThumbPrint": { + "type": "string", + "description": "The Remote desktop certificate thumbprint." + }, + "vmAgent": { + "$ref": "#/definitions/VirtualMachineAgentInstanceView", + "description": "The VM Agent running on the virtual machine." + }, + "maintenanceRedeployStatus": { + "$ref": "#/definitions/MaintenanceRedeployStatus", + "description": "The Maintenance Operation status on the virtual machine." + }, + "disks": { + "type": "array", + "items": { + "$ref": "#/definitions/DiskInstanceView" + }, + "description": "The disks information." + }, + "extensions": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineExtensionInstanceView" + }, + "description": "The extensions information." + }, + "vmHealth": { + "readOnly": true, + "$ref": "#/definitions/VirtualMachineHealthStatus", + "description": "The health status for the VM." + }, + "bootDiagnostics": { + "$ref": "#/definitions/BootDiagnosticsInstanceView", + "description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.

    For Linux Virtual Machines, you can easily view the output of your console log.

    For both Windows and Linux virtual machines, Azure also enables you to see a screenshot of the VM from the hypervisor." + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "The resource status information." + }, + "placementGroupId": { + "type": "string", + "description": "The placement group in which the VM is running. If the VM is deallocated it will not have a placementGroupId." + } + }, + "description": "The instance view of a virtual machine scale set VM." + }, + "VirtualMachineHealthStatus": { + "properties": { + "status": { + "readOnly": true, + "$ref": "#/definitions/InstanceViewStatus", + "description": "The health status information for the VM." + } + }, + "description": "The health status of the VM." + }, + "VirtualMachineScaleSetVMListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/VirtualMachineScaleSetVM" + }, + "description": "The list of virtual machine scale sets VMs." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Virtual Machine Scale Set VMs. Call ListNext() with this to fetch the next page of VMSS VMs" + } + }, + "required": [ + "value" + ], + "description": "The List Virtual Machine Scale Set VMs operation response." + }, + "RollingUpgradeStatusInfo": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/RollingUpgradeStatusInfoProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "The status of the latest virtual machine scale set rolling upgrade." + }, + "RollingUpgradeStatusInfoProperties": { + "properties": { + "policy": { + "readOnly": true, + "$ref": "#/definitions/RollingUpgradePolicy", + "description": "The rolling upgrade policies applied for this upgrade." + }, + "runningStatus": { + "readOnly": true, + "$ref": "#/definitions/RollingUpgradeRunningStatus", + "description": "Information about the current running state of the overall upgrade." + }, + "progress": { + "readOnly": true, + "$ref": "#/definitions/RollingUpgradeProgressInfo", + "description": "Information about the number of virtual machine instances in each upgrade state." + }, + "error": { + "readOnly": true, + "$ref": "#/definitions/ApiError", + "description": "Error details for this upgrade, if there are any." + } + }, + "description": "The status of the latest virtual machine scale set rolling upgrade." + }, + "RollingUpgradeRunningStatus": { + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "Code indicating the current status of the upgrade.", + "enum": [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted" + ], + "x-ms-enum": { + "name": "RollingUpgradeStatusCode", + "modelAsString": false + } + }, + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Start time of the upgrade." + }, + "lastAction": { + "type": "string", + "readOnly": true, + "description": "The last action performed on the rolling upgrade.", + "enum": [ + "Start", + "Cancel" + ], + "x-ms-enum": { + "name": "RollingUpgradeActionType", + "modelAsString": false + } + }, + "lastActionTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Last action time of the upgrade." + } + }, + "description": "Information about the current running state of the overall upgrade." + }, + "RollingUpgradeProgressInfo": { + "properties": { + "successfulInstanceCount": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances that have been successfully upgraded." + }, + "failedInstanceCount": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances that have failed to be upgraded successfully." + }, + "inProgressInstanceCount": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances that are currently being upgraded." + }, + "pendingInstanceCount": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of instances that have not yet begun to be upgraded." + } + }, + "description": "Information about the number of virtual machine instances in each upgrade state." + }, + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, + "UpdateResource": { + "description": "The Update Resource model definition.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "SubResourceReadOnly": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "RecoveryWalkResponse": { + "properties": { + "walkPerformed": { + "type": "boolean", + "readOnly": true, + "description": "Whether the recovery walk was performed" + }, + "nextPlatformUpdateDomain": { + "type": "integer", + "readOnly": true, + "description": "The next update domain that needs to be walked. Null means walk spanning all update domains has been completed" + } + }, + "description": "Response after calling a manual recovery walk" + }, + "RequestRateByIntervalInput": { + "properties": { + "intervalLength": { + "type": "string", + "description": "Interval value in minutes used to create LogAnalytics call rate logs.", + "enum": [ + "ThreeMins", + "FiveMins", + "ThirtyMins", + "SixtyMins" + ], + "x-ms-enum": { + "name": "IntervalInMins", + "modelAsString": false + } + } + }, + "required": [ + "intervalLength" + ], + "allOf": [ + { + "$ref": "#/definitions/LogAnalyticsInputBase" + } + ], + "description": "Api request input for LogAnalytics getRequestRateByInterval Api." + }, + "ThrottledRequestsInput": { + "allOf": [ + { + "$ref": "#/definitions/LogAnalyticsInputBase" + } + ], + "description": "Api request input for LogAnalytics getThrottledRequests Api." + }, + "LogAnalyticsInputBase": { + "properties": { + "blobContainerSasUri": { + "type": "string", + "description": "SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to." + }, + "fromTime": { + "type": "string", + "format": "date-time", + "description": "From time of the query" + }, + "toTime": { + "type": "string", + "format": "date-time", + "description": "To time of the query" + }, + "groupByThrottlePolicy": { + "type": "boolean", + "description": "Group query result by Throttle Policy applied." + }, + "groupByOperationName": { + "type": "boolean", + "description": "Group query result by by Operation Name." + }, + "groupByResourceName": { + "type": "boolean", + "description": "Group query result by Resource Name." + } + }, + "required": [ + "blobContainerSasUri", + "fromTime", + "toTime" + ], + "description": "Api input base class for LogAnalytics Api." + }, + "LogAnalyticsOperationResult": { + "properties": { + "properties": { + "readOnly": true, + "$ref": "#/definitions/LogAnalyticsOutput", + "description": "LogAnalyticsOutput" + } + }, + "description": "LogAnalytics operation status response" + }, + "LogAnalyticsOutput": { + "properties": { + "output": { + "readOnly": true, + "type": "string", + "description": "Output file Uri path to blob container." + } + }, + "description": "LogAnalytics output properties" + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json new file mode 100644 index 000000000000..d391dab09b1c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageScaleSetFromAnUnmanagedGeneralizedOsImage.json @@ -0,0 +1,202 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "osDisk": { + "caching": "ReadWrite", + "image": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + }, + "createOption": "FromImage", + "name": "osDisk" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d6e9ab29-f8c9-4792-978c-ae2c07b98f17", + "virtualMachineProfile": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "image": { + "uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd" + }, + "createOption": "FromImage", + "name": "osDisk" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d6e9ab29-f8c9-4792-978c-ae2c07b98f17", + "virtualMachineProfile": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "image": { + "uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd" + }, + "createOption": "FromImage", + "name": "osDisk" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json new file mode 100644 index 000000000000..8da134b1a1bd --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json @@ -0,0 +1,146 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "{vm-name}", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "osDisk": { + "name": "myVMosdisk", + "image": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + }, + "osType": "Windows", + "createOption": "FromImage", + "caching": "ReadWrite", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + } + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "osDisk": { + "name": "myVMosdisk", + "image": { + "uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd" + }, + "caching": "ReadWrite", + "createOption": "FromImage", + "osType": "Windows", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd" + } + }, + "dataDisks": [] + }, + "vmId": "926cd555-a07c-4ff5-b214-4aa4dd09d79b", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "osDisk": { + "name": "myVMosdisk", + "image": { + "uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd" + }, + "caching": "ReadWrite", + "createOption": "FromImage", + "osType": "Windows", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd" + } + }, + "dataDisks": [] + }, + "vmId": "926cd555-a07c-4ff5-b214-4aa4dd09d79b", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutExtensions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutExtensions.json new file mode 100644 index 000000000000..b8170bd99b4f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutExtensions.json @@ -0,0 +1,183 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "{image_sku}", + "publisher": "{image_publisher}", + "version": "latest", + "offer": "{image_offer}" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true, + "provisionVMAgent": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true, + "provisionVMAgent": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutGuestAgent.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutGuestAgent.json new file mode 100644 index 000000000000..865fc3b2a67c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateALinuxVmWithoutGuestAgent.json @@ -0,0 +1,183 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "{image_sku}", + "publisher": "{image_publisher}", + "version": "latest", + "offer": "{image_offer}" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true, + "provisionVMAgent": false + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true, + "provisionVMAgent": false + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true, + "provisionVMAgent": false + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json new file mode 100644 index 000000000000..d07c7e9a407f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageScaleSetWithUnmanagedOsDisks.json @@ -0,0 +1,222 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "osDisk", + "vhdContainers": [ + "http://{existing-storage-account-name-0}.blob.core.windows.net/vhdContainer", + "http://{existing-storage-account-name-1}.blob.core.windows.net/vhdContainer", + "http://{existing-storage-account-name-2}.blob.core.windows.net/vhdContainer", + "http://{existing-storage-account-name-3}.blob.core.windows.net/vhdContainer", + "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer" + ] + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "77b7df9a-32fe-45e3-8911-60ac9c9b9c64", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "vhdContainers": [ + "http://{existing-storage-account-name}.blob.core.windows.net/vhds" + ], + "name": "osDisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "77b7df9a-32fe-45e3-8911-60ac9c9b9c64", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "vhdContainers": [ + "http://{existing-storage-account-name}.blob.core.windows.net/vhds" + ], + "name": "osDisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json new file mode 100644 index 000000000000..72aee807ef78 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAPlatformImageVmWithUnmanagedOsAndDataDisks.json @@ -0,0 +1,214 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "{vm-name}", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + }, + "dataDisks": [ + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 0, + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" + } + }, + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 1, + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd" + } + } + ] + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd" + }, + "createOption": "FromImage", + "name": "myVMosdisk", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "name": "dataDisk0", + "diskSizeGB": 1023, + "createOption": "Empty", + "caching": "None", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk0.vhd" + }, + "lun": 0 + }, + { + "name": "dataDisk1", + "diskSizeGB": 1023, + "createOption": "Empty", + "caching": "None", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk1.vhd" + }, + "lun": 1 + } + ] + }, + "vmId": "5230a749-2f68-4830-900b-702182d32e63", + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd" + }, + "createOption": "FromImage", + "name": "myVMosdisk", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "name": "dataDisk0", + "diskSizeGB": 1023, + "createOption": "Empty", + "caching": "None", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk0.vhd" + }, + "lun": 0 + }, + { + "name": "dataDisk1", + "diskSizeGB": 1023, + "createOption": "Empty", + "caching": "None", + "vhd": { + "uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk1.vhd" + }, + "lun": 1 + } + ] + }, + "vmId": "5230a749-2f68-4830-900b-702182d32e63", + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetFromACustomImage.json new file mode 100644 index 000000000000..d627d8d85d73 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetFromACustomImage.json @@ -0,0 +1,204 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "afa2afa8-9e49-48fb-9d18-c86323b5d064", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/nsgcustom" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "afa2afa8-9e49-48fb-9d18-c86323b5d064", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/nsgcustom" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAMarketplaceImagePlan.json new file mode 100644 index 000000000000..efd5915b5d6b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAMarketplaceImagePlan.json @@ -0,0 +1,230 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + }, + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureApplicationGateway.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureApplicationGateway.json new file mode 100644 index 000000000000..829c7256b532 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureApplicationGateway.json @@ -0,0 +1,230 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "applicationGatewayBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}" + } + ], + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "a0134477-b9d9-484b-b0e3-205c1c089ffa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "applicationGatewayBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/nsgExistingAppGw/backendAddressPools/appGatewayBackendPool" + } + ], + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "a0134477-b9d9-484b-b0e3-205c1c089ffa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "applicationGatewayBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/nsgExistingAppGw/backendAddressPools/appGatewayBackendPool" + } + ], + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureLoadBalancer.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureLoadBalancer.json new file mode 100644 index 000000000000..4cebbb66ef98 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithAnAzureLoadBalancer.json @@ -0,0 +1,245 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + }, + "loadBalancerInboundNatPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}" + } + ], + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}" + } + ] + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ec0b21ca-51ec-414b-9323-f236ffc21479", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "loadBalancerInboundNatPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/inboundNatPools/lbNatPool" + } + ], + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/backendAddressPools/lbBackendPool" + } + ], + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ec0b21ca-51ec-414b-9323-f236ffc21479", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "loadBalancerInboundNatPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/inboundNatPools/lbNatPool" + } + ], + "loadBalancerBackendAddressPools": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/myLb/backendAddressPools/lbBackendPool" + } + ], + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithBootDiagnostics.json new file mode 100644 index 000000000000..cda0de125723 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithBootDiagnostics.json @@ -0,0 +1,233 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://{existing-storage-account-name}.blob.core.windows.net", + "enabled": true + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://nsgdiagnostic.blob.core.windows.net", + "enabled": true + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "d053ec5a-8da6-495f-ab13-38216503c6d7", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://nsgdiagnostic.blob.core.windows.net", + "enabled": true + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json new file mode 100644 index 000000000000..cdf6e7747ecc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithEmptyDataDisksOnEachVm.json @@ -0,0 +1,270 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D2_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 0 + }, + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 1 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D2_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "8042c376-4690-4c47-9fa2-fbdad70e32fa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Succeeded" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D2_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "8042c376-4690-4c47-9fa2-fbdad70e32fa", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPasswordAuthentication.json new file mode 100644 index 000000000000..eb67566820fa --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPasswordAuthentication.json @@ -0,0 +1,215 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ffb27c5c-39a5-4d4e-b307-b32598689813", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "ffb27c5c-39a5-4d4e-b307-b32598689813", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPremiumStorage.json new file mode 100644 index 000000000000..76dd68d3b752 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithPremiumStorage.json @@ -0,0 +1,215 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "19fd38a2-f50a-42c6-9dc7-3f9cf3791225", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "19fd38a2-f50a-42c6-9dc7-3f9cf3791225", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithSshAuthentication.json new file mode 100644 index 000000000000..2610f0f76b02 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithSshAuthentication.json @@ -0,0 +1,239 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "location": "westus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "fb73af19-0090-467c-9ced-b00bceab1c45", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_D1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "fb73af19-0090-467c-9ced-b00bceab1c45", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithVMsInDifferentZones.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithVMsInDifferentZones.json new file mode 100644 index 000000000000..a73734e3c43b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithVMsInDifferentZones.json @@ -0,0 +1,284 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 2, + "name": "Standard_A1_v2" + }, + "location": "centralus", + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 0 + }, + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 1 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Automatic" + } + }, + "zones": [ + "1", + "3" + ] + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 2, + "name": "Standard_A1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": false, + "overprovision": true, + "uniqueId": "8042c376-4690-4c47-9fa2-fbdad70e32fa", + "zoneBalance": false, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Automatic" + }, + "provisioningState": "Succeeded" + }, + "zones": [ + "1", + "3" + ], + "location": "centralus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 2, + "name": "Standard_A1_v2" + }, + "name": "{vmss-name}", + "properties": { + "singlePlacementGroup": false, + "overprovision": true, + "uniqueId": "8042c376-4690-4c47-9fa2-fbdad70e32fa", + "zoneBalance": false, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "diskSizeGB": 512 + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Automatic" + }, + "provisioningState": "Creating" + }, + "zones": [ + "1", + "3" + ], + "location": "centralus", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json new file mode 100644 index 000000000000..20fb527e928e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "snapshotName": "mySnapshot1", + "snapshot": { + "name": "mySnapshot1", + "location": "West US", + "properties": { + "creationData": { + "createOption": "Import", + "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + } + } + } + }, + "responses": { + "202": { + "body": { + "properties": { + "creationData": { + "createOption": "Import", + "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "mySnapshot1" + } + }, + "200": { + "body": { + "properties": { + "creationData": { + "createOption": "Import", + "storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "mySnapshot1" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json new file mode 100644 index 000000000000..aa5ec83f65b6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "snapshotName": "mySnapshot1", + "snapshot": { + "name": "mySnapshot1", + "location": "West US", + "properties": { + "creationData": { + "createOption": "Import", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + } + } + } + }, + "responses": { + "202": { + "body": { + "properties": { + "creationData": { + "createOption": "Import", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "mySnapshot1" + } + }, + "200": { + "body": { + "properties": { + "creationData": { + "createOption": "Import", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "mySnapshot1" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotFromAnExistingSnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotFromAnExistingSnapshot.json new file mode 100644 index 000000000000..4bfbb3746bbf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateASnapshotFromAnExistingSnapshot.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "snapshotName": "mySnapshot2", + "snapshot": { + "name": "mySnapshot2", + "location": "West US", + "properties": { + "creationData": { + "createOption": "Copy", + "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + } + } + } + }, + "responses": { + "202": { + "body": { + "name": "mySnapshot2", + "location": "West US", + "properties": { + "provisioningState": "Updating", + "creationData": { + "createOption": "Copy", + "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + } + } + } + }, + "200": { + "body": { + "name": "mySnapshot2", + "location": "West US", + "properties": { + "provisioningState": "Updating", + "creationData": { + "createOption": "Copy", + "sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + } + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmFromACustomImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmFromACustomImage.json new file mode 100644 index 000000000000..f86cbf2b24d5 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmFromACustomImage.json @@ -0,0 +1,145 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/nsgcustom" + }, + "osDisk": { + "name": "myVMosdisk", + "diskSizeGB": 30, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "caching": "ReadWrite", + "createOption": "FromImage", + "osType": "Linux" + }, + "dataDisks": [] + }, + "vmId": "71aa3d5a-d73d-4970-9182-8580433b2865", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "disablePasswordAuthentication": false + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/nsgcustom" + }, + "osDisk": { + "name": "myVMosdisk", + "diskSizeGB": 30, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "caching": "ReadWrite", + "createOption": "FromImage", + "osType": "Linux" + }, + "dataDisks": [] + }, + "vmId": "71aa3d5a-d73d-4970-9182-8580433b2865", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmInAnAvailabilitySet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmInAnAvailabilitySet.json new file mode 100644 index 000000000000..5fafdd4c0fa6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmInAnAvailabilitySet.json @@ -0,0 +1,163 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "availabilitySet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "availabilitySet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/NSGEXISTINGAS" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b7a098cc-b0b8-46e8-a205-62f301a62a8f", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "availabilitySet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/NSGEXISTINGAS" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithAMarketplaceImagePlan.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithAMarketplaceImagePlan.json new file mode 100644 index 000000000000..e7b178768e43 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithAMarketplaceImagePlan.json @@ -0,0 +1,169 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "name": "myVM", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + }, + "201": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithBootDiagnostics.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithBootDiagnostics.json new file mode 100644 index 000000000000..26f72ca42686 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithBootDiagnostics.json @@ -0,0 +1,172 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://{existing-storage-account-name}.blob.core.windows.net", + "enabled": true + } + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://nsgdiagnostic.blob.core.windows.net", + "enabled": true + } + }, + "vmId": "676420ba-7a24-4bfe-80bd-9c841ee184fa", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "diagnosticsProfile": { + "bootDiagnostics": { + "storageUri": "http://nsgdiagnostic.blob.core.windows.net", + "enabled": true + } + }, + "vmId": "676420ba-7a24-4bfe-80bd-9c841ee184fa", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithEmptyDataDisks.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithEmptyDataDisks.json new file mode 100644 index 000000000000..04ded0d013c7 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithEmptyDataDisks.json @@ -0,0 +1,204 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + }, + "dataDisks": [ + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 0 + }, + { + "diskSizeGB": 1023, + "createOption": "Empty", + "lun": 1 + } + ] + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "vmId": "3906fef9-a1e5-4b83-a8a8-540858b41df0", + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [ + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 0, + "diskSizeGB": 1023 + }, + { + "caching": "None", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "Empty", + "lun": 1, + "diskSizeGB": 1023 + } + ] + }, + "vmId": "3906fef9-a1e5-4b83-a8a8-540858b41df0", + "hardwareProfile": { + "vmSize": "Standard_D2_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPasswordAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPasswordAuthentication.json new file mode 100644 index 000000000000..795e3eb71fa8 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPasswordAuthentication.json @@ -0,0 +1,154 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPremiumStorage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPremiumStorage.json new file mode 100644 index 000000000000..68121fbb694a --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithPremiumStorage.json @@ -0,0 +1,154 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Premium_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Premium_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "a149cd25-409f-41af-8088-275f5486bc93", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Premium_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "a149cd25-409f-41af-8088-275f5486bc93", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithSshAuthentication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithSshAuthentication.json new file mode 100644 index 000000000000..ead725d0c8b4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithSshAuthentication.json @@ -0,0 +1,178 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "{image_sku}", + "publisher": "{image_publisher}", + "version": "latest", + "offer": "{image_offer}" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "linuxConfiguration": { + "ssh": { + "publicKeys": [ + { + "path": "/home/{your-username}/.ssh/authorized_keys", + "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" + } + ] + }, + "disablePasswordAuthentication": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "16.04-LTS", + "publisher": "Canonical", + "version": "latest", + "offer": "UbuntuServer" + }, + "osDisk": { + "osType": "Linux", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "e0de9b84-a506-4b95-9623-00a425d05c90", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutExtensions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutExtensions.json new file mode 100644 index 000000000000..f896a7622504 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutExtensions.json @@ -0,0 +1,157 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}", + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutGuestAgent.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutGuestAgent.json new file mode 100644 index 000000000000..5cbcea747ae4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAWindowsVmWithoutGuestAgent.json @@ -0,0 +1,159 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "caching": "ReadWrite", + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "name": "myVMosdisk", + "createOption": "FromImage" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}", + "windowsConfiguration": { + "provisionVMAgent": false + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + }, + "name": "myVM" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": false, + "enableAutomaticUpdates": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + }, + "201": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "type": "Microsoft.Compute/virtualMachines", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": false, + "enableAutomaticUpdates": true + }, + "allowExtensionOperations": false + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "2016-Datacenter", + "publisher": "MicrosoftWindowsServer", + "version": "latest", + "offer": "WindowsServer" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadWrite", + "createOption": "FromImage", + "name": "myVMosdisk", + "managedDisk": { + "storageAccountType": "Standard_LRS" + } + }, + "dataDisks": [] + }, + "vmId": "b248db33-62ba-4d2d-b791-811e075ee0f5", + "hardwareProfile": { + "vmSize": "Standard_D1_v2" + }, + "provisioningState": "Creating" + }, + "name": "myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnAvailabilitySet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnAvailabilitySet.json new file mode 100644 index 000000000000..9503d562dff5 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnAvailabilitySet.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "availabilitySetName": "myAvailabilitySet", + "parameters": { + "location": "westus", + "properties": { + "platformFaultDomainCount": 2, + "platformUpdateDomainCount": 20 + } + } + }, + "responses": { + "200": { + "body": { + "sku": { + "name": "Classic" + }, + "name": "myAvailabilitySet", + "properties": { + "platformFaultDomainCount": 2, + "platformUpdateDomainCount": 20 + }, + "location": "westus", + "type": "Microsoft.Compute/availabilitySets", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/myAvailabilitySet" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromABlob.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromABlob.json new file mode 100644 index 000000000000..af4213d85fb4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromABlob.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "osState": "Generalized" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAManagedDisk.json new file mode 100644 index 000000000000..b642bfd16bf3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAManagedDisk.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromASnapshot.json new file mode 100644 index 000000000000..d1d418fc023f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromASnapshot.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAVM.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAVM.json new file mode 100644 index 000000000000..4503be102d16 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageFromAVM.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "sourceVirtualMachine": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "sourceVirtualMachine": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + }, + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "managedDisk": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVM_OsDisk_1_6dc293b7d811433196903acf92665022" + }, + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "sourceVirtualMachine": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + }, + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "managedDisk": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myVM_OsDisk_1_6dc293b7d811433196903acf92665022" + }, + "caching": "ReadWrite" + }, + "dataDisks": [] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromABlob.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromABlob.json new file mode 100644 index 000000000000..a8232159b7f8 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromABlob.json @@ -0,0 +1,78 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "osState": "Generalized" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd" + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "osState": "Generalized", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd" + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json new file mode 100644 index 000000000000..4703aff5fdb6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromAManagedDisk.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized" + }, + "dataDisks": [ + { + "lun": 1, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "managedDisk": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json new file mode 100644 index 000000000000..5a29f8ea2608 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAnImageThatIncludesADataDiskFromASnapshot.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage", + "parameters": { + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized" + }, + "dataDisks": [ + { + "lun": 1, + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + }, + "201": { + "body": { + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Linux", + "snapshot": { + "id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "osState": "Generalized", + "caching": "ReadWrite" + }, + "dataDisks": [ + { + "lun": 1, + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + } + } + ] + }, + "provisioningState": "Creating" + }, + "type": "Microsoft.Compute/images", + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/disk/providers/Microsoft.Compute/images/myImage", + "name": "myImage" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutASnapshot.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutASnapshot.json new file mode 100644 index 000000000000..05e4e5aac9bd --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutASnapshot.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "snapshotName": "mySnapshot" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "creationData": { + "createOption": "Empty" + }, + "diskSizeGB": 100, + "encryptionSettings": { + "enabled": true, + "diskEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}" + }, + "keyEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" + } + }, + "timeCreated": "2016-12-28T04:41:35.079872+00:00", + "provisioningState": "Succeeded" + }, + "type": "Microsoft.Compute/snapshots", + "location": "westus", + "tags": { + "department": "Development", + "project": "Snapshots" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + "name": "mySnapshot" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutAnImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutAnImage.json new file mode 100644 index 000000000000..3870c2fd7a67 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/GetInformationAboutAnImage.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01", + "imageName": "myImage" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage", + "name": "myImage", + "type": "Microsoft.Compute/images", + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk1" + }, + "osState": "Generalized", + "storageAccountType": "Standard_LRS", + "diskSizeGB": 20 + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + }, + "storageAccountType": "Standard_LRS" + } + ] + }, + "provisioningState": "created" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json new file mode 100644 index 000000000000..1f971542328e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListAvailabilitySetsInASubscription.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscriptionId}", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "platformUpdateDomainCount": 5, + "platformFaultDomainCount": 2 + }, + "type": "Microsoft.Compute/availabilitySets", + "location": "centralus", + "tags": { + "{tagName}": "{tagValue}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "name": "{availabilitySetName}", + "sku": { + "name": "Aligned" + } + }, + { + "properties": { + "platformUpdateDomainCount": 3, + "platformFaultDomainCount": 2 + }, + "type": "Microsoft.Compute/availabilitySets", + "location": "westus", + "tags": { + "{tagName}": "{tagValue}" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + "name": "{availabilitySetName}", + "sku": { + "name": "Classic" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInAResourceGroup.json new file mode 100644 index 000000000000..430bfbbe69e2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInAResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage", + "name": "myImage", + "type": "Microsoft.Compute/images", + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk1" + }, + "osState": "Generalized", + "storageAccountType": "Standard_LRS" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + }, + "storageAccountType": "Standard_LRS" + } + ] + }, + "provisioningState": "created" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInASubscription.json new file mode 100644 index 000000000000..8b82da7f4399 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListImagesInASubscription.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myImage", + "name": "myImage", + "type": "Microsoft.Compute/images", + "location": "West US", + "properties": { + "storageProfile": { + "osDisk": { + "osType": "Windows", + "blobUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk1" + }, + "osState": "Generalized", + "storageAccountType": "Standard_LRS" + }, + "dataDisks": [ + { + "lun": 1, + "blobUri": "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", + "snapshot": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" + }, + "managedDisk": { + "id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" + }, + "storageAccountType": "Standard_LRS" + } + ] + }, + "provisioningState": "created" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInAResourceGroup.json new file mode 100644 index 000000000000..19538dd64fc5 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInAResourceGroup.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "creationData": { + "createOption": "Copy", + "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "diskSizeGB": 200, + "encryptionSettings": { + "enabled": true, + "diskEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}" + }, + "keyEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" + } + }, + "timeCreated": "2016-12-28T04:41:35.9278721+00:00", + "provisioningState": "Succeeded" + }, + "type": "Microsoft.Compute/snapshots", + "location": "westus", + "tags": { + "department": "Development", + "project": "Snapshots" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + "name": "mySnapshot" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInASubscription.json new file mode 100644 index 000000000000..88b188250348 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/ListSnapshotsInASubscription.json @@ -0,0 +1,85 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "creationData": { + "createOption": "Copy", + "sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + }, + "diskSizeGB": 200, + "encryptionSettings": { + "enabled": true, + "diskEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}" + }, + "keyEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" + } + }, + "timeCreated": "2016-12-28T04:47:30.6630569+00:00", + "provisioningState": "Succeeded" + }, + "type": "Microsoft.Compute/snapshots", + "location": "westus", + "tags": { + "department": "Development", + "project": "Snapshots" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", + "name": "mySnapshot1" + }, + { + "properties": { + "osType": "Windows", + "creationData": { + "createOption": "Import", + "storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + }, + "diskSizeGB": 200, + "encryptionSettings": { + "enabled": true, + "diskEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}" + }, + "keyEncryptionKey": { + "sourceVault": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" + }, + "keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" + } + }, + "timeCreated": "2016-12-28T04:47:30.3247198+00:00", + "provisioningState": "Succeeded" + }, + "type": "Microsoft.Compute/snapshots", + "location": "westus", + "tags": { + "department": "Development", + "project": "Snapshots" + }, + "id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2", + "name": "mySnapshot2" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json new file mode 100644 index 000000000000..586cc00b6395 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsRequestRateByInterval.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus", + "api-version": "2018-10-01", + "parameters": { + "intervalLength": "FiveMins", + "blobContainerSasUri": "https://somesasuri", + "fromTime": "2018-01-21T01:54:06.862601Z", + "toTime": "2018-01-23T01:54:06.862601Z", + "groupByResourceName": true + } + }, + "responses": { + "200": { + "body": { + "startTime": "2018-01-30T17:54:14.8806951-08:00", + "endTime": "2018-01-30T17:54:17.5832413-08:00", + "status": "Succeeded", + "properties": { + "output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/RequestRateByInterval_20180121-0154_20180123-0154.csv" + }, + "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" + } + }, + "202": { + "body": "" + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json new file mode 100644 index 000000000000..c71492cdb319 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/LogAnalyticsThrottledRequests.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus", + "api-version": "2018-10-01", + "parameters": { + "blobContainerSasUri": "https://somesasuri", + "fromTime": "2018-01-21T01:54:06.862601Z", + "toTime": "2018-01-23T01:54:06.862601Z", + "groupByOperationName": true, + "groupByResourceName": false + } + }, + "responses": { + "200": { + "body": { + "startTime": "2018-01-30T17:54:14.8806951-08:00", + "endTime": "2018-01-30T17:54:17.5832413-08:00", + "status": "Succeeded", + "properties": { + "output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/ThrottledRequests_20180121-0154_20180123-0154.csv" + }, + "name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df" + } + }, + "202": { + "body": "" + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VMScaleSetExtensionRollingUpgrade.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VMScaleSetExtensionRollingUpgrade.json new file mode 100644 index 000000000000..f01e62f35086 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VMScaleSetExtensionRollingUpgrade.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "startTime": "2017-12-16T16:01:37.8958419-07:00", + "endTime": "2017-12-16T18:10:11.2897717-07:00", + "status": "Succeeded", + "name": "289dbc84-3c84-4a86-9e40-bbd4d61edcaf" + } + }, + "202": { + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json new file mode 100644 index 000000000000..2e857a94d437 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommand.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "24fb23e3-6ba3-41f0-9b6e-e41131d5d61e", + "resourceGroupName": "crptestar98131", + "vmName": "vm3036", + "$top": "1", + "api-version": "2018-10-01", + "monitor": "true", + "parameters": { + "commandId": "RunPowerShellScript" + } + }, + "responses": { + "200": { + "body": { + "value": [ + { + "code": "ComponentStatus/StdOut/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "This is a sample script with parameters value1 value2" + }, + { + "code": "ComponentStatus/StdErr/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "message": "" + } + ] + } + }, + "202": { + "body": "" + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandGet.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandGet.json new file mode 100644 index 000000000000..199778a2095e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandGet.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "subscriptionId": "24fb23e3-6ba3-41f0-9b6e-e41131d5d61e", + "location": "SoutheastAsia", + "commandId": "RunPowerShellScript", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "script": [ + "param(", + " [string]$arg1,", + " [string]$arg2", + ")", + "Write-Host This is a sample script with parameters $arg1 $arg2" + ], + "parameters": [ + { + "name": "arg1", + "type": "string", + "value": "value1" + }, + { + "name": "arg2", + "type": "string", + "value": "value2" + } + ], + "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "RunPowerShellScript", + "osType": "Windows", + "label": "Executes a PowerShell script", + "description": "Custom multiline PowerShell script should be defined in script property. Optional parameters can be set in parameters property." + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandList.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandList.json new file mode 100644 index 000000000000..d1b17e653aef --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/VirtualMachineRunCommandList.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "subid", + "location": "SoutheastAsia", + "api-version": "2018-10-01" + }, + "responses": { + "200": { + "body": { + "value": [{ + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "EnableRemotePS", + "osType": "Windows", + "label": "Enable remote PowerShell", + "description": "Configure the machine to enable remote PowerShell." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "IPConfig", + "osType": "Windows", + "label": "List IP configuration", + "description": "Shows detailed information for the IP address, subnet mask and default gateway for each adapter bound to TCP/IP." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "RunPowerShellScript", + "osType": "Windows", + "label": "Executes a PowerShell script", + "description": "Custom multiline PowerShell script should be defined in script property. Optional parameters can be set in parameters property." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "RunShellScript", + "osType": "Linux", + "label": "Executes a Linux shell script", + "description": "Custom multiline shell script should be defined in script property. Optional parameters can be set in parameters property." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "ifconfig", + "osType": "Linux", + "label": "List network configuration", + "description": "Get the configuration of all network interfaces." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "EnableAdminAccount", + "osType": "Windows", + "label": "Enable administrator account", + "description": "Checks if the local Administrator account is disabled, and if so enables it." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "ResetAccountPassword", + "osType": "Windows", + "label": "Reset built-in Administrator account password", + "description": "Reset built-in Administrator account password." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "RDPSettings", + "osType": "Windows", + "label": "Verify RDP Listener Settings", + "description": "Checks registry settings and domain policy settings. Suggests policy actions if machine is part of a domain or modifies the settings to default values." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "SetRDPPort", + "osType": "Windows", + "label": "Set Remote Desktop port", + "description": "Sets the default or user specified port number for Remote Desktop connections. Enables firewall rule for inbound access to the port." + }, { + "schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", + "id": "ResetRDPCert", + "osType": "Windows", + "label": "Restore RDP Authentication mode to defaults", + "description": "Removes the SSL certificate tied to the RDP listener and restores the RDP listerner security to default. Use this script if you see any issues with the certificate." + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/runCommands.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/runCommands.json new file mode 100644 index 000000000000..e5500021a703 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/runCommands.json @@ -0,0 +1,461 @@ +{ + "swagger": "2.0", + "info": { + "title": "RunCommandsClient", + "description": "The Run Commands Client.", + "version": "2018-10-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json", + "text/json" + ], + "produces": [ + "application/json", + "text/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands": { + "get": { + "tags": [ + "VirtualMachineRunCommands" + ], + "operationId": "VirtualMachineRunCommands_List", + "x-ms-examples": { + "VirtualMachineRunCommandList": { "$ref": "./examples/VirtualMachineRunCommandList.json" } + }, + "description": "Lists all available run commands for a subscription in a location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location upon which run commands is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunCommandListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}": { + "get": { + "tags": [ + "VirtualMachineRunCommands" + ], + "operationId": "VirtualMachineRunCommands_Get", + "x-ms-examples": { + "VirtualMachineRunCommandGet": { "$ref": "./examples/VirtualMachineRunCommandGet.json" } + }, + "description": "Gets specific run command for a subscription in a location.", + "parameters": [ + { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "description": "The location upon which run commands is queried.", + "pattern": "^[-\\w\\._]+$" + }, + { + "name": "commandId", + "in": "path", + "required": true, + "type": "string", + "description": "The command id." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunCommandDocument" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand": { + "post": { + "tags": [ + "VirtualMachines" + ], + "operationId": "VirtualMachines_RunCommand", + "x-ms-examples": { + "VirtualMachineRunCommand": { "$ref": "./examples/VirtualMachineRunCommand.json" } + }, + "description": "Run command on the VM.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RunCommandInput" + }, + "description": "Parameters supplied to the Run command operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunCommandResult" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand": { + "post": { + "tags": [ + "VirtualMachineScaleSetVMs" + ], + "operationId": "VirtualMachineScaleSetVMs_RunCommand", + "description": "Run command on a virtual machine in a VM scale set.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "vmScaleSetName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the VM scale set." + }, + { + "name": "instanceId", + "in": "path", + "required": true, + "type": "string", + "description": "The instance ID of the virtual machine." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RunCommandInput" + }, + "description": "Parameters supplied to the Run command operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RunCommandResult" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + } + } + } + }, + "definitions": { + "RunCommandInputParameter": { + "properties": { + "name": { + "type": "string", + "description": "The run command parameter name." + }, + "value": { + "type": "string", + "description": "The run command parameter value." + } + }, + "required": [ + "name", + "value" + ], + "description": "Describes the properties of a run command parameter." + }, + "RunCommandInput": { + "properties": { + "commandId": { + "type": "string", + "description": "The run command id." + }, + "script": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. The script to be executed. When this value is given, the given script will override the default script of the command." + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/RunCommandInputParameter" + }, + "description": "The run command parameters." + } + }, + "required": [ + "commandId" + ], + "description": "Capture Virtual Machine parameters." + }, + "RunCommandParameterDefinition": { + "properties": { + "name": { + "type": "string", + "description": "The run command parameter name." + }, + "type": { + "type": "string", + "description": "The run command parameter type." + }, + "defaultValue": { + "type": "string", + "description": "The run command parameter default value." + }, + "required": { + "type": "boolean", + "description": "The run command parameter required.", + "default": false + } + }, + "required": [ + "name", + "type" + ], + "description": "Describes the properties of a run command parameter." + }, + "RunCommandDocumentBase": { + "properties": { + "$schema": { + "type": "string", + "description": "The VM run command schema." + }, + "id": { + "type": "string", + "description": "The VM run command id." + }, + "osType": { + "type": "string", + "description": "The Operating System type.", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "label": { + "type": "string", + "description": "The VM run command label." + }, + "description": { + "type": "string", + "description": "The VM run command description." + } + }, + "required": [ + "$schema", + "id", + "osType", + "label", + "description" + ], + "description": "Describes the properties of a Run Command metadata." + }, + "RunCommandDocument": { + "allOf": [ + { + "$ref": "#/definitions/RunCommandDocumentBase" + } + ], + "properties": { + "script": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The script to be executed." + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/RunCommandParameterDefinition" + }, + "description": "The parameters used by the script." + } + }, + "required": [ + "script" + ], + "description": "Describes the properties of a Run Command." + }, + "RunCommandListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RunCommandDocumentBase" + }, + "description": "The list of virtual machine run commands." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands." + } + }, + "required": [ + "value" + ], + "description": "The List Virtual Machine operation response." + }, + "InstanceViewStatus": { + "properties": { + "code": { + "type": "string", + "description": "The status code." + }, + "level": { + "type": "string", + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": false + } + }, + "displayStatus": { + "type": "string", + "description": "The short localizable label for the status." + }, + "message": { + "type": "string", + "description": "The detailed status message, including for alerts and error messages." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "The time of the status." + } + }, + "description": "Instance view status." + }, + "RunCommandResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/InstanceViewStatus" + }, + "description": "Run command operation response." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 1639d9876bd3..c6e8d2535a88 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -34,7 +34,7 @@ These are the global settings for the Compute API. title: ComputeManagementClient description: Compute Client openapi-type: arm -tag: package-2018-06-exclude-gallery +tag: package-2018-10-01 directive: - where: @@ -167,7 +167,31 @@ directive: suppress: - DefinitionsPropertiesNamesCamelCase + + - where: + - $.definitions.DiskProperties.properties.diskIOPSReadWrite + suppress: + - DefinitionsPropertiesNamesCamelCase + - where: + - $.definitions.DiskUpdateProperties.properties.diskIOPSReadWrite + suppress: + - DefinitionsPropertiesNamesCamelCase + +``` +### Tag: package-2018-10-01 + +These settings apply only when `--tag=package-2018-10-01` is specified on the command line. + +``` yaml $(tag) == 'package-2018-10-01' +input-file: +- Microsoft.Compute/stable/2018-10-01/compute.json +- Microsoft.Compute/stable/2018-10-01/runCommands.json +- Microsoft.Compute/stable/2017-09-01/skus.json +- Microsoft.Compute/stable/2018-06-01/disk.json +- Microsoft.Compute/stable/2018-06-01/gallery.json +- Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` + ### Tag: package-2018-06-exclude-gallery These settings apply only when `--tag=package-2018-06-exclude-gallery` is specified on the command line. From acd9ddb21a2b94325d3f5ad823938b40469378a5 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Fri, 21 Sep 2018 12:44:54 -0700 Subject: [PATCH 26/39] Add compute 2018-10-01 to Go SDK (#3982) --- specification/compute/resource-manager/readme.go.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/compute/resource-manager/readme.go.md b/specification/compute/resource-manager/readme.go.md index 61baafec0e3a..73d41d3c9232 100644 --- a/specification/compute/resource-manager/readme.go.md +++ b/specification/compute/resource-manager/readme.go.md @@ -12,6 +12,7 @@ go: ``` yaml $(go) && $(multiapi) batch: + - tag: package-2018-10-01 - tag: package-2018-06 - tag: package-compute-2018-04 - tag: package-compute-only-2017-12 @@ -26,6 +27,16 @@ batch: - tag: package-container-service-2015-11-preview ``` +### Tag: package-2018-10-01 and go + +These settings apply only when `--tag=package-2018-10-01 --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag)=='package-2018-10-01' && $(go) +namespace: compute +output-folder: $(go-sdk-folder)/services/compute/mgmt/2018-10-01/compute +``` + ### Tag: package-2018-06 and go These settings apply only when `--tag=package-2018-06 --go` is specified on the command line. From 27a5ce0ffc9fc7221bb58d02b3fe0f515586ab96 Mon Sep 17 00:00:00 2001 From: Martin Strobel Date: Fri, 21 Sep 2018 13:39:02 -0700 Subject: [PATCH 27/39] Bringing conformance to the Disk version used in root tags. (#3939) @dashult discovered the discrepancy between the tags `package-2018-06` and `package-2018-06-exclude-gallery`. The difference is causing the modeler to choke on duplicate type definitions for the TypeScript and Node.js generators. --- specification/compute/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index c6e8d2535a88..4987669f317b 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -201,7 +201,7 @@ input-file: - Microsoft.Compute/stable/2018-06-01/compute.json - Microsoft.Compute/stable/2018-06-01/runCommands.json - Microsoft.Compute/stable/2017-09-01/skus.json -- Microsoft.Compute/stable/2018-04-01/disk.json +- Microsoft.Compute/stable/2018-06-01/disk.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` From 5682ce2525b7fa4b3115938a948af3bc46d6387f Mon Sep 17 00:00:00 2001 From: jmelvinwork <36973876+jmelvinwork@users.noreply.github.com> Date: Fri, 21 Sep 2018 15:09:26 -0700 Subject: [PATCH 28/39] Front Door publicpreview (#3973) * Front Door public preview Front Door public preview * Add suppression for operationsAPIImplementation as we use NRP's operations/ API Add suppression for operationsAPIImplementation as we use NRP's operations/ API * Fix typo Fix typo * Fix indentation Fix indentation * Fix resourceState in definition WebApplicationFirewallPolicy Swagger did not contain the return value ResourceState. * Fix resourceState case * Delete vim.exe.stackdump --- .../preview/2018-08-01-preview/README.md | 20 + .../2018-08-01-preview/assets/frontdoor.svg | 668 +++++ .../CheckFrontdoorNameAvailability.json | 18 + ...tdoorNameAvailabilityWithSubscription.json | 19 + .../examples/FrontdoorBackendPoolCreate.json | 165 ++ .../examples/FrontdoorBackendPoolDelete.json | 13 + .../examples/FrontdoorBackendPoolGet.json | 51 + .../examples/FrontdoorBackendPoolList.json | 54 + .../examples/FrontdoorCreate.json | 498 ++++ .../examples/FrontdoorDelete.json | 12 + .../examples/FrontdoorDisableHttps.json | 13 + .../examples/FrontdoorEnableHttps.json | 24 + .../FrontdoorFrontendEndpointCreate.json | 64 + .../FrontdoorFrontendEndpointDelete.json | 13 + .../FrontdoorFrontendEndpointGet.json | 25 + .../FrontdoorFrontendEndpointList.json | 28 + .../examples/FrontdoorGet.json | 136 + .../FrontdoorHealthProbeSettingsCreate.json | 52 + .../FrontdoorHealthProbeSettingsDelete.json | 13 + .../FrontdoorHealthProbeSettingsGet.json | 22 + .../FrontdoorHealthProbeSettingsList.json | 25 + .../examples/FrontdoorList.json | 139 + .../examples/FrontdoorListAll.json | 138 + .../FrontdoorLoadBalancingSettingsCreate.json | 48 + .../FrontdoorLoadBalancingSettingsDelete.json | 13 + .../FrontdoorLoadBalancingSettingsGet.json | 21 + .../FrontdoorLoadBalancingSettingsList.json | 24 + .../examples/FrontdoorOperationsList.json | 13 + .../examples/FrontdoorPurgeContent.json | 18 + .../examples/FrontdoorRoutingRuleCreate.json | 118 + .../examples/FrontdoorRoutingRuleDelete.json | 13 + .../examples/FrontdoorRoutingRuleGet.json | 39 + .../examples/FrontdoorRoutingRuleList.json | 42 + .../FrontdoorValidateCustomDomain.json | 20 + .../examples/WafListPolicies.json | 106 + .../examples/WafPolicyCreateOrUpdate.json | 262 ++ .../examples/WafPolicyDelete.json | 13 + .../examples/WafPolicyGet.json | 103 + .../preview/2018-08-01-preview/frontdoor.json | 2553 +++++++++++++++++ .../preview/2018-08-01-preview/network.json | 168 ++ .../webapplicationfirewall.json | 636 ++++ .../frontdoor/resource-manager/readme.md | 143 + .../resource-manager/readme.nodejs.md | 15 + .../resource-manager/readme.python.md | 27 + 44 files changed, 6605 insertions(+) create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/README.md create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/assets/frontdoor.svg create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailability.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailabilityWithSubscription.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDisableHttps.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorEnableHttps.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorListAll.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorOperationsList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorPurgeContent.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleCreate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleList.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorValidateCustomDomain.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafListPolicies.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyCreateOrUpdate.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyDelete.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyGet.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/frontdoor.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/network.json create mode 100644 specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.json create mode 100644 specification/frontdoor/resource-manager/readme.md create mode 100644 specification/frontdoor/resource-manager/readme.nodejs.md create mode 100644 specification/frontdoor/resource-manager/readme.python.md diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/README.md b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/README.md new file mode 100644 index 000000000000..3c951a6dac88 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/README.md @@ -0,0 +1,20 @@ +# Public Preview API specification for Frontdoor Azure Resource + +This directory contains preview schema specifications for the new Front Door Azure Resource. The API will be added to support Front Door on Azure Resource Manager. + +The base swagger document for new features in this preview: [FrontDoor.json](./FrontDoor.json) + +## Overview +The Front Door ARM API supports CRUD functionality on four objects in the resource schema: +`Frontdoor`, a collection of child objects `BackendPool`, a collection of child objects `FrontendEndpoints` and the primary child object `RoutingRule`, which each reference one `BackendPool` and `FrontendEndpoints` . Each routing rule encapsulates +all of the settings needed to configure the AzureFD backend infrastructure to set up a +reverse-proxy route to accelerate traffic, detect backend availability, +and balance between healthy members of the pool. + +## Generated object-model UML diagram +This diagram is generated from the swagger spec by "[`oav`](https://github.com/Azure/oav) `generate-uml`" +![Generated UML snapshot](./assets/frontdoor.svg) + +## Swagger and JSON specification reference and tools + * [OpenAPI specification v2.0 (aka Swagger 2.0)](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md) + * [Swagger.io online editor](https://editor.swagger.io/) diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/assets/frontdoor.svg b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/assets/frontdoor.svg new file mode 100644 index 000000000000..2806bba823df --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/assets/frontdoor.svg @@ -0,0 +1,668 @@ + + + + + + +G + + + +A0 + +Frontdoor + +-properties:FrontdoorProperties + + + +A2 + +FrontdoorProperties + +-resourceState:ResourceState +-provisioningState:string +-cname:string + + + +A0->A2 + + + + + +A1 + +FrontdoorUpdateParameters + +-friendlyName:string +-routingRules:Array<RoutingRule> +-loadBalancingSettings:Array<LoadBalancingSettingsModel> +-healthProbeSettings:Array<HealthProbeSettingsModel> +-backendPools:Array<BackendPool> +-frontendEndpoints:Array<FrontendEndpoint> +-enabledState:string + + + +A1->A2 + + +allOf + + + +A5 + +RoutingRule + +-properties:RoutingRuleProperties +-name:string +-type:string + + + +A1->A5 + + + + + +A10 + +LoadBalancingSettingsModel + +-properties:LoadBalancingSettingsProperties +-name:string +-type:string + + + +A1->A10 + + + + + +A14 + +HealthProbeSettingsModel + +-properties:HealthProbeSettingsProperties +-name:string +-type:string + + + +A1->A14 + + + + + +A18 + +BackendPool + +-properties:BackendPoolProperties +-name:string +-type:string + + + +A1->A18 + + + + + +A26 + +FrontendEndpoint + +-properties:FrontendEndpointProperties +-name:string +-type:string + + + +A1->A26 + + + + + +A30 + +ResourceState + + + +A2->A30 + + + + + +A3 + +FrontdoorListResult + +-value:Array<Frontdoor> +-nextLink:string + + + +A3->A0 + + + + + +A4 + +PurgeParameters + +-contentPaths:Array<string> + + + +A6 + +RoutingRuleProperties + +-resourceState:ResourceState + + + +A5->A6 + + + + + +A6->A30 + + + + + +A7 + +RoutingRuleListResult + +-value:Array<RoutingRule> +-nextLink:string + + + +A7->A5 + + + + + +A8 + +RoutingRuleUpdateParameters + +-frontendEndpoints:Array<SubResource> +-acceptedProtocols:Array<string> +-patternsToMatch:Array<string> +-customForwardingPath:string +-forwardingProtocol:string +-cacheConfiguration:CacheConfiguration +-backendPool:SubResource +-enabledState:string + + + +A8->A6 + + +allOf + + + +A22 + +CacheConfiguration + +-queryParameterStripDirective:string +-dynamicCompression:string + + + +A8->A22 + + + + + +A38 + +SubResource + +-id:string + + + +A8->A38 + + + + + +A8->A38 + + + + + +A9 + +Backend + +-address:string +-httpPort: +-httpsPort: +-enabledState:string +-priority: +-weight: +-backendHostHeader:string + + + +A11 + +LoadBalancingSettingsProperties + +-resourceState:ResourceState + + + +A10->A11 + + + + + +A11->A30 + + + + + +A12 + +LoadBalancingSettingsListResult + +-value:Array<LoadBalancingSettingsModel> +-nextLink:string + + + +A12->A10 + + + + + +A13 + +LoadBalancingSettingsUpdateParameters + +-sampleSize: +-successfulSamplesRequired: +-additionalLatencyMilliseconds: + + + +A13->A11 + + +allOf + + + +A15 + +HealthProbeSettingsProperties + +-resourceState:ResourceState + + + +A14->A15 + + + + + +A15->A30 + + + + + +A16 + +HealthProbeSettingsListResult + +-value:Array<HealthProbeSettingsModel> +-nextLink:string + + + +A16->A14 + + + + + +A17 + +HealthProbeSettingsUpdateParameters + +-path:string +-protocol:string +-intervalInSeconds: + + + +A17->A15 + + +allOf + + + +A20 + +BackendPoolProperties + +-resourceState:ResourceState + + + +A18->A20 + + + + + +A19 + +BackendPoolUpdateParameters + +-backends:Array<Backend> +-loadBalancingSettings:SubResource +-healthProbeSettings:SubResource + + + +A19->A9 + + + + + +A19->A20 + + +allOf + + + +A19->A38 + + + + + +A19->A38 + + + + + +A20->A30 + + + + + +A21 + +BackendPoolListResult + +-value:Array<BackendPool> +-nextLink:string + + + +A21->A18 + + + + + +A23 + +KeyVaultCertificateSourceParameters + +-vault:Object +-secretName:string +-secretVersion:string + + + +A24 + +FrontdoorCertificateSourceParameters + +-certificateType:string + + + +A25 + +CustomHttpsConfiguration + +-certificateSource:string +-protocolType:string +-keyVaultCertificateSourceParameters:KeyVaultCertificateSourceParameters +-frontdoorCertificateSourceParameters:FrontdoorCertificateSourceParameters + + + +A25->A23 + + + + + +A25->A24 + + + + + +A27 + +FrontendEndpointProperties + +-resourceState:ResourceState +-customHttpsProvisioningState:string +-customHttpsProvisioningSubstate:string +-customHttpsConfiguration:CustomHttpsConfiguration + + + +A26->A27 + + + + + +A27->A25 + + + + + +A27->A30 + + + + + +A28 + +FrontendEndpointUpdateParameters + +-hostName:string +-sessionAffinityEnabledState:string +-sessionAffinityTtlSeconds: +-webApplicationFirewallPolicyLink:Object + + + +A28->A27 + + +allOf + + + +A29 + +FrontendEndpointsListResult + +-value:Array<FrontendEndpoint> +-nextLink:string + + + +A29->A26 + + + + + +A31 + +ValidateCustomDomainInput + +-hostName:string + + + +A32 + +ValidateCustomDomainOutput + +-customDomainValidated:boolean +-reason:string +-message:string + + + +A33 + +ErrorResponse + +-code:string +-message:string + + + +A34 + +CheckNameAvailabilityInput + +-name:string +-type:ResourceType + + + +A36 + +ResourceType + + + +A34->A36 + + + + + +A35 + +CheckNameAvailabilityOutput + +-nameAvailability:string +-reason:string +-message:string + + + +A37 + +Resource + +-id:string +-name:string +-type:string +-location:string +-tags:Dictionary<string> + + + +A37->A0 + + +allOf + + + +A38->A5 + + +allOf + + + +A38->A10 + + +allOf + + + +A38->A14 + + +allOf + + + +A38->A18 + + +allOf + + + +A38->A26 + + +allOf + + + diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailability.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailability.json new file mode 100644 index 000000000000..9973137c0746 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailability.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "checkFrontDoorNameAvailabilityInput": { + "name": "sampleName", + "type": "Microsoft.Network/FrontDoors" + } + }, + "responses": { + "200": { + "body": { + "nameAvailability": "Unavailable", + "reason": "Name is already in use", + "message": "Name not available" + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailabilityWithSubscription.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailabilityWithSubscription.json new file mode 100644 index 000000000000..103b5a68ee66 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/CheckFrontdoorNameAvailabilityWithSubscription.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "checkFrontDoorNameAvailabilityInput": { + "name": "sampleName", + "type": "Microsoft.Network/FrontDoors/frontendEndpoints" + } + }, + "responses": { + "200": { + "body": { + "nameAvailability": "Unavailable", + "reason": "Name is already in use", + "message": "Name not available" + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolCreate.json new file mode 100644 index 000000000000..3abdb902482f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolCreate.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1", + "backendPoolParameters": { + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolDelete.json new file mode 100644 index 000000000000..8b5f44e395ba --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolGet.json new file mode 100644 index 000000000000..79e15f71c0ae --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolGet.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "backendPoolName": "backendPool1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolList.json new file mode 100644 index 000000000000..2f426ab29ada --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorBackendPoolList.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorCreate.json new file mode 100644 index 000000000000..8b1edc0c95b0 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorCreate.json @@ -0,0 +1,498 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontDoorParameters": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Creating", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Creating", + "provisioningState": "Provisioning", + "cname": "frontDoor1.azurefd.net" + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Creating", + "provisioningState": "Provisioning", + "cname": "frontDoor1.azurefd.net" + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDelete.json new file mode 100644 index 000000000000..6e9961c0e028 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDelete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDisableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDisableHttps.json new file mode 100644 index 000000000000..1d3f83034e90 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorDisableHttps.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1" + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorEnableHttps.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorEnableHttps.json new file mode 100644 index 000000000000..55b8fca5dbff --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorEnableHttps.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1", + "customHttpsConfiguration": { + "certificateSource": "AzureKeyVault", + "protocolType": "ServerNameIndication", + "keyVaultCertificateSourceParameters": { + "vault": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.KeyVault/vaults/vault1" + }, + "secretName": "secret1", + "secretVersion": "00000000-0000-0000-0000-000000000000" + } + } + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointCreate.json new file mode 100644 index 000000000000..94ce8a80fd6f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointCreate.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontDoorEndpoint1", + "frontendEndpointParameters": { + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointDelete.json new file mode 100644 index 000000000000..7031bd344045 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointGet.json new file mode 100644 index 000000000000..3123998c99f9 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointGet.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "frontendEndpointName": "frontendEndpoint1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointList.json new file mode 100644 index 000000000000..27d02aa8d281 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorFrontendEndpointList.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorGet.json new file mode 100644 index 000000000000..87c6c30a6625 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorGet.json @@ -0,0 +1,136 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsCreate.json new file mode 100644 index 000000000000..0ec68f16caa3 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsCreate.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1", + "healthProbeSettingsParameters": { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsDelete.json new file mode 100644 index 000000000000..7446d89fe880 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsGet.json new file mode 100644 index 000000000000..a7fa09954a24 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsGet.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "healthProbeSettingsName": "healthProbeSettings1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsList.json new file mode 100644 index 000000000000..ba9c0c3c37be --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorHealthProbeSettingsList.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1", + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorList.json new file mode 100644 index 000000000000..a7cc41d1ac36 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorList.json @@ -0,0 +1,139 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorListAll.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorListAll.json new file mode 100644 index 000000000000..79272b3dcd5c --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorListAll.json @@ -0,0 +1,138 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1", + "name": "frontDoor1", + "type": "Microsoft.Network/frontDoor", + "location": "westus", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "routingRules": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRules/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ], + "healthProbeSettings": [ + { + "name": "healthProbeSettings1", + "properties": { + "path": "/", + "protocol": "Http", + "intervalInSeconds": 120 + } + } + ], + "loadBalancingSettings": [ + { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ], + "backendPools": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1", + "name": "backendPool1", + "properties": { + "backends": [ + { + "address": "w3.contoso.com", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 2 + }, + { + "address": "contoso.com.website-us-west-2.othercloud.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 2, + "priority": 1 + }, + { + "address": "contoso1.azurewebsites.net", + "httpPort": 80, + "httpsPort": 443, + "enabledState": "Enabled", + "weight": 1, + "priority": 1 + } + ], + "loadBalancingSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadBalancingSettings1" + }, + "healthProbeSettings": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/healthProbeSettings/healthProbeSettings1" + } + } + } + ], + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1", + "name": "frontendEndpoint1", + "properties": { + "hostName": "www.contoso.com", + "sessionAffinityEnabledState": "Enabled", + "sessionAffinityTtlSeconds": 60, + "webApplicationFirewallPolicyLink": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies/policy1" + } + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default", + "name": "default", + "properties": { + "hostName": "frontDoor1.azurefd.net" + } + } + ], + "enabledState": "Enabled", + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "cname": "frontDoor1.azurefd.net" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsCreate.json new file mode 100644 index 000000000000..53e73303a122 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsCreate.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1", + "loadBalancingSettingsParameters": { + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsDelete.json new file mode 100644 index 000000000000..924b66a7fa90 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsGet.json new file mode 100644 index 000000000000..e2cf444e945f --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsGet.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "loadBalancingSettingsName": "loadBalancingSettings1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsList.json new file mode 100644 index 000000000000..849653c5d422 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorLoadBalancingSettingsList.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/loadBalancingSettings/loadbalancingSettings1", + "name": "loadBalancingSettings1", + "properties": { + "sampleSize": 4, + "successfulSamplesRequired": 2 + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorOperationsList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorOperationsList.json new file mode 100644 index 000000000000..d6458ecf0c4d --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorOperationsList.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2017-10-12" + }, + "responses": { + "200": { + "body": { + "value": [ + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorPurgeContent.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorPurgeContent.json new file mode 100644 index 000000000000..42c1dc249316 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorPurgeContent.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "contentFilePaths": { + "contentPaths": [ + "/pictures.aspx", + "/pictures/*" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleCreate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleCreate.json new file mode 100644 index 000000000000..28dd17dd3aba --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleCreate.json @@ -0,0 +1,118 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1", + "routingRuleParameters": { + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + }, + "202": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleDelete.json new file mode 100644 index 000000000000..c8821d30d2de --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1" + }, + "responses": { + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleGet.json new file mode 100644 index 000000000000..a934c896885a --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleGet.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "routingRuleName": "routingRule1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleList.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleList.json new file mode 100644 index 000000000000..fc965eae8562 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorRoutingRuleList.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/routingRule1", + "name": "routingRule1", + "properties": { + "frontendEndpoints": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/frontendEndpoint1" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/frontendEndpoints/default" + } + ], + "acceptedProtocols": [ + "Http" + ], + "patternsToMatch": [ + "/*" + ], + "customForwardingPath": "", + "forwardingProtocol": "MatchRequest", + "backendPool": { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontDoors/frontDoor1/backendPools/backendPool1" + }, + "enabledState": "Enabled" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorValidateCustomDomain.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorValidateCustomDomain.json new file mode 100644 index 000000000000..58458eb87b23 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/FrontdoorValidateCustomDomain.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "frontDoorName": "frontDoor1", + "customDomainProperties": { + "hostname": "www.someDomain.com" + } + }, + "responses": { + "200": { + "body": { + "customDomainValidated": true, + "message": null, + "reason": null + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafListPolicies.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafListPolicies.json new file mode 100644 index 000000000000..7574369b813a --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafListPolicies.json @@ -0,0 +1,106 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": { + "rules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "RateLimitRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 1000, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "IPMatch", + "negateCondition": false, + "matchValue": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ], + "action": "Block", + "transforms": [] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 0, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "GeoMatch", + "negateCondition": false, + "matchValue": [ + "CH" + ] + }, + { + "matchVariable": "RequestHeader", + "selector": "UserAgent", + "operator": "Contains", + "negateCondition": false, + "matchValue": [ + "Windows" + ] + } + ], + "action": "Block", + "transforms": [] + } + ] + }, + "managedRules": { + "ruleSets": [ + { + "priority": 1, + "version": 0, + "ruleSetType": "AzureManagedRuleSet", + "ruleGroupOverrides": [ + { + "ruleGroupOverride": "SqlInjection", + "action": "Block" + }, + { + "ruleGroupOverride": "XSS", + "action": "Log" + } + ] + } + ] + } + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyCreateOrUpdate.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyCreateOrUpdate.json new file mode 100644 index 000000000000..bda48507b49e --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyCreateOrUpdate.json @@ -0,0 +1,262 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1", + "parameters": { + "properties": { + "customRules": { + "rules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "RateLimitRule", + "rateLimitThreshold": 1000, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "operator": "IPMatch", + "matchValue": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ], + "action": "Block" + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "operator": "GeoMatch", + "matchValue": [ + "CH" + ] + }, + { + "matchVariable": "RequestHeader", + "operator": "Contains", + "selector": "UserAgent", + "matchValue": [ + "Windows" + ] + } + ], + "action": "Block" + } + ] + }, + "managedRules": { + "ruleSets": [ + { + "ruleSetType": "AzureManagedRuleSet", + "priority": 1, + "ruleGroupOverrides": [ + { + "ruleGroupOverride": "SqlInjection", + "action": "Block" + }, + { + "ruleGroupOverride": "XSS", + "action": "Log" + } + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": { + "rules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "RateLimitRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 1000, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "IPMatch", + "negateCondition": false, + "matchValue": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ], + "action": "Block", + "transforms": [] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 0, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "GeoMatch", + "negateCondition": false, + "matchValue": [ + "CH" + ] + }, + { + "matchVariable": "RequestHeader", + "selector": "UserAgent", + "operator": "Contains", + "negateCondition": false, + "matchValue": [ + "Windows" + ] + } + ], + "action": "Block", + "transforms": [] + } + ] + }, + "managedRules": { + "ruleSets": [ + { + "priority": 1, + "version": 0, + "ruleSetType": "AzureManagedRuleSet", + "ruleGroupOverrides": [ + { + "ruleGroupOverride": "SqlInjection", + "action": "Block" + }, + { + "ruleGroupOverride": "XSS", + "action": "Log" + } + ] + } + ] + } + } + } + }, + "201": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": { + "rules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "RateLimitRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 1000, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "IPMatch", + "negateCondition": false, + "matchValue": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ], + "action": "Block", + "transforms": [] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 0, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "GeoMatch", + "negateCondition": false, + "matchValue": [ + "CH" + ] + }, + { + "matchVariable": "RequestHeader", + "selector": "UserAgent", + "operator": "Contains", + "negateCondition": false, + "matchValue": [ + "Windows" + ] + } + ], + "action": "Block", + "transforms": [] + } + ] + }, + "managedRules": { + "ruleSets": [ + { + "priority": 1, + "version": 0, + "ruleSetType": "AzureManagedRuleSet", + "ruleGroupOverrides": [ + { + "ruleGroupOverride": "SqlInjection", + "action": "Block" + }, + { + "ruleGroupOverride": "XSS", + "action": "Log" + } + ] + } + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyDelete.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyDelete.json new file mode 100644 index 000000000000..c008a5ee70ec --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyGet.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyGet.json new file mode 100644 index 000000000000..bc8c0bd0ccbd --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/examples/WafPolicyGet.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "api-version": "2018-08-01", + "subscriptionId": "subid", + "resourceGroupName": "rg1", + "policyName": "Policy1" + }, + "responses": { + "200": { + "body": { + "name": "Policy1", + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1", + "type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies", + "tags": { + "key1": "value1", + "key2": "value2" + }, + "location": "WestUs", + "properties": { + "resourceState": "Enabled", + "provisioningState": "Succeeded", + "policySettings": { + "enabledState": "Enabled", + "mode": "Prevention" + }, + "customRules": { + "rules": [ + { + "name": "Rule1", + "priority": 1, + "ruleType": "RateLimitRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 1000, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "IPMatch", + "negateCondition": false, + "matchValue": [ + "192.168.1.0/24", + "10.0.0.0/24" + ] + } + ], + "action": "Block", + "transforms": [] + }, + { + "name": "Rule2", + "priority": 2, + "ruleType": "MatchRule", + "rateLimitDurationInMinutes": 0, + "rateLimitThreshold": 0, + "matchConditions": [ + { + "matchVariable": "RemoteAddr", + "selector": null, + "operator": "GeoMatch", + "negateCondition": false, + "matchValue": [ + "CH" + ] + }, + { + "matchVariable": "RequestHeader", + "selector": "UserAgent", + "operator": "Contains", + "negateCondition": false, + "matchValue": [ + "Windows" + ] + } + ], + "action": "Block", + "transforms": [] + } + ] + }, + "managedRules": { + "ruleSets": [ + { + "priority": 1, + "version": 0, + "ruleSetType": "AzureManagedRuleSet", + "ruleGroupOverrides": [ + { + "ruleGroupOverride": "SqlInjection", + "action": "Block" + }, + { + "ruleGroupOverride": "XSS", + "action": "Log" + } + ] + } + ] + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/frontdoor.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/frontdoor.json new file mode 100644 index 000000000000..48ae71f9be9d --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/frontdoor.json @@ -0,0 +1,2553 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-08-01", + "title": "FrontDoorManagementClient", + "description": "Use these APIs to manage Azure Front Door resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Network/checkFrontDoorNameAvailability": { + "post": { + "tags": [ + "CheckFrontDoorNameAvailability" + ], + "description": "Check the availability of a Front Door resource name.", + "operationId": "CheckFrontDoorNameAvailability", + "x-ms-examples": { + "CheckNameAvailability": { + "$ref": "./examples/CheckFrontdoorNameAvailability.json" + } + }, + "parameters": [ + { + "name": "checkFrontDoorNameAvailabilityInput", + "in": "body", + "description": "Input to check.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityInput" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityOutput" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability": { + "post": { + "tags": [ + "CheckFrontDoorNameAvailabilityWithSubscription" + ], + "description": "Check the availability of a Front Door subdomain.", + "operationId": "CheckFrontDoorNameAvailabilityWithSubscription", + "x-ms-examples": { + "CheckNameAvailabilityWithSubscription": { + "$ref": "./examples/CheckFrontdoorNameAvailabilityWithSubscription.json" + } + }, + "parameters": [ + { + "name": "checkFrontDoorNameAvailabilityInput", + "in": "body", + "description": "Input to check.", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityInput" + } + }, + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityOutput" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Front Doors within an Azure subscription.", + "operationId": "FrontDoors_List", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontDoorListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List all Front Doors": { + "$ref": "./examples/FrontdoorListAll.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Front Doors within a resource group under a subscription.", + "operationId": "FrontDoors_ListByResourceGroup", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontDoorListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Front Doors in a Resource Group": { + "$ref": "./examples/FrontdoorList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Front Door with the specified Front Door name under the specified subscription and resource group.", + "operationId": "FrontDoors_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontDoor" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Front Door": { + "$ref": "./examples/FrontdoorGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new Front Door with a Front Door name under the specified subscription and resource group.", + "operationId": "FrontDoors_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "description": "Front Door properties needed to create a new Front Door.", + "in": "body", + "name": "frontDoorParameters", + "required": true, + "schema": { + "$ref": "#/definitions/FrontDoor" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontDoor" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new Front Door has been created.", + "schema": { + "$ref": "#/definitions/FrontDoor" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/FrontDoor" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Front Door": { + "$ref": "./examples/FrontdoorCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing Front Door with the specified parameters.", + "operationId": "FrontDoors_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the Front Door was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Front Door": { + "$ref": "./examples/FrontdoorDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Routing Rules within a Front Door.", + "operationId": "RoutingRules_ListByFrontDoor", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RoutingRuleListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Routing Rules in a Front Door": { + "$ref": "./examples/FrontdoorRoutingRuleList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/routingRules/{routingRuleName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Routing Rule with the specified Rule name within the specified Front Door.", + "operationId": "RoutingRules_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new Routing Rule with the specified Rule name within the specified Front Door.", + "operationId": "RoutingRules_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "description": "Routing Rule properties needed to create a new Front Door.", + "in": "body", + "name": "routingRuleParameters", + "required": true, + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new RoutingRule has been created.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/RoutingRule" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing Routing Rule with the specified parameters.", + "operationId": "RoutingRules_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/routingRuleNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the Routing Rule was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Routing Rule": { + "$ref": "./examples/FrontdoorRoutingRuleDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the HealthProbeSettings within a Front Door.", + "operationId": "HealthProbeSettings_ListByFrontDoor", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List HealthProbeSettings in a Front Door": { + "$ref": "./examples/FrontdoorHealthProbeSettingsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/healthProbeSettings/{healthProbeSettingsName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a HealthProbeSettings with the specified Rule name within the specified Front Door.", + "operationId": "HealthProbeSettings_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new HealthProbeSettings with the specified Rule name within the specified Front Door.", + "operationId": "HealthProbeSettings_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "description": "HealthProbeSettings properties needed to create a new Front Door.", + "in": "body", + "name": "healthProbeSettingsParameters", + "required": true, + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new HealthProbeSettings has been created.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing HealthProbeSettings with the specified parameters.", + "operationId": "HealthProbeSettings_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/healthProbeSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the HealthProbeSettings was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete HealthProbeSettings": { + "$ref": "./examples/FrontdoorHealthProbeSettingsDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the LoadBalancingSettings within a Front Door.", + "operationId": "LoadBalancingSettings_ListByFrontDoor", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List LoadBalancingSettings in a Front Door": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/loadBalancingSettings/{loadBalancingSettingsName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a LoadBalancingSettings with the specified Rule name within the specified Front Door.", + "operationId": "LoadBalancingSettings_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new LoadBalancingSettings with the specified Rule name within the specified Front Door.", + "operationId": "LoadBalancingSettings_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "description": "LoadBalancingSettings properties needed to create a new Front Door.", + "in": "body", + "name": "loadBalancingSettingsParameters", + "required": true, + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new LoadBalancingSettings has been created.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing LoadBalancingSettings with the specified parameters.", + "operationId": "LoadBalancingSettings_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/loadBalancingSettingsNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the LoadBalancingSettings was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete LoadBalancingSettings": { + "$ref": "./examples/FrontdoorLoadBalancingSettingsDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the Backend Pools within a Front Door.", + "operationId": "BackendPools_ListByFrontDoor", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BackendPoolListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Backend Pools in a Front Door": { + "$ref": "./examples/FrontdoorBackendPoolList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/backendPools/{backendPoolName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Backend Pool with the specified Pool name within the specified Front Door.", + "operationId": "BackendPools_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new Backend Pool with the specified Pool name within the specified Front Door.", + "operationId": "BackendPools_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "description": "Backend Pool properties needed to create a new Pool.", + "in": "body", + "name": "backendPoolParameters", + "required": true, + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new BackendPool has been created.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/BackendPool" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing Backend Pool with the specified parameters.", + "operationId": "BackendPools_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/backendPoolNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the Backend Pool was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Backend Pool": { + "$ref": "./examples/FrontdoorBackendPoolDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Lists all of the frontend endpoints within a Front Door.", + "operationId": "FrontendEndpoints_ListByFrontDoor", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontendEndpointsListResult" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Frontend endpoints in a Front Door": { + "$ref": "./examples/FrontdoorFrontendEndpointList.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}": { + "get": { + "tags": [ + "FrontDoors" + ], + "description": "Gets a Frontend endpoint with the specified name within the specified Front Door.", + "operationId": "FrontendEndpoints_Get", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Frontend Endpoint": { + "$ref": "./examples/FrontdoorFrontendEndpointGet.json" + } + } + }, + "put": { + "tags": [ + "FrontDoors" + ], + "description": "Creates a new frontend endpoint with the specified host name within the specified Front Door.", + "operationId": "FrontendEndpoints_CreateOrUpdate", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "description": "Frontend endpoint properties needed to create a new endpoint.", + "in": "body", + "name": "frontendEndpointParameters", + "required": true, + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new frontend endpoint has been created.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "202": { + "description": "Accepted and the operation will complete asynchronously.", + "schema": { + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Create or update specific Frontend Endpoint": { + "$ref": "./examples/FrontdoorFrontendEndpointCreate.json" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "FrontDoors" + ], + "description": "Deletes an existing frontend endpoint with the specified parameters.", + "operationId": "FrontendEndpoints_Delete", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the Backend Pool was not found." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Backend Pool": { + "$ref": "./examples/FrontdoorFrontendEndpointDelete.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge": { + "post": { + "tags": [ + "FrontDoors" + ], + "description": "Removes a content from Front Door.", + "operationId": "Endpoints_PurgeContent", + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "name": "contentFilePaths", + "in": "body", + "description": "The path to the content to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory.", + "required": true, + "schema": { + "$ref": "#/definitions/PurgeParameters" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Purge content from Front Door": { + "$ref": "./examples/FrontdoorPurgeContent.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/enableHttps": { + "post": { + "tags": [ + "FrontDoors" + ], + "description": "Enables a frontendEndpoint for HTTPS traffic", + "operationId": "FrontendEndpoints_EnableHttps", + "x-ms-examples": { + "FrontendEndpoints_EnableHttps": { + "$ref": "./examples/FrontdoorEnableHttps.json" + } + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "name": "customHttpsConfiguration", + "in": "body", + "description": "The configuration specifying how to enable HTTPS", + "required": true, + "schema": { + "$ref": "#/definitions/CustomHttpsConfiguration" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider/Microsoft.Network/frontDoors/{frontDoorName}/frontendEndpoints/{frontendEndpointName}/disableHttps": { + "post": { + "tags": [ + "FrontDoors" + ], + "description": "Disables a frontendEndpoint for HTTPS traffic", + "operationId": "FrontendEndpoints_DisableHttps", + "x-ms-examples": { + "FrontendEndpoints_DisableHttps": { + "$ref": "./examples/FrontdoorDisableHttps.json" + } + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "#/parameters/frontendEndpointNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded." + }, + "202": { + "description": "Accepted and the operation will complete asynchronously." + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain": { + "post": { + "tags": [ + "FrontDoors" + ], + "description": "Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.", + "operationId": "FrontDoors_ValidateCustomDomain", + "x-ms-examples": { + "FrontDoor_ValidateCustomDomain": { + "$ref": "./examples/FrontdoorValidateCustomDomain.json" + } + }, + "parameters": [ + { + "$ref": "./network.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/frontDoorNameParameter" + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + }, + { + "name": "customDomainProperties", + "in": "body", + "description": "Custom domain to be validated.", + "required": true, + "schema": { + "$ref": "#/definitions/ValidateCustomDomainInput" + } + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/ValidateCustomDomainOutput" + } + }, + "default": { + "description": "Front Door error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "FrontDoor": { + "properties": { + "properties": { + "description": "Properties of the Front Door Load Balancer", + "x-ms-client-flatten": true, + "$ref": "#/definitions/FrontDoorProperties" + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ], + "description": "Front Door represents a collection of backend endpoints to route traffic to along with rules that specify how traffic is sent there." + }, + "FrontDoorUpdateParameters": { + "description": "The properties needed to update a Front Door", + "properties": { + "friendlyName": { + "description": "A friendly name for the frontDoor", + "type": "string" + }, + "routingRules": { + "description": "Routing rules associated with this Front Door.", + "type": "array", + "items": { + "description": "A routing rule", + "$ref": "#/definitions/RoutingRule" + } + }, + "loadBalancingSettings": { + "description": "Load balancing settings associated with this Front Door instance.", + "type": "array", + "items": { + "description": "A load balancing settings", + "$ref": "#/definitions/LoadBalancingSettingsModel" + } + }, + "healthProbeSettings": { + "description": "Health probe settings associated with this Front Door instance.", + "type": "array", + "items": { + "description": "A health probe settings", + "$ref": "#/definitions/HealthProbeSettingsModel" + } + }, + "backendPools": { + "description": "Backend pools available to routing rules.", + "type": "array", + "items": { + "description": "A backend pool", + "$ref": "#/definitions/BackendPool" + } + }, + "frontendEndpoints": { + "description": "Frontend endpoints available to routing rules.", + "type": "array", + "items": { + "description": "A frontend endpoint", + "$ref": "#/definitions/FrontendEndpoint" + } + }, + "enabledState": { + "description": "Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorEnabledState", + "modelAsString": true + } + } + } + }, + "FrontDoorProperties": { + "description": "The JSON object that contains the properties required to create an endpoint.", + "allOf": [ + { + "$ref": "#/definitions/FrontDoorUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status of the Front Door.", + "$ref": "#/definitions/ResourceState" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the Front Door." + }, + "cname": { + "readOnly": true, + "type": "string", + "description": "The host that each frontendEndpoint must CNAME to." + } + } + }, + "FrontDoorListResult": { + "description": "Result of the request to list Front Doors. It contains a list of Front Door objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/FrontDoor" + }, + "description": "List of Front Doors within a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of Front Door objects if there are any." + } + } + }, + "PurgeParameters": { + "type": "object", + "description": "Parameters required for content purge.", + "required": [ + "contentPaths" + ], + "properties": { + "contentPaths": { + "description": "The path to the content to be purged. Can describe a file path or a wild card directory.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "RoutingRule": { + "properties": { + "properties": { + "description": "Properties of the Front Door Routing Rule", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RoutingRuleProperties" + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "A routing rule represents a specification for traffic to treat and where to send it, along with health probe information." + }, + "RoutingRuleProperties": { + "description": "The JSON object that contains the properties required to create a routing rule.", + "allOf": [ + { + "$ref": "#/definitions/RoutingRuleUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status.", + "$ref": "#/definitions/ResourceState" + } + } + }, + "RoutingRuleListResult": { + "description": "Result of the request to list Routing Rules. It contains a list of Routing Rule objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/RoutingRule" + }, + "description": "List of Routing Rules within a Front Door." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of RoutingRule objects if there are any." + } + } + }, + "RoutingRuleUpdateParameters": { + "description": "Routing rules to apply to an endpoint", + "type": "object", + "properties": { + "frontendEndpoints": { + "description": "Frontend endpoints associated with this rule", + "type": "array", + "items": { + "description": "A reference to a frontend endpoint", + "$ref": "./network.json#/definitions/SubResource" + } + }, + "acceptedProtocols": { + "description": "Protocol schemes to match for this rule", + "type": "array", + "items": { + "type": "string", + "description": "Accepted protocol schemes.", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "FrontDoorProtocol", + "modelAsString": true + } + } + }, + "patternsToMatch": { + "description": "The route patterns of the rule.", + "type": "array", + "items": { + "type": "string", + "description": "A route pattern of the rule. Must not have any * except possibly after the final / at the end of the path." + } + }, + "customForwardingPath": { + "description": "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.", + "type": "string" + }, + "forwardingProtocol": { + "description": "Protocol this rule will use when forwarding traffic to backends.", + "type": "string", + "enum": [ + "HttpOnly", + "HttpsOnly", + "MatchRequest" + ], + "x-ms-enum": { + "name": "FrontDoorForwardingProtocol", + "modelAsString": true + } + }, + "cacheConfiguration": { + "description": "The caching configuration associated with this rule.", + "$ref": "#/definitions/CacheConfiguration" + }, + "backendPool": { + "description": "A reference to the BackendPool which this rule routes to.", + "$ref": "./network.json#/definitions/SubResource" + }, + "enabledState": { + "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorEnabledState", + "modelAsString": true + } + } + } + }, + "Backend": { + "description": "Backend address of a frontDoor load balancer.", + "type": "object", + "properties": { + "address": { + "description": "Location of the backend (IP address or FQDN)", + "type": "string" + }, + "httpPort": { + "description": "The HTTP TCP port number. Must be between 1 and 65535.", + "type": "integer", + "maximum": 65535, + "exclusiveMaximum": false, + "minimum": 1, + "exclusiveMinimum": false + }, + "httpsPort": { + "description": "The HTTPS TCP port number. Must be between 1 and 65535.", + "type": "integer", + "maximum": 65535, + "exclusiveMaximum": false, + "minimum": 1, + "exclusiveMinimum": false + }, + "enabledState": { + "description": "Whether to enable use of this backend. Permitted values are 'Enabled' or 'Disabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorEnabledState", + "modelAsString": true + } + }, + "priority": { + "description": "Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.", + "type": "integer", + "maximum": 5, + "minimum": 1 + }, + "weight": { + "description": "Weight of this endpoint for load balancing purposes.", + "type": "integer", + "maximum": 1000, + "minimum": 1 + }, + "backendHostHeader": { + "description": "The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.", + "type": "string" + } + } + }, + "LoadBalancingSettingsModel": { + "properties": { + "properties": { + "description": "Properties of the load balancing settings", + "x-ms-client-flatten": true, + "$ref": "#/definitions/LoadBalancingSettingsProperties" + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Load balancing settings for a backend pool" + }, + "LoadBalancingSettingsProperties": { + "description": "The JSON object that contains the properties required to create load balancing settings", + "allOf": [ + { + "$ref": "#/definitions/LoadBalancingSettingsUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status.", + "$ref": "#/definitions/ResourceState" + } + } + }, + "LoadBalancingSettingsListResult": { + "description": "Result of the request to list load balancing settings. It contains a list of load balancing settings objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/LoadBalancingSettingsModel" + }, + "description": "List of Backend Pools within a Front Door." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of LoadBalancingSettings objects if there are any." + } + } + }, + "LoadBalancingSettingsUpdateParameters": { + "description": "Round-Robin load balancing settings for a backend pool", + "type": "object", + "properties": { + "sampleSize": { + "description": "The number of samples to consider for load balancing decisions", + "type": "integer" + }, + "successfulSamplesRequired": { + "description": "The number of samples within the sample period that must succeed", + "type": "integer" + }, + "additionalLatencyMilliseconds": { + "description": "The additional latency in milliseconds for probes to fall into the lowest latency bucket", + "type": "integer" + } + } + }, + "HealthProbeSettingsModel": { + "properties": { + "properties": { + "description": "Properties of the health probe settings", + "x-ms-client-flatten": true, + "$ref": "#/definitions/HealthProbeSettingsProperties" + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "Load balancing settings for a backend pool" + }, + "HealthProbeSettingsProperties": { + "description": "The JSON object that contains the properties required to create a health probe settings.", + "allOf": [ + { + "$ref": "#/definitions/HealthProbeSettingsUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status.", + "$ref": "#/definitions/ResourceState" + } + } + }, + "HealthProbeSettingsListResult": { + "description": "Result of the request to list HealthProbeSettings. It contains a list of HealthProbeSettings objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/HealthProbeSettingsModel" + }, + "description": "List of HealthProbeSettings within a Front Door." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of HealthProbeSettings objects if there are any." + } + } + }, + "HealthProbeSettingsUpdateParameters": { + "description": "L7 health probe settings for a backend pool", + "type": "object", + "properties": { + "path": { + "description": "The path to use for the health probe. Default is /", + "type": "string" + }, + "protocol": { + "description": "Protocol scheme to use for this probe", + "type": "string", + "enum": [ + "Http", + "Https" + ], + "x-ms-enum": { + "name": "FrontDoorProtocol", + "modelAsString": true + } + }, + "intervalInSeconds": { + "description": "The number of seconds between health probes.", + "type": "integer" + } + } + }, + "BackendPool": { + "properties": { + "properties": { + "description": "Properties of the Front Door Backend Pool", + "x-ms-client-flatten": true, + "$ref": "#/definitions/BackendPoolProperties" + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "A backend pool is a collection of backends that can be routed to." + }, + "BackendPoolUpdateParameters": { + "description": "A collection of backends that can be routed to.", + "type": "object", + "properties": { + "backends": { + "description": "The set of backends for this pool", + "type": "array", + "items": { + "$ref": "#/definitions/Backend" + } + }, + "loadBalancingSettings": { + "description": "Load balancing settings for a backend pool", + "$ref": "./network.json#/definitions/SubResource" + }, + "healthProbeSettings": { + "description": "L7 health probe settings for a backend pool", + "$ref": "./network.json#/definitions/SubResource" + } + } + }, + "BackendPoolProperties": { + "description": "The JSON object that contains the properties required to create a routing rule.", + "allOf": [ + { + "$ref": "#/definitions/BackendPoolUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status.", + "$ref": "#/definitions/ResourceState" + } + } + }, + "BackendPoolListResult": { + "description": "Result of the request to list Backend Pools. It contains a list of Backend Pools objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/BackendPool" + }, + "description": "List of Backend Pools within a Front Door." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of BackendPool objects if there are any." + } + } + }, + "CacheConfiguration": { + "description": "Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object.", + "type": "object", + "properties": { + "queryParameterStripDirective": { + "description": "Treatment of URL query terms when forming the cache key.", + "enum": [ + "StripNone", + "StripAll" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorQuery", + "modelAsString": true + } + }, + "dynamicCompression": { + "description": "Whether to use dynamic compression for cached content", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "DynamicCompressionEnabled", + "modelAsString": true + } + } + } + }, + "KeyVaultCertificateSourceParameters": { + "description": "Parameters required for bring-your-own-certification via Key Vault", + "type": "object", + "properties": { + "vault": { + "description": "The Key Vault containing the SSL certificate", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + } + }, + "secretName": { + "type": "string", + "description": "The name of the Key Vault secret representing the full certificate PFX" + }, + "secretVersion": { + "type": "string", + "description": "The version of the Key Vault secret representing the full certificate PFX" + } + } + }, + "FrontDoorCertificateSourceParameters": { + "description": "Parameters required for enabling SSL with Front Door-managed certificates", + "type": "object", + "properties": { + "certificateType": { + "description": "Defines the type of the certificate used for secure connections to a frontendEndpoint", + "enum": [ + "Dedicated" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorCertificateType", + "modelAsString": true + } + } + } + }, + "CustomHttpsConfiguration": { + "description": "Https settings for a domain", + "type": "object", + "properties": { + "certificateSource": { + "description": "Defines the source of the SSL certificate", + "enum": [ + "AzureKeyVault", + "FrontDoor" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorCertificateSource", + "modelAsString": true + } + }, + "protocolType": { + "description": "Defines the TLS extension protocol that is used for secure delivery", + "enum": [ + "ServerNameIndication" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorTlsProtocolType", + "modelAsString": true + } + }, + "keyVaultCertificateSourceParameters": { + "description": "KeyVault certificate source parameters (if certificateSource=AzureKeyVault)", + "x-ms-client-flatten": true, + "$ref": "#/definitions/KeyVaultCertificateSourceParameters" + }, + "frontDoorCertificateSourceParameters": { + "description": "Parameters required for enabling SSL with Front Door-managed certificates (if certificateSource=FrontDoor)", + "x-ms-client-flatten": true, + "$ref": "#/definitions/FrontDoorCertificateSourceParameters" + } + } + }, + "FrontendEndpoint": { + "properties": { + "properties": { + "description": "Properties of the Frontend endpoint", + "x-ms-client-flatten": true, + "$ref": "#/definitions/FrontendEndpointProperties" + }, + "name": { + "type": "string", + "description": "Resource name." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/SubResource" + } + ], + "description": "A frontend endpoint used for routing." + }, + "FrontendEndpointProperties": { + "description": "The JSON object that contains the properties required to create a frontend endpoint.", + "allOf": [ + { + "$ref": "#/definitions/FrontendEndpointUpdateParameters" + } + ], + "properties": { + "resourceState": { + "description": "Resource status.", + "$ref": "#/definitions/ResourceState" + }, + "customHttpsProvisioningState": { + "description": "Provisioning status of Custom Https of the frontendEndpoint.", + "readOnly": true, + "enum": [ + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "CustomHttpsProvisioningState", + "modelAsString": true + } + }, + "customHttpsProvisioningSubstate": { + "description": "Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.", + "readOnly": true, + "enum": [ + "SubmittingDomainControlValidationRequest", + "PendingDomainControlValidationREquestApproval", + "DomainControlValidationRequestApproved", + "DomainControlValidationRequestRejected", + "DomainControlValidationRequestTimedOut", + "IssuingCertificate", + "DeployingCertificate", + "CertificateDeployed", + "DeletingCertificate", + "CertificateDeleted" + ], + "type": "string", + "x-ms-enum": { + "name": "CustomHttpsProvisioningSubstate", + "modelAsString": true + } + }, + "customHttpsConfiguration": { + "description": "The configuration specifying how to enable HTTPS", + "readOnly": true, + "$ref": "#/definitions/CustomHttpsConfiguration" + } + } + }, + "FrontendEndpointUpdateParameters": { + "description": "Frontend endpoint used in routing rule", + "type": "object", + "properties": { + "hostName": { + "description": "The host name of the frontendEndpoint. Must be a domain name.", + "type": "string" + }, + "sessionAffinityEnabledState": { + "description": "Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "SessionAffinityEnabledState", + "modelAsString": true + } + }, + "sessionAffinityTtlSeconds": { + "description": "UNUSED. This field will be ignored. The TTL to use in seconds for session affinity, if applicable.", + "type": "integer" + }, + "webApplicationFirewallPolicyLink": { + "description": "Defines the Web Application Firewall policy for each host (if applicable)", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + } + } + } + }, + "FrontendEndpointsListResult": { + "description": "Result of the request to list frontend endpoints. It contains a list of Frontend endpoint objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/FrontendEndpoint" + }, + "description": "List of Frontend endpoints within a Front Door." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of frontend endpoints if there are any." + } + } + }, + "ResourceState": { + "title": "Resource status of the Front Door or Front Door SubResource.", + "readOnly": true, + "enum": [ + "Creating", + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Deleting" + ], + "type": "string", + "x-ms-enum": { + "name": "FrontDoorResourceState", + "modelAsString": true + } + }, + "ValidateCustomDomainInput": { + "description": "Input of the custom domain to be validated for DNS mapping.", + "type": "object", + "required": [ + "hostName" + ], + "properties": { + "hostName": { + "description": "The host name of the custom domain. Must be a domain name.", + "type": "string" + } + } + }, + "ValidateCustomDomainOutput": { + "description": "Output of custom domain validation.", + "type": "object", + "properties": { + "customDomainValidated": { + "description": "Indicates whether the custom domain is valid or not.", + "readOnly": true, + "type": "boolean" + }, + "reason": { + "description": "The reason why the custom domain is not valid.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Error message describing why the custom domain is not valid.", + "readOnly": true, + "type": "string" + } + } + }, + "ErrorResponse": { + "description": "Error reponse indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "readOnly": true, + "type": "string" + } + } + }, + "CheckNameAvailabilityInput": { + "description": "Input of CheckNameAvailability API.", + "type": "object", + "required": [ + "name", + "type" + ], + "properties": { + "name": { + "description": "The resource name to validate.", + "type": "string" + }, + "type": { + "description": "The type of the resource whose name is to be validated.", + "$ref": "#/definitions/ResourceType" + } + } + }, + "CheckNameAvailabilityOutput": { + "description": "Output of check name availability API.", + "type": "object", + "properties": { + "nameAvailability": { + "description": "Indicates whether the name is available.", + "readOnly": true, + "enum": [ + "Available", + "Unavailable" + ], + "type": "string", + "x-ms-enum": { + "name": "Availability", + "modelAsString": true + } + }, + "reason": { + "description": "The reason why the name is not available.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "The detailed error message describing why the name is not available.", + "readOnly": true, + "type": "string" + } + } + }, + "ResourceType": { + "description": "Type of Front Door resource used in CheckNameAvailability.", + "enum": [ + "Microsoft.Network/frontDoors", + "Microsoft.Network/frontDoors/frontendEndpoints" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceType", + "modelAsString": false + } + } + }, + "parameters": { + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$", + "minLength": 1, + "maxLength": 80, + "x-ms-parameter-location": "method", + "description": "Name of the Resource group within the Azure subscription." + }, + "frontDoorNameParameter": { + "name": "frontDoorName", + "in": "path", + "required": true, + "type": "string", + "x-new-pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "pattern": "^[a-zA-Z0-9]+([-a-zA-Z0-9][a-zA-Z0-9])$", + "minLength": 5, + "maxLength": 74, + "x-ms-parameter-location": "method", + "description": "Name of the Front Door which is globally unique." + }, + "routingRuleNameParameter": { + "name": "routingRuleName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "x-previous-pattern": "^[-\\w\\d\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of the Routing Rule which is unique within the Front Door." + }, + "healthProbeSettingsNameParameter": { + "name": "healthProbeSettingsName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "x-previous-pattern": "^[-\\w\\d\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of the health probe settings which is unique within the Front Door." + }, + "loadBalancingSettingsNameParameter": { + "name": "loadBalancingSettingsName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "x-previous-pattern": "^[-\\w\\d\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of the load balancing settings which is unique within the Front Door." + }, + "backendPoolNameParameter": { + "name": "backendPoolName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "x-previous-pattern": "^[-\\w\\d\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method", + "description": "Name of the Backend Pool which is unique within the Front Door." + }, + "frontendEndpointNameParameter": { + "name": "frontendEndpointName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$", + "x-previous-pattern": "^[-\\w\\d\\._]+$", + "minLength": 1, + "maxLength": 255, + "x-ms-parameter-location": "method", + "description": "Name of the Frontend endpoint which is unique within the Front Door." + } + } +} \ No newline at end of file diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/network.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/network.json new file mode 100644 index 000000000000..5a1f99c4b769 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/network.json @@ -0,0 +1,168 @@ +{ + "swagger": "2.0", + "info": { + "title": "NetworkManagementClient", + "description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.", + "version": "2018-02-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json", + "text/json" + ], + "produces": [ + "application/json", + "text/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + }, + "definitions": { + "ErrorDetails": { + "properties": { + "code": { + "type": "string" + }, + "target": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "Error": { + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + }, + "target": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetails" + } + }, + "innerError": { + "type": "string" + } + } + }, + "AzureAsyncOperationResult": { + "properties": { + "status": { + "type": "string", + "description": "Status of the Azure async operation. Possible values are: 'InProgress', 'Succeeded', and 'Failed'.", + "enum": [ + "InProgress", + "Succeeded", + "Failed" + ], + "x-ms-enum": { + "name": "NetworkOperationStatus", + "modelAsString": true + } + }, + "error": { + "$ref": "#/definitions/Error" + } + }, + "description": "The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure." + }, + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource ID." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "location": { + "type": "string", + "description": "Resource location." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Common resource representation.", + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource ID." + } + }, + "description": "Reference to another subresource.", + "x-ms-azure-resource": true + }, + "TagsObject": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags." + } + }, + "description": "Tags object for patch operations." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." + } + } +} diff --git a/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.json b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.json new file mode 100644 index 000000000000..53bfa1cf3447 --- /dev/null +++ b/specification/frontdoor/resource-manager/Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.json @@ -0,0 +1,636 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-08-01", + "title": "WebApplicationFirewallManagement", + "description": "APIs to manage web application firewall rules" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies": { + "get": { + "tags": [ + "ListWebApplicationFirewalPolicies" + ], + "description": "Lists all of the protection policies within a resource group.", + "operationId": "Policies_List", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicyListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List Policies in a Resource Group": { + "$ref": "./examples/WafListPolicies.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}": { + "get": { + "tags": [ + "GetWebapplicationfirewallPolicy" + ], + "description": "Retrieve protection policy with specified name within a resource group.", + "operationId": "Policies_Get", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "policy get": { + "$ref": "./examples/WafPolicyGet.json" + } + } + }, + "put": { + "tags": [ + "CreateOrUpdateWebApplicationFirewallPolicy" + ], + "description": "Creates or update policy with specified ruleset name within a resource group.", + "operationId": "Policies_CreateOrUpdate", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "description": "Policy to be created.", + "in": "body", + "name": "parameters", + "required": true, + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + }, + { + "$ref": "./network.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + }, + "201": { + "description": "Created. The request has been fulfilled and a new protection policy has been created.", + "schema": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Creates specific policy": { + "$ref": "./examples/WafPolicyCreateOrUpdate.json" + } + } + }, + "delete": { + "tags": [ + "DeleteWebApplicationFirewallPolicy" + ], + "description": "Deletes Policy", + "operationId": "Policies_Delete", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "policyName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 128, + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously." + }, + "204": { + "description": "No Content. The request has been accepted but the policy was not found." + }, + "200": { + "description": "Delete successful." + } + }, + "x-ms-examples": { + "Delete protection policy": { + "$ref": "./examples/WafPolicyDelete.json" + } + }, + "x-ms-long-running-operation": true + } + } + }, + "definitions": { + "WebApplicationFirewallPolicy": { + "description": "Defines web application firewall policy.", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WebApplicationFirewallPolicyPropertiesFormat", + "description": "Properties of the web application firewall policy." + }, + "etag": { + "type": "string", + "description": "Gets a unique read-only string that changes whenever the resource is updated." + } + }, + "allOf": [ + { + "$ref": "./network.json#/definitions/Resource" + } + ] + }, + "WebApplicationFirewallPolicyPropertiesFormat": { + "description": "Defines web application firewall policy properties", + "properties": { + "policySettings": { + "description": "Describes policySettings for policy", + "$ref": "#/definitions/policySettings" + }, + "customRules": { + "description": "Describes custom rules inside the policy", + "$ref": "#/definitions/CustomRules" + }, + "managedRules": { + "description": "Describes managed rules inside the policy", + "$ref": "#/definitions/ManagedRuleSets" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "Provisioning state of the WebApplicationFirewallPolicy." + }, + "resourceState": { + "title": "Resource status of the policy.", + "readOnly": true, + "enum": [ + "Creating", + "Enabling", + "Enabled", + "Disabling", + "Disabled", + "Deleting" + ], + "type": "string", + "x-ms-enum": { + "name": "WebApplicationFirewallPolicy", + "modelAsString": true + } + } + } + }, + "WebApplicationFirewallPolicyListResult": { + "description": "Result of the request to list WebApplicationFirewallPolicies. It contains a list of WebApplicationFirewallPolicy objects and a URL link to get the the next set of results.", + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/WebApplicationFirewallPolicy" + }, + "description": "List of WebApplicationFirewallPolicies within a resource group." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of WebApplicationFirewallPolicy objects if there are any." + } + } + }, + "policySettings": { + "description": "Defines contents of a web application firewall global configuration", + "properties": { + "enabledState": { + "description": "describes if the policy is in enabled state or disabled state", + "type": "string", + "enum": [ + "Disabled", + "Enabled" + ], + "x-ms-enum": { + "name": "enabledState", + "modelAsString": true + } + }, + "mode": { + "description": "Describes if it is in detection mode or prevention mode at policy level", + "type": "string", + "enum": [ + "Prevention", + "Detection" + ], + "x-ms-enum": { + "name": "mode", + "modelAsString": true + } + } + } + }, + "CustomRules": { + "description": "Defines contents of custom rules", + "properties": { + "rules": { + "description": "List of rules", + "type": "array", + "items": { + "$ref": "#/definitions/CustomRule" + } + } + } + }, + "CustomRule": { + "description": "Defines contents of a web application rule", + "required": [ + "priority", + "ruleType", + "matchConditions", + "action" + ], + "properties": { + "name": { + "type": "string", + "description": "Gets name of the resource that is unique within a policy. This name can be used to access the resource.", + "maxLength": 128 + }, + "etag": { + "type": "string", + "readOnly": true, + "description": "Gets a unique read-only string that changes whenever the resource is updated." + }, + "priority": { + "description": "Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value", + "type": "integer" + }, + "ruleType": { + "description": "Describes type of rule", + "type": "string", + "enum": [ + "MatchRule", + "RateLimitRule" + ], + "x-ms-enum": { + "name": "ruleType", + "modelAsString": true + } + }, + "rateLimitDurationInMinutes": { + "description": "Defines rate limit duration. Default - 1 minute", + "type": "integer" + }, + "rateLimitThreshold": { + "description": "Defines rate limit thresold", + "type": "integer" + }, + "matchConditions": { + "description": "List of match conditions", + "type": "array", + "items": { + "$ref": "#/definitions/MatchCondition" + } + }, + "action": { + "description": "Type of Actions", + "type": "string", + "enum": [ + "Allow", + "Block", + "Log" + ], + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + }, + "transforms": { + "description": "List of transforms", + "type": "array", + "items": { + "$ref": "#/definitions/transform" + } + } + } + }, + "transform": { + "description": "Describes what transforms applied before matching", + "type": "string", + "enum": [ + "Lowercase", + "Uppercase", + "Trim", + "UrlDecode", + "UrlEncode", + "RemoveNulls", + "HtmlEntityDecode" + ], + "x-ms-enum": { + "name": "transform", + "modelAsString": true + } + }, + "MatchCondition": { + "description": "Define match conditions", + "required": [ + "matchVariable", + "operator", + "matchValue" + ], + "properties": { + "matchVariable": { + "description": "Match Variable", + "type": "string", + "enum": [ + "RemoteAddr", + "RequestMethod", + "QueryString", + "PostArgs", + "RequestUri", + "RequestHeader", + "RequestBody" + ], + "x-ms-enum": { + "name": "MatchCondition", + "modelAsString": true + } + }, + "selector": { + "description": "Name of selector in RequestHeader or RequestBody to be matched", + "type": "string" + }, + "operator": { + "description": "Describes operator to be matched", + "type": "string", + "enum": [ + "Any", + "IPMatch", + "GeoMatch", + "Equal", + "Contains", + "LessThan", + "GreaterThan", + "LessThanOrEqual", + "GreaterThanOrEqual", + "BeginsWith", + "EndsWith" + ], + "x-ms-enum": { + "name": "operator", + "modelAsString": true + } + }, + "negateCondition": { + "description": "Describes if this is negate condition or not", + "type": "boolean" + }, + "matchValue": { + "description": "Match value", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ManagedRuleSets": { + "description": "Defines ManagedRuleSets - array of managedRuleSet", + "properties": { + "ruleSets": { + "description": "List of rules", + "type": "array", + "items": { + "$ref": "#/definitions/ManagedRuleSet" + } + } + } + }, + "ManagedRuleSet": { + "type": "object", + "description": "Base class for all types of ManagedRuleSet.", + "x-ms-discriminator-value": "Unknown", + "properties": { + "priority": { + "description": "Describes priority of the rule", + "type": "integer" + }, + "version": { + "description": "defines version of the ruleset", + "type": "integer" + }, + "ruleSetType": { + "description": "RuleSetType - AzureManagedRuleSet or OWASP RuleSets.", + "type": "string" + } + }, + "required": [ + "ruleSetType" + ], + "discriminator": "ruleSetType" + }, + "AzureManagedRuleSet": { + "type": "object", + "description": "Describes azure managed provider.", + "x-ms-discriminator-value": "AzureManagedRuleSet", + "properties": { + "ruleGroupOverrides": { + "description": "List of azure managed provider override configuration (optional)", + "type": "array", + "items": { + "$ref": "#/definitions/AzureManagedOverrideRuleGroup" + } + } + }, + "allOf": [ + { + "$ref": "#/definitions/ManagedRuleSet" + } + ] + }, + "AzureManagedOverrideRuleGroup": { + "description": "Defines contents of a web application rule", + "required": [ + "ruleGroupOverride", + "action" + ], + "properties": { + "ruleGroupOverride": { + "description": "Describes overrideruleGroup", + "type": "string", + "enum": [ + "SqlInjection", + "XSS" + ], + "x-ms-enum": { + "name": "ruleGroupOverride", + "modelAsString": true + } + }, + "action": { + "description": "Type of Actions", + "type": "string", + "enum": [ + "Allow", + "Block", + "Log" + ], + "x-ms-enum": { + "name": "action", + "modelAsString": true + } + } + } + }, + "ErrorResponse": { + "description": "Error reponse indicates Front Door service is not able to process the incoming request. The reason is provided in the error message.", + "type": "object", + "properties": { + "code": { + "description": "Error code.", + "readOnly": true, + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "readOnly": true, + "type": "string" + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API version." + } + } +} diff --git a/specification/frontdoor/resource-manager/readme.md b/specification/frontdoor/resource-manager/readme.md new file mode 100644 index 000000000000..b14a9a1e6655 --- /dev/null +++ b/specification/frontdoor/resource-manager/readme.md @@ -0,0 +1,143 @@ +# Frontdoor + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Network. + + + +--- +## Getting Started +To build the SDK for Frontdoor, 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 Frontdoor API. + +``` yaml +title: FrontdoorManagementClient +description: Frontdoor Client +openapi-type: arm +tag: package-2018-08-preview +``` + +### Tag: package-2018-08-preview + +These settings apply only when `--tag=package-2018-08-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-08-preview' +input-file: +- Microsoft.Network/preview/2018-08-01-preview/frontdoor.json +- Microsoft.Network/preview/2018-08-01-preview/network.json +- Microsoft.Network/preview/2018-08-01-preview/webapplicationfirewall.json +directive: + - where: + - $.paths + suppress: + - OperationsAPIImplementation +``` + +--- +# 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 + - repo: azure-libraries-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-node +``` + + +## 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.Frontdoor + output-folder: $(csharp-sdks-folder)/Frontdoor/Management.Frontdoor/Generated + clear-output-folder: true +``` + + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: frontdoor + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-08-preview +``` + + +### Tag: package-2018-08-preview and go + +These settings apply only when `--tag=package-2018-08-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-08-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/frontdoor/mgmt/2018-08-01-preview/frontdoor +``` + + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +java: + azure-arm: true + fluent: true + namespace: com.microsoft.azure.management.frontdoor + license-header: MICROSOFT_MIT_NO_CODEGEN + payload-flattening-threshold: 1 + output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-frontdoor +``` + +# Validation Suppressions + +``` yaml $(azure-validator) +directive: + - from: frontdoor.json + where: [$.paths] + suppress: OperationsAPIImplementation + reason: Networking resource operations defined elsewhere. + - from: frontdoor.json + where: [$.definitions.Frontdoor,$.definitions.RoutingRule,$.definitions.FrontendEndpoint,$.definitions.BackendPool,$.definitions.LoadBalancingSettingsModel,$.definitions.HealthProbeSettingsModel] + suppress: RequiredPropertiesMissingInResourceModel + reason: Networking resource id is not readonly. + - from: frontdoor.json + where: [$.definitions.ValidateCustomDomainOutput.properties.customDomainValidated] + suppress: EnumInsteadOfBoolean + reason: Direct copy of ValidateCustomDomain API in CDN Resource Provider. +``` diff --git a/specification/frontdoor/resource-manager/readme.nodejs.md b/specification/frontdoor/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..128718652e75 --- /dev/null +++ b/specification/frontdoor/resource-manager/readme.nodejs.md @@ -0,0 +1,15 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-frontdoor + package-version: 5.2.0 + generate-license-txt: true + generate-package-json: true + generate-readme-md: false + output-folder: $(node-sdks-folder)/lib/services/networkManagement2/lib +``` diff --git a/specification/frontdoor/resource-manager/readme.python.md b/specification/frontdoor/resource-manager/readme.python.md new file mode 100644 index 000000000000..dc7f61d322b8 --- /dev/null +++ b/specification/frontdoor/resource-manager/readme.python.md @@ -0,0 +1,27 @@ +## 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.frontdoor + package-name: azure-mgmt-frontdoor + package-version: 0.1.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-frontdoor/azure/mgmt/frontdoor +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-frontdoor +``` From 0d19c5a0388bc9867266e2c4a0e763e3099a5108 Mon Sep 17 00:00:00 2001 From: Prem Prakash Date: Fri, 21 Sep 2018 15:56:27 -0700 Subject: [PATCH 29/39] =?UTF-8?q?Removing=20reportconfig=20paths=20from=20?= =?UTF-8?q?stable=20version,=20as=20they=20are=20in=20previ=E2=80=A6=20(#3?= =?UTF-8?q?974)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Removing reportconfig paths from stable version, as they are in preview version and in new version these are to be removed * Incorporating review comments --- .../stable/2018-08-31/costmanagement.json | 519 +----------------- .../2018-08-31/examples/ReportConfig.json | 87 --- .../examples/ReportConfigCreateOrUpdate.json | 287 ---------- .../examples/ReportConfigDelete.json | 11 - .../2018-08-31/examples/ReportConfigList.json | 174 ------ 5 files changed, 1 insertion(+), 1077 deletions(-) delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json delete mode 100644 specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json index 20415c114b6b..c01e7c51306a 100644 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json +++ b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/costmanagement.json @@ -33,364 +33,6 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reportconfigs": { - "get": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_List", - "description": "Lists all report configs for a subscription.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ReportConfigList": { - "$ref": "./examples/ReportConfigList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfigListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reportconfigs": { - "get": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_ListByResourceGroupName", - "description": "Lists all report configs for a resource group under a subscription.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ReportConfigList": { - "$ref": "./examples/ReportConfigList.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfigListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reportconfigs/{reportConfigName}": { - "get": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_Get", - "description": "Gets the report config for a subscription by report config name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "Report": { - "$ref": "./examples/ReportConfig.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_CreateOrUpdate", - "description": "The operation to create or update a report config. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportConfigCreateOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReportConfig" - }, - "description": "Parameters supplied to the CreateOrUpdate Report Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_Delete", - "description": "The operation to delete a report.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportConfigDelete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CostManagement/reportconfigs/{reportConfigName}": { - "get": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_GetByResourceGroupName", - "description": "Gets the report config for a resource group under a subscription by report config name.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "ReportConfig": { - "$ref": "./examples/ReportConfig.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "put": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_CreateOrUpdateByResourceGroupName", - "description": "The operation to create or update a report config. Update operation requires latest eTag to be set in the request mandatorily. You may obtain the latest eTag by performing a get operation. Create operation does not require eTag.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "CreateOrUpdateReport": { - "$ref": "./examples/ReportConfigCreateOrUpdate.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ReportConfig" - }, - "description": "Parameters supplied to the CreateOrUpdate Report Config operation." - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "201": { - "description": "Created.", - "schema": { - "$ref": "#/definitions/ReportConfig" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Reports" - ], - "operationId": "ReportConfig_DeleteByResourceGroupName", - "description": "The operation to delete a report config.", - "externalDocs": { - "url": "https://docs.microsoft.com/en-us/rest/api/costmanagement/" - }, - "x-ms-examples": { - "DeleteReport": { - "$ref": "./examples/ReportConfigDelete.json" - } - }, - "parameters": [ - { - "$ref": "#/parameters/apiVersionParameter" - }, - { - "$ref": "#/parameters/subscriptionIdParameter" - }, - { - "$ref": "#/parameters/resourceGroupNameParameter" - }, - { - "$ref": "#/parameters/reportConfigNameParameter" - } - ], - "responses": { - "200": { - "description": "OK. The request has succeeded." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/ErrorResponse" - } - } - } - } - }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/dimensions": { "get": { "tags": [ @@ -1071,7 +713,7 @@ "nextLinkName": null } } - }, + }, "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}/providers/Microsoft.CostManagement/Query": { "post": { "tags": [ @@ -1264,118 +906,6 @@ }, "x-ms-azure-resource": true }, - "ReportConfigListResult": { - "description": "Result of listing report configs. It contains a list of available report configurations in the scope provided.", - "properties": { - "value": { - "description": "The list of report configs.", - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ReportConfig" - } - } - } - }, - "ReportConfig": { - "description": "A report config resource.", - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ReportConfigProperties", - "title": "Report config properties" - } - } - }, - "ReportConfigProperties": { - "description": "The properties of the report config.", - "properties": { - "schedule": { - "description": "Has schedule information for the report config.", - "$ref": "#/definitions/ReportConfigSchedule" - }, - "format": { - "description": "The format of the report being delivered.", - "type": "string", - "enum": [ - "Csv" - ], - "x-ms-enum": { - "name": "FormatType", - "modelAsString": true - } - }, - "deliveryInfo": { - "description": "Has delivery information for the report config.", - "$ref": "#/definitions/ReportConfigDeliveryInfo" - }, - "definition": { - "description": "Has definition for the report config.", - "$ref": "#/definitions/ReportConfigDefinition" - } - }, - "required": [ - "deliveryInfo", - "definition" - ] - }, - "ReportConfigSchedule": { - "description": "The schedule associated with a report config.", - "properties": { - "status": { - "description": "The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.", - "type": "string", - "enum": [ - "Active", - "Inactive" - ], - "x-ms-enum": { - "name": "StatusType", - "modelAsString": true - } - }, - "recurrence": { - "description": "The schedule recurrence.", - "type": "string", - "enum": [ - "Daily", - "Weekly", - "Monthly", - "Annually" - ], - "x-ms-enum": { - "name": "RecurrenceType", - "modelAsString": true - } - }, - "recurrencePeriod": { - "description": "Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.", - "$ref": "#/definitions/ReportConfigRecurrencePeriod" - } - }, - "required": [ - "recurrence", - "recurrencePeriod" - ] - }, - "ReportConfigDeliveryInfo": { - "description": "The delivery information associated with a report config.", - "properties": { - "destination": { - "description": "Has destination for the report being delivered.", - "$ref": "#/definitions/ReportConfigDeliveryDestination" - } - }, - "required": [ - "destination" - ] - }, "ReportConfigDefinition": { "description": "The definition of a report config.", "properties": { @@ -1418,45 +948,6 @@ "timeframe" ] }, - "ReportConfigRecurrencePeriod": { - "description": "The start and end date for recurrence schedule.", - "properties": { - "from": { - "description": "The start date of recurrence.", - "type": "string", - "format": "date-time" - }, - "to": { - "description": "The end date of recurrence. If not provided, we default this to 10 years from the start date.", - "type": "string", - "format": "date-time" - } - }, - "required": [ - "from" - ] - }, - "ReportConfigDeliveryDestination": { - "description": "The destination information for the delivery of the report.", - "properties": { - "resourceId": { - "description": "The resource id of the storage account where reports will be delivered.", - "type": "string" - }, - "container": { - "description": "The name of the container where reports will be uploaded.", - "type": "string" - }, - "rootFolderPath": { - "description": "The name of the directory where reports will be uploaded.", - "type": "string" - } - }, - "required": [ - "resourceId", - "container" - ] - }, "ReportConfigTimePeriod": { "description": "The start and end date for pulling data for the report.", "properties": { @@ -1883,14 +1374,6 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" - }, - "reportConfigNameParameter": { - "name": "reportConfigName", - "in": "path", - "description": "Report Config Name.", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" } } } diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json deleted file mode 100644 index e6e813eceaff..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfig.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-31", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "reportConfigName": "TestReportConfig" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", - "name": "TestReportConfig", - "type": "Microsoft.Consumption/reportconfigs", - "properties": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "UsageDate", - "MeterId", - "InstanceId", - "ResourceLocation", - "UsageQuantity" - ] - }, - "aggregation": { - "usageSum": { - "name": "UsageQuantity", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Dimension", - "name": "SubscriptionName" - }, - { - "columnType": "Tag", - "name": "Environment" - } - ], - "filter": { - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "Contains", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json deleted file mode 100644 index d3852feef0fc..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigCreateOrUpdate.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-31", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "reportConfigName": "TestReportConfig", - "parameters": { - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Dimension", - "name": "SubscriptionName" - }, - { - "columnType": "Tag", - "name": "Environment" - } - ], - "filter": { - "and": [ - { - "or": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - } - } - }, - "responses": { - "201": { - "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", - "name": "TestReportConfig", - "type": "Microsoft.Consumption/reportconfigs", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Dimension", - "name": "SubscriptionName" - }, - { - "columnType": "Tag", - "name": "Environment" - } - ], - "filter": { - "and": [ - { - "or": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - } - } - }, - "200": { - "body": { - "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig", - "name": "TestReportConfig", - "type": "Microsoft.Consumption/reportconfigs", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "MonthToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Dimension", - "name": "SubscriptionName" - }, - { - "columnType": "Tag", - "name": "Environment" - } - ], - "filter": { - "and": [ - { - "or": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - } - } - } - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json deleted file mode 100644 index ecddaf005478..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigDelete.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-31", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG", - "reportConfigName": "TestReport" - }, - "responses": { - "200": {} - } -} \ No newline at end of file diff --git a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json b/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json deleted file mode 100644 index 797e73df1cd3..000000000000 --- a/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2018-08-31/examples/ReportConfigList.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "parameters": { - "api-version": "2018-08-31", - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "MYDEVTESTRG" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig1", - "name": "TestReportConfig1", - "type": "Microsoft.Consumption/reportconfigs", - "properties": { - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "Custom", - "timePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - }, - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "PreTaxCost" - ] - }, - "aggregation": { - "costSum": { - "name": "PreTaxCost", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Dimension", - "name": "SubscriptionName" - } - ], - "filter": { - "and": [ - { - "or": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - }, - { - "dimension": { - "name": "ResourceGroup", - "operator": "In", - "values": [ - "API" - ] - } - } - ] - } - } - } - } - }, - { - "id": "subscriptions/{subscription-id}/providers/Microsoft.Consumption/reportconfigs/TestReportConfig2", - "name": "TestReportConfig2", - "type": "Microsoft.Consumption/reportconfigs", - "properties": { - "schedule": { - "status": "Active", - "recurrence": "Weekly", - "recurrencePeriod": { - "from": "2018-06-01T00:00:00Z", - "to": "2018-10-31T00:00:00Z" - } - }, - "format": "Csv", - "deliveryInfo": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182", - "container": "reports", - "rootFolderPath": "ad-hoc" - } - }, - "definition": { - "type": "Usage", - "timeframe": "WeekToDate", - "dataset": { - "granularity": "Daily", - "configuration": { - "columns": [ - "Date", - "MeterId", - "InstanceId", - "ResourceLocation", - "UsageQuantity" - ] - }, - "aggregation": { - "usageSum": { - "name": "UsageQuantity", - "function": "Sum" - } - }, - "grouping": [ - { - "columnType": "Tag", - "name": "Environment" - } - ], - "filter": { - "and": [ - { - "dimension": { - "name": "ResourceLocation", - "operator": "In", - "values": [ - "East US", - "West Europe" - ] - } - }, - { - "tag": { - "name": "Environment", - "operator": "In", - "values": [ - "UAT", - "Prod" - ] - } - } - ] - } - } - } - } - } - ] - } - } - } -} \ No newline at end of file From 1f80a75056d18995a667561175490d268c995b19 Mon Sep 17 00:00:00 2001 From: Devesh Guha Oleti Muni Date: Fri, 21 Sep 2018 16:13:45 -0700 Subject: [PATCH 30/39] DeploymentManager: API Spec, examples - private preview (#3792) * Azure Deployment Manager: Swagger + examples for Preview * DeploymentManager: updates to examples, swagger * DeploymentManager: update readme * Reorder DeploymentMode, fix extra token in samples json * Remove obsolete example files * Incorporated feedback * Semantic validation * Fix validation failures. Adjust contracts * Adjust contracts; add examples * Add SDK generation settings for all sdks * Add docs link * Incorporated feedback + updated descriptions --- .../2018-09-01-preview/deploymentmanager.json | 1868 +++++++++++++++++ .../artifactsource_createorupdate.json | 41 + ...actsource_createorupdate_artifactroot.json | 42 + .../examples/artifactsource_delete.json | 12 + .../examples/artifactsource_get.json | 27 + .../examples/operations_get.json | 165 ++ .../examples/rollout_createorupdate.json | 123 ++ .../examples/rollout_delete.json | 12 + .../examples/rollout_get.json | 124 ++ .../examples/rollout_post_cancel.json | 124 ++ .../examples/rollout_post_restart.json | 75 + .../examples/service_createorupdate.json | 32 + .../examples/service_delete.json | 13 + .../examples/service_get.json | 23 + .../servicetopology_createorupdate.json | 29 + ...ology_createorupdate_noartifactsource.json | 27 + .../examples/servicetopology_delete.json | 12 + .../examples/servicetopology_get.json | 21 + .../examples/serviceunit_createorupdate.json | 41 + ...eunit_createorupdate_noartifactsource.json | 41 + .../examples/serviceunit_delete.json | 14 + .../examples/serviceunit_get.json | 28 + .../examples/step_createorupdate.json | 35 + .../examples/step_delete.json | 12 + .../2018-09-01-preview/examples/step_get.json | 24 + .../resource-manager/readme.md | 191 ++ .../resource-manager/readme.nodejs.md | 15 + .../resource-manager/readme.ruby.md | 27 + 28 files changed, 3198 insertions(+) create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate_artifactroot.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/operations_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_cancel.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_restart.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate_noartifactsource.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate_noartifactsource.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_get.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_createorupdate.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_delete.json create mode 100644 specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_get.json create mode 100644 specification/deploymentmanager/resource-manager/readme.md create mode 100644 specification/deploymentmanager/resource-manager/readme.nodejs.md create mode 100644 specification/deploymentmanager/resource-manager/readme.ruby.md diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.json new file mode 100644 index 000000000000..f93be137e9b1 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.json @@ -0,0 +1,1868 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-09-01-preview", + "title": "AzureDeploymentManager", + "description": "REST APIs for orchestrating deployments using the Azure Deployment Manager (ADM). See https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview for more information." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}": { + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "put": { + "tags": [ + "ServiceTopologies" + ], + "operationId": "ServiceTopologies_CreateOrUpdate", + "summary": "Creates or updates a service topology.", + "description": "Synchronously creates a new service topology or updates an existing service topology.", + "x-ms-examples": { + "Create a topology with Artifact Source": { + "$ref": "./examples/servicetopology_createorupdate.json" + }, + "Create a topology without Artifact Source": { + "$ref": "./examples/servicetopology_createorupdate_noartifactsource.json" + } + }, + "parameters": [ + { + "in": "body", + "name": "serviceTopologyInfo", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceTopologyResource" + }, + "description": "Source topology object defines the resource." + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceTopologyResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard Error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "ServiceTopologies" + ], + "operationId": "ServiceTopologies_Get", + "summary": "Gets a topology resource.", + "x-ms-examples": { + "Get topology": { + "$ref": "./examples/servicetopology_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceTopologyResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ServiceTopologies" + ], + "operationId": "ServiceTopologies_Delete", + "summary": "Deletes a topology resource.", + "x-ms-examples": { + "Delete topology": { + "$ref": "./examples/servicetopology_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The topology was successfully deleted" + }, + "204": { + "description": "The topology was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}": { + "put": { + "tags": [ + "Services" + ], + "operationId": "Services_CreateOrUpdate", + "summary": "Creates or updates a service in the topology.", + "description": "Synchronously creates a new service or updates an existing service.", + "x-ms-examples": { + "Create service": { + "$ref": "./examples/service_createorupdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "serviceInfo", + "description": "The topoogy group resource object", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceResource" + } + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Services" + ], + "operationId": "Services_Get", + "summary": "Gets a service resource.", + "x-ms-examples": { + "Get service": { + "$ref": "./examples/service_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Services" + ], + "operationId": "Services_Delete", + "summary": "Deletes a service resource.", + "x-ms-examples": { + "Delete service": { + "$ref": "./examples/service_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The service was successfully deleted" + }, + "204": { + "description": "The service was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}": { + "put": { + "tags": [ + "ServiceUnits" + ], + "operationId": "ServiceUnits_CreateOrUpdate", + "x-ms-long-running-operation": true, + "summary": "Creates or updates a service unit in the service within the referenced topology resource.", + "description": "This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.", + "x-ms-examples": { + "Create service unit using relative paths into the artifact source": { + "$ref": "./examples/serviceunit_createorupdate.json" + }, + "Create service unit using SAS URIs": { + "$ref": "./examples/serviceunit_createorupdate_noartifactsource.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/serviceUnitName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "serviceUnitInfo", + "description": "The service unit resource object.", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceUnitResource" + } + } + ], + "responses": { + "201": { + "description": "This is a long running operation. The operation returns a 201 if the validation is complete. The response includes an Azure-AsyncOperation header that contains a status URL. Clients are expected to poll the status URL for the status of the operation.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Contains the status URL on which clients are expected to poll the status of the operation." + } + }, + "schema": { + "$ref": "#/definitions/ServiceUnitResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "ServiceUnits" + ], + "operationId": "ServiceUnits_Get", + "summary": "Gets a service unit resource.", + "x-ms-examples": { + "Get service unit": { + "$ref": "./examples/serviceunit_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/serviceUnitName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ServiceUnitResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ServiceUnits" + ], + "operationId": "ServiceUnits_Delete", + "summary": "Deletes a service unit resource.", + "x-ms-examples": { + "Delete service unit": { + "$ref": "./examples/serviceunit_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/serviceTopologyName" + }, + { + "$ref": "#/parameters/serviceName" + }, + { + "$ref": "#/parameters/serviceUnitName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The service unit was successfully deleted" + }, + "204": { + "description": "The service unit was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/steps/{stepName}": { + "put": { + "tags": [ + "Steps" + ], + "operationId": "Steps_CreateOrUpdate", + "summary": "Creates or updates a deployment step.", + "description": "Synchronously creates a new step or updates an existing step.", + "x-ms-examples": { + "Create deployment step": { + "$ref": "./examples/step_createorupdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/stepName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "stepInfo", + "description": "The resource object.", + "schema": { + "$ref": "#/definitions/StepResource" + } + } + ], + "responses": { + "201": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StepResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Steps" + ], + "operationId": "Steps_Get", + "summary": "Gets a topology resource.", + "x-ms-examples": { + "Get deployment step": { + "$ref": "./examples/step_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/stepName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/StepResource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Steps" + ], + "operationId": "Steps_Delete", + "summary": "Deletes a deployment step.", + "x-ms-examples": { + "Delete deployment step": { + "$ref": "./examples/step_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/stepName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The step was successfully deleted" + }, + "204": { + "description": "The step was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}": { + "put": { + "tags": [ + "Rollouts" + ], + "operationId": "Rollouts_CreateOrUpdate", + "x-ms-long-running-operation": true, + "summary": "Creates or updates a rollout.", + "description": "This is an asynchronous operation and can be polled to completion using the location header returned by this operation.", + "x-ms-examples": { + "Create or update rollout": { + "$ref": "./examples/rollout_createorupdate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/rolloutName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "rolloutRequest", + "description": "Source rollout request object that defines the rollout.", + "schema": { + "$ref": "#/definitions/RolloutRequest" + } + } + ], + "responses": { + "201": { + "description": "This is a long running operation. The operation returns a 201 if the request was successfully registered and basic validation is successful. The response includes an Azure-AsyncOperation header that contains the operation status URL. Clients are expected to poll the status URL for the status of the operation.", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "Contains the status URL on which clients are expected to poll the status of the operation." + } + }, + "schema": { + "$ref": "#/definitions/RolloutRequest" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "Rollouts" + ], + "operationId": "Rollouts_Get", + "summary": "Gets detailed information of an ongoing or completed rollout.", + "x-ms-examples": { + "Get rollout": { + "$ref": "./examples/rollout_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/rolloutName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/retryAttempt" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Rollout" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "Rollouts" + ], + "operationId": "Rollouts_Delete", + "summary": "Deletes a rollout resource.", + "description": "A rollout can only be deleted if it is in a terminal state.", + "x-ms-examples": { + "Delete rollout": { + "$ref": "./examples/rollout_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/rolloutName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The rollout was successfully deleted" + }, + "204": { + "description": "The rollout was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}/cancel": { + "post": { + "tags": [ + "Rollouts" + ], + "operationId": "Rollouts_Cancel", + "summary": "Stops a running rollout.", + "description": "A rollout can be canceled only if it is in running state.", + "x-ms-examples": { + "Cancel rollout": { + "$ref": "./examples/rollout_post_cancel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/rolloutName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Rollout" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}/restart": { + "post": { + "tags": [ + "Rollouts" + ], + "operationId": "Rollouts_Restart", + "summary": "Restarts a failed rollout and optionally skips all succeeded steps.", + "description": "A rollout can be restarted only if is in a terminal state and failed.", + "x-ms-examples": { + "Restart rollout": { + "$ref": "./examples/rollout_post_restart.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/rolloutName" + }, + { + "name": "skipSucceeded", + "in": "query", + "required": false, + "type": "boolean", + "description": "If true, will skip all succeeded steps so far in the rollout. If false, will execute the entire rollout again regardless of the current state of individual resources. Defaults to false if not specified." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Rollout" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/artifactSources/{artifactSourceName}": { + "put": { + "tags": [ + "ArtifactSources" + ], + "operationId": "ArtifactSources_CreateOrUpdate", + "summary": "Creates or updates an Artifact source.", + "description": "Synchronously creates a new artifact source or updates an existing artifact source.", + "x-ms-examples": { + "Create artifact source": { + "$ref": "./examples/artifactsource_createorupdate.json" + }, + "Create artifact source with artifact root, an offset into the storage container": { + "$ref": "./examples/artifactsource_createorupdate_artifactroot.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "artifactSourceInfo", + "description": "Source object that defines the resource.", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "get": { + "tags": [ + "ArtifactSources" + ], + "operationId": "ArtifactSources_Get", + "summary": "Gets an artifact resource.", + "x-ms-examples": { + "Get artifact source": { + "$ref": "./examples/artifactsource_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ArtifactSource" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + }, + "delete": { + "tags": [ + "ArtifactSources" + ], + "operationId": "ArtifactSources_Delete", + "summary": "Deletes an artifact source resource.", + "x-ms-examples": { + "Delete artifact source": { + "$ref": "./examples/artifactsource_delete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/resourceGroupName" + }, + { + "$ref": "#/parameters/artifactSourceName" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The artifact source was successfully deleted" + }, + "204": { + "description": "The artifact source was not found and the operation is considered success." + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.DeploymentManager/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "Operations_Get", + "summary": "Gets an operation resource.", + "x-ms-examples": { + "Get operations": { + "$ref": "./examples/operations_get.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/subscriptionId" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The operation details are successfully returned. The response code does not determine if the request which this operation corresponds to is successful. Check the response content for the status and any error information on failures.", + "schema": { + "$ref": "#/definitions/OperationsList" + } + }, + "default": { + "description": "All non-success conditions are handled using the standard error contract.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + } + }, + "definitions": { + "Identity": { + "description": "Identity for the resource.", + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "The identity type." + }, + "identityIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of identities." + } + }, + "required": [ + "type", + "identityIds" + ] + }, + "RolloutRequest": { + "description": "Defines the resource format for creating a rollout.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "description": "Identity for the resource.", + "$ref": "#/definitions/Identity" + }, + "properties": { + "description": "Defines the properties that make up a rollout request.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/RolloutRequestProperties" + } + }, + "required": [ + "identity", + "properties" + ] + }, + "RolloutRequestProperties": { + "description": "The properties for defining a rollout.", + "properties": { + "buildVersion": { + "type": "string", + "description": "The version of the build being deployed.", + "example": "1.0.0.1" + }, + "artifactSourceId": { + "type": "string", + "description": "The reference to the ARM resource Id where the payload is located.", + "example": "Microsoft.DeploymentManager/artifactSources/payloadStore1" + }, + "targetServiceTopologyId": { + "type": "string", + "description": "The reference to the resource Id of the service topology from which services are chosen to be deployed.", + "example": "Microsoft.DeploymentManager/serviceTopologies/myServiceTopology" + }, + "stepGroups": { + "description": "The list of steps that define the orchestration.", + "type": "array", + "items": { + "$ref": "#/definitions/Step" + } + } + }, + "required": [ + "stepGroups", + "targetServiceTopologyId", + "buildVersion" + ] + }, + "Step": { + "description": "The properties that define an Azure Deployment Manager step.", + "properties": { + "name": { + "description": "The name of the step.", + "type": "string" + }, + "dependsOnStepGroup": { + "description": "The list of step names on which this step depends.", + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "stepGroup1", + "stepGroup2" + ] + }, + "preDeploymentSteps": { + "description": "The list of step names to be run before deploying the target.", + "type": "array", + "items": { + "$ref": "#/definitions/PrePostStep" + } + }, + "deploymentTargetId": { + "description": "The reference to the ARM service unit resource to be deployed.", + "type": "string", + "example": "Microsoft.DeploymentManager/serviceTopologies/myServiceTopology/services/myService/serviceUnits/database" + }, + "postDeploymentSteps": { + "description": "The list of step names to be run after deploying the target.", + "type": "array", + "items": { + "$ref": "#/definitions/PrePostStep" + } + } + }, + "required": [ + "deploymentTargetId", + "name" + ] + }, + "PrePostStep": { + "description": "The properties that define a step.", + "properties": { + "stepId": { + "type": "string", + "description": "The reference to the ARM resource Id of a step.", + "example": "Microsoft.DeploymentManager/steps/healthCheckStep1" + } + }, + "required": [ + "stepId" + ] + }, + "ArtifactSource": { + "description": "The resource that define the source location where the artifacts are located.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "Defines the properties that make up an artifact source.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/ArtifactSourceProperties" + } + ] + } + } + }, + "ArtifactSourceProperties": { + "description": "The properties that define the source location where the artifacts are located.", + "properties": { + "sourceType": { + "type": "string", + "description": "The type of artifact source used.", + "example": "AzureStorage" + }, + "artifactRoot": { + "type": "string", + "description": "The root folder under which all artifacts for all environments are expected to be organized." + }, + "authentication": { + "description": "The authentication method to use to access the artifact source.", + "$ref": "#/definitions/Authentication" + } + }, + "required": [ + "sourceType", + "authentication" + ] + }, + "Authentication": { + "description": "Defines the authentication method and properties to access the artifacts.", + "type": "object", + "discriminator": "type", + "properties": { + "type": { + "type": "string", + "description": "The authentication type" + } + }, + "required": [ + "type" + ] + }, + "SasAuthentication": { + "x-ms-discriminator-value": "Sas", + "type": "object", + "description": "Defines the authentication properties to access the artifacts using Azure Storage SAS URI.", + "allOf": [ + { + "$ref": "#/definitions/Authentication" + } + ], + "properties": { + "properties": { + "description": "The SAS properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/SasProperties" + } + } + }, + "SasProperties": { + "description": "The properties that define SAS authentication.", + "properties": { + "sasUri": { + "type": "string", + "description": "The complete SAS URI to the location of the artifacts." + } + }, + "required": [ + "sasUri" + ] + }, + "Rollout": { + "description": "Defines the rollout resource.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "identity": { + "description": "Identity for the resource.", + "$ref": "#/definitions/Identity" + }, + "properties": { + "description": "The properties that define a rollout.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/RolloutRequestProperties" + }, + { + "$ref": "#/definitions/RolloutProperties" + } + ] + } + } + }, + "RolloutProperties": { + "description": "Defines the properties of a rollout.", + "properties": { + "status": { + "type": "string", + "readOnly": true, + "description": "The current status of the rollout." + }, + "totalRetryAttempts": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The cardinal count of total number of retries performed on the rollout at a given time." + }, + "operationInfo": { + "readOnly": true, + "$ref": "#/definitions/RolloutOperationInfo", + "description": "Operational information of the rollout." + }, + "services": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Service" + }, + "description": "Set of detailed step result information on target resource groups." + } + } + }, + "RolloutOperationInfo": { + "description": "Detailed runtime information of the rollout.", + "properties": { + "retryAttempt": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "The ordinal count of retry attempt. 0 if no retries of the rollout have been performed." + }, + "skipSucceededOnRetry": { + "type": "boolean", + "readOnly": true, + "description": "True if skipping all successful steps in the given retry attempt was chosen. False otherwise." + }, + "startTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The start time of the rollout in UTC." + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The start time of the rollout in UTC. This property will not be set if the rollout has not completed yet." + }, + "error": { + "description": "The detailed error information for any failure.", + "readOnly": true, + "$ref": "#/definitions/CloudErrorBody" + } + } + }, + "ServiceTopologyResource": { + "description": "The resource representation of a service topology.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "The properties that define the service.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/ServiceTopologyProperties" + } + ] + } + }, + "required": [ + "properties" + ] + }, + "ServiceTopologyProperties": { + "description": "The properties of a service topology.", + "properties": { + "artifactSourceId": { + "type": "string", + "description": "The artifact source that contains the artifacts that can be referenced in the service units." + } + } + }, + "ServiceResource": { + "description": "The resource representation of a service in a topology.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "The properties that define a service in a topology.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/ServiceProperties" + } + ] + } + }, + "required": [ + "properties" + ] + }, + "Service": { + "description": "Defines a service.", + "allOf": [ + { + "$ref": "#/definitions/ServiceProperties" + } + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the service." + }, + "serviceUnits": { + "description": "The detailed information about the units that make up the service.", + "type": "array", + "items": { + "$ref": "#/definitions/ServiceUnit" + } + } + } + }, + "ServiceProperties": { + "description": "The properties of a service.", + "properties": { + "targetLocation": { + "type": "string", + "description": "The Azure location to which the resources in the service belong to." + }, + "targetSubscriptionId": { + "type": "string", + "description": "The subscription to which the resources in the service belong to." + } + }, + "required": [ + "targetLocation", + "targetSubscriptionId" + ] + }, + "ServiceUnitResource": { + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "description": "Represents the response of a service unit resource.", + "properties": { + "properties": { + "description": "The properties that define the service unit.", + "x-ms-client-flatten": true, + "allOf": [ + { + "$ref": "#/definitions/ServiceUnitProperties" + } + ] + } + }, + "required": [ + "properties" + ] + }, + "ServiceUnit": { + "description": "Defines a service unit.", + "allOf": [ + { + "$ref": "#/definitions/ServiceUnitProperties" + } + ], + "properties": { + "name": { + "type": "string", + "description": "Name of the service unit." + }, + "steps": { + "type": "array", + "items": { + "$ref": "#/definitions/RolloutStep" + }, + "description": "Detailed step information, if present." + } + } + }, + "ServiceUnitProperties": { + "description": "Defines the properties of a service unit.", + "properties": { + "targetResourceGroup": { + "type": "string", + "description": "The Azure Resource Group to which the resources in the service unit belong to." + }, + "deploymentMode": { + "type": "string", + "enum": [ + "Incremental", + "Complete" + ], + "x-ms-enum": { + "name": "DeploymentMode", + "modelAsString": false + }, + "description": "Describes the type of ARM deployment to be performed on the resource." + }, + "artifacts": { + "type": "object", + "description": "The artifacts for the service unit.", + "$ref": "#/definitions/ServiceUnitArtifacts" + } + }, + "required": [ + "targetResourceGroup", + "deploymentMode" + ] + }, + "ServiceUnitArtifacts": + { + "description": "Defines the artifacts of a service unit.", + "properties":{ + "templateUri": { + "type": "string", + "description": "The full URI of the ARM template file with the SAS token.", + "example": "https://teststore.blob.core.windows.net/payloadcontainer/template.json?sasUri" + }, + "parametersUri": { + "type": "string", + "description": "The full URI of the ARM parameters file with the SAS token.", + "example": "https://teststore.blob.core.windows.net/payloadcontainer/parameters.json?sasUri" + }, + "templateArtifactSourceRelativePath": { + "type": "string", + "description": "The path to the ARM template file relative to the artifact source.", + "example": "/templates/resource1.template.json" + }, + "parametersArtifactSourceRelativePath": { + "type": "string", + "description": "The path to the ARM parameters file relative to the artifact source.", + "example": "/parameters/resource1.parameters.json" + } + } + }, + "RolloutStep": { + "description": "Defines a specific step on a target service unit.", + "properties": { + "name": { + "type": "string", + "description": "Name of the step as specified in the rollout specification input artifact." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "Current state of the step." + }, + "stepGroup": { + "type": "string", + "description": "The step group the current step is part of." + }, + "operationInfo": { + "readOnly": true, + "$ref": "#/definitions/StepOperationInfo", + "description": "Detailed information of specific action execution." + }, + "resourceOperations": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ResourceOperation" + }, + "description": "Set of resource operations that were performed on the Azure resource that the action acted upon." + }, + "messages": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/Message" + }, + "description": "Supplementary informative messages during rollout." + } + }, + "required": [ + "name" + ] + }, + "StepOperationInfo": { + "description": "Detailed information of specific step execution.", + "properties": { + "deploymentName": { + "type": "string", + "readOnly": true, + "description": "The name of the Azure Resource Manager deployment initiated as part of the step." + }, + "correlationId": { + "type": "string", + "readOnly": true, + "description": "Unique identifier to track the request for ARM-based resources." + }, + "startTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Start time of the action in UTC." + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "End time of the action in UTC." + }, + "lastUpdatedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Last time in UTC this operation was updated." + }, + "error": { + "description": "The errors, if any, for the action.", + "$ref": "#/definitions/CloudErrorBody" + } + } + }, + "ResourceOperation": { + "description": "Individial resource operation information.", + "properties": { + "resourceName": { + "type": "string", + "description": "Name of the resource as specified in the artifacts. For ARM resources, this is the name of the resource specified in the template." + }, + "operationId": { + "type": "string", + "readOnly": true, + "description": "Unique identifier of the operation. For ARM resources, this is the operationId obtained from ARM service." + }, + "resourceType": { + "type": "string", + "description": "Type of the resource as specified in the artifacts. For ARM resources, this is the type of the resource specified in the template." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "State of the resource deployment. For ARM resources, this is the current provisioning state of the resource." + }, + "statusMessage": { + "type": "string", + "readOnly": true, + "description": "Descriptive information of the resource operation." + }, + "statusCode": { + "type": "string", + "readOnly": true, + "description": "Http status code of the operation." + } + } + }, + "Message": { + "description": "Supplementary contextual messages during a rollout.", + "properties": { + "timeStamp": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Time in UTC this message was provided." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "The actual message text." + } + } + }, + "CloudError": { + "description": "The error information object.", + "x-ms-external": true, + "properties": { + "error": { + "description": "The properties that define the error.", + "$ref": "#/definitions/CloudErrorBody" + } + } + }, + "CloudErrorBody": { + "description": "Detailed error information of any failure.", + "properties": { + "code": { + "type": "string", + "readOnly": true, + "description": "Error code string." + }, + "message": { + "type": "string", + "readOnly": true, + "description": "Descriptive error information." + }, + "target": { + "type": "string", + "description": "Error target" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudErrorBody" + }, + "description": "More detailed error information." + } + } + }, + "OperationsList": { + "description": "The list of supported operations.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + } + }, + "Operation": { + "description": "Represents an operation that can be performed on the service.", + "properties": { + "name": { + "type": "string", + "description": "The name of the operation." + }, + "display": { + "description": "The display name of the operation.", + "$ref": "#/definitions/OperationDetail" + }, + "origin": { + "type": "string", + "description": "The origin of the operation." + }, + "properties": { + "description": "The properties of the operation.", + "type": "object", + "x-ms-client-flatten": true + } + } + }, + "OperationDetail": { + "description": "The detail about an operation.", + "properties": { + "provider": { + "type": "string", + "description": "The name of the provider that supports the operation." + }, + "resource": { + "type": "string", + "description": "The resource type on which this operation can be performed." + }, + "operation": { + "type": "string", + "description": "The name of the operation." + }, + "description": { + "type": "string", + "description": "The description of the operation." + } + } + }, + "StepResource": { + "description": "The resource representation of a deployment step.", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/TrackedResource" + } + ], + "properties": { + "properties": { + "description": "The properties for the resource.", + "$ref": "#/definitions/StepProperties" + } + }, + "required": [ + "properties" + ] + }, + "StepProperties": { + "description": "The properties of a step resource.", + "type": "object", + "discriminator": "stepType", + "properties": { + "stepType": { + "type": "string", + "description": "The type of step.", + "example": "Wait" + } + }, + "required": [ + "stepType" + ] + }, + "WaitStepProperties": { + "x-ms-discriminator-value": "Wait", + "type": "object", + "description": "Defines the properties of a Wait step.", + "allOf": [ + { + "$ref": "#/definitions/StepProperties" + } + ], + "properties": { + "attributes": { + "description": "The Wait attributes", + "$ref": "#/definitions/WaitStepAttributes" + } + } + }, + "WaitStepAttributes": { + "type": "object", + "description": "The parameters for the wait step.", + "properties": { + "duration": { + "type": "string", + "description": "The duration in ISO 8601 format of how long the wait should be." + } + }, + "required": [ + "duration" + ] + } + }, + "parameters": { + "artifactSourceName": { + "description": "The name of the artifact source.", + "name": "artifactSourceName", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, + "serviceTopologyName": { + "name": "serviceTopologyName", + "in": "path", + "description": "The name of the service topology .", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + "serviceName": { + "name": "serviceName", + "in": "path", + "description": "The name of the service resource.", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + "serviceUnitName": { + "name": "serviceUnitName", + "in": "path", + "description": "The name of the service unit resource.", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + "stepName": { + "name": "stepName", + "in": "path", + "description": "The name of the deployment step.", + "type": "string", + "required": true, + "x-ms-parameter-location": "method" + }, + "subscriptionId": { + "name": "subscriptionId", + "in": "path", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "type": "string", + "required": true, + "x-ms-parameter-location": "client" + }, + "resourceGroupName": { + "description": "The name of the resource group. The name is case insensitive.", + "name": "resourceGroupName", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + "rolloutName": { + "description": "The rollout name.", + "name": "rolloutName", + "type": "string", + "in": "path", + "required": true, + "x-ms-parameter-location": "method" + }, + "retryAttempt": { + "name": "retryAttempt", + "in": "query", + "required": false, + "type": "integer", + "description": "Rollout retry attempt ordinal to get the result of. If not specified, result of the latest attempt will be returned.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for this operation.", + "x-ms-parameter-location": "client" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate.json new file mode 100644 index 000000000000..e77edb89cbb4 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "artifactSourceName": "myArtifactSource", + "api-version": "2018-09-01-preview", + "artifactSourceInfo": { + "type": "Microsoft.DeploymentManager/artifactSources", + "location": "centralus", + "tags": {}, + "properties": { + "sourceType": "AzureStorage", + "authentication": { + "type": "Sas", + "properties": { + "sasUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "myArtifactSource", + "type": "Microsoft.DeploymentManager/artifactSources", + "location": "centralus", + "tags": {}, + "properties": { + "sourceType": "AzureStorage", + "authentication": { + "type": "Sas", + "properties": { + "sasUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate_artifactroot.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate_artifactroot.json new file mode 100644 index 000000000000..77a3c23b5da6 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_createorupdate_artifactroot.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "artifactSourceName": "myArtifactSource", + "api-version": "2018-09-01-preview", + "artifactSourceInfo": { + "type": "Microsoft.DeploymentManager/artifactSources", + "location": "centralus", + "tags": {}, + "properties": { + "sourceType": "AzureStorage", + "artifactRoot": "1.0.0.0", + "authentication": { + "type": "Sas", + "properties": { + "sasUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "myArtifactSource", + "type": "Microsoft.DeploymentManager/artifactSources", + "location": "centralus", + "tags": {}, + "properties": { + "sourceType": "AzureStorage", + "authentication": { + "type": "Sas", + "properties": { + "sasUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_delete.json new file mode 100644 index 000000000000..f46b7cd37415 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "artifactSourceName": "myArtifactSource", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_get.json new file mode 100644 index 000000000000..49b6ff280f62 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/artifactsource_get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "artifactSourceName": "myArtifactSource", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myArtifactSource", + "type": "Microsoft.DeploymentManager/artifactSources", + "location": "centralus", + "tags": {}, + "properties": { + "sourceType": "AzureStorage", + "authentication": { + "type": "Sas", + "properties": { + "sasUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/operations_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/operations_get.json new file mode 100644 index 000000000000..8f9c7e4eed34 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/operations_get.json @@ -0,0 +1,165 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": [ + { + "name": "Microsoft.DeploymentManager/serviceTopologies/read", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceTopology", + "operation": "View service topology", + "description": "View the properties of a service topology" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/write", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceTopology", + "operation": "Update the service topology", + "description": "Create a new topology or update the properties of an existing topology" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/delete", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceTopology", + "operation": "Delete service topology", + "description": "Deletes an existing topology." + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/read", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Service", + "operation": "View service in a topology", + "description": "View the properties of a service in a service topology" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/write", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Service", + "operation": "Update the service in a topology", + "description": "Create a new service or update the properties of an existing service" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/delete", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Service", + "operation": "Delete service", + "description": "Deletes an existing service in a service topology." + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits/read", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceUnit", + "operation": "View service unit", + "description": "View the properties of a service unit" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits/write", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceUnit", + "operation": "Update the service unit", + "description": "Create a new service unit or update the properties of an existing service unit" + } + }, + { + "name": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits/delete", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ServiceUnit", + "operation": "Delete service unit", + "description": "Deletes an existing service unit." + } + }, + { + "name": "Microsoft.DeploymentManager/artifactSources/read", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ArtifactSource", + "operation": "View artifact source", + "description": "View the properties of an artifact source." + } + }, + { + "name": "Microsoft.DeploymentManager/artifactSources/write", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ArtifactSource", + "operation": "Update the artifact source", + "description": "Create a new artifact source or updates the properties of an existing artifact source." + } + }, + { + "name": "Microsoft.DeploymentManager/artifactSources/delete", + "display": { + "provider": "Azure Deployment Manager", + "resource": "ArtifactSource", + "operation": "Delete artifact source", + "description": "Deletes an existing artifact source." + } + }, + { + "name": "Microsoft.DeploymentManager/rollouts/read", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Rollout", + "operation": "View rollout", + "description": "View the properties of rollout." + } + }, + { + "name": "Microsoft.DeploymentManager/rollouts/write", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Rollout", + "operation": "Create or update a rollout.", + "description": "Create a new rollout or update an existing rollout." + } + }, + { + "name": "Microsoft.DeploymentManager/rollouts/restart", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Rollout", + "operation": "Restart a rollout", + "description": "Restarts a failed rollout." + } + }, + { + "name": "Microsoft.DeploymentManager/rollouts/cancel", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Rollout", + "operation": "Cancel a rollout", + "description": "Cancel a rollout in progress." + } + }, + { + "name": "Microsoft.DeploymentManager/rollouts/delete", + "display": { + "provider": "Azure Deployment Manager", + "resource": "Rollout", + "operation": "Delete rollout", + "description": "Deletes an existing rollout." + } + } + ] + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_createorupdate.json new file mode 100644 index 000000000000..6256d23b2b64 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_createorupdate.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "rolloutName": "myRollout", + "api-version": "2018-09-01-preview", + "rolloutRequest": { + "type": "Microsoft.DeploymentManager/rollouts", + "location": "centralus", + "tags": {}, + "identity": { + "type": "userAssigned", + "identityIds": [ + "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity" + ] + }, + "properties": { + "buildVersion": "1.0.0.1", + "artifactSourceId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource", + "targetServiceTopologyId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology", + "stepGroups": [ + { + "name": "FirstRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep1" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep2" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep1" + } + ] + }, + { + "name": "SecondRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep3" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep4" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep5" + } + ], + "dependsOnStepGroup": [ + "FirstRegion" + ] + } + ] + } + } + }, + "responses": { + "201": { + "body": { + "name": "myRollout", + "type": "Microsoft.DeploymentManager/rollouts", + "location": "centralus", + "tags": {}, + "identity": { + "type": "userAssigned", + "identityIds": [ + "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity" + ] + }, + "properties": { + "buildVersion": "1.0.0.1", + "artifactSourceId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource", + "targetServiceTopologyId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology", + "stepGroups": [ + { + "name": "FirstRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep1" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep2" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep1" + } + ] + }, + { + "name": "SecondRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep3" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep4" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep5" + } + ], + "dependsOnStepGroup": [ + "FirstRegion" + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_delete.json new file mode 100644 index 000000000000..04cbc4cb4572 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "rolloutName": "myRollout", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_get.json new file mode 100644 index 000000000000..6d89abd64fb5 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_get.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "rolloutName": "myRollout", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myRollout", + "type": "Microsoft.DeploymentManager/rollouts", + "location": "centralus", + "tags": {}, + "identity": { + "type": "userAssigned", + "identityIds": [ + "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity" + ] + }, + "properties": { + "status": "Running", + "operationInfo": { + "startTime": "2018-08-28T03:33:56.386Z", + "retryAttempt": 0 + }, + "totalRetryAttempts": 0, + "buildVersion": "1.0.0.1", + "artifactSourceId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource", + "targetServiceTopologyId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology", + "stepGroups": [ + { + "name": "FirstRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep1" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep2" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep1" + } + ] + }, + { + "name": "SecondRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep3" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep4" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep5" + } + ], + "dependsOnStepGroup": [ + "FirstRegion" + ] + } + ], + "services": [ + { + "name": "myService1", + "targetSubscriptionId": "600c95c5-3ee5-44fe-b190-ca38a19adcd7", + "targetLocation": "centralus", + "serviceUnits": [ + { + "name": "myTopologyUni1", + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "steps": [ + { + "name": "preDeploymentStep1", + "status": "succeeded", + "operationInfo": { + "startTime": "2018-08-28T03:33:56.386Z", + "endTime": "2018-08-28T03:35:28.556Z" + } + }, + { + "name": "preDeploymentStep2", + "status": "succeeded", + "operationInfo": { + "startTime": "2018-08-28T03:36:56.386Z", + "endTime": "2018-08-28T03:37:28.556Z" + } + }, + { + "name": "deploy", + "status": "running", + "operationInfo": { + "startTime": "2018-08-28T03:38:56.386Z", + "lastUpdatedTime": "2018-08-28T03:39:28.556Z" + }, + "resourceOperations": [ + { + "resourceName": "keyVaultcentralus", + "operationId": "20FC5A21382DA306", + "resourceType": "Microsoft.KeyVault/vaults", + "provisioningState": "Succeeded", + "statusMessage": "", + "statusCode": "OK" + } + ] + } + ] + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_cancel.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_cancel.json new file mode 100644 index 000000000000..3dddd5a1dfdf --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_cancel.json @@ -0,0 +1,124 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "rolloutName": "myRollout", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myRollout", + "type": "Microsoft.DeploymentManager/rollouts", + "location": "centralus", + "tags": {}, + "identity": { + "type": "userAssigned", + "identityIds": [ + "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity" + ] + }, + "properties": { + "status": "Canceling", + "operationInfo": { + "startTime": "2018-08-28T03:33:56.386Z", + "retryAttempt": 0 + }, + "totalRetryAttempts": 0, + "buildVersion": "1.0.0.1", + "artifactSourceId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource", + "targetServiceTopologyId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology", + "stepGroups": [ + { + "name": "FirstRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep1" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep2" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep1" + } + ] + }, + { + "name": "SecondRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep3" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep4" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep5" + } + ], + "dependsOnStepGroup": [ + "FirstRegion" + ] + } + ], + "services": [ + { + "name": "myService1", + "targetSubscriptionId": "600c95c5-3ee5-44fe-b190-ca38a19adcd7", + "targetLocation": "centralus", + "serviceUnits": [ + { + "name": "myTopologyUni1", + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "steps": [ + { + "name": "preDeploymentStep1", + "status": "succeeded", + "operationInfo": { + "startTime": "2018-08-28T03:33:56.386Z", + "endTime": "2018-08-28T03:35:28.556Z" + } + }, + { + "name": "preDeploymentStep2", + "status": "succeeded", + "operationInfo": { + "startTime": "2018-08-28T03:36:56.386Z", + "endTime": "2018-08-28T03:37:28.556Z" + } + }, + { + "name": "deploy", + "status": "running", + "operationInfo": { + "startTime": "2018-08-28T03:38:56.386Z", + "lastUpdatedTime": "2018-08-28T03:39:28.556Z" + }, + "resourceOperations": [ + { + "resourceName": "keyVaultcentralus", + "operationId": "20FC5A21382DA306", + "resourceType": "Microsoft.KeyVault/vaults", + "provisioningState": "Succeeded", + "statusMessage": "", + "statusCode": "OK" + } + ] + } + ] + } + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_restart.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_restart.json new file mode 100644 index 000000000000..621caf7562e7 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/rollout_post_restart.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "rolloutName": "myRollout", + "skipSucceeded": true, + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myRollout", + "type": "Microsoft.DeploymentManager/rollouts", + "location": "centralus", + "tags": {}, + "identity": { + "type": "userAssigned", + "identityIds": [ + "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userassignedidentities/myuseridentity" + ] + }, + "properties": { + "status": "Running", + "operationInfo": { + "startTime": "2018-08-28T03:33:56.386Z", + "retryAttempt": 1 + }, + "totalRetryAttempts": 1, + "buildVersion": "1.0.0.1", + "artifactSourceId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/artifactSources/myArtifactSource", + "targetServiceTopologyId": "/subscriptions/caac1590-e859-444f-a9e0-62091c0f5929/resourceGroups/myResourceGroup/Microsoft.DeploymentManager/serviceTopologies/myTopology", + "stepGroups": [ + { + "name": "FirstRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep1" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep2" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit1'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep1" + } + ] + }, + { + "name": "SecondRegion", + "preDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep3" + }, + { + "stepId": "Microsoft.DeploymentManager/steps/preDeployStep4" + } + ], + "deploymentTargetId": "Microsoft.DeploymentManager/serviceTopologies/myTopology/services/myService/serviceUnits/myServiceUnit2'", + "postDeploymentSteps": [ + { + "stepId": "Microsoft.DeploymentManager/steps/postDeployStep5" + } + ], + "dependsOnStepGroup": [ + "FirstRegion" + ] + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_createorupdate.json new file mode 100644 index 000000000000..854b90f3acf4 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_createorupdate.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "api-version": "2018-09-01-preview", + "serviceInfo": { + "type": "Microsoft.DeploymentManager/serviceTopologies/services", + "location": "centralus", + "tags": {}, + "properties": { + "targetLocation": "centralus", + "targetSubscriptionId": "600c95c5-3ee5-44fe-b190-ca38a19adcd7" + } + } + }, + "responses": { + "201": { + "body": { + "name": "myService", + "type": "Microsoft.DeploymentManager/serviceTopologies/services", + "location": "centralus", + "tags": {}, + "properties": { + "targetLocation": "centralus", + "targetSubscriptionId": "600c95c5-3ee5-44fe-b190-ca38a19adcd7" + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_delete.json new file mode 100644 index 000000000000..dc1ef4bb7026 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_get.json new file mode 100644 index 000000000000..7498d57ed7ef --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/service_get.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myService", + "type": "Microsoft.DeploymentManager/serviceTopologies/services", + "location": "centralus", + "tags": {}, + "properties": { + "targetLocation": "centralus", + "targetSubscriptionId": "600c95c5-3ee5-44fe-b190-ca38a19adcd7" + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate.json new file mode 100644 index 000000000000..e2a732a8a746 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "api-version": "2018-09-01-preview", + "serviceTopologyInfo": { + "type": "Microsoft.DeploymentManager/serviceTopologies", + "location": "centralus", + "tags": {}, + "properties": { + "artifactSourceId": "Microsoft.DeploymentManager/artifactSources/myArtifactSource" + } + } + }, + "responses": { + "201": { + "body": { + "name": "myTopology", + "type": "Microsoft.DeploymentManager/serviceTopologies", + "location": "centralus", + "tags": {}, + "properties": { + "artifactSourceId": "Microsoft.DeploymentManager/artifactSources/myArtifactSource" + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate_noartifactsource.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate_noartifactsource.json new file mode 100644 index 000000000000..bfdf73576840 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_createorupdate_noartifactsource.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "api-version": "2018-09-01-preview", + "serviceTopologyInfo": { + "type": "Microsoft.DeploymentManager/serviceTopologies", + "location": "centralus", + "tags": {}, + "properties": { + } + } + }, + "responses": { + "201": { + "body": { + "name": "myTopology", + "type": "Microsoft.DeploymentManager/serviceTopologies", + "location": "centralus", + "tags": {}, + "properties": { + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_delete.json new file mode 100644 index 000000000000..e2d8ac981315 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_get.json new file mode 100644 index 000000000000..8823cc8f1276 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/servicetopology_get.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myTopology", + "type": "Microsoft.DeploymentManager/serviceTopologies", + "location": "centralus", + "tags": {}, + "properties": { + "artifactSourceId": "Microsoft.DeploymentManager/artifactSources/myArtifactSource" + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate.json new file mode 100644 index 000000000000..dbe2e7243e16 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "serviceUnitName": "myServiceUnit", + "api-version": "2018-09-01-preview", + "serviceUnitInfo": { + "type": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits", + "location": "centralus", + "tags": {}, + "properties": { + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "artifacts": { + "templateArtifactSourceRelativePath": "templates/myTopologyUnit.template.json", + "parametersArtifactSourceRelativePath": "parameter/myTopologyUnit.parameters.json" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "myServiceUnit", + "type": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits", + "location": "centralus", + "tags": {}, + "properties": { + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "artifacts": { + "templateArtifactSourceRelativePath": "templates/myTopologyUnit.template.json", + "parametersArtifactSourceRelativePath": "parameter/myTopologyUnit.parameters.json" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate_noartifactsource.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate_noartifactsource.json new file mode 100644 index 000000000000..35f712ea1724 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_createorupdate_noartifactsource.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "serviceUnitName": "myServiceUnit", + "api-version": "2018-09-01-preview", + "serviceUnitInfo": { + "type": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits", + "location": "centralus", + "tags": {}, + "properties": { + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "artifacts": { + "templateUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource/templates/myTopologyUnit.template.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D", + "parametersUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource/parameter/myTopologyUnit.parameters.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "myServiceUnit", + "type": "Microsoft.DeploymentManager/serviceTopologies/services/serviceUnits", + "location": "centralus", + "tags": {}, + "properties": { + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "artifacts": { + "templateUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource/templates/myTopologyUnit.template.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D", + "parametersUri": "https://mystorageaccount.blob.core.windows.net/myartifactsource/parameter/myTopologyUnit.parameters.json?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_delete.json new file mode 100644 index 000000000000..3f7cb46b7e68 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "serviceUnitName": "myServiceUnit", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_get.json new file mode 100644 index 000000000000..46a11591ef9b --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/serviceunit_get.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "serviceTopologyName": "myTopology", + "serviceName": "myService", + "serviceUnitName": "myServiceUnit", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "myServiceUnit", + "type": "Microsoft.DeploymentManager/servicetopologies/services/serviceunits", + "location": "centralus", + "tags": {}, + "properties": { + "targetResourceGroup": "myDeploymentResourceGroup", + "deploymentMode": "Incremental", + "artifacts": { + "templateArtifactSourceRelativePath": "templates/myTopologyUnit.template.json", + "parametersArtifactSourceRelativePath": "parameter/myTopologyUnit.parameters.json" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_createorupdate.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_createorupdate.json new file mode 100644 index 000000000000..cf0d0165e99f --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_createorupdate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "stepName": "deploymentStep1", + "api-version": "2018-09-01-preview", + "stepInfo": { + "type": "Microsoft.DeploymentManager/steps", + "location": "centralus", + "tags": {}, + "properties": { + "stepType": "Wait", + "attributes": { + "duration": "PT20M" + } + } + } + }, + "responses": { + "201": { + "body": { + "name": "deploymentStep1", + "type": "Microsoft.DeploymentManager/steps", + "location": "centralus", + "tags": {}, + "properties": { + "stepType": "Wait", + "attributes": { + "duration": "PT20M" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_delete.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_delete.json new file mode 100644 index 000000000000..1c827ae4303f --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "stepName": "deploymentStep1", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_get.json b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_get.json new file mode 100644 index 000000000000..89903dd8e306 --- /dev/null +++ b/specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2018-09-01-preview/examples/step_get.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "caac1590-e859-444f-a9e0-62091c0f5929", + "resourceGroupName": "myResourceGroup", + "stepName": "deploymentStep1", + "api-version": "2018-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "deploymentStep1", + "type": "Microsoft.DeploymentManager/steps", + "location": "centralus", + "tags": {}, + "properties": { + "stepType": "Wait", + "attributes": { + "duration": "PT20M" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/deploymentmanager/resource-manager/readme.md b/specification/deploymentmanager/resource-manager/readme.md new file mode 100644 index 000000000000..0e882cb25ada --- /dev/null +++ b/specification/deploymentmanager/resource-manager/readme.md @@ -0,0 +1,191 @@ +# Azure Deployment Manager + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Deployment Manager. + + +--- +## Getting Started +To build the SDK for Deployment Manager, 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 DeploymentManager API. + +``` yaml +openapi-type: arm +tag: package-2018-09-01-preview +``` + +### Suppression + +``` yaml +directive: + - suppress: EnumInsteadOfBoolean + reason: The boolean properties in the specification are actually boolean values in the Deployment Manager application model. + from: deploymentmanager.json + - suppress: TrackedResourceListByImmediateParent + reason: Not available during preview. + - suppress: TrackedResourcePatchOperation + reason: Not available at this time. + from: deploymentmanager.json + - suppress: TrackedResourceListBySubscription + reason: Not available at this time. + from: deploymentmanager.json + - suppress: TrackedResourceListByResourceGroup + reason: Not available at this time. + from: deploymentmanager.json + - suppress: TrackedResourceGetOperation + reason: The rollout resource has a get operation. The request and response types are separated for clarity. + where: $.definitions.RolloutRequest + - suppress: DescriptionAndTitleMissing + reason: Common types warning. + where: $.definitions.Resource + - suppress: AvoidNestedProperties + reason: Nesting had to be avoided to have the autogenerated classes compose the required polymorphic 'properties' property in the StepResource. + where: $.definitions.StepResource.properties.properties +``` + +### Tag: package-2018-09-01-preview + +These settings apply only when `package-2018-09-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-09-01-preview' +input-file: +- Microsoft.DeploymentManager/preview/2018-09-01-preview/deploymentmanager.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 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go + - repo: azure-sdk-for-node + - repo: azure-sdk-for-ruby + after_scripts: + - bundle install && rake arm:regen_all_profiles['azure_mgmt_deploymentmanager'] +``` + +## 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.DeploymentManager + payload-flattening-threshold: 2 + output-folder: $(csharp-sdks-folder)/DeploymentManager/Management/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.deploymentmanager + package-name: azure-mgmt-deploymentmanager + package-version: 0.9.0 + clear-output-folder: true +``` +``` yaml $(python) && $(python-mode) == 'update' +python: + no-namespace-folders: true + output-folder: $(python-sdks-folder)/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager +``` +``` yaml $(python) && $(python-mode) == 'create' +python: + basic-setup-py: true + output-folder: $(python-sdks-folder)/azure-mgmt-deploymentmanager +``` + + +## Go + +These settings apply only when `--go` is specified on the command line. + +``` yaml $(go) +go: + license-header: MICROSOFT_APACHE_NO_VERSION + namespace: deploymentmanager + clear-output-folder: true +``` + +### Go multi-api + +``` yaml $(go) && $(multiapi) +batch: + - tag: package-2018-09-01-preview +``` + +### Tag: package-2018-09-01-preview and go + +These settings apply only when `--tag=package-2018-09-01-preview --go` is specified on the command line. +Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-09-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/deploymentmanager/mgmt/2018-09-01-preview/deploymentmanager +``` + + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.deploymentmanager +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-deploymentmanager +``` + +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2018-09-01-preview +``` + +### Tag: package-2018-09-01-preview and java + +These settings apply only when `--tag=package-2018-09-01-preview --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2018-09-01-preview' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.deploymentmanager.v2018-09-01-preview + output-folder: $(azure-libraries-for-java-folder)/deploymentmanager/resource-manager/v2018-09-01-preview +regenerate-manager: true +generate-interface: true +``` diff --git a/specification/deploymentmanager/resource-manager/readme.nodejs.md b/specification/deploymentmanager/resource-manager/readme.nodejs.md new file mode 100644 index 000000000000..c2bd37fd584e --- /dev/null +++ b/specification/deploymentmanager/resource-manager/readme.nodejs.md @@ -0,0 +1,15 @@ +## Node.js + +These settings apply only when `--nodejs` is specified on the command line. +Please also specify `--node-sdks-folder=`. + +``` yaml $(nodejs) +nodejs: + azure-arm: true + package-name: azure-arm-deploymentmanager + package-version: 0.9.0 + output-folder: $(node-sdks-folder)/lib/services/deploymentmanagerManagement + generate-license-txt: true + generate-package-json: true + generate-readme-md: true +``` diff --git a/specification/deploymentmanager/resource-manager/readme.ruby.md b/specification/deploymentmanager/resource-manager/readme.ruby.md new file mode 100644 index 000000000000..dafea90e72ce --- /dev/null +++ b/specification/deploymentmanager/resource-manager/readme.ruby.md @@ -0,0 +1,27 @@ +## Ruby + +These settings apply only when `--ruby` is specified on the command line. + +``` yaml +package-name: azure_mgmt_deploymentmanager +package-version: "0.9.0" +azure-arm: true +``` + +### Ruby multi-api + +``` yaml $(ruby) && $(multiapi) +batch: + - tag: package-2018-09-01-preview +``` + +### Tag: package-2018-09-01-preview and ruby + +These settings apply only when `--tag=package-2018-09-01-preview --ruby` is specified on the command line. +Please also specify `--ruby-sdks-folder=`. + +``` yaml $(tag) == 'package-2018-09-01-preview' && $(ruby) +namespace: "Azure::DeploymentManager::Mgmt::V2018-09-01-preview" +output-folder: $(ruby-sdks-folder)/management/azure_mgmt_deploymentmanager/lib +``` + From 752cf8d1f02fb44783ca846c5d336741ac519852 Mon Sep 17 00:00:00 2001 From: vivek-microsoft <32766101+vivek-microsoft@users.noreply.github.com> Date: Mon, 24 Sep 2018 21:33:17 +0530 Subject: [PATCH 31/39] [Merge on 9/24/2018] Moving to Public Repository (#3929) * Moving to Public Repository Moving to Public Repository * moving inside preview folder * updating relative path --- .../Microsoft.WorkloadMonitor.json | 1719 +++++++++ .../examples/ComponentsSummary_List.json | 89 + .../examples/Components_Get.json | 44 + .../examples/Components_ListByResource.json | 435 +++ .../MonitorInstancesSummary_List.json | 1653 +++++++++ .../examples/MonitorInstances_Get.json | 68 + .../MonitorInstances_ListByResource.json | 3305 +++++++++++++++++ .../examples/Monitors_Get.json | 53 + .../examples/Monitors_ListByResource.json | 1843 +++++++++ .../examples/Monitors_Update.json | 34 + .../NotificationSettings_ListByResource.json | 27 + .../examples/Operations_List.json | 102 + .../resource-manager/readme.md | 44 + 13 files changed, 9416 insertions(+) create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/ComponentsSummary_List.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_Get.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_ListByResource.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstancesSummary_List.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_Get.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_ListByResource.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Get.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_ListByResource.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Update.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/NotificationSettings_ListByResource.json create mode 100644 specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Operations_List.json create mode 100644 specification/workloadmonitor/resource-manager/readme.md diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.json new file mode 100644 index 000000000000..e41b71a73720 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.json @@ -0,0 +1,1719 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-08-31-preview", + "title": "Workload Monitor API", + "description": "APIs for workload monitoring", + "contact": { + "name": "Microsoft", + "email": "wlmengg@microsoft.com" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitors": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get list of a monitors of a resource.", + "operationId": "Monitors_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$filter" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK. At least one monitor is found.", + "schema": { + "$ref": "#/definitions/MonitorsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Monitors_ListByResource": { + "$ref": "./examples/Monitors_ListByResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitors/{monitorId}": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get details of a single monitor.", + "operationId": "Monitors_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "monitorId", + "in": "path", + "description": "Monitor Id.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + } + ], + "responses": { + "200": { + "description": "OK. monitor is found.", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Get": { + "$ref": "./examples/Monitors_Get.json" + } + } + }, + "patch": { + "tags": [ + "WLIExtension" + ], + "summary": "Update a Monitor's configuration.", + "operationId": "Monitors_Update", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "name": "monitorId", + "in": "path", + "description": "Monitor Id.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "name": "body", + "in": "body", + "description": "Body of the Monitor PATCH object.", + "required": true, + "schema": { + "$ref": "#/definitions/Monitor" + } + } + ], + "responses": { + "200": { + "description": "OK. Existing monitor is updated.", + "schema": { + "$ref": "#/definitions/Monitor" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Monitors_Update": { + "$ref": "./examples/Monitors_Update.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/components": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get list of components for a resource.", + "operationId": "Components_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$filter" + }, + { + "$ref": "#/parameters/$apply" + }, + { + "$ref": "#/parameters/$orderby" + }, + { + "$ref": "#/parameters/$expand" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK. At least one component found.", + "schema": { + "$ref": "#/definitions/ComponentsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Components_ListByResource": { + "$ref": "./examples/Components_ListByResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/components/{componentId}": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get details of a component.", + "operationId": "Components_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/componentId" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$expand" + } + ], + "responses": { + "200": { + "description": "OK. component is found.", + "schema": { + "$ref": "#/definitions/Component" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Components_Get": { + "$ref": "./examples/Components_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitorInstances": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get list of monitor instances for a resource.", + "operationId": "MonitorInstances_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$filter" + }, + { + "$ref": "#/parameters/$apply" + }, + { + "$ref": "#/parameters/$orderby" + }, + { + "$ref": "#/parameters/$expand" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/MonitorInstancesCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MonitorInstances_ListByResource": { + "$ref": "./examples/MonitorInstances_ListByResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/monitorInstances/{monitorInstanceId}": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get details of a monitorInstance.", + "operationId": "MonitorInstances_Get", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/monitorInstanceId" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$expand" + } + ], + "responses": { + "200": { + "description": "OK. monitorInstance is found.", + "schema": { + "$ref": "#/definitions/MonitorInstance" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "MonitorInstances_Get": { + "$ref": "./examples/MonitorInstances_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.WorkloadMonitor/notificationSettings": { + "get": { + "tags": [ + "WLIExtension" + ], + "summary": "Get list of notification settings for a resource.", + "operationId": "NotificationSettings_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "resourceNamespace", + "in": "path", + "description": "The Namespace of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceType", + "in": "path", + "description": "The type of the resource.", + "required": true, + "type": "string" + }, + { + "name": "resourceName", + "in": "path", + "description": "Name of the resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK. At least one component found.", + "schema": { + "$ref": "#/definitions/NotificationSettingsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "NotificationSettings_ListByResource": { + "$ref": "./examples/NotificationSettings_ListByResource.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WorkloadMonitor/componentsSummary": { + "get": { + "tags": [ + "WorkloadInsights" + ], + "summary": "Get subscription wide details of components.", + "operationId": "ComponentsSummary_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$filter" + }, + { + "$ref": "#/parameters/$apply" + }, + { + "$ref": "#/parameters/$orderby" + }, + { + "$ref": "#/parameters/$expand" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK. At least one component found.", + "schema": { + "$ref": "#/definitions/ComponentsCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "ComponentsSummary_List": { + "$ref": "./examples/ComponentsSummary_List.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.WorkloadMonitor/monitorInstancesSummary": { + "get": { + "tags": [ + "WorkloadInsights" + ], + "summary": "Get subscription wide health instances.", + "operationId": "MonitorInstancesSummary_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$select" + }, + { + "$ref": "#/parameters/$filter" + }, + { + "$ref": "#/parameters/$apply" + }, + { + "$ref": "#/parameters/$orderby" + }, + { + "$ref": "#/parameters/$expand" + }, + { + "$ref": "#/parameters/$top" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/MonitorInstancesCollection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "MonitorInstancesSummary_List": { + "$ref": "./examples/MonitorInstancesSummary_List.json" + } + } + } + }, + "/providers/Microsoft.WorkloadMonitor/operations": { + "get": { + "tags": [ + "WorkloadInsights" + ], + "summary": "Gets the details of all operations possible on the resource provider.", + "operationId": "Operations_List", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/api-version" + }, + { + "$ref": "#/parameters/$skiptoken" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "Operations_List": { + "$ref": "./examples/Operations_List.json" + } + } + } + } + }, + "definitions": { + "MonitorsCollection": { + "description": "Model for collection of Monitor.", + "type": "object", + "properties": { + "nextLink": { + "description": "URL for next set of results.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Collection of Monitor.", + "type": "array", + "items": { + "$ref": "#/definitions/Monitor" + }, + "readOnly": true + } + } + }, + "Monitor": { + "description": "Model for Monitor", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "etag": { + "description": "For optimistic concurrency control.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MonitorProperties", + "description": "Properties of monitor instance", + "readOnly": true, + "x-ms-client-flatten": true + } + } + }, + "MonitorProperties": { + "description": "Model for properties of a Monitor.", + "type": "object", + "properties": { + "description": { + "description": "Description of the monitor", + "type": "string", + "readOnly": true + }, + "monitorId": { + "description": "ID of the monitor", + "type": "string", + "readOnly": true + }, + "monitorName": { + "description": "Name of the monitor", + "type": "string", + "readOnly": true + }, + "monitorDisplayName": { + "description": "User friendly display name of the monitor", + "type": "string", + "readOnly": true + }, + "parentMonitorName": { + "description": "Name of the parent monitor", + "type": "string", + "readOnly": true + }, + "parentMonitorDisplayName": { + "description": "User friendly display name of the parent monitor", + "type": "string", + "readOnly": true + }, + "monitorType": { + "description": "Type of the monitor", + "enum": [ + "Aggregate", + "Dependency", + "Unit" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MonitorType", + "modelAsString": false + } + }, + "monitorCategory": { + "description": "Category of the monitor", + "enum": [ + "AvailabilityHealth", + "Configuration", + "EntityHealth", + "PerformanceHealth", + "Security" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MonitorCategory", + "modelAsString": false + } + }, + "componentTypeId": { + "description": "Component Type Id of monitor", + "type": "string", + "readOnly": true + }, + "componentTypeName": { + "description": "Component Type Name of monitor", + "type": "string", + "readOnly": true + }, + "componentTypeDisplayName": { + "description": "Component Type Display Name of the monitor", + "type": "string", + "readOnly": true + }, + "monitorState": { + "description": "Is the monitor state enabled or disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MonitorState", + "modelAsString": false + } + }, + "criteria": { + "description": "Collection of MonitorCriteria. For PATCH calls, instead of partial list, complete list of expected criteria should be passed for proper updation.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitorCriteria" + }, + "readOnly": true + }, + "alertGeneration": { + "description": "Generates alerts or not", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "AlertGeneration", + "modelAsString": true + } + }, + "frequency": { + "format": "int32", + "description": "Frequency at which monitor condition is evaluated", + "type": "integer", + "readOnly": true + }, + "lookbackDuration": { + "format": "int32", + "description": "The duration in minutes in the past during which the monitor is evaluated", + "type": "integer", + "readOnly": true + }, + "documentationURL": { + "description": "URL pointing to the documentation of the monitor", + "type": "string", + "readOnly": true + }, + "signalName": { + "description": "Name of the signal on which this monitor is configured.", + "type": "string", + "readOnly": true + }, + "signalType": { + "description": "Type of the signal on which this monitor is configured.", + "type": "string", + "readOnly": true + } + } + }, + "MonitorCriteria": { + "description": "Criteria for monitor configuration", + "type": "object", + "properties": { + "healthState": { + "description": "Target health state of the criteria", + "enum": [ + "Error", + "Warning", + "Success", + "Unknown", + "Uninitialized" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthState", + "modelAsString": false + } + }, + "threshold": { + "format": "double", + "description": "Treshold value for this criteria", + "type": "number", + "readOnly": true + }, + "comparisonOperator": { + "description": "Comparison enum on theshold of this criteria", + "enum": [ + "Equals", + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual", + "NotEquals" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "Operator", + "modelAsString": false + } + } + } + }, + "ComponentsCollection": { + "description": "Model for collection of components.", + "type": "object", + "properties": { + "nextLink": { + "description": "URL to the next set of results.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Collection of components.", + "type": "array", + "items": { + "$ref": "#/definitions/Component" + }, + "readOnly": true + } + } + }, + "Component": { + "description": "Model for component.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "etag": { + "description": "For optimistic concurrency control.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/ComponentProperties", + "description": "Properties of the component.", + "readOnly": true, + "x-ms-client-flatten": true + } + } + }, + "ComponentProperties": { + "description": "Model for properties of a component.", + "type": "object", + "properties": { + "workspaceId": { + "description": "ID of the workspace.", + "type": "string", + "readOnly": true + }, + "solutionId": { + "description": "ID of the OMS solution this component belong to.", + "type": "string", + "readOnly": true + }, + "workloadType": { + "description": "Type of the workload.", + "enum": [ + "BaseOS", + "SQL", + "IIS", + "Apache" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "WorkloadType", + "modelAsString": true + } + }, + "componentName": { + "description": "Name of the component.", + "type": "string", + "readOnly": true + }, + "componentTypeId": { + "description": "ID of the component type.", + "type": "string", + "readOnly": true + }, + "componentTypeName": { + "description": "Name of the component type. Qualifies the type of component such as whether it is a SQL database, logical disk, website, etc.", + "type": "string", + "readOnly": true + }, + "componentTypeGroupCategory": { + "description": "Component type group category. Classification of component type groups into a logical category. e.g. Network, Disk, Memory, CPU.", + "type": "string", + "readOnly": true + }, + "healthState": { + "description": "Health state of the component.", + "enum": [ + "Error", + "Warning", + "Success", + "Unknown", + "Uninitialized" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthState", + "modelAsString": false + } + }, + "healthStateCategory": { + "description": "Category of component's health state.", + "enum": [ + "Identity", + "CustomGroup" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthStateCategory", + "modelAsString": true + } + }, + "healthStateChangesStartTime": { + "format": "date-time", + "description": "Start time for health state changes.", + "type": "string", + "readOnly": true + }, + "healthStateChangesEndTime": { + "format": "date-time", + "description": "End time for health state changes.", + "type": "string", + "readOnly": true + }, + "lastHealthStateChangeTime": { + "format": "date-time", + "description": "Time of last health state change.", + "type": "string", + "readOnly": true + }, + "vmId": { + "description": "ID of the VM this component belongs to.", + "type": "string", + "readOnly": true + }, + "vmName": { + "description": "Name of the VM this component belongs to.", + "type": "string", + "readOnly": true + }, + "vmTags": { + "description": "Tags on the VM this component belongs to.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "aggregateProperties": { + "description": "Properties requested in aggregation queries.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "children": { + "description": "component children.", + "type": "array", + "items": { + "$ref": "#/definitions/Component" + }, + "readOnly": true + } + } + }, + "MonitorInstancesCollection": { + "description": "Model for collection of health instances.", + "type": "object", + "properties": { + "nextLink": { + "description": "URL to the next set of results.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Collection of health instances.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitorInstance" + }, + "readOnly": true + } + } + }, + "MonitorInstance": { + "description": "Model for monitor instance.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "etag": { + "description": "For optimistic concurrency control.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/MonitorInstanceProperties", + "description": "Properties of the monitor instance.", + "readOnly": true, + "x-ms-client-flatten": true + } + } + }, + "MonitorInstanceProperties": { + "description": "Model for properties of a monitor instance.", + "type": "object", + "properties": { + "workspaceId": { + "description": "ID of the workspace.", + "type": "string", + "readOnly": true + }, + "solutionId": { + "description": "ID of the OMS solution this health instance belong to.", + "type": "string", + "readOnly": true + }, + "workloadType": { + "description": "Type of the workload.", + "enum": [ + "BaseOS", + "SQL", + "IIS", + "Apache" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "WorkloadType", + "modelAsString": true + } + }, + "componentId": { + "description": "ID of the component.", + "type": "string", + "readOnly": true + }, + "componentName": { + "description": "Name of the component.", + "type": "string", + "readOnly": true + }, + "componentTypeId": { + "description": "ID of the component type.", + "type": "string", + "readOnly": true + }, + "componentTypeName": { + "description": "Name of the component type. Qualifies the type of component such as whether it is a SQL database, logical disk, website, etc.", + "type": "string", + "readOnly": true + }, + "monitorId": { + "description": "ID of the monitor instance.", + "type": "string", + "readOnly": true + }, + "monitorName": { + "description": "Name of the monitor.", + "type": "string", + "readOnly": true + }, + "monitorType": { + "description": "Type of the monitor. The qualifier for the health criteria depending on the functionality it performs such as Unit, Aggregate, Dependency.", + "enum": [ + "Aggregate", + "Dependency", + "Unit" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MonitorType", + "modelAsString": false + } + }, + "monitorCategory": { + "description": "Monitor type category. Indicates the attribute of the component that the health criteria monitors such as Performance, Availability, etc.", + "enum": [ + "AvailabilityHealth", + "Configuration", + "EntityHealth", + "PerformanceHealth", + "Security" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "MonitorCategory", + "modelAsString": false + } + }, + "healthState": { + "description": "Health state of monitor instance.", + "enum": [ + "Error", + "Warning", + "Success", + "Unknown", + "Uninitialized" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthState", + "modelAsString": false + } + }, + "healthStateCategory": { + "description": "Category of monitor instance's health state.", + "enum": [ + "Identity", + "CustomGroup" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthStateCategory", + "modelAsString": true + } + }, + "healthStateChanges": { + "description": "Health state changes.", + "type": "array", + "items": { + "$ref": "#/definitions/HealthStateChange" + }, + "readOnly": true + }, + "healthStateChangesStartTime": { + "format": "date-time", + "description": "Start time for health state changes.", + "type": "string", + "readOnly": true + }, + "healthStateChangesEndTime": { + "format": "date-time", + "description": "End time for health state changes.", + "type": "string", + "readOnly": true + }, + "lastHealthStateChangeTime": { + "format": "date-time", + "description": "Time of last health state change.", + "type": "string", + "readOnly": true + }, + "alertGeneration": { + "description": "Generates alert or not.", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "AlertGeneration", + "modelAsString": true + } + }, + "aggregateProperties": { + "description": "Properties requested in aggregation queries.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "children": { + "description": "Health instance children.", + "type": "array", + "items": { + "$ref": "#/definitions/MonitorInstance" + }, + "readOnly": true + } + } + }, + "HealthStateChange": { + "description": "Model for health state change", + "type": "object", + "properties": { + "healthState": { + "description": "Health state of monitor instance.", + "enum": [ + "Error", + "Warning", + "Success", + "Unknown", + "Uninitialized" + ], + "type": "string", + "readOnly": true, + "x-ms-enum": { + "name": "HealthState", + "modelAsString": false + } + }, + "healthStateChangeTime": { + "format": "date-time", + "description": "Time at which this Health state was reached.", + "type": "string", + "readOnly": true + } + } + }, + "NotificationSettingsCollection": { + "description": "Model for collection of notificationSettings.", + "type": "object", + "properties": { + "nextLink": { + "description": "URL to the next set of results.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "Collection of components.", + "type": "array", + "items": { + "$ref": "#/definitions/NotificationSetting" + }, + "readOnly": true + } + } + }, + "NotificationSetting": { + "description": "Model for component.", + "type": "object", + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" + } + ], + "properties": { + "etag": { + "description": "For optimistic concurrency control.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/NotificationSettingProperties", + "description": "Properties of the component.", + "readOnly": true, + "x-ms-client-flatten": true + } + } + }, + "NotificationSettingProperties": { + "description": "Model for properties of a NotificationSetting.", + "type": "object", + "properties": { + "actionGroups": { + "description": "List of action group resource ids to be notified", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + } + } + }, + "OperationListResult": { + "description": "Container for a list of operations supported by the resource provider.", + "type": "object", + "properties": { + "nextLink": { + "description": "URL to the next set of results.", + "type": "string", + "readOnly": true + }, + "value": { + "description": "List of operations.", + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "readOnly": true + } + } + }, + "Operation": { + "description": "Operation supported by the resource provider.", + "type": "object", + "properties": { + "display": { + "$ref": "#/definitions/OperationProperties", + "description": "The properties of the resource operation.", + "readOnly": true + }, + "name": { + "description": "The name of the resource operation.", + "type": "string", + "readOnly": true + }, + "origin": { + "description": "The origin of the operation.", + "type": "string", + "readOnly": true + } + } + }, + "OperationProperties": { + "description": "Properties of an operation supported by the resource provider.", + "type": "object", + "properties": { + "description": { + "description": "The description of the resource provider.", + "type": "string", + "readOnly": true + }, + "operation": { + "description": "This operation name.", + "type": "string", + "readOnly": true + }, + "provider": { + "description": "The provider name.", + "type": "string", + "readOnly": true + }, + "resource": { + "description": "The resource name.", + "type": "string", + "readOnly": true + } + } + }, + "ErrorFieldContract": { + "description": "Error field contract.", + "type": "object", + "properties": { + "code": { + "description": "Property level error code.", + "type": "string" + }, + "message": { + "description": "Human-readable representation of property-level error.", + "type": "string" + }, + "target": { + "description": "Property name.", + "type": "string" + } + } + }, + "ErrorResponse": { + "description": "Error body contract.", + "type": "object", + "properties": { + "code": { + "description": "Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response.", + "type": "string" + }, + "message": { + "description": "Human-readable representation of the error.", + "type": "string" + }, + "details": { + "description": "The list of invalid fields send in request, in case of validation error.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorFieldContract" + } + } + } + } + }, + "parameters": { + "api-version": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", + "required": true, + "type": "string", + "enum": [ + "2018-08-31-preview" + ] + }, + "$select": { + "name": "$select", + "in": "query", + "description": "Properties to be returned in the response.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$filter": { + "name": "$filter", + "in": "query", + "description": "Filter to be applied on the operation.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$apply": { + "name": "$apply", + "in": "query", + "description": "Apply aggregation.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$orderby": { + "name": "$orderby", + "in": "query", + "description": "Sort the result on one or more properties.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$expand": { + "name": "$expand", + "in": "query", + "description": "Include properties inline in the response.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$top": { + "name": "$top", + "in": "query", + "description": "Limit the result to the specified number of rows.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "$skiptoken": { + "name": "$skiptoken", + "in": "query", + "description": "The page-continuation token to use with a paged version of this API.", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "componentId": { + "name": "componentId", + "in": "path", + "description": "Component Id.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "monitorId": { + "name": "monitorId", + "in": "path", + "description": "Id of the Monitor.", + "required": true, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method" + }, + "monitorInstanceId": { + "name": "monitorInstanceId", + "in": "path", + "description": "MonitorInstance Id.", + "required": true, + "type": "string", + "format": "uuid", + "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" + } + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ] +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/ComponentsSummary_List.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/ComponentsSummary_List.json new file mode 100644 index 000000000000..7f4ac53823d8 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/ComponentsSummary_List.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "$select" : "OSType", + "$filter" : "HealthStateCategory eq 'Identity' and (ComponentTypeName eq 'Microsoft.Windows.Server.10.0.Full.Computer' or ComponentTypeName eq 'Microsoft.Linux.Universal.Computer') and WorkloadType eq 'BaseOS' and (ResourceGroupId eq 'viv_rg')", + "$apply" : "groupby((OperatingSystem,HealthState),aggregate(VmId with countdistinct as VmCount))", + "$orderby" : "Error", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + + "componentTypeGroupCategory": null, + + "vmId": null, + "vmName": null, + "vmTags": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": null, + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "operatingSystem": "Ubuntu 16.04 (x86_64)", + "errorVmCount": "0", + "warningVmCount": "0", + "successVmCount": "1", + "unknownVmCount": "0", + "osType": "Linux" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/componentsSummary", + "name": "componentsSummary", + "type": "Microsoft.WorkloadMonitor/componentsSummary" + }, + { + "properties": { + + "componentTypeGroupCategory": null, + + "vmId": null, + "vmName": null, + "vmTags": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": null, + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "operatingSystem": "Microsoft Windows Server 2016 Datacenter", + "errorVmCount": "2", + "warningVmCount": "0", + "successVmCount": "0", + "unknownVmCount": "4", + "osType": "Windows" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/componentsSummary", + "name": "componentsSummary", + "type": "Microsoft.WorkloadMonitor/componentsSummary" + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_Get.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_Get.json new file mode 100644 index 000000000000..1fd37bc11b47 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_Get.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "Canary-WLI-2", + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "componentTypeGroupCategory": null, + "vmId": null, + "vmName": null, + "vmTags": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": null, + "componentName": null, + "componentTypeId": "e22777a6-824b-0a08-9544-0609ff0de667", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "installType": "Full", + "powerPlan": "High performance", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_ListByResource.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_ListByResource.json new file mode 100644 index 000000000000..4a8ab7faa178 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Components_ListByResource.json @@ -0,0 +1,435 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:43:36+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T09:08:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:35:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:21:08+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:50:11+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:02:52+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:10:46+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='05a70c91-2163-d974-638d-2ddda2308153'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + }, + { + "properties": { + "componentTypeGroupCategory": null, + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmName": "Canary-WLI-2", + "vmTags": {}, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:10:36+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "monitorCategory": "EntityHealth", + "monitorType": "Aggregate", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/components/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/components" + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstancesSummary_List.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstancesSummary_List.json new file mode 100644 index 000000000000..3d3855911da0 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstancesSummary_List.json @@ -0,0 +1,1653 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "$select" : "MonitorId,MonitorName,MonitorDisplayName,MonitorType,MonitorCategory,ComponentName,ComponentTypeDisplayName", + "$filter" : "(ResourceGroupId eq 'viv_rg') and WorkloadType eq 'BaseOS' and HealthStateCategory eq 'CustomGroup' and MonitorKind eq 'Custom' and (MonitorType eq 'Unit') and (MonitorCategory eq 'PerformanceHealth' or MonitorCategory eq 'AvailabilityHealth' or MonitorCategory eq 'ConfigurationHealth' or MonitorCategory eq 'SecurityHealth')", + "$apply" : "groupby((MonitorName,HealthState),aggregate($count as Instances))", + "$orderby" : "Unhealthy desc", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "componentId": null, + "monitorId": "75472fe7-e406-32a6-4198-0502ecee1bfe", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.PercentCommittedBytesInUse", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "2", + "unknownInstances": "4", + "successInstances": "0", + "monitorDisplayName": "Percentage of Committed Memory in Use", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "c9db5e55-f3c8-7366-6b98-bc727e726a4b", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DHCPClientServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "1", + "unknownInstances": "4", + "successInstances": "1", + "monitorDisplayName": "DHCP Client Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.FirewallServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "1", + "unknownInstances": "4", + "successInstances": "1", + "monitorDisplayName": "Windows Firewall Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "6799aaae-533c-9a8d-331f-ea833db85d1d", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.RPCServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "1", + "unknownInstances": "4", + "successInstances": "1", + "monitorDisplayName": "RPC Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "37232a87-988f-6256-3033-ea0c102c2d43", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DNSClientServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "1", + "unknownInstances": "4", + "successInstances": "1", + "monitorDisplayName": "DNS Client Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "4585a2f7-87c5-54e7-2b76-81af1073aec8", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.ServerServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "1", + "unknownInstances": "4", + "successInstances": "1", + "monitorDisplayName": "Server Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "3c184dff-8813-38f9-e965-2a9561425180", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalDPCTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Total DPC Time Percentage", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "9a86ee3f-d133-b183-a400-6ad3a3834c86", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.WindowsRemoteManagementServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Windows Remote Management Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "94df5e8c-989a-f595-86b0-0baba4662bfb", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.CPUUtilization", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "CPU0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "CPU Percentage Utilization", + "componentTypeDisplayName": "Windows Server 2016 Processor" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "41eccc60-5578-2eea-e104-8bf7022ed5af", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryPagesPerSecond", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Memory Pages Per Second", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "33f2143c-d677-6d10-c676-2f2bac54bbbd", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.EventLogServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Windows Event Log Service Health", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "8966cbe8-38d2-57be-5937-3d43e38a3df5", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Disk 1", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "8", + "successInstances": "4", + "monitorDisplayName": "Average Disk Seconds Per Transfer", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "C:", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "10", + "successInstances": "2", + "monitorDisplayName": "Average Logical Disk Seconds Per Read", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "887e162a-74f4-2951-64e5-87dd5f076342", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryFreeSystemPageTableEntries", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Free System Page Table Entries", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "728733ca-14e2-9ddc-8ec8-5de911bdf35f", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedWrites", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ethernet 2", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "5", + "successInstances": "1", + "monitorDisplayName": "Percent Bandwidth Used Write", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "850400b6-9fd2-d927-bc47-9934dfe28845", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "D:", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "10", + "successInstances": "2", + "monitorDisplayName": "Average Logical Disk Seconds Per Transfer", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "c688a072-2a8f-6409-1895-a0cc363cb326", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Disk 1", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "8", + "successInstances": "4", + "monitorDisplayName": "Average Disk Seconds Per Read", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "e80001dc-3aa8-e5c8-f782-5b4ef144fd5c", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.PercentDPCTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "CPU0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "CPU DPC Time Percentage", + "componentTypeDisplayName": "Windows Server 2016 Processor" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "07cacb31-615d-5c7a-e118-fd55c17b5a2c", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedReads", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ethernet 2", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "5", + "successInstances": "1", + "monitorDisplayName": "Percent Bandwidth Used Read", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "8a16058b-d31e-c156-3460-2c6cae7bfc49", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalCPUUtilization", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Total CPU Utilization Percentage", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "584e5846-a4a3-a17a-26fd-25014f727ee9", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Disk 0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "8", + "successInstances": "4", + "monitorDisplayName": "Average Disk Seconds Per Write", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "062d163a-0742-73d9-1d9d-a582c82127e4", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Disk 1", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "8", + "successInstances": "4", + "monitorDisplayName": "Current Disk Queue Length", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "99dbb2f7-9335-40c1-562e-0bee9e43b029", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "C:", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "10", + "successInstances": "2", + "monitorDisplayName": "Average Disk Seconds Per Write (Logical Disk)", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "b12539ea-7122-af29-6af6-0047432bab6a", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedTotal", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ethernet 2", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "5", + "successInstances": "1", + "monitorDisplayName": "Percent Bandwidth Used Total", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "D:", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "10", + "successInstances": "2", + "monitorDisplayName": "Logical Disk Percent Idle Time", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "22e3b675-109e-9292-952e-7554604e3605", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "D:", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "10", + "successInstances": "2", + "monitorDisplayName": "Current Disk Queue Length (Logical Disk)", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "7af5bcb4-31e9-5ec9-268f-178c265a6c2c", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryAvailableMBytes", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "4", + "successInstances": "2", + "monitorDisplayName": "Available Megabytes of Memory", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Disk 1", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "8", + "successInstances": "4", + "monitorDisplayName": "Disk Percent Idle Time", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "d2d5f441-8445-c966-40e2-7678f5b56ea5", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.PercentFreeSpace.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "/", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "1", + "successInstances": "1", + "monitorDisplayName": "Logical Disk % Free Space", + "componentTypeDisplayName": "Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "f12a45f0-8f3a-7fb6-8282-e737564ede6f", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.PercentFreeInodes.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "/mnt", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "1", + "successInstances": "1", + "monitorDisplayName": "Logical Disk % Free Inodes", + "componentTypeDisplayName": "Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "c6767c76-e3a1-9325-0af3-77480268b100", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskReadTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "sdb", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "2", + "monitorDisplayName": "Disk Avg. Disk sec/Read", + "componentTypeDisplayName": "Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "e0a59c91-0156-ee90-d5c2-1b9042c15f81", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.TotalPercentProcessorTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ubuntu 16.04 (x86_64)", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Operating System Total Percent Processor Time", + "componentTypeDisplayName": "Universal Linux Operating System" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "ca5b387a-6b11-ddaa-f87e-61ba59c92009", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.FreeSpace.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "/mnt", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "1", + "successInstances": "1", + "monitorDisplayName": "Logical Disk Free Space", + "componentTypeDisplayName": "Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "b6e2320f-b09c-1075-ed42-d2044b12dc8c", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.AvailableMBytes.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ubuntu 16.04 (x86_64)", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Operating System Available Megabytes Memory", + "componentTypeDisplayName": "Universal Linux Operating System" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "c1c43ce8-1334-0673-2b67-0c778c1777d1", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.DiskHealth.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "sdb", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "2", + "monitorDisplayName": "Disk Health", + "componentTypeDisplayName": "Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "ab6dbe24-4877-43fe-ed57-00275eceb655", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskTransferTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "sda", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "2", + "monitorDisplayName": "Disk Avg. Disk sec/Transfer", + "componentTypeDisplayName": "Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "5304e4ed-54c3-ab52-62fa-e07da44cb840", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskWriteTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "sda", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "2", + "monitorDisplayName": "Disk Avg. Disk sec/Write", + "componentTypeDisplayName": "Physical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "d8651e54-d2f0-358c-4b51-10434cc525c7", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.DiskHealth.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "/", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "1", + "successInstances": "1", + "monitorDisplayName": "Logical Disk Health", + "componentTypeDisplayName": "Logical Disk" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "f5ba8972-426f-5ab7-1fa3-b124b54fec57", + "monitorName": "Microsoft.Linux.Universal.NetworkAdapter.Health.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "eth0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Network Adapter Health", + "componentTypeDisplayName": "Network Adapter" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "a8bc2cc6-dd99-5fbb-27c7-7ad2eac0e2ad", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.TotalPercentDPCTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Ubuntu 16.04 (x86_64)", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Operating System Total Percent DPC Time", + "componentTypeDisplayName": "Universal Linux Operating System" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "cf7aa0a0-ac57-0dc6-1251-b0225783f735", + "monitorName": "Microsoft.Linux.Universal.Processor.PercentProcessorTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Processor Percent Processor Time", + "componentTypeDisplayName": "Processor" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "99a75b34-dbf4-2b33-c0c2-0fdd888f23b7", + "monitorName": "Microsoft.Linux.Universal.Processor.PercentDPCTime.Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "0", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "0", + "successInstances": "1", + "monitorDisplayName": "Processor Percent DPC Time", + "componentTypeDisplayName": "Processor" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + }, + { + "properties": { + "componentId": null, + "monitorId": "1aa535e9-d09c-3557-297f-62923069ba81", + "monitorName": "Microsoft.Windows.Server.10.0.MaxConcurrentAPI.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + + + + "alertGeneration": null, + + "children": null, + "workspaceId": null, + "solutionId": null, + "workloadType": null, + "componentName": "Windows Operating System", + "componentTypeId": null, + "componentTypeName": null, + "healthState": "Uninitialized", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": null, + "aggregateProperties": { + "unhealthyInstances": "0", + "unknownInstances": "2", + "successInstances": "0", + "monitorDisplayName": "Windows Server 2016 Max Concurrent API Monitor", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)" + } + }, + "etag": null, + "id": "/providers/Microsoft.WorkloadMonitor/healthInstancesSummary", + "name": "healthInstancesSummary", + "type": "Microsoft.WorkloadMonitor/healthInstancesSummary" + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_Get.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_Get.json new file mode 100644 index 000000000000..e59e24c29f4b --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_Get.json @@ -0,0 +1,68 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "monitorInstanceId" : "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.FirewallServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:48:05+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Firewall Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_ListByResource.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_ListByResource.json new file mode 100644 index 000000000000..c5e670ff255c --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/MonitorInstances_ListByResource.json @@ -0,0 +1,3305 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.FirewallServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:48:05+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Firewall Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "b974db31-cf93-9d6b-740a-9f8508b92712", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "monitorType": "Aggregate", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:50:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_b974db31-cf93-9d6b-740a-9f8508b92712", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Core Windows Services Rollup", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=b974db31-cf93-9d6b-740a-9f8508b92712'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=b974db31-cf93-9d6b-740a-9f8508b92712'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "a6c69968-61aa-a6b9-db6e-83a0da6110ea", + "monitorName": "System.Health.AvailabilityState", + "monitorType": "Aggregate", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:02:04+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_a6c69968-61aa-a6b9-db6e-83a0da6110ea", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Availability", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=a6c69968-61aa-a6b9-db6e-83a0da6110ea'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=a6c69968-61aa-a6b9-db6e-83a0da6110ea'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "c9db5e55-f3c8-7366-6b98-bc727e726a4b", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DHCPClientServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:45:51+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_c9db5e55-f3c8-7366-6b98-bc727e726a4b", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "DHCP Client Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=c9db5e55-f3c8-7366-6b98-bc727e726a4b'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=c9db5e55-f3c8-7366-6b98-bc727e726a4b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:43:36+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "b787a678-ce4b-c473-b6b4-6e1dbf184a61", + "monitorName": "Microsoft.Windows.Server.Computer.OSAvailabilityRollup", + "monitorType": "Dependency", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:06:21+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_b787a678-ce4b-c473-b6b4-6e1dbf184a61", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Computer Operating System Availability Rollup", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=b787a678-ce4b-c473-b6b4-6e1dbf184a61'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=b787a678-ce4b-c473-b6b4-6e1dbf184a61'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "9a86ee3f-d133-b183-a400-6ad3a3834c86", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.WindowsRemoteManagementServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:47:58+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_9a86ee3f-d133-b183-a400-6ad3a3834c86", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Remote Management Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=9a86ee3f-d133-b183-a400-6ad3a3834c86'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=9a86ee3f-d133-b183-a400-6ad3a3834c86'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "6799aaae-533c-9a8d-331f-ea833db85d1d", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.RPCServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:46:12+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_6799aaae-533c-9a8d-331f-ea833db85d1d", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "RPC Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=6799aaae-533c-9a8d-331f-ea833db85d1d'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=6799aaae-533c-9a8d-331f-ea833db85d1d'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "75472fe7-e406-32a6-4198-0502ecee1bfe", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.PercentCommittedBytesInUse", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:39:48+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_75472fe7-e406-32a6-4198-0502ecee1bfe", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Percentage of Committed Memory in Use", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=75472fe7-e406-32a6-4198-0502ecee1bfe'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=75472fe7-e406-32a6-4198-0502ecee1bfe'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:48:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Logical Disk Seconds Per Read", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "887e162a-74f4-2951-64e5-87dd5f076342", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryFreeSystemPageTableEntries", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:10:45+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_887e162a-74f4-2951-64e5-87dd5f076342", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Free System Page Table Entries", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=887e162a-74f4-2951-64e5-87dd5f076342'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=887e162a-74f4-2951-64e5-87dd5f076342'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "a6c69968-61aa-a6b9-db6e-83a0da6110ea", + "monitorName": "System.Health.AvailabilityState", + "monitorType": "Aggregate", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T09:04:42+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_a6c69968-61aa-a6b9-db6e-83a0da6110ea", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Availability", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=a6c69968-61aa-a6b9-db6e-83a0da6110ea'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=a6c69968-61aa-a6b9-db6e-83a0da6110ea'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:48:09+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "3c184dff-8813-38f9-e965-2a9561425180", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalDPCTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:37:42+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_3c184dff-8813-38f9-e965-2a9561425180", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Total DPC Time Percentage", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=3c184dff-8813-38f9-e965-2a9561425180'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=3c184dff-8813-38f9-e965-2a9561425180'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "4585a2f7-87c5-54e7-2b76-81af1073aec8", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.ServerServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:48:20+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_4585a2f7-87c5-54e7-2b76-81af1073aec8", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Server Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=4585a2f7-87c5-54e7-2b76-81af1073aec8'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=4585a2f7-87c5-54e7-2b76-81af1073aec8'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "37232a87-988f-6256-3033-ea0c102c2d43", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DNSClientServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:45:42+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_37232a87-988f-6256-3033-ea0c102c2d43", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "DNS Client Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=37232a87-988f-6256-3033-ea0c102c2d43'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=37232a87-988f-6256-3033-ea0c102c2d43'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "50fd1db1-7111-d67e-3f81-e73203d073e3", + "monitorName": "Microsoft.Windows.Server.Computer.OSPerformanceRollup", + "monitorType": "Dependency", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:47:48+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_50fd1db1-7111-d67e-3f81-e73203d073e3", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Computer Operating System Performance Rollup", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=50fd1db1-7111-d67e-3f81-e73203d073e3'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=50fd1db1-7111-d67e-3f81-e73203d073e3'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "41eccc60-5578-2eea-e104-8bf7022ed5af", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryPagesPerSecond", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:43:54+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_41eccc60-5578-2eea-e104-8bf7022ed5af", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Memory Pages Per Second", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=41eccc60-5578-2eea-e104-8bf7022ed5af'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=41eccc60-5578-2eea-e104-8bf7022ed5af'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "e80001dc-3aa8-e5c8-f782-5b4ef144fd5c", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.PercentDPCTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:45:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_e80001dc-3aa8-e5c8-f782-5b4ef144fd5c", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "CPU DPC Time Percentage", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=e80001dc-3aa8-e5c8-f782-5b4ef144fd5c'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=e80001dc-3aa8-e5c8-f782-5b4ef144fd5c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "c688a072-2a8f-6409-1895-a0cc363cb326", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:48:37+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_c688a072-2a8f-6409-1895-a0cc363cb326", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Read", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=c688a072-2a8f-6409-1895-a0cc363cb326'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=c688a072-2a8f-6409-1895-a0cc363cb326'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T09:08:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "850400b6-9fd2-d927-bc47-9934dfe28845", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:50:20+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_850400b6-9fd2-d927-bc47-9934dfe28845", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Logical Disk Seconds Per Transfer", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=850400b6-9fd2-d927-bc47-9934dfe28845'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=850400b6-9fd2-d927-bc47-9934dfe28845'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "94df5e8c-989a-f595-86b0-0baba4662bfb", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.CPUUtilization", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:43:50+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_94df5e8c-989a-f595-86b0-0baba4662bfb", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "CPU Percentage Utilization", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=94df5e8c-989a-f595-86b0-0baba4662bfb'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=94df5e8c-989a-f595-86b0-0baba4662bfb'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "33f2143c-d677-6d10-c676-2f2bac54bbbd", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.EventLogServiceHealth", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:46:06+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_33f2143c-d677-6d10-c676-2f2bac54bbbd", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Event Log Service Health", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=33f2143c-d677-6d10-c676-2f2bac54bbbd'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=33f2143c-d677-6d10-c676-2f2bac54bbbd'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "99dbb2f7-9335-40c1-562e-0bee9e43b029", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:50:24+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_99dbb2f7-9335-40c1-562e-0bee9e43b029", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Write (Logical Disk)", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "99dbb2f7-9335-40c1-562e-0bee9e43b029", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:50:15+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_99dbb2f7-9335-40c1-562e-0bee9e43b029", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Write (Logical Disk)", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "850400b6-9fd2-d927-bc47-9934dfe28845", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:49:10+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_850400b6-9fd2-d927-bc47-9934dfe28845", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Logical Disk Seconds Per Transfer", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=850400b6-9fd2-d927-bc47-9934dfe28845'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=850400b6-9fd2-d927-bc47-9934dfe28845'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "584e5846-a4a3-a17a-26fd-25014f727ee9", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:43:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_584e5846-a4a3-a17a-26fd-25014f727ee9", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Write", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=584e5846-a4a3-a17a-26fd-25014f727ee9'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=584e5846-a4a3-a17a-26fd-25014f727ee9'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "8966cbe8-38d2-57be-5937-3d43e38a3df5", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:50:20+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_8966cbe8-38d2-57be-5937-3d43e38a3df5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Transfer", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "584e5846-a4a3-a17a-26fd-25014f727ee9", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerWrite", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:46:22+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_584e5846-a4a3-a17a-26fd-25014f727ee9", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Write", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=584e5846-a4a3-a17a-26fd-25014f727ee9'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=584e5846-a4a3-a17a-26fd-25014f727ee9'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:48:38+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Logical Disk Seconds Per Read", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "8966cbe8-38d2-57be-5937-3d43e38a3df5", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerTransfer", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:50:08+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_8966cbe8-38d2-57be-5937-3d43e38a3df5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Transfer", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "07cacb31-615d-5c7a-e118-fd55c17b5a2c", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedReads", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:42:23+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_07cacb31-615d-5c7a-e118-fd55c17b5a2c", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Percent Bandwidth Used Read", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=07cacb31-615d-5c7a-e118-fd55c17b5a2c'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=07cacb31-615d-5c7a-e118-fd55c17b5a2c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "194d2011-69ed-50bb-4d50-a394d48fb048", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.PerformanceRollup", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:45:48+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_194d2011-69ed-50bb-4d50-a394d48fb048", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Server 2016 Processor Performance Rollup Monitor", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=194d2011-69ed-50bb-4d50-a394d48fb048'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=194d2011-69ed-50bb-4d50-a394d48fb048'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "c688a072-2a8f-6409-1895-a0cc363cb326", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerRead", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T08:49:07+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_c688a072-2a8f-6409-1895-a0cc363cb326", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Average Disk Seconds Per Read", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=c688a072-2a8f-6409-1895-a0cc363cb326'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=c688a072-2a8f-6409-1895-a0cc363cb326'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "728733ca-14e2-9ddc-8ec8-5de911bdf35f", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedWrites", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:40:34+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_728733ca-14e2-9ddc-8ec8-5de911bdf35f", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Percent Bandwidth Used Write", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=728733ca-14e2-9ddc-8ec8-5de911bdf35f'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=728733ca-14e2-9ddc-8ec8-5de911bdf35f'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "1aa535e9-d09c-3557-297f-62923069ba81", + "monitorName": "Microsoft.Windows.Server.10.0.MaxConcurrentAPI.Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:56:44+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_1aa535e9-d09c-3557-297f-62923069ba81", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Server 2016 Max Concurrent API Monitor", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=1aa535e9-d09c-3557-297f-62923069ba81'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=1aa535e9-d09c-3557-297f-62923069ba81'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T14:47:55+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:50:04+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T14:43:38+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Disk Percent Idle Time", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "b12539ea-7122-af29-6af6-0047432bab6a", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedTotal", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:21:17+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_b12539ea-7122-af29-6af6-0047432bab6a", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Percent Bandwidth Used Total", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=b12539ea-7122-af29-6af6-0047432bab6a'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=b12539ea-7122-af29-6af6-0047432bab6a'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:43:45+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:48:17+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Disk Percent Idle Time", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T08:49:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:52:08+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "22e3b675-109e-9292-952e-7554604e3605", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:33:41+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_22e3b675-109e-9292-952e-7554604e3605", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Current Disk Queue Length (Logical Disk)", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=22e3b675-109e-9292-952e-7554604e3605'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=22e3b675-109e-9292-952e-7554604e3605'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "804fc44e-c49d-58f0-3b03-bf24f7d11663", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "CPU0", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:35:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_804fc44e-c49d-58f0-3b03-bf24f7d11663_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='804fc44e-c49d-58f0-3b03-bf24f7d11663',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "062d163a-0742-73d9-1d9d-a582c82127e4", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:34:04+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_062d163a-0742-73d9-1d9d-a582c82127e4", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Current Disk Queue Length", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=062d163a-0742-73d9-1d9d-a582c82127e4'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=062d163a-0742-73d9-1d9d-a582c82127e4'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "062d163a-0742-73d9-1d9d-a582c82127e4", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:43:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_062d163a-0742-73d9-1d9d-a582c82127e4", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Current Disk Queue Length", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=062d163a-0742-73d9-1d9d-a582c82127e4'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=062d163a-0742-73d9-1d9d-a582c82127e4'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "22e3b675-109e-9292-952e-7554604e3605", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.CurrentDiskQueueLength", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:34:01+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_22e3b675-109e-9292-952e-7554604e3605", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Current Disk Queue Length (Logical Disk)", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=22e3b675-109e-9292-952e-7554604e3605'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=22e3b675-109e-9292-952e-7554604e3605'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "8a16058b-d31e-c156-3460-2c6cae7bfc49", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalCPUUtilization", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:15:05+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_8a16058b-d31e-c156-3460-2c6cae7bfc49", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Total CPU Utilization Percentage", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=8a16058b-d31e-c156-3460-2c6cae7bfc49'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=8a16058b-d31e-c156-3460-2c6cae7bfc49'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:39:33+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Logical Disk Percent Idle Time", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "06400e6a-6bac-1717-1e0d-e28f31a2e88b", + "monitorId": "b8375781-0835-15b6-c782-f497b54b65ea", + "monitorName": "Microsoft.Windows.Server.Computer.HardwarePerformanceRollup", + "monitorType": "Dependency", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Canary-WLI-2", + "componentTypeId": "ea99500d-8d52-fc52-b5a5-10dcd1e9d2bd", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.Computer", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:50:13+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_06400e6a-6bac-1717-1e0d-e28f31a2e88b_b8375781-0835-15b6-c782-f497b54b65ea", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Windows Computer Hardware Performance Rollup", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Computer (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=b8375781-0835-15b6-c782-f497b54b65ea'", + "name": "ComponentId='06400e6a-6bac-1717-1e0d-e28f31a2e88b',MonitorId=b8375781-0835-15b6-c782-f497b54b65ea'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "1a526816-f757-7328-d0b2-7daf65fd919b", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 0", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:21:08+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_1a526816-f757-7328-d0b2-7daf65fd919b_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='1a526816-f757-7328-d0b2-7daf65fd919b',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:45:35+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "767aea7b-2a28-8c7b-9a61-153eeced9466", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Disk 1", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-22T08:50:11+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_767aea7b-2a28-8c7b-9a61-153eeced9466_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='767aea7b-2a28-8c7b-9a61-153eeced9466',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "ebf38b50-d78a-817b-89ee-0e5870c643ef", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "D:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:02:52+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_ebf38b50-d78a-817b-89ee-0e5870c643ef_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='ebf38b50-d78a-817b-89ee-0e5870c643ef',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "7db3eece-fd0d-fddd-3af7-f8371a914874", + "monitorName": "System.Health.PerformanceState", + "monitorType": "Aggregate", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T09:46:13+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_7db3eece-fd0d-fddd-3af7-f8371a914874", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Performance", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=7db3eece-fd0d-fddd-3af7-f8371a914874'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.PercentIdleTime", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-18T14:37:36+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Logical Disk Percent Idle Time", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Warning", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "05a70c91-2163-d974-638d-2ddda2308153", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "C:", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:10:46+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_05a70c91-2163-d974-638d-2ddda2308153_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='05a70c91-2163-d974-638d-2ddda2308153',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "3d945642-b98c-37b1-a75c-ee03cdb599ad", + "monitorId": "e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "monitorName": "System.Health.EntityState", + "monitorType": "Aggregate", + "monitorCategory": "EntityHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Ethernet 2", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-21T09:10:36+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_3d945642-b98c-37b1-a75c-ee03cdb599ad_e3ab86a1-34fa-35b5-b864-da4db993c0f5", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Entity Health", + "monitorKind": "Standard", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Success", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "name": "ComponentId='3d945642-b98c-37b1-a75c-ee03cdb599ad',MonitorId=e3ab86a1-34fa-35b5-b864-da4db993c0f5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + }, + { + "properties": { + "componentId": "d91ce384-b682-883a-d02b-129bf37f218b", + "monitorId": "7af5bcb4-31e9-5ec9-268f-178c265a6c2c", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryAvailableMBytes", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "healthStateChanges": null, + "alertGeneration": null, + "children": null, + "workspaceId": "d00ad535-951e-4c6b-ae1b-5d4a5c7a8a3d", + "solutionId": null, + "workloadType": "BaseOS", + "componentName": "Windows Operating System", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.Full.OperatingSystem", + "healthState": "Unknown", + "healthStateCategory": null, + "healthStateChangesStartTime": null, + "healthStateChangesEndTime": null, + "lastHealthStateChangeTime": "2018-08-19T09:17:06+05:30", + "aggregateProperties": { + "id": "a7f23fdb-e626-4f95-89aa-3a360a90861e_viv_rg_0f512229-ba29-4a4d-a9b8-d97b375ab8b1_canary-wli-2_d91ce384-b682-883a-d02b-129bf37f218b_7af5bcb4-31e9-5ec9-268f-178c265a6c2c", + "workloadId": "Canary-WLI-2", + "workloadId_Lower": "canary-wli-2", + "workloadResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2", + "workloadResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.workloadmonitor/workloadinsights/canary-wli-2", + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupId": "viv_rg", + "resourceGroupName_Lower": "viv_rg", + "vmId": "0f512229-ba29-4a4d-a9b8-d97b375ab8b1", + "vmResourceId": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.Compute/virtualMachines/Canary-WLI-2", + "machineResourceId_Lower": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/microsoft.compute/virtualmachines/canary-wli-2", + "monitorDisplayName": "Available Megabytes of Memory", + "monitorKind": "Custom", + "currentHealth_CustomOrder": "03_Unknown", + "previousHealth": "Error", + "version": "2016.127.20180613", + "edition": "2016-Datacenter", + "location": "westcentralus", + "vmTags": "", + "vmName": "Canary-WLI-2", + "vmName_Lower": "canary-wli-2", + "componentTypeDisplayName": "Windows Server 2016 Operating System (Full)", + "osType": "Windows", + "operatingSystem": "Microsoft Windows Server 2016 Datacenter" + } + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/healthInstances/ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=7af5bcb4-31e9-5ec9-268f-178c265a6c2c'", + "name": "ComponentId='d91ce384-b682-883a-d02b-129bf37f218b',MonitorId=7af5bcb4-31e9-5ec9-268f-178c265a6c2c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/healthInstances" + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Get.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Get.json new file mode 100644 index 000000000000..e0667b1d173d --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Get.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "monitorId" : "1bbf53b8-2557-a521-f7c1-1023de57367a", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "Monitor the number of free MBytes remaining on a logical disk.", + "monitorId": "1bbf53b8-2557-a521-f7c1-1023de57367a", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.MBFreeSpace", + "monitorDisplayName": "Windows Server 2016 Logical Disk Free Space (MB) Low", + "parentMonitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup", + "parentMonitorDisplayName": "Windows Server 2016 Logical Disk - Free Space Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 2000.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 1000.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 15, + "lookbackDuration": 0, + "documentationURL": "https://aka.ms/Tgp5nn", + "signalType": "Metrics", + "signalName": "Windows Server 2016 Logical Disk Free Space (MB) Low" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='1bbf53b8-2557-a521-f7c1-1023de57367a'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='1bbf53b8-2557-a521-f7c1-1023de57367a'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_ListByResource.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_ListByResource.json new file mode 100644 index 000000000000..4ec6f2919719 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_ListByResource.json @@ -0,0 +1,1843 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "Monitors the health of the Windows service for the Windows Firewall", + "monitorId": "052f9b7d-7bf0-7f61-966b-f372e207ef4e", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.FirewallServiceHealth", + "monitorDisplayName": "Windows Firewall Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Qt6xxb", + "signalType": "Metrics", + "signalName": "Windows Firewall Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='052f9b7d-7bf0-7f61-966b-f372e207ef4e'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter PhysicalDisk\\Current Disk Queue Length", + "monitorId": "062d163a-0742-73d9-1d9d-a582c82127e4", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.CurrentDiskQueueLength", + "monitorDisplayName": "Current Disk Queue Length", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 32.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/P2e17v", + "signalType": "Metrics", + "signalName": "Current Disk Queue Length (Physical Disk)" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='062d163a-0742-73d9-1d9d-a582c82127e4'", + "name": "ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='062d163a-0742-73d9-1d9d-a582c82127e4'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "This monitor checks percentage of used network adapter read bandwidth.", + "monitorId": "07cacb31-615d-5c7a-e118-fd55c17b5a2c", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedReads", + "monitorDisplayName": "Percent Bandwidth Used Read", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 60.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Dz7ed6", + "signalType": "Metrics", + "signalName": "Percent Bandwidth Used Read" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='07cacb31-615d-5c7a-e118-fd55c17b5a2c'", + "name": "ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='07cacb31-615d-5c7a-e118-fd55c17b5a2c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter LogicalDisk\\% Idle Time", + "monitorId": "08ec2bb4-32be-2fae-2d5a-6b65feb200a6", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.PercentIdleTime", + "monitorDisplayName": "Logical Disk Percent Idle Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThanOrEqual", + "threshold": 20.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/T5soxw", + "signalType": "Metrics", + "signalName": "Logical Disk Percent Idle Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='08ec2bb4-32be-2fae-2d5a-6b65feb200a6'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the number of free MBytes remaining on a logical disk.", + "monitorId": "1bbf53b8-2557-a521-f7c1-1023de57367a", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.MBFreeSpace", + "monitorDisplayName": "Windows Server 2016 Logical Disk Free Space (MB) Low", + "parentMonitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup", + "parentMonitorDisplayName": "Windows Server 2016 Logical Disk - Free Space Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 2000.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 1000.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Tgp5nn", + "signalType": "Metrics", + "signalName": "Windows Server 2016 Logical Disk Free Space (MB) Low" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='1bbf53b8-2557-a521-f7c1-1023de57367a'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='1bbf53b8-2557-a521-f7c1-1023de57367a'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter LogicalDisk\\Current Disk Queue Length", + "monitorId": "22e3b675-109e-9292-952e-7554604e3605", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.CurrentDiskQueueLength", + "monitorDisplayName": "Current Disk Queue Length (Logical Disk)", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 32.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/S8n12t", + "signalType": "Metrics", + "signalName": "Current Disk Queue Length (Logical Disk)" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='22e3b675-109e-9292-952e-7554604e3605'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='22e3b675-109e-9292-952e-7554604e3605'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the network adapter connection's health.", + "monitorId": "31124bfe-42b5-e042-3bd4-73e4e9c0c293", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.NetworkAdapterConnectionHealth", + "monitorDisplayName": "Network Adapter Connection Health", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Phljt5", + "signalType": "Metrics", + "signalName": "Network Adapter Connection Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='31124bfe-42b5-e042-3bd4-73e4e9c0c293'", + "name": "ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='31124bfe-42b5-e042-3bd4-73e4e9c0c293'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for the Windows Event Log", + "monitorId": "33f2143c-d677-6d10-c676-2f2bac54bbbd", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.EventLogServiceHealth", + "monitorDisplayName": "Windows Event Log Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Uapbve", + "signalType": "Metrics", + "signalName": "Windows Event Log Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='33f2143c-d677-6d10-c676-2f2bac54bbbd'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='33f2143c-d677-6d10-c676-2f2bac54bbbd'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for the DNS Client", + "monitorId": "37232a87-988f-6256-3033-ea0c102c2d43", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DNSClientServiceHealth", + "monitorDisplayName": "DNS Client Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/X383qq", + "signalType": "Metrics", + "signalName": "DNS Client Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='37232a87-988f-6256-3033-ea0c102c2d43'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='37232a87-988f-6256-3033-ea0c102c2d43'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the DPC Time Percentage.", + "monitorId": "3c184dff-8813-38f9-e965-2a9561425180", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalDPCTime", + "monitorDisplayName": "Total DPC Time Percentage", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 95.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Jdgd2d", + "signalType": "Metrics", + "signalName": "Total DPC Time Percentage" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='3c184dff-8813-38f9-e965-2a9561425180'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='3c184dff-8813-38f9-e965-2a9561425180'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter Memory\\MemoryPagesPerSecond", + "monitorId": "41eccc60-5578-2eea-e104-8bf7022ed5af", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryPagesPerSecond", + "monitorDisplayName": "Memory Pages Per Second", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 5000.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Lk8j8w", + "signalType": "Metrics", + "signalName": "Memory Pages Per Second" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='41eccc60-5578-2eea-e104-8bf7022ed5af'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='41eccc60-5578-2eea-e104-8bf7022ed5af'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for the Server", + "monitorId": "4585a2f7-87c5-54e7-2b76-81af1073aec8", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.ServerServiceHealth", + "monitorDisplayName": "Server Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Guptf8", + "signalType": "Metrics", + "signalName": "Server Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='4585a2f7-87c5-54e7-2b76-81af1073aec8'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='4585a2f7-87c5-54e7-2b76-81af1073aec8'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the percentage of free space remaining on a logical disk.", + "monitorId": "49BED621-2883-4951-A6EC-8083E362E662", + "monitorName": "Microsoft.Windows.Server.10.0.SystemLogicalDisk.PercentageFreeSpace", + "monitorDisplayName": "Windows Server 2016 System Logical Disk Free Space (%) Low", + "parentMonitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup", + "parentMonitorDisplayName": "Windows Server 2016 Logical Disk - Free Space Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 10.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 5.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Ba4v8t", + "signalType": "Metrics", + "signalName": "Windows Server 2016 System Logical Disk Free Space (%) Low" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='49BED621-2883-4951-A6EC-8083E362E662'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='49BED621-2883-4951-A6EC-8083E362E662'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the disk write latency (average disk seconds per write)", + "monitorId": "584e5846-a4a3-a17a-26fd-25014f727ee9", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerWrite", + "monitorDisplayName": "Average Disk Seconds Per Write", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/O5d8h4", + "signalType": "Metrics", + "signalName": "Avg. Physical Disk sec/Write" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='584e5846-a4a3-a17a-26fd-25014f727ee9'", + "name": "ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='584e5846-a4a3-a17a-26fd-25014f727ee9'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "\"Monitors the health of the Windows service for the Computer Browser. Please note that this monitor is not running on Nano Server (the state of the monitor will be always \"\"Healthy\"\").\"", + "monitorId": "65ca6ac7-9a2f-b749-6d5c-5e84d9239eb7", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.ComputerbrowserServiceHealth", + "monitorDisplayName": "Computer Browser Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/M2spjr", + "signalType": "Metrics", + "signalName": "Computer Browser Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='65ca6ac7-9a2f-b749-6d5c-5e84d9239eb7'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='65ca6ac7-9a2f-b749-6d5c-5e84d9239eb7'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for RPC", + "monitorId": "6799aaae-533c-9a8d-331f-ea833db85d1d", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.RPCServiceHealth", + "monitorDisplayName": "RPC Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Vfzs25", + "signalType": "Metrics", + "signalName": "RPC Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='6799aaae-533c-9a8d-331f-ea833db85d1d'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='6799aaae-533c-9a8d-331f-ea833db85d1d'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "This monitor checks percentage of used network adapter write bandwidth.", + "monitorId": "728733ca-14e2-9ddc-8ec8-5de911bdf35f", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedWrites", + "monitorDisplayName": "Percent Bandwidth Used Write", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 60.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Mh37pp", + "signalType": "Metrics", + "signalName": "Percent Bandwidth Used Write" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='728733ca-14e2-9ddc-8ec8-5de911bdf35f'", + "name": "ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='728733ca-14e2-9ddc-8ec8-5de911bdf35f'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter Memory\\% Committed Bytes in Use", + "monitorId": "75472fe7-e406-32a6-4198-0502ecee1bfe", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.PercentCommittedBytesInUse", + "monitorDisplayName": "Percentage of Committed Memory in Use", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 80.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Sv5zbp", + "signalType": "Metrics", + "signalName": "Percentage of Committed Memory in Use" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='75472fe7-e406-32a6-4198-0502ecee1bfe'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='75472fe7-e406-32a6-4198-0502ecee1bfe'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the available memory level.", + "monitorId": "7af5bcb4-31e9-5ec9-268f-178c265a6c2c", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryAvailableMBytes", + "monitorDisplayName": "Available Megabytes of Memory", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 100.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Kml1z1", + "signalType": "Metrics", + "signalName": "Available Megabytes of Memory" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='7af5bcb4-31e9-5ec9-268f-178c265a6c2c'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='7af5bcb4-31e9-5ec9-268f-178c265a6c2c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter LogicalDisk\\Avg Disk Sec Per Transfer", + "monitorId": "850400b6-9fd2-d927-bc47-9934dfe28845", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerTransfer", + "monitorDisplayName": "Average Logical Disk Seconds Per Transfer", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Ahcs1r", + "signalType": "Metrics", + "signalName": "Average Logical Disk Seconds Per Transfer" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='850400b6-9fd2-d927-bc47-9934dfe28845'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='850400b6-9fd2-d927-bc47-9934dfe28845'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter Memory\\Free System Page Table Entries", + "monitorId": "887e162a-74f4-2951-64e5-87dd5f076342", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.MemoryFreeSystemPageTableEntries", + "monitorDisplayName": "Free System Page Table Entries", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThanOrEqual", + "threshold": 5000.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Rdkgoc", + "signalType": "Metrics", + "signalName": "Free System Page Table Entries" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='887e162a-74f4-2951-64e5-87dd5f076342'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='887e162a-74f4-2951-64e5-87dd5f076342'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the disk read and write latency (average disk seconds per transfer).", + "monitorId": "8966cbe8-38d2-57be-5937-3d43e38a3df5", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerTransfer", + "monitorDisplayName": "Average Disk Seconds Per Transfer", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Dlgcp3", + "signalType": "Metrics", + "signalName": "Average Physical Disk Seconds Per Transfer" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "name": "ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='8966cbe8-38d2-57be-5937-3d43e38a3df5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the total CPU utilization of this virtual machine by correlating the Processor Information\\% Processor Time\\_Total and the System\\Processor Queue Length performance counters.", + "monitorId": "8a16058b-d31e-c156-3460-2c6cae7bfc49", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.TotalCPUUtilization", + "monitorDisplayName": "Total CPU Utilization Percentage", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 95.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Funkhc", + "signalType": "Metrics", + "signalName": "Total CPU Utilization Percentage" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='8a16058b-d31e-c156-3460-2c6cae7bfc49'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='8a16058b-d31e-c156-3460-2c6cae7bfc49'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors total CPU (Processor Information) utilization.", + "monitorId": "94df5e8c-989a-f595-86b0-0baba4662bfb", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.CPUUtilization", + "monitorDisplayName": "CPU Percentage Utilization", + "parentMonitorName": "Microsoft.Windows.Server.10.0.Processor.PerformanceRollup", + "parentMonitorDisplayName": "Windows Server 2016 Processor Performance Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 10.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/P89tpb", + "signalType": "Metrics", + "signalName": "CPU Percentage Utilization" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='933c8d32-3668-6c84-8855-11f301d04589',MonitorId='94df5e8c-989a-f595-86b0-0baba4662bfb'", + "name": "ComponentTypeId='933c8d32-3668-6c84-8855-11f301d04589',MonitorId='94df5e8c-989a-f595-86b0-0baba4662bfb'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the Percent DPC Time", + "monitorId": "98b42982-883a-bf96-5cde-9c6ec34a15e1", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalProcessor.PercentDPCTime", + "monitorDisplayName": "Logical CPU DPC Time Percentage", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "62b5c5f8-2990-5cc1-5da3-d2bb1694a50f", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalProcessor", + "componentTypeDisplayName": "Windows Server 2016 Logical Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 15.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Je0sif", + "signalType": "Metrics", + "signalName": "Logical CPU DPC Time Percentage" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='62b5c5f8-2990-5cc1-5da3-d2bb1694a50f',MonitorId='98b42982-883a-bf96-5cde-9c6ec34a15e1'", + "name": "ComponentTypeId='62b5c5f8-2990-5cc1-5da3-d2bb1694a50f',MonitorId='98b42982-883a-bf96-5cde-9c6ec34a15e1'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter LogicalDisk\\Avg Disk Sec Per Write", + "monitorId": "99dbb2f7-9335-40c1-562e-0bee9e43b029", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerWrite", + "monitorDisplayName": "Average Disk Seconds Per Write (Logical Disk)", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/X1b8r7", + "signalType": "Metrics", + "signalName": "Average Disk Seconds Per Write (Logical Disk)" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='99dbb2f7-9335-40c1-562e-0bee9e43b029'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors whether the file system has reported an error with the file system or corruption on the logical disk.", + "monitorId": "9a7e3dbb-0f5d-34e5-69cf-2909fbe5502c", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvailabilityHealth", + "monitorDisplayName": "File system error or corruption", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/AA1lnq6", + "signalType": "Metrics", + "signalName": "File system error or corruption" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='9a7e3dbb-0f5d-34e5-69cf-2909fbe5502c'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='9a7e3dbb-0f5d-34e5-69cf-2909fbe5502c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for the Windows Remote Management", + "monitorId": "9a86ee3f-d133-b183-a400-6ad3a3834c86", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.WindowsRemoteManagementServiceHealth", + "monitorDisplayName": "Windows Remote Management Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Pphn10", + "signalType": "Metrics", + "signalName": "Windows Remote Management Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='9a86ee3f-d133-b183-a400-6ad3a3834c86'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='9a86ee3f-d133-b183-a400-6ad3a3834c86'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the number of free MBytes remaining on a system logical disk.", + "monitorId": "F7799110-7D89-42D4-B404-3EC8FAF24C07", + "monitorName": "Microsoft.Windows.Server.10.0.SystemLogicalDisk.MBFreeSpace", + "monitorDisplayName": "Windows Server 2016 System Logical Disk Free Space (MB) Low", + "parentMonitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup", + "parentMonitorDisplayName": "Windows Server 2016 Logical Disk - Free Space Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 500.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 300.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Tgp5nn", + "signalType": "Metrics", + "signalName": "Windows Server 2016 System Logical Disk Free Space (MB) Low" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='F7799110-7D89-42D4-B404-3EC8FAF24C07'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='F7799110-7D89-42D4-B404-3EC8FAF24C07'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "This monitor checks percentage of total used network adapter bandwidth..", + "monitorId": "b12539ea-7122-af29-6af6-0047432bab6a", + "monitorName": "Microsoft.Windows.Server.10.0.NetworkAdapter.PercentBandwidthUsedTotal", + "monitorDisplayName": "Percent Bandwidth Used Total", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "794a5028-be4c-caf5-3063-d4a75999f3c4", + "componentTypeName": "Microsoft.Windows.Server.10.0.NetworkAdapter", + "componentTypeDisplayName": "Windows Server 2016 Network Adapter", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 75.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Vfb5r6", + "signalType": "Metrics", + "signalName": "Percent Bandwidth Used Total" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='b12539ea-7122-af29-6af6-0047432bab6a'", + "name": "ComponentTypeId='794a5028-be4c-caf5-3063-d4a75999f3c4',MonitorId='b12539ea-7122-af29-6af6-0047432bab6a'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter PhysicalDisk\\% Idle Time", + "monitorId": "c2396f9e-22eb-9a72-0149-ea3b9a219e64", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.PercentIdleTime", + "monitorDisplayName": "Disk Percent Idle Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThanOrEqual", + "threshold": 20.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Szk5fs", + "signalType": "Metrics", + "signalName": "Physical Disk Percent Idle Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "name": "ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='c2396f9e-22eb-9a72-0149-ea3b9a219e64'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the average seconds per read operation to disk.", + "monitorId": "c688a072-2a8f-6409-1895-a0cc363cb326", + "monitorName": "Microsoft.Windows.Server.10.0.PhysicalDisk.AvgDiskSecPerRead", + "monitorDisplayName": "Average Disk Seconds Per Read", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "d4a60d0b-5d4e-d1b2-e215-2027a73ab38e", + "componentTypeName": "Microsoft.Windows.Server.10.0.PhysicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Lptpaz", + "signalType": "Metrics", + "signalName": "Average Physical Disk Seconds Per Read" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='c688a072-2a8f-6409-1895-a0cc363cb326'", + "name": "ComponentTypeId='d4a60d0b-5d4e-d1b2-e215-2027a73ab38e',MonitorId='c688a072-2a8f-6409-1895-a0cc363cb326'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the health of the Windows service for the DHCP Client", + "monitorId": "c9db5e55-f3c8-7366-6b98-bc727e726a4b", + "monitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.DHCPClientServiceHealth", + "monitorDisplayName": "DHCP Client Service Health", + "parentMonitorName": "Microsoft.Windows.Server.10.0.OperatingSystem.CoreServicesRollup", + "parentMonitorDisplayName": "Core Windows Services Rollup", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2dd80822-b238-41ed-2b0c-ccc3f8d0ad92", + "componentTypeName": "Microsoft.Windows.Server.10.0.OperatingSystem", + "componentTypeDisplayName": "Windows Server 2016 Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 4.0 + }, + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 4.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Su32xw", + "signalType": "Metrics", + "signalName": "DHCP Client Service Health" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='c9db5e55-f3c8-7366-6b98-bc727e726a4b'", + "name": "ComponentTypeId='2dd80822-b238-41ed-2b0c-ccc3f8d0ad92',MonitorId='c9db5e55-f3c8-7366-6b98-bc727e726a4b'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "\"This monitor runs on a periodic basis to check the fragmentation levels of all logical drives. If fragmentation levels are found to be above threshold then by default the state of the monitor will change to \"\"Warning\"\" and an alert will be generated. \"", + "monitorId": "d0280a80-6d34-03fa-70f0-ced62db76f8a", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.DefragAnalysis", + "monitorDisplayName": "Logical Disk Fragmentation Level", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 10.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/AA1pjnb", + "signalType": "Metrics", + "signalName": "Logical Disk Fragmentation Level" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='d0280a80-6d34-03fa-70f0-ced62db76f8a'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='d0280a80-6d34-03fa-70f0-ced62db76f8a'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors total Logical CPU utilization.", + "monitorId": "e32efaa3-7dcb-5ff2-804a-6dd9e688b136", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalProcessor.CPUUtilization", + "monitorDisplayName": "Logical CPU Percentage Utilization", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "62b5c5f8-2990-5cc1-5da3-d2bb1694a50f", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalProcessor", + "componentTypeDisplayName": "Windows Server 2016 Logical Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 95.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Jha5zu", + "signalType": "Metrics", + "signalName": "Logical CPU Percentage Utilization" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='62b5c5f8-2990-5cc1-5da3-d2bb1694a50f',MonitorId='e32efaa3-7dcb-5ff2-804a-6dd9e688b136'", + "name": "ComponentTypeId='62b5c5f8-2990-5cc1-5da3-d2bb1694a50f',MonitorId='e32efaa3-7dcb-5ff2-804a-6dd9e688b136'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitors the Percent DPC Time", + "monitorId": "e80001dc-3aa8-e5c8-f782-5b4ef144fd5c", + "monitorName": "Microsoft.Windows.Server.10.0.Processor.PercentDPCTime", + "monitorDisplayName": "CPU DPC Time Percentage", + "parentMonitorName": "Microsoft.Windows.Server.10.0.Processor.PerformanceRollup", + "parentMonitorDisplayName": "Windows Server 2016 Processor Performance Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "933c8d32-3668-6c84-8855-11f301d04589", + "componentTypeName": "Microsoft.Windows.Server.10.0.Processor", + "componentTypeDisplayName": "Windows Server 2016 Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThanOrEqual", + "threshold": 10.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Py15w0", + "signalType": "Metrics", + "signalName": "CPU DPC Time Percentage" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='933c8d32-3668-6c84-8855-11f301d04589',MonitorId='e80001dc-3aa8-e5c8-f782-5b4ef144fd5c'", + "name": "ComponentTypeId='933c8d32-3668-6c84-8855-11f301d04589',MonitorId='e80001dc-3aa8-e5c8-f782-5b4ef144fd5c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the percentage of free space remaining on a logical disk.", + "monitorId": "e84049e2-1e8e-d630-2c90-f9201ec1f1d9", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.PercentageFreeSpace", + "monitorDisplayName": "Windows Server 2016 Logical Disk Free Space (%) Low", + "parentMonitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.FreeSpaceMonitorRollup", + "parentMonitorDisplayName": "Windows Server 2016 Logical Disk - Free Space Rollup Monitor", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 10.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 5.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Ba4v8t", + "signalType": "Metrics", + "signalName": "Windows Server 2016 Logical Disk Free Space (%) Low" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='e84049e2-1e8e-d630-2c90-f9201ec1f1d9'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='e84049e2-1e8e-d630-2c90-f9201ec1f1d9'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Monitor the performance counter LogicalDisk\\Avg Disk Sec Per Read", + "monitorId": "f69b8b3f-3ba6-adf0-cdec-7c01b385d13c", + "monitorName": "Microsoft.Windows.Server.10.0.LogicalDisk.AvgDiskSecPerRead", + "monitorDisplayName": "Average Logical Disk Seconds Per Read", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "75582e9b-cae6-397b-6764-f7cf6cc620b0", + "componentTypeName": "Microsoft.Windows.Server.10.0.LogicalDisk", + "componentTypeDisplayName": "Windows Server 2016 Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "GreaterThan", + "threshold": 40.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/No0zcd", + "signalType": "Metrics", + "signalName": "Average Logical Disk Seconds Per Read" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "name": "ComponentTypeId='75582e9b-cae6-397b-6764-f7cf6cc620b0',MonitorId='f69b8b3f-3ba6-adf0-cdec-7c01b385d13c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Disk Avg. Disk sec/Write Monitor", + "monitorId": "5304e4ed-54c3-ab52-62fa-e07da44cb840", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskWriteTime.Monitor", + "monitorDisplayName": "Disk Avg. Disk sec/Write", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "fe9c24c5-fcff-0157-6f73-3befd029e937", + "componentTypeName": "Microsoft.Linux.Universal.PhysicalDisk", + "componentTypeDisplayName": "Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 50.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Pxy3uy", + "signalType": "Metrics", + "signalName": "Avg. Disk sec/Write" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='5304e4ed-54c3-ab52-62fa-e07da44cb840'", + "name": "ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='5304e4ed-54c3-ab52-62fa-e07da44cb840'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Processor Percent DPC Time Monitor", + "monitorId": "99a75b34-dbf4-2b33-c0c2-0fdd888f23b7", + "monitorName": "Microsoft.Linux.Universal.Processor.PercentDPCTime.Monitor", + "monitorDisplayName": "Processor Percent DPC Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "e4ef3661-5e63-98a7-48a7-7aed8844ae5a", + "componentTypeName": "Microsoft.Linux.Universal.Processor", + "componentTypeDisplayName": "Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 15.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Cyaftj", + "signalType": "Metrics", + "signalName": "% DPC Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='e4ef3661-5e63-98a7-48a7-7aed8844ae5a',MonitorId='99a75b34-dbf4-2b33-c0c2-0fdd888f23b7'", + "name": "ComponentTypeId='e4ef3661-5e63-98a7-48a7-7aed8844ae5a',MonitorId='99a75b34-dbf4-2b33-c0c2-0fdd888f23b7'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Operating System Available Megabytes Swap Space Monitor", + "monitorId": "9cf88dc3-2ef7-8824-e79f-f42b761651f6", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.AvailableMBytesSwap.Monitor", + "monitorDisplayName": "Operating System Available Megabytes Swap Space", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "8f687817-8bf0-3b8e-b424-6b75ea2168b4", + "componentTypeName": "Microsoft.Linux.Universal.OperatingSystem", + "componentTypeDisplayName": "Universal Linux Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 2500.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Igz0hf", + "signalType": "Metrics", + "signalName": "Available MBytes Swap" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='9cf88dc3-2ef7-8824-e79f-f42b761651f6'", + "name": "ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='9cf88dc3-2ef7-8824-e79f-f42b761651f6'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Operating System Total Percent DPC Time Monitor", + "monitorId": "a8bc2cc6-dd99-5fbb-27c7-7ad2eac0e2ad", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.TotalPercentDPCTime.Monitor", + "monitorDisplayName": "Operating System Total Percent DPC Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "8f687817-8bf0-3b8e-b424-6b75ea2168b4", + "componentTypeName": "Microsoft.Linux.Universal.OperatingSystem", + "componentTypeDisplayName": "Universal Linux Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 15.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Eiazxh", + "signalType": "Metrics", + "signalName": "% DPC Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='a8bc2cc6-dd99-5fbb-27c7-7ad2eac0e2ad'", + "name": "ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='a8bc2cc6-dd99-5fbb-27c7-7ad2eac0e2ad'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Disk Avg. Disk sec/Transfer Monitor", + "monitorId": "ab6dbe24-4877-43fe-ed57-00275eceb655", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskTransferTime.Monitor", + "monitorDisplayName": "Disk Avg. Disk sec/Transfer", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "fe9c24c5-fcff-0157-6f73-3befd029e937", + "componentTypeName": "Microsoft.Linux.Universal.PhysicalDisk", + "componentTypeDisplayName": "Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 50.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Ctv9vl", + "signalType": "Metrics", + "signalName": "Avg. Disk sec/Transfer" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='ab6dbe24-4877-43fe-ed57-00275eceb655'", + "name": "ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='ab6dbe24-4877-43fe-ed57-00275eceb655'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Operating System Available Megabytes Memory Monitor", + "monitorId": "b6e2320f-b09c-1075-ed42-d2044b12dc8c", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.AvailableMBytes.Monitor", + "monitorDisplayName": "Operating System Available Megabytes Memory", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "8f687817-8bf0-3b8e-b424-6b75ea2168b4", + "componentTypeName": "Microsoft.Linux.Universal.OperatingSystem", + "componentTypeDisplayName": "Universal Linux Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 2500.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Jxnrt6", + "signalType": "Metrics", + "signalName": "Available MBytes Memory" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='b6e2320f-b09c-1075-ed42-d2044b12dc8c'", + "name": "ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='b6e2320f-b09c-1075-ed42-d2044b12dc8c'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Disk Health Monitor", + "monitorId": "c1c43ce8-1334-0673-2b67-0c778c1777d1", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.DiskHealth.Monitor", + "monitorDisplayName": "Disk Health", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "fe9c24c5-fcff-0157-6f73-3befd029e937", + "componentTypeName": "Microsoft.Linux.Universal.PhysicalDisk", + "componentTypeDisplayName": "Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 1.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/AA1prgm", + "signalType": "Metrics", + "signalName": "Physical Disk Online" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='c1c43ce8-1334-0673-2b67-0c778c1777d1'", + "name": "ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='c1c43ce8-1334-0673-2b67-0c778c1777d1'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Disk Avg. Disk sec/Read Monitor", + "monitorId": "c6767c76-e3a1-9325-0af3-77480268b100", + "monitorName": "Microsoft.Linux.Universal.PhysicalDisk.AverageDiskReadTime.Monitor", + "monitorDisplayName": "Disk Avg. Disk sec/Read", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "fe9c24c5-fcff-0157-6f73-3befd029e937", + "componentTypeName": "Microsoft.Linux.Universal.PhysicalDisk", + "componentTypeDisplayName": "Physical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 50.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/T5y9gd", + "signalType": "Metrics", + "signalName": "Avg. Disk sec/Read" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='c6767c76-e3a1-9325-0af3-77480268b100'", + "name": "ComponentTypeId='fe9c24c5-fcff-0157-6f73-3befd029e937',MonitorId='c6767c76-e3a1-9325-0af3-77480268b100'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Logical Disk Free Space Monitor", + "monitorId": "ca5b387a-6b11-ddaa-f87e-61ba59c92009", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.FreeSpace.Monitor", + "monitorDisplayName": "Logical Disk Free Space", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "8de0f51c-45f9-e595-eb0e-8d353bc06097", + "componentTypeName": "Microsoft.Linux.Universal.LogicalDisk", + "componentTypeDisplayName": "Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 100.0 + }, + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 200.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/H2eso6", + "signalType": "Metrics", + "signalName": "Free Megabytes" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='ca5b387a-6b11-ddaa-f87e-61ba59c92009'", + "name": "ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='ca5b387a-6b11-ddaa-f87e-61ba59c92009'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Processor Percent Processor Time Monitor", + "monitorId": "cf7aa0a0-ac57-0dc6-1251-b0225783f735", + "monitorName": "Microsoft.Linux.Universal.Processor.PercentProcessorTime.Monitor", + "monitorDisplayName": "Processor Percent Processor Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "e4ef3661-5e63-98a7-48a7-7aed8844ae5a", + "componentTypeName": "Microsoft.Linux.Universal.Processor", + "componentTypeDisplayName": "Processor", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 95.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Yadryt", + "signalType": "Metrics", + "signalName": "% Processor Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='e4ef3661-5e63-98a7-48a7-7aed8844ae5a',MonitorId='cf7aa0a0-ac57-0dc6-1251-b0225783f735'", + "name": "ComponentTypeId='e4ef3661-5e63-98a7-48a7-7aed8844ae5a',MonitorId='cf7aa0a0-ac57-0dc6-1251-b0225783f735'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Logical Disk % Free Space Monitor", + "monitorId": "d2d5f441-8445-c966-40e2-7678f5b56ea5", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.PercentFreeSpace.Monitor", + "monitorDisplayName": "Logical Disk % Free Space", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "8de0f51c-45f9-e595-eb0e-8d353bc06097", + "componentTypeName": "Microsoft.Linux.Universal.LogicalDisk", + "componentTypeDisplayName": "Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 5.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Cdk17d", + "signalType": "Metrics", + "signalName": "% Free Space" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='d2d5f441-8445-c966-40e2-7678f5b56ea5'", + "name": "ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='d2d5f441-8445-c966-40e2-7678f5b56ea5'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Logical Disk Health Monitor", + "monitorId": "d8651e54-d2f0-358c-4b51-10434cc525c7", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.DiskHealth.Monitor", + "monitorDisplayName": "Logical Disk Health", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "8de0f51c-45f9-e595-eb0e-8d353bc06097", + "componentTypeName": "Microsoft.Linux.Universal.LogicalDisk", + "componentTypeDisplayName": "Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 1.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Ji6sk2", + "signalType": "Metrics", + "signalName": "Logical Disk Online" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='d8651e54-d2f0-358c-4b51-10434cc525c7'", + "name": "ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='d8651e54-d2f0-358c-4b51-10434cc525c7'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Operating System Total Percent Processor Time Monitor", + "monitorId": "e0a59c91-0156-ee90-d5c2-1b9042c15f81", + "monitorName": "Microsoft.Linux.Universal.OperatingSystem.TotalPercentProcessorTime.Monitor", + "monitorDisplayName": "Operating System Total Percent Processor Time", + "parentMonitorName": "System.Health.PerformanceState", + "parentMonitorDisplayName": "Performance", + "monitorType": "Unit", + "monitorCategory": "PerformanceHealth", + "componentTypeId": "8f687817-8bf0-3b8e-b424-6b75ea2168b4", + "componentTypeName": "Microsoft.Linux.Universal.OperatingSystem", + "componentTypeDisplayName": "Universal Linux Operating System", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "GreaterThan", + "threshold": 95.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Lfg682", + "signalType": "Metrics", + "signalName": "% Processor Time" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='e0a59c91-0156-ee90-d5c2-1b9042c15f81'", + "name": "ComponentTypeId='8f687817-8bf0-3b8e-b424-6b75ea2168b4',MonitorId='e0a59c91-0156-ee90-d5c2-1b9042c15f81'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Universal Linux Logical Disk % Free Inodes Monitor", + "monitorId": "f12a45f0-8f3a-7fb6-8282-e737564ede6f", + "monitorName": "Microsoft.Linux.Universal.LogicalDisk.PercentFreeInodes.Monitor", + "monitorDisplayName": "Logical Disk % Free Inodes", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "8de0f51c-45f9-e595-eb0e-8d353bc06097", + "componentTypeName": "Microsoft.Linux.Universal.LogicalDisk", + "componentTypeDisplayName": "Logical Disk", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 5.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Xd9mqf", + "signalType": "Metrics", + "signalName": "% Free Inodes" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='f12a45f0-8f3a-7fb6-8282-e737564ede6f'", + "name": "ComponentTypeId='8de0f51c-45f9-e595-eb0e-8d353bc06097',MonitorId='f12a45f0-8f3a-7fb6-8282-e737564ede6f'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + }, + { + "properties": { + "description": "Network Adapter Health", + "monitorId": "f5ba8972-426f-5ab7-1fa3-b124b54fec57", + "monitorName": "Microsoft.Linux.Universal.NetworkAdapter.Health.Monitor", + "monitorDisplayName": "Network Adapter Health", + "parentMonitorName": "System.Health.AvailabilityState", + "parentMonitorDisplayName": "Availability", + "monitorType": "Unit", + "monitorCategory": "AvailabilityHealth", + "componentTypeId": "2888a81f-fe53-37ad-4d5f-cec1c78b430d", + "componentTypeName": "Microsoft.Linux.Universal.NetworkAdapter", + "componentTypeDisplayName": "Network Adapter", + "monitorState": "Enabled", + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 1.0 + } + ], + "alertGeneration": "Enabled", + "frequency": 10, + "lookbackDuration": 20, + "documentationURL": "https://aka.ms/Wcjqpq", + "signalType": "Metrics", + "signalName": "Enabled state" + }, + "etag": null, + "id": "/subscriptions/a7f23fdb-e626-4f95-89aa-3a360a90861e/resourcegroups/viv_rg/providers/Microsoft.WorkloadMonitor/workloadInsights/Canary-WLI-2/monitors/ComponentTypeId='2888a81f-fe53-37ad-4d5f-cec1c78b430d',MonitorId='f5ba8972-426f-5ab7-1fa3-b124b54fec57'", + "name": "ComponentTypeId='2888a81f-fe53-37ad-4d5f-cec1c78b430d',MonitorId='f5ba8972-426f-5ab7-1fa3-b124b54fec57'", + "type": "Microsoft.WorkloadMonitor/workloadInsights/monitors" + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Update.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Update.json new file mode 100644 index 000000000000..2a9c8e4498e0 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Monitors_Update.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType" : "virtualMachines", + "resourceName" : "Canary-WLI-2", + "monitorId" : "1bbf53b8-2557-a521-f7c1-1023de57367a", + "api-version": "2018-08-31-preview", + "body":{ + "properties": { + "criteria": [ + { + "healthState": "Warning", + "comparisonOperator": "LessThan", + "threshold": 2100.0 + }, + { + "healthState": "Error", + "comparisonOperator": "LessThan", + "threshold": 1100.0 + } + ], + "alertGeneration": "Disabled" + } + } + }, + "responses": { + "200": { + "body": { + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/NotificationSettings_ListByResource.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/NotificationSettings_ListByResource.json new file mode 100644 index 000000000000..8f1c388fe849 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/NotificationSettings_ListByResource.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "a7f23fdb-e626-4f95-89aa-3a360a90861e", + "resourceGroupName": "viv_rg", + "resourceNamespace": "Microsoft.Compute", + "resourceType": "virtualMachines", + "resourceName": "Canary-WLI-2", + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "etag": null, + "properties": { + "actionGroups": [ + + ] + } + } + ], + "nextLink": null + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Operations_List.json b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Operations_List.json new file mode 100644 index 000000000000..959174d2cc49 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/microsoft.workloadmonitor/preview/2018-08-31-preview/examples/Operations_List.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "api-version": "2018-08-31-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.WorkloadMonitor/operations/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "operations", + "operation": "Get operations", + "description": "Gets the supported operations" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/monitorInstancesSummary/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "operation": "Get monitor instances summary", + "description": "Gets summary of monitor instances" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/componentsSummary/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Components summary", + "operation": "Get components summary", + "description": "Gets summary of components" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/monitorInstances/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Monitor instances", + "operation": "Get monitor instances", + "description": "Gets instances of monitors for the resource" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/components/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Components", + "operation": "Get components", + "description": "Gets components for the resource" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/monitors/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Monitors", + "operation": "Get monitors", + "description": "Gets monitors for the resource" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/monitors/write", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Monitors", + "operation": "Configure monitor", + "description": "Configure monitor for the resource" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/notificationSettings/read", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Notification settings", + "operation": "Get notification settings", + "description": "Gets notification settings for the resource" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.WorkloadMonitor/notificationSettings/write", + "display": { + "provider": "Microsoft.WorkloadMonitor", + "resource": "Notification settings", + "operation": "Configure notification settings", + "description": "Configure notification settings for the resource" + }, + "origin": "user,system" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/workloadmonitor/resource-manager/readme.md b/specification/workloadmonitor/resource-manager/readme.md new file mode 100644 index 000000000000..91dbd56a9656 --- /dev/null +++ b/specification/workloadmonitor/resource-manager/readme.md @@ -0,0 +1,44 @@ +# Microsoft.WorkloadMonitor + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Microsoft.WorkloadMonitor. + +--- +## Getting Started +To build the SDK for Microsoft.WorkloadMonitor, 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 API. + +``` yaml +openapi-type: arm +tag: package-2018-08-preview +``` + + +### Tag: package-2018-08-preview + +These settings apply only when `--tag=package-2018-08-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-08-preview' +input-file: +- microsoft.workloadmonitor/preview/2018-08-31-preview/Microsoft.WorkloadMonitor.json +``` + +``` yaml +directive: +- suppress: + - R3026 # Create/Update/Delete operations are not exposed. +``` From 53d47715ab2a232677b26b385fe4a3a254ffef27 Mon Sep 17 00:00:00 2001 From: hari-bodicherla <43284966+hari-bodicherla@users.noreply.github.com> Date: Mon, 24 Sep 2018 09:23:00 -0700 Subject: [PATCH 32/39] Swagger changes for adding diffdisksettings property for the Ephemeral OS Disks (#3944) * Added diffDiskSettings property as part of Swagger changes needed for Ephemeral VM\VMSS * updated comment * updated swagger specs for diffdisksettings property * updated swagger spec comments for diff disk settings [property * added example to create Diff OS disk scaleset * updated 2018-10-01 version specs with diffdisk property --- .../stable/2018-06-01/compute.json | 31 +++ .../CreateAScaleSetWithDiffOsDisk.json | 239 ++++++++++++++++++ .../stable/2018-10-01/compute.json | 31 +++ .../CreateAScaleSetWithDiffOsDisk.json | 239 ++++++++++++++++++ 4 files changed, 540 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAScaleSetWithDiffOsDisk.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithDiffOsDisk.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json index 028fff2d752b..6cf6f3c74c4a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json @@ -2222,6 +2222,9 @@ }, "Create a scale set with virtual machines in different zones.": { "$ref": "./examples/CreateAScaleSetWithVMsInDifferentZones.json" + }, + "Create a scale set with differencing os disks.": { + "$ref": "./examples/CreateAScaleSetWithDiffOsDisk.json" } } }, @@ -5188,6 +5191,26 @@ "modelAsString": true } }, + "DiffDiskOption": { + "type": "string", + "description": "Specifies the differencing disk option for operating system disk.", + "enum": [ + "Local" + ], + "x-ms-enum": { + "name": "DiffDiskOptions", + "modelAsString": true + } + }, + "DiffDiskSettings": { + "properties": { + "option": { + "$ref": "#/definitions/DiffDiskOption", + "description": "Specifies the differencing disk settings for operating system disk." + } + }, + "description": "Describes the parameters of differencing disk settings that can be be specified for operating system disk.

    NOTE: The differencing disk settings can only be specified for managed disk." + }, "ManagedDiskParameters": { "properties": { "storageAccountType": { @@ -5240,6 +5263,10 @@ "type": "boolean", "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." }, + "diffDiskSettings": { + "$ref": "#/definitions/DiffDiskSettings", + "description": "Specifies the differencing Disk Settings for the operating system disk used by the virtual machine." + }, "createOption": { "$ref": "#/definitions/CreateOption", "description": "Specifies how the virtual machine should be created.

    Possible values are:

    **Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual machine.

    **FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." @@ -6400,6 +6427,10 @@ "$ref": "#/definitions/CreateOption", "description": "Specifies how the virtual machines in the scale set should be created.

    The only allowed value is: **FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." }, + "diffDiskSettings": { + "$ref": "#/definitions/DiffDiskSettings", + "description": "Specifies the differencing Disk Settings for the operating system disk used by the virtual machine scale set." + }, "diskSizeGB": { "type": "integer", "format": "int32", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAScaleSetWithDiffOsDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAScaleSetWithDiffOsDisk.json new file mode 100644 index 000000000000..a91e677ed674 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAScaleSetWithDiffOsDisk.json @@ -0,0 +1,239 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-06-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + }, + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json index c19a15e92dcf..9d094cec2892 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json @@ -2222,6 +2222,9 @@ }, "Create a scale set with virtual machines in different zones.": { "$ref": "./examples/CreateAScaleSetWithVMsInDifferentZones.json" + }, + "Create a scale set with differencing os disks.": { + "$ref": "./examples/CreateAScaleSetWithDiffOsDisk.json" } } }, @@ -5188,6 +5191,26 @@ "modelAsString": true } }, + "DiffDiskOption": { + "type": "string", + "description": "Specifies the differencing disk option for operating system disk.", + "enum": [ + "Local" + ], + "x-ms-enum": { + "name": "DiffDiskOptions", + "modelAsString": true + } + }, + "DiffDiskSettings": { + "properties": { + "option": { + "$ref": "#/definitions/DiffDiskOption", + "description": "Specifies the differencing disk settings for operating system disk." + } + }, + "description": "Describes the parameters of differencing disk settings that can be be specified for operating system disk.

    NOTE: The differencing disk settings can only be specified for managed disk." + }, "ManagedDiskParameters": { "properties": { "storageAccountType": { @@ -5240,6 +5263,10 @@ "type": "boolean", "description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." }, + "diffDiskSettings": { + "$ref": "#/definitions/DiffDiskSettings", + "description": "Specifies the differencing Disk Settings for the operating system disk used by the virtual machine." + }, "createOption": { "$ref": "#/definitions/CreateOption", "description": "Specifies how the virtual machine should be created.

    Possible values are:

    **Attach** \\u2013 This value is used when you are using a specialized disk to create the virtual machine.

    **FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." @@ -6400,6 +6427,10 @@ "$ref": "#/definitions/CreateOption", "description": "Specifies how the virtual machines in the scale set should be created.

    The only allowed value is: **FromImage** \\u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described." }, + "diffDiskSettings": { + "$ref": "#/definitions/DiffDiskSettings", + "description": "Specifies the differencing Disk Settings for the operating system disk used by the virtual machine scale set." + }, "diskSizeGB": { "type": "integer", "format": "int32", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithDiffOsDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithDiffOsDisk.json new file mode 100644 index 000000000000..4252ae6051fb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAScaleSetWithDiffOsDisk.json @@ -0,0 +1,239 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmScaleSetName": "{vmss-name}", + "api-version": "2018-10-01", + "parameters": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "properties": { + "overprovision": true, + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" + } + } + } + ] + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + } + }, + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + }, + "201": { + "body": { + "sku": { + "tier": "Standard", + "capacity": 3, + "name": "Standard_DS1_v2" + }, + "name": "{vmss-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}", + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachineScaleSets", + "properties": { + "singlePlacementGroup": true, + "overprovision": true, + "uniqueId": "b9e23088-6ffc-46e0-9e02-b0a6eeef47db", + "virtualMachineProfile": { + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage" + } + }, + "osProfile": { + "computerNamePrefix": "{vmss-name}", + "adminUsername": "{your-username}", + "secrets": [], + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaceConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "dnsSettings": { + "dnsServers": [] + }, + "primary": true, + "enableIPForwarding": true, + "ipConfigurations": [ + { + "name": "{vmss-name}", + "properties": { + "subnet": { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet" + }, + "privateIPAddressVersion": "IPv4" + } + } + ], + "enableAcceleratedNetworking": false + } + } + ] + } + }, + "upgradePolicy": { + "mode": "Manual" + }, + "provisioningState": "Creating" + }, + "location": "westus" + } + } + } +} From d62e14903d91c9eb4624d4f68bc3b83e002e7835 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 24 Sep 2018 09:58:57 -0700 Subject: [PATCH 33/39] Rename Post to Grants (#3947) * Rename Post to Grants * Update graphrbac.json --- .../data-plane/stable/1.6/graphrbac.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/graphrbac/data-plane/stable/1.6/graphrbac.json b/specification/graphrbac/data-plane/stable/1.6/graphrbac.json index ff351a2414dc..5ac828d19e2e 100644 --- a/specification/graphrbac/data-plane/stable/1.6/graphrbac.json +++ b/specification/graphrbac/data-plane/stable/1.6/graphrbac.json @@ -346,7 +346,7 @@ } } } - }, + }, "/{tenantID}/applications/{applicationObjectId}/keyCredentials": { "get": { "tags": [ @@ -831,7 +831,7 @@ } } } - } + } }, "/{tenantID}/groups/{objectId}/getMemberGroups": { "post": { @@ -1628,13 +1628,13 @@ }, "post" : { "tags": [ - "OAuth2Permissions_post" + "OAuth2Permissions_Grant" ], "consumes" : [ "application/json" ], "operationId": "OAuth2_Post", "description": "Grants OAuth2 permissions for the relevant resource Ids of an app.", "produces" : [ "application/json" ], - "parameters" : [ + "parameters" : [ { "in" : "body", "name" : "body", @@ -2227,7 +2227,7 @@ { "$ref": "#/definitions/DirectoryObject" } - ], + ], "properties": { "appId": { "type": "string", @@ -2305,7 +2305,7 @@ "type": "object" }, "description": "Request parameters for adding a owner to an application." - }, + }, "KeyCredentialListResult": { "type": "object", "properties": { @@ -2550,7 +2550,7 @@ { "$ref": "#/definitions/DirectoryObject" } - ], + ], "properties": { "displayName": { "type": "string", @@ -2689,7 +2689,7 @@ "$ref": "#/definitions/DirectoryObject" } ], - "type": "object", + "type": "object", "properties": { "displayName": { "type": "string", @@ -2890,7 +2890,7 @@ "name": "UserType", "modelAsString": true } - }, + }, "accountEnabled": { "type": "boolean", "description": "Whether the account is enabled." @@ -3122,4 +3122,4 @@ "x-ms-parameter-location": "client" } } -} \ No newline at end of file +} From 3cbe0db7121fffedc66becadcaffc2628c8a946b Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Mon, 24 Sep 2018 10:09:57 -0700 Subject: [PATCH 34/39] Update frontdoor/resource-manager/readme.nodejs.md (#3986) --- specification/frontdoor/resource-manager/readme.nodejs.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specification/frontdoor/resource-manager/readme.nodejs.md b/specification/frontdoor/resource-manager/readme.nodejs.md index 128718652e75..0bc29c2e9551 100644 --- a/specification/frontdoor/resource-manager/readme.nodejs.md +++ b/specification/frontdoor/resource-manager/readme.nodejs.md @@ -7,9 +7,6 @@ Please also specify `--node-sdks-folder= Date: Mon, 24 Sep 2018 10:31:05 -0700 Subject: [PATCH 35/39] Update deploymentmanager/resource-manager/readme.nodejs.md (#3991) * Update deploymentmanager/resource-manager/readme.nodejs.md * Revert generate-metadata change --- .../deploymentmanager/resource-manager/readme.nodejs.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/deploymentmanager/resource-manager/readme.nodejs.md b/specification/deploymentmanager/resource-manager/readme.nodejs.md index c2bd37fd584e..6af432df2d27 100644 --- a/specification/deploymentmanager/resource-manager/readme.nodejs.md +++ b/specification/deploymentmanager/resource-manager/readme.nodejs.md @@ -7,7 +7,6 @@ Please also specify `--node-sdks-folder= Date: Mon, 24 Sep 2018 10:35:46 -0700 Subject: [PATCH 36/39] Replace generate-metadata with correct properties (#3992) --- specification/frontdoor/resource-manager/readme.nodejs.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/frontdoor/resource-manager/readme.nodejs.md b/specification/frontdoor/resource-manager/readme.nodejs.md index 0bc29c2e9551..72a2f148d502 100644 --- a/specification/frontdoor/resource-manager/readme.nodejs.md +++ b/specification/frontdoor/resource-manager/readme.nodejs.md @@ -7,6 +7,8 @@ Please also specify `--node-sdks-folder= Date: Mon, 24 Sep 2018 12:04:51 -0700 Subject: [PATCH 37/39] Fix resources TypeScript generation (#3994) --- .../resource-manager/readme.typescript.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/resources/resource-manager/readme.typescript.md b/specification/resources/resource-manager/readme.typescript.md index 4862bfd54e97..a9f759e2ce43 100644 --- a/specification/resources/resource-manager/readme.typescript.md +++ b/specification/resources/resource-manager/readme.typescript.md @@ -8,6 +8,7 @@ typescript: azure-arm: true batch: true package-name: arm-resource + generate-metadata: false output-folder: $(typescript-sdks-folder)/packages/arm-resource batch: - package-features: true @@ -20,37 +21,36 @@ batch: ``` ```yaml $(typescript) && $(package-features) -nodejs: +typescript: source-code-folder-path: lib/feature ``` ```yaml $(typescript) && $(package-locks) -nodejs: +typescript: source-code-folder-path: lib/lock ``` ```yaml $(typescript) && $(package-policy) -nodejs: +typescript: source-code-folder-path: lib/policy ``` ```yaml $(typescript) && $(package-resources) -nodejs: +typescript: source-code-folder-path: lib/resource ``` ```yaml $(typescript) && $(package-subscriptions) -nodejs: +typescript: source-code-folder-path: lib/subscription ``` ```yaml $(typescript) && $(package-links) -nodejs: +typescript: source-code-folder-path: lib/link ``` -```yaml $(typescript) && $(package-management) -nodejs: - source-code-folder-path: lib/management - override-client-name: ManagementGroupsClient +```yaml $(typescript) && $(package-managedapplications) +typescript: + source-code-folder-path: lib/managedapplications ``` From 04d9e246ef07fafb3ef24e54c1753b6cd01dad24 Mon Sep 17 00:00:00 2001 From: hari-bodicherla <43284966+hari-bodicherla@users.noreply.github.com> Date: Mon, 24 Sep 2018 12:56:16 -0700 Subject: [PATCH 38/39] Adding an example file for creating VM with differencing os disk using DiffDiskSettings Property (#3995) * Added diffDiskSettings property as part of Swagger changes needed for Ephemeral VM\VMSS * updated comment * updated swagger specs for diffdisksettings property * updated swagger spec comments for diff disk settings [property * added example to create Diff OS disk scaleset * updated 2018-10-01 version specs with diffdisk property * added example file for creating VM with diffdisksettings property --- .../stable/2018-06-01/compute.json | 3 + .../examples/CreateAVmWithADiffOsDisk.json | 178 ++++++++++++++++++ .../stable/2018-10-01/compute.json | 3 + .../examples/CreateAVmWithADiffOsDisk.json | 178 ++++++++++++++++++ 4 files changed, 362 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAVmWithADiffOsDisk.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithADiffOsDisk.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json index 6cf6f3c74c4a..7e024975edfa 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json @@ -1524,6 +1524,9 @@ }, "Create a custom-image vm from an unmanaged generalized os image.": { "$ref": "./examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json" + }, + "Create a vm with differencing os disk.": { + "$ref": "./examples/CreateAVmWithADiffOsDisk.json" } } }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAVmWithADiffOsDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAVmWithADiffOsDisk.json new file mode 100644 index 000000000000..04296af592fb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateAVmWithADiffOsDisk.json @@ -0,0 +1,178 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-06-01", + "parameters": { + "location": "westus", + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "name": "myVM", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + }, + "201": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json index 9d094cec2892..2f78756832c1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/compute.json @@ -1524,6 +1524,9 @@ }, "Create a custom-image vm from an unmanaged generalized os image.": { "$ref": "./examples/CreateACustomImageVmFromAnUnmanagedGeneralizedOsImage.json" + }, + "Create a vm with differencing os disk.": { + "$ref": "./examples/CreateAVmWithADiffOsDisk.json" } } }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithADiffOsDisk.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithADiffOsDisk.json new file mode 100644 index 000000000000..f755f70a617e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-10-01/examples/CreateAVmWithADiffOsDisk.json @@ -0,0 +1,178 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "api-version": "2018-10-01", + "parameters": { + "location": "westus", + "plan": { + "publisher": "microsoft-ads", + "product": "windows-data-science-vm", + "name": "windows2016" + }, + "name": "myVM", + "properties": { + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "storageProfile": { + "imageReference": { + "sku": "windows2016", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "windows-data-science-vm" + }, + "osDisk": { + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + } + }, + "osProfile": { + "adminUsername": "{your-username}", + "computerName": "myVM", + "adminPassword": "{your-password}" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + "properties": { + "primary": true + } + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + }, + "201": { + "body": { + "name": "myVM", + "properties": { + "osProfile": { + "adminUsername": "{your-username}", + "secrets": [], + "computerName": "myVM", + "windowsConfiguration": { + "provisionVMAgent": true, + "enableAutomaticUpdates": true + } + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + "properties": { + "primary": true + } + } + ] + }, + "storageProfile": { + "imageReference": { + "sku": "standard-data-science-vm", + "publisher": "microsoft-ads", + "version": "latest", + "offer": "standard-data-science-vm" + }, + "osDisk": { + "osType": "Windows", + "caching": "ReadOnly", + "diffDiskSettings": { + "option": "Local" + }, + "managedDisk": { + "storageAccountType": "Standard_LRS" + }, + "createOption": "FromImage", + "name": "myVMosdisk" + }, + "dataDisks": [] + }, + "vmId": "5c0d55a7-c407-4ed6-bf7d-ddb810267c85", + "hardwareProfile": { + "vmSize": "Standard_DS1_v2" + }, + "provisioningState": "Creating" + }, + "plan": { + "publisher": "microsoft-ads", + "product": "standard-data-science-vm", + "name": "standard-data-science-vm" + }, + "type": "Microsoft.Compute/virtualMachines", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "location": "westus" + } + } + } +} From 1e9294304b3354f11caf980707ddad629e5ab56e Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Mon, 24 Sep 2018 17:42:18 -0700 Subject: [PATCH 39/39] pretty output for semantic validation (#3959) --- .travis.yml | 2 +- package.json | 2 +- scripts/semanticValidation.js | 20 ++++++++++++++++++++ test/semantic.js | 29 ----------------------------- 4 files changed, 22 insertions(+), 31 deletions(-) create mode 100644 scripts/semanticValidation.js delete mode 100644 test/semantic.js diff --git a/.travis.yml b/.travis.yml index 64c2fe6e22e0..b2d65c0736b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -68,7 +68,7 @@ script: - >- if [[ $MODE == 'semantic' ]]; then npm install - npm test -- test/semantic.js + node scripts/semanticValidation.js fi - >- if [[ $MODE == 'model' ]]; then diff --git a/package.json b/package.json index 21a88b7a9603..a0295704aaed 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "json-schema-ref-parser": "^3.1.2", "mocha": "*", "oad": "^0.1.11", - "oav": "^0.5.2", + "oav": "^0.5.11", "request": "^2.61.0", "request-promise-native": "^1.0.5", "z-schema": "^3.16.1" diff --git a/scripts/semanticValidation.js b/scripts/semanticValidation.js new file mode 100644 index 000000000000..6c5d8952bc30 --- /dev/null +++ b/scripts/semanticValidation.js @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License in the project root for license information. +'use strict'; + +const utils = require('../test/util/utils') +const oav = require('oav'); + +async function main() { + const swaggersToProcess = utils.getFilesChangedInPR(); + // Useful when debugging a test for a particular swagger. + // Just update the regex. That will return an array of filtered items. + // swaggersToProcess = swaggersToProcess.filter(function(item) { + // return (item.match(/.*Microsoft.Logic.*2016-06-01.*/ig) !== null); + // }); + for (const swagger of swaggersToProcess) { + await oav.validateSpec(swagger, {consoleLogLevel: 'error', pretty: true}); + } +} + +main() \ No newline at end of file diff --git a/test/semantic.js b/test/semantic.js deleted file mode 100644 index 370b05297530..000000000000 --- a/test/semantic.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License in the project root for license information. - -'use strict'; -var assert = require('assert'), - utils = require('./util/utils'), - oav = require('oav'); - -describe('Azure swagger semantic validation:', function () { - let swaggersToProcess = utils.getFilesChangedInPR(); - // Useful when debugging a test for a particular swagger. - // Just update the regex. That will return an array of filtered items. - // swaggersToProcess = swaggersToProcess.filter(function(item) { - // return (item.match(/.*Microsoft.Logic.*2016-06-01.*/ig) !== null); - // }); - for (const swagger of swaggersToProcess) { - it(swagger + ' should be semantically valid.', async function () { - try { - const validationResult = await oav.validateSpec(swagger, null, {consoleLogLevel: 'error'}); - return assert( - validationResult.validateSpec && validationResult.validateSpec.errors && validationResult.validateSpec.errors.length === 0, - `swagger "${swagger}" contains semantic validation errors.`); - } catch (err) { - console.dir(err, {depth: null, colors: true}); - throw err; - } - }); - } -}); \ No newline at end of file