From a481a413baf8b274a97c89b49745f32e56f65d08 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 18 Aug 2020 10:20:59 +0000 Subject: [PATCH] Generated from a7e0eb392ef6c4d1e0bc0d08315b7d2641afb2e6 Fix --- .../2016-06-01/Microsoft.Subscription.json | 88 +++++++++++++++++++ .../2019-08-01/tenantDeploymentTemplate.json | 3 + 2 files changed, 91 insertions(+) create mode 100644 schemas/2016-06-01/Microsoft.Subscription.json diff --git a/schemas/2016-06-01/Microsoft.Subscription.json b/schemas/2016-06-01/Microsoft.Subscription.json new file mode 100644 index 0000000000..caa3897308 --- /dev/null +++ b/schemas/2016-06-01/Microsoft.Subscription.json @@ -0,0 +1,88 @@ +{ + "id": "https://schema.management.azure.com/schemas/2016-06-01/Microsoft.Subscription.json#", + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Microsoft.Subscription", + "description": "Microsoft Subscription Resource Types", + "resourceDefinitions": {}, + "tenant_resourceDefinitions": { + "aliases": { + "type": "object", + "properties": { + "apiVersion": { + "type": "string", + "enum": [ + "2016-06-01" + ] + }, + "name": { + "type": "string", + "description": "Alias Name" + }, + "properties": { + "oneOf": [ + { + "$ref": "#/definitions/PutAliasRequestProperties" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Put subscription properties." + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Subscription/aliases" + ] + } + }, + "required": [ + "apiVersion", + "name", + "properties", + "type" + ], + "description": "Microsoft.Subscription/aliases" + } + }, + "definitions": { + "PutAliasRequestProperties": { + "type": "object", + "properties": { + "billingScope": { + "type": "string", + "description": "Determines whether subscription is fieldLed, partnerLed or LegacyEA" + }, + "displayName": { + "type": "string", + "description": "The friendly name of the subscription." + }, + "subscriptionId": { + "type": "string", + "description": "This parameter can be used to create alias for existing subscription Id" + }, + "workload": { + "oneOf": [ + { + "type": "string", + "enum": [ + "Production", + "DevTest" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "The workload type of the subscription. It can be either Production or DevTest." + } + }, + "required": [ + "billingScope", + "displayName", + "workload" + ], + "description": "Put subscription properties." + } + } +} \ No newline at end of file diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json index 19fd090ac9..f7a9da2dd5 100644 --- a/schemas/2019-08-01/tenantDeploymentTemplate.json +++ b/schemas/2019-08-01/tenantDeploymentTemplate.json @@ -234,6 +234,9 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.Resources.json#/tenant_resourceDefinitions/deployments" }, + { + "$ref": "https://schema.management.azure.com/schemas/2016-06-01/Microsoft.Subscription.json#/tenant_resourceDefinitions/aliases" + }, { "$ref": "https://schema.management.azure.com/schemas/2017-11-01-preview/Microsoft.Subscription.json#/tenant_resourceDefinitions/subscriptionDefinitions" }