From 0bbb664b337da64df7ff939884818e67b4b11094 Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Thu, 16 Mar 2023 18:00:56 -0400 Subject: [PATCH 1/5] Added 2022-08 API Version files --- custom-words.txt | 1 + .../2022-08-01-preview/deploymentStacks.json | 1353 +++++++++++++++++ .../DeploymentStackExportTemplate.json | 37 + .../DeploymentStackManagementGroupCreate.json | 93 ++ .../DeploymentStackManagementGroupDelete.json | 16 + ...entStackManagementGroupExportTemplate.json | 35 + .../DeploymentStackManagementGroupGet.json | 60 + .../DeploymentStackManagementGroupList.json | 94 ++ .../DeploymentStackResourceGroupCreate.json | 94 ++ .../DeploymentStackResourceGroupDelete.json | 17 + .../DeploymentStackResourceGroupGet.json | 61 + .../DeploymentStackResourceGroupList.json | 95 ++ .../DeploymentStackSubscriptionCreate.json | 93 ++ .../DeploymentStackSubscriptionDelete.json | 16 + ...oymentStackSubscriptionExportTemplate.json | 35 + .../DeploymentStackSubscriptionGet.json | 60 + .../DeploymentStackSubscriptionList.json | 94 ++ .../resources/resource-manager/readme.md | 24 +- .../resource-manager/readme.python.md | 18 + 19 files changed, 2295 insertions(+), 1 deletion(-) create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackExportTemplate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupExportTemplate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionExportTemplate.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json create mode 100644 specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json diff --git a/custom-words.txt b/custom-words.txt index 76a7eb6457f1..49dab64626c3 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2266,6 +2266,7 @@ unitless unixtime unleased unlocalized +Unmanage unmanaged unmonitored UNOA diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json new file mode 100644 index 000000000000..39aa1d7af97e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json @@ -0,0 +1,1353 @@ +{ + "swagger": "2.0", + "info": { + "title": "DeploymentStacksClient", + "description": "The APIs listed in this specification can be used to manage deployment stack resources through the Azure Resource Manager.", + "version": "2022-08-01-preview" + }, + "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 user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks": { + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ListAtResourceGroup", + "description": "Lists all the Deployment Stacks within the specified resource group.", + "x-ms-examples": { + "DeploymentStacksList": { + "$ref": "./examples/DeploymentStackResourceGroupList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Deployment Stacks.", + "schema": { + "$ref": "#/definitions/DeploymentStackListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks": { + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ListAtSubscription", + "description": "Lists all the Deployment Stacks within the specified subscription.", + "x-ms-examples": { + "DeploymentStacksList": { + "$ref": "./examples/DeploymentStackSubscriptionList.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Deployment Stacks.", + "schema": { + "$ref": "#/definitions/DeploymentStackListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks": { + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ListAtManagementGroup", + "description": "Lists all the Deployment Stacks within the specified management group.", + "x-ms-examples": { + "DeploymentStacksList": { + "$ref": "./examples/DeploymentStackManagementGroupList.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of Deployment Stacks.", + "schema": { + "$ref": "#/definitions/DeploymentStackListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}": { + "put": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_CreateOrUpdateAtResourceGroup", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "description": "Creates or updates a Deployment Stack.", + "x-ms-examples": { + "DeploymentStacksCreateOrUpdate": { + "$ref": "./examples/DeploymentStackResourceGroupCreate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "deploymentStack", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentStack" + }, + "description": "Deployment Stack supplied to the operation." + } + ], + "responses": { + "200": { + "description": "OK - The Deployment Stack update request has succeeded.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "201": { + "description": "Deployment Stack created.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_GetAtResourceGroup", + "description": "Gets a Deployment Stack with a given name.", + "x-ms-examples": { + "DeploymentStacksGet": { + "$ref": "./examples/DeploymentStackResourceGroupGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the Deployment Stack.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "delete": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_DeleteAtResourceGroup", + "description": "Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "DeploymentStacksDelete": { + "$ref": "./examples/DeploymentStackResourceGroupDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "#/parameters/DeleteResourceParameter" + }, + { + "$ref": "#/parameters/DeleteResourceGroupParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Deployment Stack deleted." + }, + "202": { + "description": "Accepted - Check location header for deletion status.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Deployment Stack does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}": { + "put": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_CreateOrUpdateAtSubscription", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "description": "Creates or updates a Deployment Stack.", + "x-ms-examples": { + "DeploymentStacksCreateOrUpdate": { + "$ref": "./examples/DeploymentStackSubscriptionCreate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "deploymentStack", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentStack" + }, + "description": "Deployment Stack supplied to the operation." + } + ], + "responses": { + "200": { + "description": "OK - The Deployment Stack update request has succeeded.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "201": { + "description": "Deployment Stack created.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_GetAtSubscription", + "description": "Gets a Deployment Stack with a given name.", + "x-ms-examples": { + "DeploymentStacksGet": { + "$ref": "./examples/DeploymentStackSubscriptionGet.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the Deployment Stack.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "delete": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_DeleteAtSubscription", + "description": "Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "DeploymentStacksDelete": { + "$ref": "./examples/DeploymentStackSubscriptionDelete.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "#/parameters/DeleteResourceParameter" + }, + { + "$ref": "#/parameters/DeleteResourceGroupParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Deployment Stack deleted." + }, + "202": { + "description": "Accepted - Check location header for deletion status.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Deployment Stack does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}": { + "put": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_CreateOrUpdateAtManagementGroup", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "description": "Creates or updates a Deployment Stack.", + "x-ms-examples": { + "DeploymentStacksCreateOrUpdate": { + "$ref": "./examples/DeploymentStackManagementGroupCreate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "deploymentStack", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DeploymentStack" + }, + "description": "Deployment Stack supplied to the operation." + } + ], + "responses": { + "200": { + "description": "OK - The Deployment Stack update request has succeeded.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "201": { + "description": "Deployment Stack created.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "get": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_GetAtManagementGroup", + "description": "Gets a Deployment Stack with a given name.", + "x-ms-examples": { + "DeploymentStacksGet": { + "$ref": "./examples/DeploymentStackManagementGroupGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the Deployment Stack.", + "schema": { + "$ref": "#/definitions/DeploymentStack" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + }, + "delete": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_DeleteAtManagementGroup", + "description": "Deletes a Deployment Stack by name. When operation completes, status code 200 returned without content.", + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-examples": { + "DeploymentStacksDelete": { + "$ref": "./examples/DeploymentStackManagementGroupDelete.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "#/parameters/DeleteResourceParameter" + }, + { + "$ref": "#/parameters/DeleteResourceGroupParameter" + }, + { + "$ref": "#/parameters/DeleteManagementGroupParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Deployment Stack deleted." + }, + "202": { + "description": "Accepted - Check location header for deletion status.", + "headers": { + "Location": { + "type": "string" + } + } + }, + "204": { + "description": "Deployment Stack does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate": { + "post": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ExportTemplateAtResourceGroup", + "description": "Exports the template used to create the deployment stack.", + "x-ms-examples": { + "DeploymentStacksExportTemplate": { + "$ref": "./examples/DeploymentStackExportTemplate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the Template or TemplateLink payload of the deployment stack.", + "schema": { + "$ref": "#/definitions/DeploymentStackTemplateDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate": { + "post": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ExportTemplateAtSubscription", + "description": "Exports the template used to create the deployment stack.", + "x-ms-examples": { + "DeploymentStacksExportTemplate": { + "$ref": "./examples/DeploymentStackSubscriptionExportTemplate.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the Template or TemplateLink payload of the deployment stack.", + "schema": { + "$ref": "#/definitions/DeploymentStackTemplateDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}/exportTemplate": { + "post": { + "tags": [ + "DeploymentStacks" + ], + "operationId": "DeploymentStacks_ExportTemplateAtManagementGroup", + "description": "Exports the template used to create the deployment stack.", + "x-ms-examples": { + "DeploymentStacksExportTemplate": { + "$ref": "./examples/DeploymentStackManagementGroupExportTemplate.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/ManagementGroupIdParameter" + }, + { + "$ref": "#/parameters/DeploymentStackNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns the Template or TemplateLink payload of the deployment stack.", + "schema": { + "$ref": "#/definitions/DeploymentStackTemplateDefinition" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/DeploymentStacksError" + } + } + } + } + } + }, + "definitions": { + "DeploymentStack": { + "type": "object", + "description": "Deployment stack object.", + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ], + "properties": { + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The location of the deployment stack. It cannot be changed after creation. It must be one of the supported Azure locations." + }, + "tags": { + "type": "object", + "description": "Deployment stack resource tags.", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "description": "Deployment stack properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DeploymentStackProperties" + } + } + }, + "DeploymentStackPropertiesShared": { + "description": "Properties shared between a deployment stack and a deployment stack snapshot.", + "required": [ + "actionOnUnmanage" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/DeploymentStacksError" + } + ], + "properties": { + "template": { + "type": "object", + "description": "The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "templateLink": { + "type": "object", + "$ref": "#/definitions/DeploymentStacksTemplateLink", + "description": "The URI of the template. Use either the templateLink property or the template property, but not both.", + "x-ms-mutability": [ + "create", + "update" + ] + }, + "parameters": { + "type": "object", + "description": "Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string." + }, + "parametersLink": { + "type": "object", + "$ref": "#/definitions/DeploymentStacksParametersLink", + "description": "The URI of parameters file. Use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both." + }, + "actionOnUnmanage": { + "type": "object", + "description": "Defines the behavior of resources that are not managed immediately after the stack is updated.", + "required": [ + "resources" + ], + "properties": { + "resources": { + "type": "string", + "$ref": "#/definitions/DeploymentStacksDeleteDetachEnum" + }, + "resourceGroups": { + "type": "string", + "$ref": "#/definitions/DeploymentStacksDeleteDetachEnum" + }, + "managementGroups": { + "type": "string", + "$ref": "#/definitions/DeploymentStacksDeleteDetachEnum" + } + } + }, + "debugSetting": { + "type": "object", + "$ref": "#/definitions/DeploymentStacksDebugSetting", + "description": "The debug setting of the deployment." + }, + "deploymentScope": { + "type": "string", + "description": "The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}')." + }, + "description": { + "type": "string", + "maxLength": 4096, + "description": "Deployment stack description." + }, + "denySettings": { + "type": "object", + "description": "Defines how resources deployed by the stack are locked.", + "$ref": "#/definitions/DenySettings" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "State of the deployment stack.", + "enum": [ + "Creating", + "Validating", + "Waiting", + "Deploying", + "Canceling", + "Locking", + "DeletingResources", + "Succeeded", + "Failed", + "Canceled", + "Deleting" + ], + "x-ms-enum": { + "name": "DeploymentStackProvisioningState", + "modelAsString": true + } + }, + "detachedResources": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ResourceReference" + }, + "description": "An array of resources that were detached during the most recent update." + }, + "deletedResources": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ResourceReference" + }, + "description": "An array of resources that were deleted during the most recent update." + }, + "failedResources": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ResourceReferenceExtended" + }, + "description": "An array of resources that failed to reach goal state during the most recent update." + }, + "resources": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ManagedResourceReference" + }, + "description": "An array of resources currently managed by the deployment stack." + }, + "deploymentId": { + "type": "string", + "readOnly": true, + "description": "The resourceId of the deployment resource created by the deployment stack." + }, + "outputs": { + "type": "object", + "readOnly": true, + "description": "The outputs of the underlying deployment." + }, + "duration": { + "type": "string", + "readOnly": true, + "description": "The duration of the deployment stack update." + } + } + }, + "DeploymentStackProperties": { + "type": "object", + "description": "Deployment stack properties.", + "allOf": [ + { + "$ref": "#/definitions/DeploymentStackPropertiesShared" + } + ] + }, + "DeploymentStackListResult": { + "description": "List of deployment stacks.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentStack" + }, + "description": "An array of deployment stacks." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "ResourceReference": { + "type": "object", + "description": "The resource Id model.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The resourceId of a resource managed by the deployment stack." + } + } + }, + "ManagedResourceReference": { + "type": "object", + "description": "The managed resource model.", + "allOf": [ + { + "$ref": "#/definitions/ResourceReference" + } + ], + "properties": { + "status": { + "type": "string", + "default": "None", + "description": "Current management state of the resource in the deployment stack.", + "enum": [ + "Managed", + "removeDenyFailed", + "deleteFailed", + "None" + ], + "x-ms-enum": { + "name": "ResourceStatusMode", + "modelAsString": true, + "values": [ + { + "value": "Managed", + "description": "This resource is managed by the deployment stack." + }, + { + "value": "removeDenyFailed", + "description": "Unable to remove the deny assignment on resource." + }, + { + "value": "deleteFailed", + "description": "Unable to delete the resource from Azure. The delete will be retried on the next stack deployment, or can be deleted manually." + }, + { + "value": "None", + "description": "No denyAssignments have been applied." + } + ] + } + }, + "denyStatus": { + "type": "string", + "default": "None", + "description": "denyAssignment settings applied to the resource.", + "enum": [ + "denyDelete", + "notSupported", + "inapplicable", + "denyWriteAndDelete", + "removedBySystem", + "None" + ], + "x-ms-enum": { + "name": "DenyStatusMode", + "modelAsString": true, + "values": [ + { + "value": "denyDelete", + "description": "Authorized users are able to read and modify the resources, but cannot delete." + }, + { + "value": "notSupported", + "description": "Resource type does not support denyAssignments." + }, + { + "value": "inapplicable", + "description": "denyAssignments are not supported on resources outside the scope of the deployment stack." + }, + { + "value": "denyWriteAndDelete", + "description": "Authorized users can only read from a resource, but cannot modify or delete it." + }, + { + "value": "removedBySystem", + "description": "Deny assignment has been removed by Azure due to a resource management change (management group move, etc.)" + }, + { + "value": "None", + "description": "No denyAssignments have been applied." + } + ] + } + } + } + }, + "ResourceReferenceExtended": { + "type": "object", + "allOf": [ + { + "$ref": "#/definitions/ResourceReference" + }, + { + "$ref": "#/definitions/DeploymentStacksError" + } + ], + "description": "The resource Id extended model." + }, + "DenySettings": { + "description": "Defines how resources deployed by the deployment stack are locked.", + "type": "object", + "properties": { + "mode": { + "type": "string", + "description": "denySettings Mode.", + "enum": [ + "denyDelete", + "denyWriteAndDelete", + "none" + ], + "x-ms-enum": { + "name": "DenySettingsMode", + "modelAsString": true, + "values": [ + { + "value": "denyDelete", + "description": "Authorized users are able to read and modify the resources, but cannot delete." + }, + { + "value": "denyWriteAndDelete", + "description": "Authorized users can only read from a resource, but cannot modify or delete it." + }, + { + "value": "none", + "description": "No denyAssignments have been applied." + } + ] + } + }, + "excludedPrincipals": { + "type": "array", + "description": "List of AAD principal IDs excluded from the lock. Up to 5 principals are permitted.", + "items": { + "type": "string" + } + }, + "excludedActions": { + "type": "array", + "description": "List of role-based management operations that are excluded from the denySettings. Up to 200 actions are permitted. If the denySetting mode is set to 'denyWriteAndDelete', then the following actions are automatically appended to 'excludedActions': '*/read' and 'Microsoft.Authorization/locks/delete'. If the denySetting mode is set to 'denyDelete', then the following actions are automatically appended to 'excludedActions': 'Microsoft.Authorization/locks/delete'. Duplicate actions will be removed.", + "items": { + "type": "string" + } + }, + "applyToChildScopes": { + "type": "boolean", + "description": "DenySettings will be applied to child scopes." + } + } + }, + "AzureResourceBase": { + "x-ms-azure-resource": true, + "type": "object", + "description": "Common properties for all Azure resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "String Id used to locate any resource on Azure." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Name of this resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Type of this resource." + }, + "systemData": { + "readOnly": true, + "type": "object", + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + } + }, + "DeploymentStackSnapshot": { + "type": "object", + "description": "Deployment stack Snapshot object.", + "allOf": [ + { + "$ref": "#/definitions/AzureResourceBase" + } + ], + "properties": { + "properties": { + "description": "Deployment stack snapshot properties.", + "x-ms-client-flatten": true, + "$ref": "#/definitions/DeploymentStackSnapshotProperties" + } + } + }, + "DeploymentStackSnapshotProperties": { + "type": "object", + "description": "Deployment stack snapshot properties.", + "allOf": [ + { + "$ref": "#/definitions/DeploymentStackPropertiesShared" + } + ] + }, + "DeploymentStackSnapshotsListResult": { + "description": "List of deployment stack snapshots", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DeploymentStackSnapshot" + }, + "description": "An array of deployment stack snapshots." + }, + "nextLink": { + "readOnly": true, + "type": "string", + "description": "The URL to use for getting the next set of results." + } + } + }, + "DeploymentStacksError": { + "type": "object", + "properties": { + "error": { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + } + }, + "description": "Deployment Stacks error response." + }, + "DeploymentStackTemplateDefinition": { + "type": "object", + "description": "Export Template specific properties of the Stack.", + "properties": { + "template": { + "type": "object", + "description": "The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both." + }, + "templateLink": { + "type": "object", + "$ref": "#/definitions/DeploymentStacksTemplateLink", + "description": "The URI of the template. Use either the templateLink property or the template property, but not both." + } + } + }, + "DeploymentStacksTemplateLink": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The URI of the template to deploy. Use either the uri or id property, but not both." + }, + "id": { + "type": "string", + "description": "The resource id of a Template Spec. Use either the id or uri property, but not both." + }, + "relativePath": { + "type": "string", + "description": "The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs" + }, + "queryString": { + "type": "string", + "description": "The query string (for example, a SAS token) to be used with the templateLink URI." + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + } + }, + "description": "Entity representing the reference to the template." + }, + "DeploymentStacksParametersLink": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "description": "The URI of the parameters file." + }, + "contentVersion": { + "type": "string", + "description": "If included, must match the ContentVersion in the template." + } + }, + "required": [ + "uri" + ], + "description": "Entity representing the reference to the deployment parameters." + }, + "DeploymentStacksDebugSetting": { + "type": "object", + "properties": { + "detailLevel": { + "type": "string", + "description": "Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information that is being passed in during deployment. By logging information about the request or response, sensitive data that is retrieved through the deployment operations could potentially be exposed." + } + }, + "description": "The debug setting." + }, + "DeploymentStacksDeleteDetachEnum": { + "type": "string", + "enum": [ + "delete", + "detach" + ], + "description": "Specifies the action that should be taken on the resource when the deployment stack is deleted. Delete will attempt to delete the resource from Azure. Detach will leave the resource in it's current state.", + "x-ms-enum": { + "name": "DeploymentStacksDeleteDetachEnum", + "modelAsString": true + } + } + }, + "parameters": { + "ManagementGroupIdParameter": { + "name": "managementGroupId", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "description": "Management Group.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DeploymentStackNameParameter": { + "name": "deploymentStackName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "description": "Name of the deployment stack.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DeploymentStackSnapshotParameter": { + "name": "snapshotName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._\\(\\)]+$", + "description": "The name of the deployment stack Snapshot.", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "method" + }, + "DeleteResourceParameter": { + "name": "unmanageAction.Resources", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "delete", + "detach" + ], + "x-ms-enum": { + "name": "UnmanageActionResourceMode", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "Flag to indicate delete rather than detach for the resources." + }, + "DeleteResourceGroupParameter": { + "name": "unmanageAction.ResourceGroups", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "delete", + "detach" + ], + "x-ms-enum": { + "name": "UnmanageActionResourceGroupMode", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "Flag to indicate delete rather than detach for the resource groups." + }, + "DeleteManagementGroupParameter": { + "name": "unmanageAction.ManagementGroups", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "delete", + "detach" + ], + "x-ms-enum": { + "name": "UnmanageActionManagementGroupMode", + "modelAsString": true + }, + "x-ms-parameter-location": "method", + "description": "Flag to indicate delete rather than detach for the management groups." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackExportTemplate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackExportTemplate.json new file mode 100644 index 000000000000..f44329a0d090 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackExportTemplate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "api-version": "2022-08-01-preview", + "subscriptionId": "subscriptions/00000000-0000-0000-0000-000000000000", + "deploymentStackName": "simpleDeploymentStack", + "resourceGroupName": "deploymentStacksRG", + "resourceScope": "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG" + }, + "responses": { + "200": { + "body": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0" + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.4.1008.15138", + "templateHash": "1201162276450656794" + } + }, + "functions": [], + "resources": [], + "outputs": { + "myOut": { + "type": "int", + "value": 1 + } + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json new file mode 100644 index 000000000000..d76df1177098 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "managementGroupId": "myMg", + "deploymentStackName": "simpleDeploymentStack", + "deploymentStack": { + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + }, + "201": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json new file mode 100644 index 000000000000..c9a097841f51 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "managementGroupId": "myMg", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "204": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupExportTemplate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupExportTemplate.json new file mode 100644 index 000000000000..4b9897bb399a --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupExportTemplate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2022-08-01-preview", + "managementGroupId": "myMg", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": { + "body": { + "templateLink": { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0" + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.4.1008.15138", + "templateHash": "1201162276450656794" + } + }, + "functions": [], + "resources": [], + "outputs": { + "myOut": { + "type": "int", + "value": 1 + } + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json new file mode 100644 index 000000000000..72bea56b156d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "managementGroupId": "myMg", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": { + "body": { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deployments/simpleDeploymentStack-20210301-3f41c", + "deploymentScope": "/providers/Microsoft.Management/managementGroups/myMg", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "description": "my Description", + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Succeeded", + "resources": [ + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json new file mode 100644 index 000000000000..ae7479a782d7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "managementGroupId": "myMg" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + }, + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack2", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack2", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/deployments/simpleDeploymentStack2-20210301-3f41c", + "provisioningState": "SucceededWithFailures", + "resources": [ + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/providers/Microsoft.Management/managementGroups/myMg/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json new file mode 100644 index 000000000000..37e64e96ed72 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "deploymentStacksRG", + "deploymentStackName": "simpleDeploymentStack", + "deploymentStack": { + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json new file mode 100644 index 000000000000..4f844f4a3eb2 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "deploymentStacksRG", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "204": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json new file mode 100644 index 000000000000..85061aed21fa --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "deploymentStacksRG", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deployments/simpleDeploymentStack-20210301-3f41c", + "deploymentScope": "/subscriptions/00000000-1111-1111-1111-000000000000", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "description": "my Description", + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Succeeded", + "resources": [ + { + "id": "/subscriptions/00000000-2222-2222-2222-000000000000/resourceGroups/templateSpecsRG/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json new file mode 100644 index 000000000000..3a377001e8a0 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json @@ -0,0 +1,95 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "deploymentStacksRG" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack2", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack2", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deployments/simpleDeploymentStack2-20210301-3f41c", + "provisioningState": "SucceededWithFailures", + "resources": [ + { + "id": "/subscriptions/00000000-2222-2222-2222-000000000000/resourceGroups/templateSpecsRG/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json new file mode 100644 index 000000000000..87c542b485b6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json @@ -0,0 +1,93 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "deploymentStackName": "simpleDeploymentStack", + "deploymentStack": { + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "description": "my Description", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json new file mode 100644 index 000000000000..384f8ceceb47 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": {}, + "202": { + "headers": { + "location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/c9bbccf4-e16a-4eb7-befb-2e2e5195c347?api-version=2018-08-01" + } + }, + "204": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionExportTemplate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionExportTemplate.json new file mode 100644 index 000000000000..2be7769b72fd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionExportTemplate.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "api-version": "2022-08-01-preview", + "subscriptionId": "subscriptions/00000000-0000-0000-0000-000000000000", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": { + "body": { + "templateLink": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0" + }, + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_generator": { + "name": "bicep", + "version": "0.4.1008.15138", + "templateHash": "1201162276450656794" + } + }, + "functions": [], + "resources": [], + "outputs": { + "myOut": { + "type": "int", + "value": 1 + } + } + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json new file mode 100644 index 000000000000..e0abe47dc4fb --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "deploymentStackName": "simpleDeploymentStack" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deployments/simpleDeploymentStack-20210301-3f41c", + "deploymentScope": "/subscriptions/00000000-1111-1111-1111-000000000000", + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "description": "my Description", + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "provisioningState": "Succeeded", + "resources": [ + { + "id": "/subscriptions/00000000-2222-2222-2222-000000000000/resourceGroups/templateSpecsRG/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json new file mode 100644 index 000000000000..f5177aba6fba --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "api-version": "2021-08-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deploymentStacks/simpleDeploymentStack2", + "type": "Microsoft.Resources/deploymentStacks", + "name": "simpleDeploymentStack2", + "location": "eastus", + "tags": { + "tagkey": "tagVal" + }, + "systemData": { + "createdBy": "string", + "createdByType": "Application", + "createdAt": "2020-02-01T01:01:01.1075056Z", + "lastModifiedBy": "string", + "lastModifiedByType": "Application", + "lastModifiedAt": "2020-02-02T02:03:01.1974346Z" + }, + "properties": { + "deploymentId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/deploymentStacksRG/providers/Microsoft.Resources/deployments/simpleDeploymentStack2-20210301-3f41c", + "provisioningState": "SucceededWithFailures", + "resources": [ + { + "id": "/subscriptions/00000000-2222-2222-2222-000000000000/resourceGroups/templateSpecsRG/providers/Microsoft.Resources/templateSpecs/templateSpec/versions/1.0", + "status": "Managed", + "denyStatus": "denyDelete" + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts/myStorageAccount", + "status": "Managed", + "denyStatus": "denyDelete" + } + ], + "actionOnUnmanage": { + "resources": "delete", + "resourceGroups": "delete", + "managementGroups": "detach" + }, + "parameters": { + "parameter1": { + "value": "a string" + } + }, + "outputs": { + "myOut": "myVal" + }, + "duration": "PT1D12H" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index bbf4732e39b2..4276e437a8e3 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -69,6 +69,10 @@ tag: package-deploymentscripts-2020-10 tag: package-templatespecs-2022-02 ``` +``` yaml $(package-deploymentstacks) +tag: package-deploymentstacks-2022-08-preview +``` + ``` yaml $(package-changes) tag: package-changes-2022-05 ``` @@ -430,6 +434,15 @@ input-file: - Microsoft.Resources/preview/2019-06-01-preview/templateSpecs.json ``` +### Tag: package-deploymentstacks-2022-08-preview + +These settings apply only when `--tag=package-deploymentstacks-2022-08-preview` is specified on the command line. + +``` yaml $(tag) == 'package-deploymentstacks-2022-08-preview' +input-file: +- Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json +``` + ### Tag: package-policy-2016-12 These settings apply only when `--tag=package-policy-2016-12` is specified on the command line. @@ -858,6 +871,10 @@ directive: - $.definitions.AzureCliScript.properties - $.definitions.AzurePowerShellScript.properties reason: Currently systemData is not allowed + - from: deploymentStacks.json + suppress: OperationsAPIImplementation + where: $.paths + reason: OperationsAPI will come from Resources - suppress: OperationsAPIImplementation from: templateSpecs.json where: $.paths @@ -949,7 +966,11 @@ directive: - '$.paths["/{scope}/providers/Microsoft.Resources/tags/default"].put' - '$.paths["/{scope}/providers/Microsoft.Resources/tags/default"].patch' - '$.paths["/{scope}/providers/Microsoft.Resources/tags/default"].get' - reason: The tags API does not support system data + reason: The tags API does not support system data +suppressions: + - code: OperationsAPIImplementation + from: deploymentStacks.json + reason: OperationsAPI will come from Resources ``` --- @@ -999,6 +1020,7 @@ batch: - package-managedapplications: true - package-deploymentscripts: true - package-templatespecs: true + - package-deploymentstacks: true - package-changes: true - package-snapshots: true ``` diff --git a/specification/resources/resource-manager/readme.python.md b/specification/resources/resource-manager/readme.python.md index 4582ee01f2d1..3a0f9383bf58 100644 --- a/specification/resources/resource-manager/readme.python.md +++ b/specification/resources/resource-manager/readme.python.md @@ -77,6 +77,8 @@ batch: - tag: package-templatespecs-2021-03-preview - tag: package-templatespecs-2019-06-preview - multiapiscript-templatespecs: true + - tag: package-deploymentstacks-2022-08-preview + - multiapiscript-deploymentstacks: true - tag: package-changes-2022-05 - multiapiscript-changes: true ``` @@ -138,6 +140,12 @@ output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/re perform-load: false ``` +```yaml $(multiapiscript-deploymentstacks) +package-name: azure-mgmt-resource#deploymentstacks +multiapiscript: true +output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentstacks +perform-load: false +``` ```yaml $(multiapiscript-locks) package-name: azure-mgmt-resource#locks @@ -620,6 +628,16 @@ namespace: azure.mgmt.resource.templatespecs.v2022_02_01 output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/templatespecs/v2022_02_01 ``` +### Tag: package-deploymentstacks-2022-08-preview and python + +These settings apply only when `--tag=package-deploymentstacks-2022-08-preview` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-deploymentstacks-2022-08-preview' +namespace: azure.mgmt.resource.deploymentstacks.v2022_08_01_preview +output-folder: $(python-sdks-folder)/resources/azure-mgmt-resource/azure/mgmt/resource/deploymentstacks/v2022_08_01_preview +``` + ``` yaml $(python) modelerfour: lenient-model-deduplication: true From b7d54b8adb7138078a09d146e63a4bc6a5731089 Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Thu, 23 Mar 2023 13:48:54 -0400 Subject: [PATCH 2/5] Added request changes --- .../examples/DeploymentStackManagementGroupCreate.json | 2 +- .../examples/DeploymentStackResourceGroupList.json | 2 +- .../examples/DeploymentStackSubscriptionDelete.json | 2 +- .../examples/DeploymentStackSubscriptionGet.json | 2 +- .../examples/DeploymentStackSubscriptionList.json | 2 +- specification/resources/resource-manager/readme.md | 8 ++++---- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json index d76df1177098..7077f9285853 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "managementGroupId": "myMg", "deploymentStackName": "simpleDeploymentStack", "deploymentStack": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json index 3a377001e8a0..899618d3c505 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "deploymentStacksRG" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json index 384f8ceceb47..4b84c87302cf 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "deploymentStackName": "simpleDeploymentStack" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json index e0abe47dc4fb..d8468ae4c2fc 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "deploymentStackName": "simpleDeploymentStack" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json index f5177aba6fba..c355a1567ff7 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000" }, "responses": { diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 4276e437a8e3..f580471d67fd 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -895,6 +895,10 @@ directive: from: templateSpecs.json where: $.definitions.TemplateSpecVersion reason: Tooling issue + - from: deploymentStacks.json + suppress: TrackedResourcePatchOperation + where: $.definitions + reason: Not a tracked resource. - suppress: OperationsAPIImplementation where: $.paths from: dataPolicyManifests.json @@ -967,10 +971,6 @@ directive: - '$.paths["/{scope}/providers/Microsoft.Resources/tags/default"].patch' - '$.paths["/{scope}/providers/Microsoft.Resources/tags/default"].get' reason: The tags API does not support system data -suppressions: - - code: OperationsAPIImplementation - from: deploymentStacks.json - reason: OperationsAPI will come from Resources ``` --- From 56cd96b38923b59c8e1d5b14b698e874d654ddf2 Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Thu, 23 Mar 2023 13:58:24 -0400 Subject: [PATCH 3/5] Missed some file --- .../examples/DeploymentStackManagementGroupDelete.json | 2 +- .../examples/DeploymentStackManagementGroupGet.json | 2 +- .../examples/DeploymentStackManagementGroupList.json | 2 +- .../examples/DeploymentStackResourceGroupCreate.json | 2 +- .../examples/DeploymentStackResourceGroupDelete.json | 2 +- .../examples/DeploymentStackResourceGroupGet.json | 2 +- .../examples/DeploymentStackSubscriptionCreate.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json index c9a097841f51..6100f662b1c3 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "managementGroupId": "myMg", "deploymentStackName": "simpleDeploymentStack" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json index 72bea56b156d..8eecfdadb284 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "managementGroupId": "myMg", "deploymentStackName": "simpleDeploymentStack" }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json index ae7479a782d7..b8c80fe597e8 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackManagementGroupList.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "managementGroupId": "myMg" }, "responses": { diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json index 37e64e96ed72..ece756ce9634 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "deploymentStacksRG", "deploymentStackName": "simpleDeploymentStack", diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json index 4f844f4a3eb2..984a0df58757 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupDelete.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "deploymentStacksRG", "deploymentStackName": "simpleDeploymentStack" diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json index 85061aed21fa..e5d807a7fab5 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackResourceGroupGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "deploymentStacksRG", "deploymentStackName": "simpleDeploymentStack" diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json index 87c542b485b6..b659aabaf760 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/examples/DeploymentStackSubscriptionCreate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2021-08-01-preview", + "api-version": "2022-08-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", "deploymentStackName": "simpleDeploymentStack", "deploymentStack": { From db7180ec7df5ceeba2537bf391a7ef7d5c05b1b7 Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Wed, 29 Mar 2023 10:59:25 -0400 Subject: [PATCH 4/5] changed to v3 types --- .../preview/2022-08-01-preview/deploymentStacks.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json index 39aa1d7af97e..61419fa77b56 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json @@ -1130,7 +1130,7 @@ "readOnly": true, "type": "object", "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData" } } }, @@ -1181,7 +1181,7 @@ "type": "object", "properties": { "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse" } }, "description": "Deployment Stacks error response." From c5ee0a45f9259060a036177d29d3b264005ef739 Mon Sep 17 00:00:00 2001 From: Harsh Patel Date: Wed, 29 Mar 2023 11:25:07 -0400 Subject: [PATCH 5/5] Removed all snapshot references --- .../2022-08-01-preview/deploymentStacks.json | 69 +------------------ 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json index 61419fa77b56..00bbbd917857 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json +++ b/specification/resources/resource-manager/Microsoft.Resources/preview/2022-08-01-preview/deploymentStacks.json @@ -769,12 +769,12 @@ } } }, - "DeploymentStackPropertiesShared": { - "description": "Properties shared between a deployment stack and a deployment stack snapshot.", + "DeploymentStackProperties": { + "type": "object", "required": [ "actionOnUnmanage" ], - "type": "object", + "description": "Deployment stack properties.", "allOf": [ { "$ref": "#/definitions/DeploymentStacksError" @@ -918,15 +918,6 @@ } } }, - "DeploymentStackProperties": { - "type": "object", - "description": "Deployment stack properties.", - "allOf": [ - { - "$ref": "#/definitions/DeploymentStackPropertiesShared" - } - ] - }, "DeploymentStackListResult": { "description": "List of deployment stacks.", "type": "object", @@ -1134,49 +1125,6 @@ } } }, - "DeploymentStackSnapshot": { - "type": "object", - "description": "Deployment stack Snapshot object.", - "allOf": [ - { - "$ref": "#/definitions/AzureResourceBase" - } - ], - "properties": { - "properties": { - "description": "Deployment stack snapshot properties.", - "x-ms-client-flatten": true, - "$ref": "#/definitions/DeploymentStackSnapshotProperties" - } - } - }, - "DeploymentStackSnapshotProperties": { - "type": "object", - "description": "Deployment stack snapshot properties.", - "allOf": [ - { - "$ref": "#/definitions/DeploymentStackPropertiesShared" - } - ] - }, - "DeploymentStackSnapshotsListResult": { - "description": "List of deployment stack snapshots", - "type": "object", - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DeploymentStackSnapshot" - }, - "description": "An array of deployment stack snapshots." - }, - "nextLink": { - "readOnly": true, - "type": "string", - "description": "The URL to use for getting the next set of results." - } - } - }, "DeploymentStacksError": { "type": "object", "properties": { @@ -1290,17 +1238,6 @@ "maxLength": 90, "x-ms-parameter-location": "method" }, - "DeploymentStackSnapshotParameter": { - "name": "snapshotName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", - "description": "The name of the deployment stack Snapshot.", - "minLength": 1, - "maxLength": 90, - "x-ms-parameter-location": "method" - }, "DeleteResourceParameter": { "name": "unmanageAction.Resources", "in": "query",