From 50acb93029cfc2354350c56b65dbf4f10816a5bf Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Mon, 21 Mar 2022 23:43:42 -0600 Subject: [PATCH 01/11] set up feature branch --- .../CloudServiceRP/cloudService.json | 2610 +++++++++++++++++ .../examples/CloudServiceOSFamilies_List.json | 51 + .../examples/CloudServiceOSFamily_Get.json | 30 + .../examples/CloudServiceOSVersion_Get.json | 26 + .../examples/CloudServiceOSVersion_List.json | 43 + .../CloudServiceRoleInstance_Delete.json | 14 + ...iceRoleInstance_Delete_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Get.json | 32 + ...dServiceRoleInstance_Get_InstanceView.json | 26 + .../CloudServiceRoleInstance_Rebuild.json | 13 + ...ceRoleInstance_Rebuild_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Reimage.json | 13 + ...ceRoleInstance_Reimage_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Restart.json | 13 + ...ceRoleInstance_Restart_ByCloudService.json | 18 + .../examples/CloudServiceRole_Get.json | 27 + .../examples/CloudServiceRole_List.json | 44 + .../CloudServiceRolesInstance_List.json | 92 + .../CloudServiceUpdateDomain_Get.json | 17 + .../CloudServiceUpdateDomain_List.json | 24 + .../CloudServiceUpdateDomain_Update.json | 13 + .../CloudService_Create_WithMultiRole.json | 171 ++ .../CloudService_Create_WithSingleRole.json | 147 + ...e_Create_WithSingleRoleAndCertificate.json | 183 ++ ...udService_Create_WithSingleRoleAndRDP.json | 198 ++ .../examples/CloudService_Delete.json | 13 + ...Service_Get_InstanceViewWithMultiRole.json | 58 + .../CloudService_Get_WithMultiRoleAndRDP.json | 84 + .../CloudService_List_ByResourceGroup.json | 87 + .../CloudService_List_BySubscription.json | 86 + .../examples/CloudService_PowerOff.json | 12 + .../examples/CloudService_Start.json | 12 + .../CloudService_Update_ToIncludeTags.json | 74 + .../stable/2022-04-04/common.json | 204 ++ .../compute/resource-manager/readme.md | 29 +- 35 files changed, 4517 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json new file mode 100644 index 000000000000..ffeb575880a6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -0,0 +1,2610 @@ +{ + "swagger": "2.0", + "info": { + "title": "CloudServiceManagementClient", + "description": "The Cloud Service Management Client.", + "version": "2022-04-04" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}": { + "delete": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Deletes a role instance from a cloud service.", + "operationId": "CloudServiceRoleInstances_Delete", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Delete.json" + } + } + }, + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets a role instance from a cloud service.", + "operationId": "CloudServiceRoleInstances_Get", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "$expand", + "description": "The expand expression to apply to the operation. 'UserData' is not supported for cloud services.", + "type": "string", + "enum": [ + "instanceView", + "userData" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstance" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Retrieves information about the run-time state of a role instance in a cloud service.", + "operationId": "CloudServiceRoleInstances_GetInstanceView", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceInstanceView" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Instance View of Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Get_InstanceView.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.", + "operationId": "CloudServiceRoleInstances_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "$expand", + "description": "The expand expression to apply to the operation. 'UserData' is not supported for cloud services.", + "type": "string", + "enum": [ + "instanceView", + "userData" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRolesInstance_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.", + "operationId": "CloudServiceRoleInstances_Restart", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Restart Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Restart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", + "operationId": "CloudServiceRoleInstances_Reimage", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Reimage Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Reimage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.", + "operationId": "CloudServiceRoleInstances_Rebuild", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Rebuild Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Rebuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets a remote desktop file for a role instance in a cloud service.", + "operationId": "CloudServiceRoleInstances_GetRemoteDesktopFile", + "produces": [ + "application/x-rdp" + ], + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "format": "binary", + "type": "file" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}": { + "get": { + "tags": [ + "CloudServiceRoles" + ], + "description": "Gets a role from a cloud service.", + "operationId": "CloudServiceRoles_Get", + "parameters": [ + { + "in": "path", + "name": "roleName", + "description": "Name of the role.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRole" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Role": { + "$ref": "./examples/CloudServiceRole_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles": { + "get": { + "tags": [ + "CloudServiceRoles" + ], + "description": "Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.", + "operationId": "CloudServiceRoles_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRoleListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Roles in a Cloud Service": { + "$ref": "./examples/CloudServiceRole_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}": { + "put": { + "tags": [ + "CloudServices" + ], + "description": "Create or update a cloud service. Please note some properties can be set only during cloud service creation.", + "operationId": "CloudServices_CreateOrUpdate", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The cloud service object.", + "schema": { + "$ref": "#/definitions/CloudService" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudService" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create New Cloud Service with Single Role": { + "$ref": "./examples/CloudService_Create_WithSingleRole.json" + }, + "Create New Cloud Service with Single Role and RDP Extension": { + "$ref": "./examples/CloudService_Create_WithSingleRoleAndRDP.json" + }, + "Create New Cloud Service with Multiple Roles": { + "$ref": "./examples/CloudService_Create_WithMultiRole.json" + }, + "Create New Cloud Service with Single Role and Certificate from Key Vault": { + "$ref": "./examples/CloudService_Create_WithSingleRoleAndCertificate.json" + } + } + }, + "patch": { + "tags": [ + "CloudServices" + ], + "description": "Update a cloud service.", + "operationId": "CloudServices_Update", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The cloud service object.", + "schema": { + "$ref": "#/definitions/CloudServiceUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update existing Cloud Service to add tags": { + "$ref": "./examples/CloudService_Update_ToIncludeTags.json" + } + } + }, + "delete": { + "tags": [ + "CloudServices" + ], + "description": "Deletes a cloud service.", + "operationId": "CloudServices_Delete", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service": { + "$ref": "./examples/CloudService_Delete.json" + } + } + }, + "get": { + "tags": [ + "CloudServices" + ], + "description": "Display information about a cloud service.", + "operationId": "CloudServices_Get", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service with Multiple Roles and RDP Extension": { + "$ref": "./examples/CloudService_Get_WithMultiRoleAndRDP.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets the status of a cloud service.", + "operationId": "CloudServices_GetInstanceView", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceInstanceView" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Instance View with Multiple Roles": { + "$ref": "./examples/CloudService_Get_InstanceViewWithMultiRole.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.", + "operationId": "CloudServices_ListAll", + "parameters": [ + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Cloud Services in a Subscription": { + "$ref": "./examples/CloudService_List_BySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.", + "operationId": "CloudServices_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Cloud Services in a Resource Group": { + "$ref": "./examples/CloudService_List_ByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Starts the cloud service.", + "operationId": "CloudServices_Start", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start Cloud Service": { + "$ref": "./examples/CloudService_Start.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.", + "operationId": "CloudServices_PowerOff", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop or PowerOff Cloud Service": { + "$ref": "./examples/CloudService_PowerOff.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Restarts one or more role instances in a cloud service.", + "operationId": "CloudServices_Restart", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Restart Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Restart_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", + "operationId": "CloudServices_Reimage", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Reimage Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Reimage_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.", + "operationId": "CloudServices_Rebuild", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Rebuild Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Deletes role instances in a cloud service.", + "operationId": "CloudServices_DeleteInstances", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Delete_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}": { + "put": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Updates the role instances in the specified update domain.", + "operationId": "CloudServicesUpdateDomain_WalkUpdateDomain", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "updateDomain", + "description": "Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The update domain object.", + "schema": { + "$ref": "#/definitions/UpdateDomain" + } + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update Cloud Service to specified Domain": { + "$ref": "./examples/CloudServiceUpdateDomain_Update.json" + } + } + }, + "get": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains.", + "operationId": "CloudServicesUpdateDomain_GetUpdateDomain", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "updateDomain", + "description": "Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomain" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Update Domain": { + "$ref": "./examples/CloudServiceUpdateDomain_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains": { + "get": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Gets a list of all update domains in a cloud service.", + "operationId": "CloudServicesUpdateDomain_ListUpdateDomains", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomainListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Update Domains in Cloud Service": { + "$ref": "./examples/CloudServiceUpdateDomain_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.", + "operationId": "CloudServiceOperatingSystems_GetOSVersion", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS version pertains to.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "osVersionName", + "description": "Name of the OS version.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersion" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service OS Version": { + "$ref": "./examples/CloudServiceOSVersion_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.", + "operationId": "CloudServiceOperatingSystems_ListOSVersions", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS versions pertain to.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersionListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Cloud Service OS Versions in a subscription": { + "$ref": "./examples/CloudServiceOSVersion_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.", + "operationId": "CloudServiceOperatingSystems_GetOSFamily", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS family pertains to.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "osFamilyName", + "description": "Name of the OS family.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamily" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get Cloud Service OS Family": { + "$ref": "./examples/CloudServiceOSFamily_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.", + "operationId": "CloudServiceOperatingSystems_ListOSFamilies", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS families pertain to.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamilyListResult" + } + }, + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List Cloud Service OS Families in a subscription": { + "$ref": "./examples/CloudServiceOSFamilies_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "InstanceSku": { + "type": "object", + "properties": { + "name": { + "description": "The sku name.", + "type": "string", + "readOnly": true + }, + "tier": { + "description": "The tier of the cloud service role instance.", + "type": "string", + "readOnly": true + } + } + }, + "RoleInstanceNetworkProfile": { + "description": "Describes the network profile for the role instance.", + "type": "object", + "properties": { + "networkInterfaces": { + "description": "Specifies the list of resource Ids for the network interfaces associated with the role instance.", + "type": "array", + "items": { + "$ref": "../common.json#/definitions/SubResource" + }, + "readOnly": true + } + } + }, + "ResourceInstanceViewStatus": { + "description": "Instance view status.", + "type": "object", + "properties": { + "code": { + "description": "The status code.", + "type": "string", + "readOnly": true + }, + "displayStatus": { + "description": "The short localizable label for the status.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The detailed status message, including for alerts and error messages.", + "type": "string", + "readOnly": true + }, + "time": { + "format": "date-time", + "description": "The time of the status.", + "type": "string", + "readOnly": true + }, + "level": { + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "type": "string", + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": false + } + } + } + }, + "RoleInstanceInstanceView": { + "description": "The instance view of the role instance.", + "type": "object", + "properties": { + "platformUpdateDomain": { + "format": "int32", + "description": "The Update Domain.", + "type": "integer", + "readOnly": true + }, + "platformFaultDomain": { + "format": "int32", + "description": "The Fault Domain.", + "type": "integer", + "readOnly": true + }, + "privateId": { + "description": "Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + "type": "string", + "readOnly": true + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceInstanceViewStatus" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "RoleInstanceProperties": { + "type": "object", + "properties": { + "networkProfile": { + "$ref": "#/definitions/RoleInstanceNetworkProfile" + }, + "instanceView": { + "$ref": "#/definitions/RoleInstanceInstanceView" + } + } + }, + "RoleInstance": { + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource Name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource Type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource Location.", + "type": "string", + "readOnly": true + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/InstanceSku" + }, + "properties": { + "$ref": "#/definitions/RoleInstanceProperties" + } + } + }, + "RoleInstanceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/RoleInstance" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "CloudServiceRoleSku": { + "description": "Describes the cloud service role sku.", + "type": "object", + "properties": { + "name": { + "description": "The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.", + "type": "string" + }, + "tier": { + "description": "Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**", + "type": "string" + }, + "capacity": { + "format": "int64", + "description": "Specifies the number of role instances in the cloud service.", + "type": "integer" + } + } + }, + "CloudServiceRoleProperties": { + "description": "", + "type": "object", + "properties": { + "uniqueId": { + "description": "Specifies the ID which uniquely identifies a cloud service role.", + "type": "string", + "readOnly": true + } + } + }, + "CloudServiceRole": { + "description": "Describes a role of the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location", + "type": "string", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/CloudServiceRoleSku" + }, + "properties": { + "$ref": "#/definitions/CloudServiceRoleProperties" + } + } + }, + "CloudServiceRoleListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceRole" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "CloudServiceUpgradeMode": { + "description": "Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains.\r\nPossible Values are

**Auto**

**Manual**

**Simultaneous**

\r\nIf not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.", + "enum": [ + "Auto", + "Manual", + "Simultaneous" + ], + "type": "string", + "x-ms-enum": { + "name": "CloudServiceUpgradeMode", + "modelAsString": true + } + }, + "CloudServiceRoleProfileProperties": { + "description": "Describes the role properties.", + "type": "object", + "properties": { + "name": { + "description": "Resource name.", + "type": "string" + }, + "sku": { + "$ref": "#/definitions/CloudServiceRoleSku" + } + } + }, + "CloudServiceRoleProfile": { + "description": "Describes the role profile for the cloud service.", + "type": "object", + "properties": { + "roles": { + "description": "List of roles for the cloud service.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceRoleProfileProperties" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "CloudServiceVaultCertificate": { + "description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance.", + "type": "object", + "properties": { + "certificateUrl": { + "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret.", + "type": "string" + } + } + }, + "CloudServiceVaultSecretGroup": { + "description": "Describes a set of certificates which are all in the same Key Vault.", + "type": "object", + "properties": { + "sourceVault": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates." + }, + "vaultCertificates": { + "description": "The list of key vault references in SourceVault which contain certificates.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceVaultCertificate" + }, + "x-ms-identifiers": [ + "certificateUrl" + ] + } + } + }, + "CloudServiceOsProfile": { + "description": "Describes the OS profile for the cloud service.", + "type": "object", + "properties": { + "secrets": { + "description": "Specifies set of certificates that should be installed onto the role instances.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceVaultSecretGroup" + }, + "x-ms-identifiers": [ + "sourceVault/id" + ] + } + } + }, + "LoadBalancerFrontendIPConfigurationProperties": { + "description": "Describes a cloud service IP Configuration", + "type": "object", + "properties": { + "publicIPAddress": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The reference to the public ip address resource." + }, + "subnet": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The reference to the virtual network subnet resource." + }, + "privateIPAddress": { + "description": "The virtual network private IP address of the IP configuration.", + "type": "string" + } + } + }, + "LoadBalancerFrontendIPConfiguration": { + "type": "object", + "properties": { + "name": { + "description": "The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/LoadBalancerFrontendIPConfigurationProperties", + "description": "Properties of load balancer frontend ip configuration." + } + }, + "required": [ + "name", + "properties" + ] + }, + "LoadBalancerConfigurationProperties": { + "type": "object", + "properties": { + "frontendIPConfigurations": { + "description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancerFrontendIPConfiguration" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "frontendIPConfigurations" + ] + }, + "LoadBalancerConfiguration": { + "description": "Describes the load balancer configuration.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string" + }, + "name": { + "description": "The name of the Load balancer", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/LoadBalancerConfigurationProperties", + "description": "Properties of the load balancer configuration." + } + }, + "required": [ + "name", + "properties" + ] + }, + "CloudServiceNetworkProfile": { + "description": "Network Profile for the cloud service.", + "type": "object", + "properties": { + "loadBalancerConfigurations": { + "description": "List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancerConfiguration" + } + }, + "swappableCloudService": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown." + } + } + }, + "CloudServiceVaultAndSecretReference": { + "type": "object", + "properties": { + "sourceVault": { + "$ref": "../common.json#/definitions/SubResource" + }, + "secretUrl": { + "type": "string" + } + } + }, + "CloudServiceExtensionProperties": { + "description": "Extension Properties.", + "type": "object", + "properties": { + "publisher": { + "description": "The name of the extension handler publisher.", + "type": "string" + }, + "type": { + "description": "Specifies the type of the extension.", + "type": "string" + }, + "typeHandlerVersion": { + "description": "Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.", + "type": "string" + }, + "autoUpgradeMinorVersion": { + "description": "Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.", + "type": "boolean" + }, + "settings": { + "description": "Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.", + "type": "string" + }, + "protectedSettings": { + "description": "Protected settings for the extension which are encrypted before sent to the role instance.", + "type": "string" + }, + "protectedSettingsFromKeyVault": { + "$ref": "#/definitions/CloudServiceVaultAndSecretReference" + }, + "forceUpdateTag": { + "description": "Tag to force apply the provided public and protected settings.\r\nChanging the tag value allows for re-running the extension without changing any of the public or protected settings.\r\nIf forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler.\r\nIf neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and\r\nit is up to handler implementation whether to re-run it or not", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning state, which only appears in the response.", + "type": "string", + "readOnly": true + }, + "rolesAppliedTo": { + "description": "Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Extension": { + "description": "Describes a cloud service Extension.", + "type": "object", + "properties": { + "name": { + "description": "The name of the extension.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/CloudServiceExtensionProperties" + } + } + }, + "CloudServiceExtensionProfile": { + "description": "Describes a cloud service extension profile.", + "type": "object", + "properties": { + "extensions": { + "description": "List of extensions for the cloud service.", + "type": "array", + "items": { + "$ref": "#/definitions/Extension" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "CloudServiceProperties": { + "description": "Cloud service properties", + "type": "object", + "properties": { + "packageUrl": { + "description": "Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.\r\nThis is a write-only property and is not returned in GET calls.", + "type": "string" + }, + "configuration": { + "description": "Specifies the XML service configuration (.cscfg) for the cloud service.", + "type": "string" + }, + "configurationUrl": { + "description": "Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.\r\nThis is a write-only property and is not returned in GET calls.", + "type": "string" + }, + "startCloudService": { + "description": "(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.\r\nIf false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.", + "type": "boolean" + }, + "allowModelOverride": { + "description": "(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.\r\nThe default value is `false`.", + "type": "boolean" + }, + "upgradeMode": { + "$ref": "#/definitions/CloudServiceUpgradeMode" + }, + "roleProfile": { + "$ref": "#/definitions/CloudServiceRoleProfile" + }, + "osProfile": { + "$ref": "#/definitions/CloudServiceOsProfile" + }, + "networkProfile": { + "$ref": "#/definitions/CloudServiceNetworkProfile" + }, + "extensionProfile": { + "$ref": "#/definitions/CloudServiceExtensionProfile" + }, + "provisioningState": { + "description": "The provisioning state, which only appears in the response.", + "type": "string", + "readOnly": true + }, + "uniqueId": { + "description": "The unique identifier for the cloud service.", + "type": "string", + "readOnly": true + } + } + }, + "CloudService": { + "description": "Describes the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string" + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/CloudServiceProperties" + } + }, + "x-ms-azure-resource": true, + "required": [ + "location" + ] + }, + "CloudServiceUpdate": { + "type": "object", + "properties": { + "tags": { + "description": "Resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "StatusCodeCount": { + "type": "object", + "properties": { + "code": { + "description": "The instance view status code", + "type": "string", + "readOnly": true + }, + "count": { + "format": "int32", + "description": "Number of instances having this status code", + "type": "integer", + "readOnly": true + } + } + }, + "InstanceViewStatusesSummary": { + "description": "Instance view statuses.", + "type": "object", + "properties": { + "statusesSummary": { + "type": "array", + "items": { + "$ref": "#/definitions/StatusCodeCount" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CloudServiceInstanceView": { + "description": "InstanceView of CloudService as a whole", + "type": "object", + "properties": { + "roleInstance": { + "$ref": "#/definitions/InstanceViewStatusesSummary" + }, + "sdkVersion": { + "description": "The version of the SDK that was used to generate the package for the cloud service.", + "type": "string", + "readOnly": true + }, + "privateIds": { + "description": "Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceInstanceViewStatus" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CloudServiceListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/CloudService" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "RoleInstances": { + "description": "Specifies a list of role instances from the cloud service.", + "type": "object", + "properties": { + "roleInstances": { + "description": "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "roleInstances" + ] + }, + "UpdateDomain": { + "description": "Defines an update domain for the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource Name", + "type": "string", + "readOnly": true + } + } + }, + "UpdateDomainListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/UpdateDomain" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "OSVersionProperties": { + "description": "OS version properties.", + "type": "object", + "properties": { + "family": { + "description": "The family of this OS version.", + "type": "string", + "readOnly": true + }, + "familyLabel": { + "description": "The family label of this OS version.", + "type": "string", + "readOnly": true + }, + "version": { + "description": "The OS version.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS version label.", + "type": "string", + "readOnly": true + }, + "isDefault": { + "description": "Specifies whether this is the default OS version for its family.", + "type": "boolean", + "readOnly": true + }, + "isActive": { + "description": "Specifies whether this OS version is active.", + "type": "boolean", + "readOnly": true + } + } + }, + "OSVersion": { + "description": "Describes a cloud service OS version.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OSVersionProperties" + } + } + }, + "OSVersionListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OSVersion" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "OSVersionPropertiesBase": { + "description": "Configuration view of an OS version.", + "type": "object", + "properties": { + "version": { + "description": "The OS version.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS version label.", + "type": "string", + "readOnly": true + }, + "isDefault": { + "description": "Specifies whether this is the default OS version for its family.", + "type": "boolean", + "readOnly": true + }, + "isActive": { + "description": "Specifies whether this OS version is active.", + "type": "boolean", + "readOnly": true + } + } + }, + "OSFamilyProperties": { + "description": "OS family properties.", + "type": "object", + "properties": { + "name": { + "description": "The OS family name.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS family label.", + "type": "string", + "readOnly": true + }, + "versions": { + "description": "List of OS versions belonging to this family.", + "type": "array", + "items": { + "$ref": "#/definitions/OSVersionPropertiesBase" + }, + "x-ms-identifiers": [ + "version" + ], + "readOnly": true + } + } + }, + "OSFamily": { + "description": "Describes a cloud service OS family.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OSFamilyProperties" + } + } + }, + "OSFamilyListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/OSFamily" + } + }, + "nextLink": { + "type": "string" + } + }, + "required": [ + "value" + ] + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json new file mode 100644 index 000000000000..f01189a0b596 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "3", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/3", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "3", + "label": "Windows Server 2012", + "versions": [ + { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + }, + { + "name": "4", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/4", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "4", + "label": "Windows Server 2012 R2", + "versions": [ + { + "version": "WA-GUEST-OS-4.83_202010-02", + "label": "Windows Azure Guest OS 4.83 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json new file mode 100644 index 000000000000..e45f47706064 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "osFamilyName": "3", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "3", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/3", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "3", + "label": "Windows Server 2012", + "versions": [ + { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json new file mode 100644 index 000000000000..4c691cefc2b6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "osVersionName": "WA-GUEST-OS-3.90_202010-02", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "WA-GUEST-OS-3.90_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "3", + "familyLabel": "Windows Server 2012" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json new file mode 100644 index 000000000000..273ced2ed748 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WA-GUEST-OS-3.90_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "3", + "familyLabel": "Windows Server 2012" + } + }, + { + "name": "WA-GUEST-OS-4.83_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-4.83_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-4.83_202010-02", + "label": "Windows Azure Guest OS 4.83 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "4", + "familyLabel": "Windows Server 2012 R2" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json new file mode 100644 index 000000000000..0117ac0eced0 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json new file mode 100644 index 000000000000..ef635cdeeaf3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{roleInstance-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/{roleInstance-name}", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/{roleInstance-name}/networkInterfaces/nic1" + } + ] + } + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json new file mode 100644 index 000000000000..12fbb0c10754 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "platformUpdateDomain": 0, + "platformFaultDomain": 0, + "privateId": "3491bc0c-1f6c-444f-b1d0-ec0751a74e3e", + "statuses": [ + { + "code": "RoleState/RoleStateStarted", + "level": "Info", + "displayStatus": "RoleStateStarted", + "message": "" + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json new file mode 100644 index 000000000000..ee48aac6c45f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleName": "{role-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{role-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/{role-name}", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:{role-name}" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json new file mode 100644 index 000000000000..95b55f7dbccf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoFrontend", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/ContosoFrontend", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:ContosoFrontend" + } + }, + { + "name": "ContosoBackend", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/ContosoBackend", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:ContosoBackend" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json new file mode 100644 index 000000000000..ca159d836133 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoFrontend_IN_0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_0", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_0/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoFrontend_IN_1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_1", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_1/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoBackend_IN_0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_0", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_0/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoBackend_IN_1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_1", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_1/networkInterfaces/nic1" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json new file mode 100644 index 000000000000..864b25ba3604 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "updateDomain": 1, + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/1" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json new file mode 100644 index 000000000000..e9485ab228b9 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/0" + }, + { + "name": "1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/1" + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json new file mode 100644 index 000000000000..48f8bbfce76c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "updateDomain": 1, + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json new file mode 100644 index 000000000000..d35c9adfd5bc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json @@ -0,0 +1,171 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + }, + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoBackend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json new file mode 100644 index 000000000000..f9a4f43ab4ff --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json @@ -0,0 +1,147 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "location": "westus", + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/5393f919-a68a-43d0-9063-4b2bda6bffdf/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "packageUrl": "{PackageUrl}", + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/5393f919-a68a-43d0-9063-4b2bda6bffdf/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "packageUrl": "{PackageUrl}", + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json new file mode 100644 index 000000000000..fc8101c5d3cb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json @@ -0,0 +1,183 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "location": "westus", + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json new file mode 100644 index 000000000000..c128d6a9c9b9 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json @@ -0,0 +1,198 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "properties": { + "extensionProfile": { + "extensions": [ + { + "properties": { + "type": "RDP", + "autoUpgradeMinorVersion": false, + "protectedSettings": "{password}", + "publisher": "Microsoft.Windows.Azure.Extensions", + "settings": "UserAzure10/22/2021 15:05:45", + "typeHandlerVersion": "1.2.1" + }, + "name": "RDPExtension" + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Creating", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2.1", + "settings": "UserAzure10/22/2021 15:05:45" + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Creating", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2.1", + "settings": "UserAzure10/22/2021 15:05:45" + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json new file mode 100644 index 000000000000..bc450ba027d2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json new file mode 100644 index 000000000000..c4d013429a44 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + }, + { + "code": "RoleState/RoleStateStarted", + "count": 4 + } + ] + }, + "sdkVersion": "2.9.6496.3", + "privateIds": [ + "3491bc0c-1f6c-444f-b1d0-ec0751a74e3e" + ], + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "time": "2021-01-12T16:50:07.0953535+05:30" + }, + { + "code": "PowerState/started", + "level": "Info", + "displayStatus": "Started", + "time": "2021-01-12T16:50:07.0953535+05:30" + }, + { + "code": "CurrentUpgradeDomain/-1", + "level": "Info", + "displayStatus": "Current Upgrade Domain of cloud service is -1." + }, + { + "code": "MaxUpgradeDomain/1", + "level": "Info", + "displayStatus": "Max Upgrade Domain of cloud service is 1." + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json new file mode 100644 index 000000000000..1ae071ef8625 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2.1", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json new file mode 100644 index 000000000000..8bec2da3ebf3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2.1", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json new file mode 100644 index 000000000000..9cc1d1a55a4e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2.1", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json new file mode 100644 index 000000000000..176f711a9882 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json new file mode 100644 index 000000000000..176f711a9882 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json new file mode 100644 index 000000000000..20041f5f6029 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "tags": { + "Documentation": "RestAPI" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "tags": { + "Documentation": "RestAPI" + }, + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json new file mode 100644 index 000000000000..07e45b1012e5 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json @@ -0,0 +1,204 @@ +{ + "swagger": "2.0", + "info": { + "title": "ComputeManagementClient", + "description": "The Compute Management Client.", + "version": "2022-04-04" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Compute service." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "x-ms-identifiers": [ + "message", + "target" + ], + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "SubResourceReadOnly": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "ExtendedLocationType": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "The complex type of the extended location.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 0e313094be2b..358dafa40648 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -34,7 +34,7 @@ These are the global settings for the Compute API. title: ComputeManagementClient description: Compute Client openapi-type: arm -tag: package-2021-12-01 +tag: package-2022-04-04 directive: - where: @@ -235,6 +235,33 @@ directive: - RequiredPropertiesMissingInResourceModel ``` +### Tag: package-2022-04-04 + +These settings apply only when `--tag=package-2022-04-04` is specified on the command line. + +``` yaml $(tag) == 'package-2022-04-04' +input-file: +- Microsoft.Compute/stable/2022-04-04/common.json +- Microsoft.Compute/stable/2021-11-01/compute.json +- Microsoft.Compute/stable/2021-11-01/runCommands.json +- Microsoft.Compute/stable/2021-07-01/skus.json +- Microsoft.Compute/stable/2021-12-01/disk.json +- Microsoft.Compute/stable/2021-10-01/gallery.json +- Microsoft.Compute/stable/2021-07-01/sharedGallery.json +- Microsoft.Compute/stable/2021-07-01/communityGallery.json +- Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +``` + +### Tag: package-2022-04-04-only + +These settings apply only when `--tag=package-2022-04-04-oly` is specified on the command line. + +``` yaml $(tag) == 'package-2022-04-04-only' +input-file: +- Microsoft.Compute/stable/2022-04-04/common.json +- Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +``` + ### Tag: package-2021-12-01 These settings apply only when `--tag=package-2021-12-01` is specified on the command line. From 0478d4cd2e9209f7262745110e7041b3489725d0 Mon Sep 17 00:00:00 2001 From: Arpit Khandelwal Date: Tue, 7 Jun 2022 00:54:37 -0700 Subject: [PATCH 02/11] Update cloud service swagger file and examples (#19311) * Update cloud service swagger file and examples * Update cloudService.json Co-authored-by: Arpit Khandelwal --- .../CloudServiceRP/cloudService.json | 442 ++++++++++-------- ...dServiceRoleInstance_Get_InstanceView.json | 2 +- ...ceRoleInstance_Reimage_ByCloudService.json | 2 +- .../CloudServiceRoleInstance_Restart.json | 2 +- ...ceRoleInstance_Restart_ByCloudService.json | 2 +- .../CloudService_Create_WithMultiRole.json | 8 + .../CloudService_Create_WithSingleRole.json | 8 + ...e_Create_WithSingleRoleAndCertificate.json | 8 + ...udService_Create_WithSingleRoleAndRDP.json | 14 +- .../CloudService_Get_WithMultiRoleAndRDP.json | 6 +- .../CloudService_List_ByResourceGroup.json | 2 +- .../CloudService_List_BySubscription.json | 2 +- 12 files changed, 302 insertions(+), 196 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index ffeb575880a6..a8932ac97967 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -52,12 +52,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -69,6 +71,12 @@ } ], "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, "200": { "description": "OK" }, @@ -77,12 +85,6 @@ }, "204": { "description": "No Content" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../common.json#/definitions/CloudError" - } } }, "x-ms-long-running-operation": true, @@ -109,12 +111,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -140,17 +144,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RoleInstance" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstance" + } } }, "x-ms-examples": { @@ -178,12 +182,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -195,17 +201,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RoleInstanceInstanceView" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceInstanceView" + } } }, "x-ms-examples": { @@ -226,12 +232,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -257,17 +265,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RoleInstanceListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceListResult" + } } }, "x-ms-examples": { @@ -298,12 +306,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -315,17 +325,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -354,12 +364,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -371,17 +383,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -410,12 +422,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -427,17 +441,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -469,12 +483,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -486,18 +502,18 @@ } ], "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, "200": { "description": "OK", "schema": { "format": "binary", "type": "file" } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../common.json#/definitions/CloudError" - } } } } @@ -520,12 +536,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -537,17 +555,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudServiceRole" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRole" + } } }, "x-ms-examples": { @@ -568,12 +586,14 @@ { "in": "path", "name": "resourceGroupName", + "description": "Name of the resource group.", "required": true, "type": "string" }, { "in": "path", "name": "cloudServiceName", + "description": "Name of the cloud service.", "required": true, "type": "string" }, @@ -585,17 +605,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudServiceRoleListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRoleListResult" + } } }, "x-ms-examples": { @@ -646,6 +666,12 @@ } ], "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, "200": { "description": "OK", "schema": { @@ -657,12 +683,6 @@ "schema": { "$ref": "#/definitions/CloudService" } - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../common.json#/definitions/CloudError" - } } }, "x-ms-long-running-operation": true, @@ -718,17 +738,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudService" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } } }, "x-ms-long-running-operation": true, @@ -767,6 +787,12 @@ } ], "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, "200": { "description": "OK" }, @@ -775,12 +801,6 @@ }, "204": { "description": "No Content" - }, - "default": { - "description": "Error", - "schema": { - "$ref": "../common.json#/definitions/CloudError" - } } }, "x-ms-long-running-operation": true, @@ -819,17 +839,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudService" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } } }, "x-ms-examples": { @@ -869,17 +889,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudServiceInstanceView" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceInstanceView" + } } }, "x-ms-examples": { @@ -905,17 +925,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudServiceListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } } }, "x-ms-examples": { @@ -951,17 +971,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CloudServiceListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } } }, "x-ms-examples": { @@ -1004,17 +1024,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1055,17 +1075,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1114,17 +1134,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1173,17 +1193,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1232,17 +1252,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1291,17 +1311,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1358,17 +1378,17 @@ } ], "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" } }, "x-ms-long-running-operation": true, @@ -1415,17 +1435,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UpdateDomain" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomain" + } } }, "x-ms-examples": { @@ -1465,17 +1485,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/UpdateDomainListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomainListResult" + } } }, "x-ms-examples": { @@ -1518,17 +1538,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OSVersion" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersion" + } } }, "x-ms-examples": { @@ -1561,17 +1581,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OSVersionListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersionListResult" + } } }, "x-ms-examples": { @@ -1614,17 +1634,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OSFamily" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamily" + } } }, "x-ms-examples": { @@ -1657,17 +1677,17 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/OSFamilyListResult" - } - }, "default": { "description": "Error", "schema": { "$ref": "../common.json#/definitions/CloudError" } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamilyListResult" + } } }, "x-ms-examples": { @@ -1683,6 +1703,7 @@ }, "definitions": { "InstanceSku": { + "description": "The role instance SKU.", "type": "object", "properties": { "name": { @@ -1783,6 +1804,7 @@ } }, "RoleInstanceProperties": { + "description": "Role instance properties.", "type": "object", "properties": { "networkProfile": { @@ -1794,6 +1816,7 @@ } }, "RoleInstance": { + "description": "Describes the cloud service role instance.", "type": "object", "properties": { "id": { @@ -1833,15 +1856,18 @@ } }, "RoleInstanceListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/RoleInstance" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, @@ -1869,7 +1895,7 @@ } }, "CloudServiceRoleProperties": { - "description": "", + "description": "The cloud service role properties.", "type": "object", "properties": { "uniqueId": { @@ -1912,15 +1938,18 @@ } }, "CloudServiceRoleListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/CloudServiceRole" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, @@ -2035,6 +2064,7 @@ } }, "LoadBalancerFrontendIPConfiguration": { + "description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", "type": "object", "properties": { "name": { @@ -2052,6 +2082,7 @@ ] }, "LoadBalancerConfigurationProperties": { + "description": "Describes the properties of the load balancer configuration.", "type": "object", "properties": { "frontendIPConfigurations": { @@ -2112,12 +2143,15 @@ "type": "object", "properties": { "sourceVault": { - "$ref": "../common.json#/definitions/SubResource" + "$ref": "../common.json#/definitions/SubResource", + "description": "The ARM Resource ID of the Key Vault" }, "secretUrl": { - "type": "string" + "type": "string", + "description": "Secret URL which contains the protected settings of the extension" } - } + }, + "description": "Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance." }, "CloudServiceExtensionProperties": { "description": "Extension Properties.", @@ -2141,11 +2175,11 @@ }, "settings": { "description": "Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.", - "type": "string" + "type": "object" }, "protectedSettings": { "description": "Protected settings for the extension which are encrypted before sent to the role instance.", - "type": "string" + "type": "object" }, "protectedSettingsFromKeyVault": { "$ref": "#/definitions/CloudServiceVaultAndSecretReference" @@ -2248,6 +2282,25 @@ } } }, + "SystemData": { + "description": "The system meta data relating to this resource.", + "type": "object", + "properties": { + "createdAt": { + "format": "date-time", + "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04.", + "type": "string", + "readOnly": true + }, + "lastModifiedAt": { + "format": "date-time", + "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true + }, "CloudService": { "description": "Describes the cloud service.", "type": "object", @@ -2280,6 +2333,9 @@ }, "properties": { "$ref": "#/definitions/CloudServiceProperties" + }, + "systemData": { + "$ref": "#/definitions/SystemData" } }, "x-ms-azure-resource": true, @@ -2300,6 +2356,7 @@ } }, "StatusCodeCount": { + "description": "The status code and count of the cloud service instance view statuses", "type": "object", "properties": { "code": { @@ -2320,6 +2377,7 @@ "type": "object", "properties": { "statusesSummary": { + "description": "The summary.", "type": "array", "items": { "$ref": "#/definitions/StatusCodeCount" @@ -2360,15 +2418,18 @@ } }, "CloudServiceListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/CloudService" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, @@ -2409,15 +2470,18 @@ } }, "UpdateDomainListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/UpdateDomain" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, @@ -2491,15 +2555,18 @@ } }, "OSVersionListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/OSVersion" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, @@ -2590,15 +2657,18 @@ } }, "OSFamilyListResult": { + "description": "The list operation result.", "type": "object", "properties": { "value": { + "description": "The list of resources.", "type": "array", "items": { "$ref": "#/definitions/OSFamily" } }, "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", "type": "string" } }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json index 12fbb0c10754..3b810e64fdbf 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json @@ -23,4 +23,4 @@ } } } -} +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json index 5f6b83b83932..c59f5aa55d7b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json @@ -15,4 +15,4 @@ "200": {}, "202": {} } -} +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json index fab4c2377aea..33e6aa7601c5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json @@ -10,4 +10,4 @@ "200": {}, "202": {} } -} +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json index 5f6b83b83932..c59f5aa55d7b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json @@ -15,4 +15,4 @@ "200": {}, "202": {} } -} +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json index d35c9adfd5bc..d49aa97bc4a4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json @@ -107,6 +107,10 @@ }, "provisioningState": "Updating", "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } }, @@ -164,6 +168,10 @@ }, "provisioningState": "Creating", "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json index f9a4f43ab4ff..89447d575e0b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json @@ -91,6 +91,10 @@ }, "provisioningState": "Updating", "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } }, @@ -140,6 +144,10 @@ }, "provisioningState": "Creating", "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json index fc8101c5d3cb..8ae16503eec7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json @@ -116,6 +116,10 @@ }, "provisioningState": "Updating", "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } }, @@ -176,6 +180,10 @@ }, "provisioningState": "Creating", "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json index c128d6a9c9b9..338d7324bb89 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json @@ -15,7 +15,7 @@ "protectedSettings": "{password}", "publisher": "Microsoft.Windows.Azure.Extensions", "settings": "UserAzure10/22/2021 15:05:45", - "typeHandlerVersion": "1.2.1" + "typeHandlerVersion": "1.2" }, "name": "RDPExtension" } @@ -116,7 +116,7 @@ ], "publisher": "Microsoft.Windows.Azure.Extensions", "type": "RDP", - "typeHandlerVersion": "1.2.1", + "typeHandlerVersion": "1.2", "settings": "UserAzure10/22/2021 15:05:45" } } @@ -124,6 +124,10 @@ }, "provisioningState": "Updating", "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } }, @@ -183,7 +187,7 @@ ], "publisher": "Microsoft.Windows.Azure.Extensions", "type": "RDP", - "typeHandlerVersion": "1.2.1", + "typeHandlerVersion": "1.2", "settings": "UserAzure10/22/2021 15:05:45" } } @@ -191,6 +195,10 @@ }, "provisioningState": "Creating", "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json index 1ae071ef8625..45ff1ae5fb68 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json @@ -69,7 +69,7 @@ ], "publisher": "Microsoft.Windows.Azure.Extensions", "type": "RDP", - "typeHandlerVersion": "1.2.1", + "typeHandlerVersion": "1.2", "settings": "userazure01/12/2022 16:29:02" } } @@ -77,6 +77,10 @@ }, "provisioningState": "Succeeded", "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json index 8bec2da3ebf3..492b1eeaa24e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json @@ -70,7 +70,7 @@ ], "publisher": "Microsoft.Windows.Azure.Extensions", "type": "RDP", - "typeHandlerVersion": "1.2.1", + "typeHandlerVersion": "1.2", "settings": "userazure01/12/2022 16:29:02" } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json index 9cc1d1a55a4e..19693d272ffe 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json @@ -69,7 +69,7 @@ ], "publisher": "Microsoft.Windows.Azure.Extensions", "type": "RDP", - "typeHandlerVersion": "1.2.1", + "typeHandlerVersion": "1.2", "settings": "userazure01/12/2022 16:29:02" } } From b11c2d2bf1db357198bcee587d0a139a315f2e2b Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Tue, 7 Jun 2022 17:25:09 -0500 Subject: [PATCH 03/11] move systemData object to common.json --- .../CloudServiceRP/cloudService.json | 21 +------------------ .../stable/2022-04-04/common.json | 19 +++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index a8932ac97967..7ad3b9050d4b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -2282,25 +2282,6 @@ } } }, - "SystemData": { - "description": "The system meta data relating to this resource.", - "type": "object", - "properties": { - "createdAt": { - "format": "date-time", - "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04.", - "type": "string", - "readOnly": true - }, - "lastModifiedAt": { - "format": "date-time", - "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04.", - "type": "string", - "readOnly": true - } - }, - "readOnly": true - }, "CloudService": { "description": "Describes the cloud service.", "type": "object", @@ -2335,7 +2316,7 @@ "$ref": "#/definitions/CloudServiceProperties" }, "systemData": { - "$ref": "#/definitions/SystemData" + "$ref": "../common.json#/definitions/SystemData" } }, "x-ms-azure-resource": true, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json index 07e45b1012e5..4f24c3ec9d85 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json @@ -183,6 +183,25 @@ "description": "The type of the extended location." } } + }, + "SystemData": { + "description": "The system meta data relating to this resource.", + "type": "object", + "properties": { + "createdAt": { + "format": "date-time", + "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was created.
Minimum api-version: 2022-04-04.", + "type": "string", + "readOnly": true + }, + "lastModifiedAt": { + "format": "date-time", + "description": "Specifies the time in UTC at which the Cloud Service (extended support) resource was last modified.
Minimum api-version: 2022-04-04.", + "type": "string", + "readOnly": true + } + }, + "readOnly": true } }, "parameters": { From ac94de602dc3f45d08b5001a96565783468ca68f Mon Sep 17 00:00:00 2001 From: Arpit Khandelwal Date: Wed, 8 Jun 2022 00:33:04 -0700 Subject: [PATCH 04/11] Add CloudServiceSlotType to swagger api 2022-04-04 (#19361) Co-authored-by: Arpit Khandelwal --- .../2022-04-04/CloudServiceRP/cloudService.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index 7ad3b9050d4b..90af7fdbc9e6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -2122,6 +2122,18 @@ "properties" ] }, + "CloudServiceSlotType": { + "description": "Slot type for the cloud service.\r\nPossible values are

**Production**

**Staging**

\r\nIf not specified, the default value is Production.", + "enum": [ + "Production", + "Staging" + ], + "type": "string", + "x-ms-enum": { + "name": "CloudServiceSlotType", + "modelAsString": true + } + }, "CloudServiceNetworkProfile": { "description": "Network Profile for the cloud service.", "type": "object", @@ -2133,6 +2145,9 @@ "$ref": "#/definitions/LoadBalancerConfiguration" } }, + "slotType": { + "$ref": "#/definitions/CloudServiceSlotType" + }, "swappableCloudService": { "$ref": "../common.json#/definitions/SubResource", "description": "The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown." @@ -2658,4 +2673,4 @@ ] } } -} +} \ No newline at end of file From 1d0ea99eefebd936e54db2ec25da09de8e2e4950 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 8 Jun 2022 14:22:32 -0500 Subject: [PATCH 05/11] update with prettier --- .../stable/2022-04-04/CloudServiceRP/cloudService.json | 2 +- .../examples/CloudServiceRoleInstance_Get_InstanceView.json | 2 +- .../CloudServiceRoleInstance_Reimage_ByCloudService.json | 2 +- .../examples/CloudServiceRoleInstance_Restart.json | 2 +- .../CloudServiceRoleInstance_Restart_ByCloudService.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index 90af7fdbc9e6..8d46387efa5e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -2673,4 +2673,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json index 3b810e64fdbf..12fbb0c10754 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json @@ -23,4 +23,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json index c59f5aa55d7b..5f6b83b83932 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json @@ -15,4 +15,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json index 33e6aa7601c5..fab4c2377aea 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json @@ -10,4 +10,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json index c59f5aa55d7b..5f6b83b83932 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json @@ -15,4 +15,4 @@ "200": {}, "202": {} } -} \ No newline at end of file +} From b217f7d03ac92e951d1d227aecf902e59884d3dd Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Thu, 9 Jun 2022 12:48:58 -0500 Subject: [PATCH 06/11] resolve readme input --- specification/compute/resource-manager/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 2d2605c3bd19..ca8b145503c1 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -240,9 +240,9 @@ directive: These settings apply only when `--tag=package-2022-04-04` is specified on the command line. -``` yaml $(tag) == 'package-2022-03-02' +``` yaml $(tag) == 'package-2022-04-04' input-file: -- Microsoft.Compute/stable/2022-04-/04/common.json +- Microsoft.Compute/stable/2022-04-04/common.json - Microsoft.Compute/stable/2022-03-01/ComputeRP/computeRPCommon.json - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineScaleSet.json - Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachine.json @@ -268,7 +268,7 @@ input-file: - Microsoft.Compute/stable/2022-01-03/GalleryRP/gallery.json - Microsoft.Compute/stable/2022-01-03/GalleryRP/sharedGallery.json - Microsoft.Compute/stable/2022-01-03/GalleryRP/communityGallery.json -- Microsoft.Compute/stable/2022-04-04/cloudService.json +- Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json ``` ### Tag: package-2022-04-04-only From 7ddb958866b1c0b986644d8a13e653ba52be4cf5 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Fri, 10 Jun 2022 13:29:18 -0500 Subject: [PATCH 07/11] add missing example --- .../2022-04-04/CloudServiceRP/cloudService.json | 5 +++++ ...dServiceRoleInstance_Get_RemoteDesktopFile.json | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index 8d46387efa5e..07b114a952ca 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -514,6 +514,11 @@ "format": "binary", "type": "file" } + }, + "x-ms-examples": { + "Get Cloud Service Role": { + "$ref": "./examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json" + } } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json new file mode 100644 index 000000000000..2dd983464b57 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleInstanceName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgcloudService", + "cloudServiceName": "aaaa", + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file From f5a215c605d236b2b86d1890a752cc8e8670b153 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Mon, 13 Jun 2022 12:27:22 -0500 Subject: [PATCH 08/11] fix example error, update common with latest change. --- .../CloudServiceRP/cloudService.json | 10 ++-- ...iceRoleInstance_Get_RemoteDesktopFile.json | 2 +- .../stable/2022-04-04/common.json | 53 +++++++++++++++++++ 3 files changed, 59 insertions(+), 6 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json index 07b114a952ca..fc061ae2e305 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json @@ -514,11 +514,11 @@ "format": "binary", "type": "file" } - }, - "x-ms-examples": { - "Get Cloud Service Role": { - "$ref": "./examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json" - } + } + }, + "x-ms-examples": { + "Get Cloud Service Role": { + "$ref": "./examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json index 2dd983464b57..0229672f9e0c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json @@ -11,4 +11,4 @@ "body": {} } } -} \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json index 4f24c3ec9d85..b888599f21e4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json @@ -160,6 +160,39 @@ }, "x-ms-azure-resource": true }, + "ResourceWithOptionalLocation": { + "type": "object", + "description": "The Resource model definition with location property as optional.", + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true + }, "ExtendedLocationType": { "type": "string", "description": "The type of extendedLocation.", @@ -184,6 +217,26 @@ } } }, + "UserAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "x-ms-client-name": "userAssignedIdentitiesValue", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + }, "SystemData": { "description": "The system meta data relating to this resource.", "type": "object", From 44441845769bd7b9cad113e4ac53cc316e89775a Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 15 Jun 2022 15:52:24 -0500 Subject: [PATCH 09/11] set up branch --- .../cloudServiceRP/cloudService.json | 2676 +++++++++++++++++ .../examples/CloudServiceOSFamilies_List.json | 51 + .../examples/CloudServiceOSFamily_Get.json | 30 + .../examples/CloudServiceOSVersion_Get.json | 26 + .../examples/CloudServiceOSVersion_List.json | 43 + .../CloudServiceRoleInstance_Delete.json | 14 + ...iceRoleInstance_Delete_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Get.json | 32 + ...dServiceRoleInstance_Get_InstanceView.json | 26 + ...iceRoleInstance_Get_RemoteDesktopFile.json | 14 + .../CloudServiceRoleInstance_Rebuild.json | 13 + ...ceRoleInstance_Rebuild_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Reimage.json | 13 + ...ceRoleInstance_Reimage_ByCloudService.json | 18 + .../CloudServiceRoleInstance_Restart.json | 13 + ...ceRoleInstance_Restart_ByCloudService.json | 18 + .../examples/CloudServiceRole_Get.json | 27 + .../examples/CloudServiceRole_List.json | 44 + .../CloudServiceRolesInstance_List.json | 92 + .../CloudServiceUpdateDomain_Get.json | 17 + .../CloudServiceUpdateDomain_List.json | 24 + .../CloudServiceUpdateDomain_Update.json | 13 + .../CloudService_Create_WithMultiRole.json | 179 ++ .../CloudService_Create_WithSingleRole.json | 155 + ...e_Create_WithSingleRoleAndCertificate.json | 191 ++ ...udService_Create_WithSingleRoleAndRDP.json | 206 ++ .../examples/CloudService_Delete.json | 13 + ...Service_Get_InstanceViewWithMultiRole.json | 58 + .../CloudService_Get_WithMultiRoleAndRDP.json | 88 + .../CloudService_List_ByResourceGroup.json | 87 + .../CloudService_List_BySubscription.json | 86 + .../examples/CloudService_PowerOff.json | 12 + .../examples/CloudService_Start.json | 12 + .../CloudService_Update_ToIncludeTags.json | 74 + .../stable/2022-04-04/common.json | 257 ++ .../compute/resource-manager/readme.md | 51 +- 36 files changed, 4707 insertions(+), 2 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json new file mode 100644 index 000000000000..8d46387efa5e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json @@ -0,0 +1,2676 @@ +{ + "swagger": "2.0", + "info": { + "title": "CloudServiceManagementClient", + "description": "The Cloud Service Management Client.", + "version": "2022-04-04" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}": { + "delete": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Deletes a role instance from a cloud service.", + "operationId": "CloudServiceRoleInstances_Delete", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Delete.json" + } + } + }, + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets a role instance from a cloud service.", + "operationId": "CloudServiceRoleInstances_Get", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "$expand", + "description": "The expand expression to apply to the operation. 'UserData' is not supported for cloud services.", + "type": "string", + "enum": [ + "instanceView", + "userData" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstance" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Retrieves information about the run-time state of a role instance in a cloud service.", + "operationId": "CloudServiceRoleInstances_GetInstanceView", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceInstanceView" + } + } + }, + "x-ms-examples": { + "Get Instance View of Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Get_InstanceView.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets the list of all role instances in a cloud service. Use nextLink property in the response to get the next page of role instances. Do this till nextLink is null to fetch all the role instances.", + "operationId": "CloudServiceRoleInstances_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "query", + "name": "$expand", + "description": "The expand expression to apply to the operation. 'UserData' is not supported for cloud services.", + "type": "string", + "enum": [ + "instanceView", + "userData" + ], + "x-ms-enum": { + "name": "InstanceViewTypes", + "modelAsString": false + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/RoleInstanceListResult" + } + } + }, + "x-ms-examples": { + "List Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRolesInstance_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service.", + "operationId": "CloudServiceRoleInstances_Restart", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Restart Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Restart.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", + "operationId": "CloudServiceRoleInstances_Reimage", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Reimage Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Reimage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild": { + "post": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instance.", + "operationId": "CloudServiceRoleInstances_Rebuild", + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Rebuild Cloud Service Role Instance": { + "$ref": "./examples/CloudServiceRoleInstance_Rebuild.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile": { + "get": { + "tags": [ + "CloudServiceRoleInstances" + ], + "description": "Gets a remote desktop file for a role instance in a cloud service.", + "operationId": "CloudServiceRoleInstances_GetRemoteDesktopFile", + "produces": [ + "application/x-rdp" + ], + "parameters": [ + { + "in": "path", + "name": "roleInstanceName", + "description": "Name of the role instance.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "format": "binary", + "type": "file" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}": { + "get": { + "tags": [ + "CloudServiceRoles" + ], + "description": "Gets a role from a cloud service.", + "operationId": "CloudServiceRoles_Get", + "parameters": [ + { + "in": "path", + "name": "roleName", + "description": "Name of the role.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRole" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Role": { + "$ref": "./examples/CloudServiceRole_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles": { + "get": { + "tags": [ + "CloudServiceRoles" + ], + "description": "Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.", + "operationId": "CloudServiceRoles_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceRoleListResult" + } + } + }, + "x-ms-examples": { + "List Roles in a Cloud Service": { + "$ref": "./examples/CloudServiceRole_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}": { + "put": { + "tags": [ + "CloudServices" + ], + "description": "Create or update a cloud service. Please note some properties can be set only during cloud service creation.", + "operationId": "CloudServices_CreateOrUpdate", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The cloud service object.", + "schema": { + "$ref": "#/definitions/CloudService" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/CloudService" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create New Cloud Service with Single Role": { + "$ref": "./examples/CloudService_Create_WithSingleRole.json" + }, + "Create New Cloud Service with Single Role and RDP Extension": { + "$ref": "./examples/CloudService_Create_WithSingleRoleAndRDP.json" + }, + "Create New Cloud Service with Multiple Roles": { + "$ref": "./examples/CloudService_Create_WithMultiRole.json" + }, + "Create New Cloud Service with Single Role and Certificate from Key Vault": { + "$ref": "./examples/CloudService_Create_WithSingleRoleAndCertificate.json" + } + } + }, + "patch": { + "tags": [ + "CloudServices" + ], + "description": "Update a cloud service.", + "operationId": "CloudServices_Update", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The cloud service object.", + "schema": { + "$ref": "#/definitions/CloudServiceUpdate" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update existing Cloud Service to add tags": { + "$ref": "./examples/CloudService_Update_ToIncludeTags.json" + } + } + }, + "delete": { + "tags": [ + "CloudServices" + ], + "description": "Deletes a cloud service.", + "operationId": "CloudServices_Delete", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service": { + "$ref": "./examples/CloudService_Delete.json" + } + } + }, + "get": { + "tags": [ + "CloudServices" + ], + "description": "Display information about a cloud service.", + "operationId": "CloudServices_Get", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudService" + } + } + }, + "x-ms-examples": { + "Get Cloud Service with Multiple Roles and RDP Extension": { + "$ref": "./examples/CloudService_Get_WithMultiRoleAndRDP.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets the status of a cloud service.", + "operationId": "CloudServices_GetInstanceView", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceInstanceView" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Instance View with Multiple Roles": { + "$ref": "./examples/CloudService_Get_InstanceViewWithMultiRole.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets a list of all cloud services in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.", + "operationId": "CloudServices_ListAll", + "parameters": [ + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } + } + }, + "x-ms-examples": { + "List Cloud Services in a Subscription": { + "$ref": "./examples/CloudService_List_BySubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices": { + "get": { + "tags": [ + "CloudServices" + ], + "description": "Gets a list of all cloud services under a resource group. Use nextLink property in the response to get the next page of Cloud Services. Do this till nextLink is null to fetch all the Cloud Services.", + "operationId": "CloudServices_List", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CloudServiceListResult" + } + } + }, + "x-ms-examples": { + "List Cloud Services in a Resource Group": { + "$ref": "./examples/CloudService_List_ByResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Starts the cloud service.", + "operationId": "CloudServices_Start", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start Cloud Service": { + "$ref": "./examples/CloudService_Start.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Power off the cloud service. Note that resources are still attached and you are getting charged for the resources.", + "operationId": "CloudServices_PowerOff", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop or PowerOff Cloud Service": { + "$ref": "./examples/CloudService_PowerOff.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Restarts one or more role instances in a cloud service.", + "operationId": "CloudServices_Restart", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Restart Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Restart_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker roles.", + "operationId": "CloudServices_Reimage", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Reimage Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Reimage_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and initializes the storage resources that are used by them. If you do not want to initialize storage resources, you can use Reimage Role Instances.", + "operationId": "CloudServices_Rebuild", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Rebuild Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete": { + "post": { + "tags": [ + "CloudServices" + ], + "description": "Deletes role instances in a cloud service.", + "operationId": "CloudServices_DeleteInstances", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "List of cloud service role instance names.", + "schema": { + "$ref": "#/definitions/RoleInstances" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete Cloud Service Role Instances in a Cloud Service": { + "$ref": "./examples/CloudServiceRoleInstance_Delete_ByCloudService.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}": { + "put": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Updates the role instances in the specified update domain.", + "operationId": "CloudServicesUpdateDomain_WalkUpdateDomain", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "updateDomain", + "description": "Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + }, + { + "in": "body", + "name": "parameters", + "description": "The update domain object.", + "schema": { + "$ref": "#/definitions/UpdateDomain" + } + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update Cloud Service to specified Domain": { + "$ref": "./examples/CloudServiceUpdateDomain_Update.json" + } + } + }, + "get": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains.", + "operationId": "CloudServicesUpdateDomain_GetUpdateDomain", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "updateDomain", + "description": "Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomain" + } + } + }, + "x-ms-examples": { + "Get Cloud Service Update Domain": { + "$ref": "./examples/CloudServiceUpdateDomain_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains": { + "get": { + "tags": [ + "CloudServicesUpdateDomain" + ], + "description": "Gets a list of all update domains in a cloud service.", + "operationId": "CloudServicesUpdateDomain_ListUpdateDomains", + "parameters": [ + { + "in": "path", + "name": "resourceGroupName", + "description": "Name of the resource group.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "cloudServiceName", + "description": "Name of the cloud service.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/UpdateDomainListResult" + } + } + }, + "x-ms-examples": { + "List Update Domains in Cloud Service": { + "$ref": "./examples/CloudServiceUpdateDomain_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets properties of a guest operating system version that can be specified in the XML service configuration (.cscfg) for a cloud service.", + "operationId": "CloudServiceOperatingSystems_GetOSVersion", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS version pertains to.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "osVersionName", + "description": "Name of the OS version.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersion" + } + } + }, + "x-ms-examples": { + "Get Cloud Service OS Version": { + "$ref": "./examples/CloudServiceOSVersion_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets a list of all guest operating system versions available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS versions. Do this till nextLink is null to fetch all the OS versions.", + "operationId": "CloudServiceOperatingSystems_ListOSVersions", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS versions pertain to.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSVersionListResult" + } + } + }, + "x-ms-examples": { + "List Cloud Service OS Versions in a subscription": { + "$ref": "./examples/CloudServiceOSVersion_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets properties of a guest operating system family that can be specified in the XML service configuration (.cscfg) for a cloud service.", + "operationId": "CloudServiceOperatingSystems_GetOSFamily", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS family pertains to.", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "osFamilyName", + "description": "Name of the OS family.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamily" + } + } + }, + "x-ms-examples": { + "Get Cloud Service OS Family": { + "$ref": "./examples/CloudServiceOSFamily_Get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies": { + "get": { + "tags": [ + "CloudServiceOperatingSystems" + ], + "description": "Gets a list of all guest operating system families available to be specified in the XML service configuration (.cscfg) for a cloud service. Use nextLink property in the response to get the next page of OS Families. Do this till nextLink is null to fetch all the OS Families.", + "operationId": "CloudServiceOperatingSystems_ListOSFamilies", + "parameters": [ + { + "in": "path", + "name": "location", + "description": "Name of the location that the OS families pertain to.", + "required": true, + "type": "string" + }, + { + "$ref": "../common.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../common.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error", + "schema": { + "$ref": "../common.json#/definitions/CloudError" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OSFamilyListResult" + } + } + }, + "x-ms-examples": { + "List Cloud Service OS Families in a subscription": { + "$ref": "./examples/CloudServiceOSFamilies_List.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "InstanceSku": { + "description": "The role instance SKU.", + "type": "object", + "properties": { + "name": { + "description": "The sku name.", + "type": "string", + "readOnly": true + }, + "tier": { + "description": "The tier of the cloud service role instance.", + "type": "string", + "readOnly": true + } + } + }, + "RoleInstanceNetworkProfile": { + "description": "Describes the network profile for the role instance.", + "type": "object", + "properties": { + "networkInterfaces": { + "description": "Specifies the list of resource Ids for the network interfaces associated with the role instance.", + "type": "array", + "items": { + "$ref": "../common.json#/definitions/SubResource" + }, + "readOnly": true + } + } + }, + "ResourceInstanceViewStatus": { + "description": "Instance view status.", + "type": "object", + "properties": { + "code": { + "description": "The status code.", + "type": "string", + "readOnly": true + }, + "displayStatus": { + "description": "The short localizable label for the status.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "The detailed status message, including for alerts and error messages.", + "type": "string", + "readOnly": true + }, + "time": { + "format": "date-time", + "description": "The time of the status.", + "type": "string", + "readOnly": true + }, + "level": { + "description": "The level code.", + "enum": [ + "Info", + "Warning", + "Error" + ], + "type": "string", + "x-ms-enum": { + "name": "StatusLevelTypes", + "modelAsString": false + } + } + } + }, + "RoleInstanceInstanceView": { + "description": "The instance view of the role instance.", + "type": "object", + "properties": { + "platformUpdateDomain": { + "format": "int32", + "description": "The Update Domain.", + "type": "integer", + "readOnly": true + }, + "platformFaultDomain": { + "format": "int32", + "description": "The Fault Domain.", + "type": "integer", + "readOnly": true + }, + "privateId": { + "description": "Specifies a unique identifier generated internally for the cloud service associated with this role instance.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + "type": "string", + "readOnly": true + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceInstanceViewStatus" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "RoleInstanceProperties": { + "description": "Role instance properties.", + "type": "object", + "properties": { + "networkProfile": { + "$ref": "#/definitions/RoleInstanceNetworkProfile" + }, + "instanceView": { + "$ref": "#/definitions/RoleInstanceInstanceView" + } + } + }, + "RoleInstance": { + "description": "Describes the cloud service role instance.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource Name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource Type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource Location.", + "type": "string", + "readOnly": true + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/InstanceSku" + }, + "properties": { + "$ref": "#/definitions/RoleInstanceProperties" + } + } + }, + "RoleInstanceListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/RoleInstance" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "CloudServiceRoleSku": { + "description": "Describes the cloud service role sku.", + "type": "object", + "properties": { + "name": { + "description": "The sku name. NOTE: If the new SKU is not supported on the hardware the cloud service is currently on, you need to delete and recreate the cloud service or move back to the old sku.", + "type": "string" + }, + "tier": { + "description": "Specifies the tier of the cloud service. Possible Values are

**Standard**

**Basic**", + "type": "string" + }, + "capacity": { + "format": "int64", + "description": "Specifies the number of role instances in the cloud service.", + "type": "integer" + } + } + }, + "CloudServiceRoleProperties": { + "description": "The cloud service role properties.", + "type": "object", + "properties": { + "uniqueId": { + "description": "Specifies the ID which uniquely identifies a cloud service role.", + "type": "string", + "readOnly": true + } + } + }, + "CloudServiceRole": { + "description": "Describes a role of the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location", + "type": "string", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/CloudServiceRoleSku" + }, + "properties": { + "$ref": "#/definitions/CloudServiceRoleProperties" + } + } + }, + "CloudServiceRoleListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceRole" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "CloudServiceUpgradeMode": { + "description": "Update mode for the cloud service. Role instances are allocated to update domains when the service is deployed. Updates can be initiated manually in each update domain or initiated automatically in all update domains.\r\nPossible Values are

**Auto**

**Manual**

**Simultaneous**

\r\nIf not specified, the default value is Auto. If set to Manual, PUT UpdateDomain must be called to apply the update. If set to Auto, the update is automatically applied to each update domain in sequence.", + "enum": [ + "Auto", + "Manual", + "Simultaneous" + ], + "type": "string", + "x-ms-enum": { + "name": "CloudServiceUpgradeMode", + "modelAsString": true + } + }, + "CloudServiceRoleProfileProperties": { + "description": "Describes the role properties.", + "type": "object", + "properties": { + "name": { + "description": "Resource name.", + "type": "string" + }, + "sku": { + "$ref": "#/definitions/CloudServiceRoleSku" + } + } + }, + "CloudServiceRoleProfile": { + "description": "Describes the role profile for the cloud service.", + "type": "object", + "properties": { + "roles": { + "description": "List of roles for the cloud service.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceRoleProfileProperties" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "CloudServiceVaultCertificate": { + "description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the role instance.", + "type": "object", + "properties": { + "certificateUrl": { + "description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret.", + "type": "string" + } + } + }, + "CloudServiceVaultSecretGroup": { + "description": "Describes a set of certificates which are all in the same Key Vault.", + "type": "object", + "properties": { + "sourceVault": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates." + }, + "vaultCertificates": { + "description": "The list of key vault references in SourceVault which contain certificates.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceVaultCertificate" + }, + "x-ms-identifiers": [ + "certificateUrl" + ] + } + } + }, + "CloudServiceOsProfile": { + "description": "Describes the OS profile for the cloud service.", + "type": "object", + "properties": { + "secrets": { + "description": "Specifies set of certificates that should be installed onto the role instances.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudServiceVaultSecretGroup" + }, + "x-ms-identifiers": [ + "sourceVault/id" + ] + } + } + }, + "LoadBalancerFrontendIPConfigurationProperties": { + "description": "Describes a cloud service IP Configuration", + "type": "object", + "properties": { + "publicIPAddress": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The reference to the public ip address resource." + }, + "subnet": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The reference to the virtual network subnet resource." + }, + "privateIPAddress": { + "description": "The virtual network private IP address of the IP configuration.", + "type": "string" + } + } + }, + "LoadBalancerFrontendIPConfiguration": { + "description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", + "type": "object", + "properties": { + "name": { + "description": "The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/LoadBalancerFrontendIPConfigurationProperties", + "description": "Properties of load balancer frontend ip configuration." + } + }, + "required": [ + "name", + "properties" + ] + }, + "LoadBalancerConfigurationProperties": { + "description": "Describes the properties of the load balancer configuration.", + "type": "object", + "properties": { + "frontendIPConfigurations": { + "description": "Specifies the frontend IP to be used for the load balancer. Only IPv4 frontend IP address is supported. Each load balancer configuration must have exactly one frontend IP configuration.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancerFrontendIPConfiguration" + }, + "x-ms-identifiers": [ + "name" + ] + } + }, + "required": [ + "frontendIPConfigurations" + ] + }, + "LoadBalancerConfiguration": { + "description": "Describes the load balancer configuration.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string" + }, + "name": { + "description": "The name of the Load balancer", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/LoadBalancerConfigurationProperties", + "description": "Properties of the load balancer configuration." + } + }, + "required": [ + "name", + "properties" + ] + }, + "CloudServiceSlotType": { + "description": "Slot type for the cloud service.\r\nPossible values are

**Production**

**Staging**

\r\nIf not specified, the default value is Production.", + "enum": [ + "Production", + "Staging" + ], + "type": "string", + "x-ms-enum": { + "name": "CloudServiceSlotType", + "modelAsString": true + } + }, + "CloudServiceNetworkProfile": { + "description": "Network Profile for the cloud service.", + "type": "object", + "properties": { + "loadBalancerConfigurations": { + "description": "List of Load balancer configurations. Cloud service can have up to two load balancer configurations, corresponding to a Public Load Balancer and an Internal Load Balancer.", + "type": "array", + "items": { + "$ref": "#/definitions/LoadBalancerConfiguration" + } + }, + "slotType": { + "$ref": "#/definitions/CloudServiceSlotType" + }, + "swappableCloudService": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The id reference of the cloud service containing the target IP with which the subject cloud service can perform a swap. This property cannot be updated once it is set. The swappable cloud service referred by this id must be present otherwise an error will be thrown." + } + } + }, + "CloudServiceVaultAndSecretReference": { + "type": "object", + "properties": { + "sourceVault": { + "$ref": "../common.json#/definitions/SubResource", + "description": "The ARM Resource ID of the Key Vault" + }, + "secretUrl": { + "type": "string", + "description": "Secret URL which contains the protected settings of the extension" + } + }, + "description": "Protected settings for the extension, referenced using KeyVault which are encrypted before sent to the role instance." + }, + "CloudServiceExtensionProperties": { + "description": "Extension Properties.", + "type": "object", + "properties": { + "publisher": { + "description": "The name of the extension handler publisher.", + "type": "string" + }, + "type": { + "description": "Specifies the type of the extension.", + "type": "string" + }, + "typeHandlerVersion": { + "description": "Specifies the version of the extension. Specifies the version of the extension. If this element is not specified or an asterisk (*) is used as the value, the latest version of the extension is used. If the value is specified with a major version number and an asterisk as the minor version number (X.), the latest minor version of the specified major version is selected. If a major version number and a minor version number are specified (X.Y), the specific extension version is selected. If a version is specified, an auto-upgrade is performed on the role instance.", + "type": "string" + }, + "autoUpgradeMinorVersion": { + "description": "Explicitly specify whether platform can automatically upgrade typeHandlerVersion to higher minor versions when they become available.", + "type": "boolean" + }, + "settings": { + "description": "Public settings for the extension. For JSON extensions, this is the JSON settings for the extension. For XML Extension (like RDP), this is the XML setting for the extension.", + "type": "object" + }, + "protectedSettings": { + "description": "Protected settings for the extension which are encrypted before sent to the role instance.", + "type": "object" + }, + "protectedSettingsFromKeyVault": { + "$ref": "#/definitions/CloudServiceVaultAndSecretReference" + }, + "forceUpdateTag": { + "description": "Tag to force apply the provided public and protected settings.\r\nChanging the tag value allows for re-running the extension without changing any of the public or protected settings.\r\nIf forceUpdateTag is not changed, updates to public or protected settings would still be applied by the handler.\r\nIf neither forceUpdateTag nor any of public or protected settings change, extension would flow to the role instance with the same sequence-number, and\r\nit is up to handler implementation whether to re-run it or not", + "type": "string" + }, + "provisioningState": { + "description": "The provisioning state, which only appears in the response.", + "type": "string", + "readOnly": true + }, + "rolesAppliedTo": { + "description": "Optional list of roles to apply this extension. If property is not specified or '*' is specified, extension is applied to all roles in the cloud service.", + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "Extension": { + "description": "Describes a cloud service Extension.", + "type": "object", + "properties": { + "name": { + "description": "The name of the extension.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/CloudServiceExtensionProperties" + } + } + }, + "CloudServiceExtensionProfile": { + "description": "Describes a cloud service extension profile.", + "type": "object", + "properties": { + "extensions": { + "description": "List of extensions for the cloud service.", + "type": "array", + "items": { + "$ref": "#/definitions/Extension" + }, + "x-ms-identifiers": [ + "name" + ] + } + } + }, + "CloudServiceProperties": { + "description": "Cloud service properties", + "type": "object", + "properties": { + "packageUrl": { + "description": "Specifies a URL that refers to the location of the service package in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.\r\nThis is a write-only property and is not returned in GET calls.", + "type": "string" + }, + "configuration": { + "description": "Specifies the XML service configuration (.cscfg) for the cloud service.", + "type": "string" + }, + "configurationUrl": { + "description": "Specifies a URL that refers to the location of the service configuration in the Blob service. The service package URL can be Shared Access Signature (SAS) URI from any storage account.\r\nThis is a write-only property and is not returned in GET calls.", + "type": "string" + }, + "startCloudService": { + "description": "(Optional) Indicates whether to start the cloud service immediately after it is created. The default value is `true`.\r\nIf false, the service model is still deployed, but the code is not run immediately. Instead, the service is PoweredOff until you call Start, at which time the service will be started. A deployed service still incurs charges, even if it is poweredoff.", + "type": "boolean" + }, + "allowModelOverride": { + "description": "(Optional) Indicates whether the role sku properties (roleProfile.roles.sku) specified in the model/template should override the role instance count and vm size specified in the .cscfg and .csdef respectively.\r\nThe default value is `false`.", + "type": "boolean" + }, + "upgradeMode": { + "$ref": "#/definitions/CloudServiceUpgradeMode" + }, + "roleProfile": { + "$ref": "#/definitions/CloudServiceRoleProfile" + }, + "osProfile": { + "$ref": "#/definitions/CloudServiceOsProfile" + }, + "networkProfile": { + "$ref": "#/definitions/CloudServiceNetworkProfile" + }, + "extensionProfile": { + "$ref": "#/definitions/CloudServiceExtensionProfile" + }, + "provisioningState": { + "description": "The provisioning state, which only appears in the response.", + "type": "string", + "readOnly": true + }, + "uniqueId": { + "description": "The unique identifier for the cloud service.", + "type": "string", + "readOnly": true + } + } + }, + "CloudService": { + "description": "Describes the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string" + }, + "tags": { + "description": "Resource tags.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "properties": { + "$ref": "#/definitions/CloudServiceProperties" + }, + "systemData": { + "$ref": "../common.json#/definitions/SystemData" + } + }, + "x-ms-azure-resource": true, + "required": [ + "location" + ] + }, + "CloudServiceUpdate": { + "type": "object", + "properties": { + "tags": { + "description": "Resource tags", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "StatusCodeCount": { + "description": "The status code and count of the cloud service instance view statuses", + "type": "object", + "properties": { + "code": { + "description": "The instance view status code", + "type": "string", + "readOnly": true + }, + "count": { + "format": "int32", + "description": "Number of instances having this status code", + "type": "integer", + "readOnly": true + } + } + }, + "InstanceViewStatusesSummary": { + "description": "Instance view statuses.", + "type": "object", + "properties": { + "statusesSummary": { + "description": "The summary.", + "type": "array", + "items": { + "$ref": "#/definitions/StatusCodeCount" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CloudServiceInstanceView": { + "description": "InstanceView of CloudService as a whole", + "type": "object", + "properties": { + "roleInstance": { + "$ref": "#/definitions/InstanceViewStatusesSummary" + }, + "sdkVersion": { + "description": "The version of the SDK that was used to generate the package for the cloud service.", + "type": "string", + "readOnly": true + }, + "privateIds": { + "description": "Specifies a list of unique identifiers generated internally for the cloud service.

NOTE: If you are using Azure Diagnostics extension, this property can be used as 'DeploymentId' for querying details.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "statuses": { + "type": "array", + "items": { + "$ref": "#/definitions/ResourceInstanceViewStatus" + }, + "x-ms-identifiers": [], + "readOnly": true + } + } + }, + "CloudServiceListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/CloudService" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "RoleInstances": { + "description": "Specifies a list of role instances from the cloud service.", + "type": "object", + "properties": { + "roleInstances": { + "description": "List of cloud service role instance names. Value of '*' will signify all role instances of the cloud service.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "roleInstances" + ] + }, + "UpdateDomain": { + "description": "Defines an update domain for the cloud service.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource Name", + "type": "string", + "readOnly": true + } + } + }, + "UpdateDomainListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/UpdateDomain" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "OSVersionProperties": { + "description": "OS version properties.", + "type": "object", + "properties": { + "family": { + "description": "The family of this OS version.", + "type": "string", + "readOnly": true + }, + "familyLabel": { + "description": "The family label of this OS version.", + "type": "string", + "readOnly": true + }, + "version": { + "description": "The OS version.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS version label.", + "type": "string", + "readOnly": true + }, + "isDefault": { + "description": "Specifies whether this is the default OS version for its family.", + "type": "boolean", + "readOnly": true + }, + "isActive": { + "description": "Specifies whether this OS version is active.", + "type": "boolean", + "readOnly": true + } + } + }, + "OSVersion": { + "description": "Describes a cloud service OS version.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OSVersionProperties" + } + } + }, + "OSVersionListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/OSVersion" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + }, + "OSVersionPropertiesBase": { + "description": "Configuration view of an OS version.", + "type": "object", + "properties": { + "version": { + "description": "The OS version.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS version label.", + "type": "string", + "readOnly": true + }, + "isDefault": { + "description": "Specifies whether this is the default OS version for its family.", + "type": "boolean", + "readOnly": true + }, + "isActive": { + "description": "Specifies whether this OS version is active.", + "type": "boolean", + "readOnly": true + } + } + }, + "OSFamilyProperties": { + "description": "OS family properties.", + "type": "object", + "properties": { + "name": { + "description": "The OS family name.", + "type": "string", + "readOnly": true + }, + "label": { + "description": "The OS family label.", + "type": "string", + "readOnly": true + }, + "versions": { + "description": "List of OS versions belonging to this family.", + "type": "array", + "items": { + "$ref": "#/definitions/OSVersionPropertiesBase" + }, + "x-ms-identifiers": [ + "version" + ], + "readOnly": true + } + } + }, + "OSFamily": { + "description": "Describes a cloud service OS family.", + "type": "object", + "properties": { + "id": { + "description": "Resource Id.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Resource name.", + "type": "string", + "readOnly": true + }, + "type": { + "description": "Resource type.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Resource location.", + "type": "string", + "readOnly": true + }, + "properties": { + "$ref": "#/definitions/OSFamilyProperties" + } + } + }, + "OSFamilyListResult": { + "description": "The list operation result.", + "type": "object", + "properties": { + "value": { + "description": "The list of resources.", + "type": "array", + "items": { + "$ref": "#/definitions/OSFamily" + } + }, + "nextLink": { + "description": "The URI to fetch the next page of resources. Use this to get the next page of resources. Do this till nextLink is null to fetch all the resources.", + "type": "string" + } + }, + "required": [ + "value" + ] + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json new file mode 100644 index 000000000000..f01189a0b596 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "3", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/3", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "3", + "label": "Windows Server 2012", + "versions": [ + { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + }, + { + "name": "4", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/4", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "4", + "label": "Windows Server 2012 R2", + "versions": [ + { + "version": "WA-GUEST-OS-4.83_202010-02", + "label": "Windows Azure Guest OS 4.83 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json new file mode 100644 index 000000000000..e45f47706064 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "osFamilyName": "3", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "3", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSFamilies/3", + "type": "Microsoft.Compute/locations/cloudServiceOsFamilies", + "location": "westus2", + "properties": { + "name": "3", + "label": "Windows Server 2012", + "versions": [ + { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true + } + ] + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json new file mode 100644 index 000000000000..4c691cefc2b6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "osVersionName": "WA-GUEST-OS-3.90_202010-02", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "WA-GUEST-OS-3.90_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "3", + "familyLabel": "Windows Server 2012" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json new file mode 100644 index 000000000000..273ced2ed748 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "westus2", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "WA-GUEST-OS-3.90_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-3.90_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-3.90_202010-02", + "label": "Windows Azure Guest OS 3.90 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "3", + "familyLabel": "Windows Server 2012" + } + }, + { + "name": "WA-GUEST-OS-4.83_202010-02", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/locations/westus2/cloudServiceOSVersions/WA-GUEST-OS-4.83_202010-02", + "type": "Microsoft.Compute/locations/cloudServiceOsVersions", + "location": "westus2", + "properties": { + "version": "WA-GUEST-OS-4.83_202010-02", + "label": "Windows Azure Guest OS 4.83 (Release 202010-02)", + "isDefault": true, + "isActive": true, + "family": "4", + "familyLabel": "Windows Server 2012 R2" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json new file mode 100644 index 000000000000..0117ac0eced0 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json new file mode 100644 index 000000000000..ef635cdeeaf3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{roleInstance-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/{roleInstance-name}", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/{roleInstance-name}/networkInterfaces/nic1" + } + ] + } + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json new file mode 100644 index 000000000000..12fbb0c10754 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "platformUpdateDomain": 0, + "platformFaultDomain": 0, + "privateId": "3491bc0c-1f6c-444f-b1d0-ec0751a74e3e", + "statuses": [ + { + "code": "RoleState/RoleStateStarted", + "level": "Info", + "displayStatus": "RoleStateStarted", + "message": "" + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json new file mode 100644 index 000000000000..0229672f9e0c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "roleInstanceName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "resourceGroupName": "rgcloudService", + "cloudServiceName": "aaaa", + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json new file mode 100644 index 000000000000..fab4c2377aea --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleInstanceName": "{roleInstance-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json new file mode 100644 index 000000000000..5f6b83b83932 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "roleInstances": [ + "ContosoFrontend_IN_0", + "ContosoBackend_IN_1" + ] + } + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json new file mode 100644 index 000000000000..ee48aac6c45f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "roleName": "{role-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{role-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/{role-name}", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:{role-name}" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json new file mode 100644 index 000000000000..95b55f7dbccf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoFrontend", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/ContosoFrontend", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:ContosoFrontend" + } + }, + { + "name": "ContosoBackend", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roles/ContosoBackend", + "type": "Microsoft.Compute/cloudServices/roles", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + }, + "properties": { + "uniqueId": "b03bc269-766b-4921-b91a-7dffaae4d03b:ContosoBackend" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json new file mode 100644 index 000000000000..ca159d836133 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json @@ -0,0 +1,92 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "ContosoFrontend_IN_0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_0", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_0/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoFrontend_IN_1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_1", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoFrontend_IN_1/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoBackend_IN_0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_0", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_0/networkInterfaces/nic1" + } + ] + } + } + }, + { + "name": "ContosoBackend_IN_1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_1", + "type": "Microsoft.Compute/cloudServices/roleInstances", + "location": "eastus2euap", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard" + }, + "properties": { + "networkProfile": { + "networkInterfaces": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/roleInstances/ContosoBackend_IN_1/networkInterfaces/nic1" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json new file mode 100644 index 000000000000..864b25ba3604 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "updateDomain": 1, + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/1" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json new file mode 100644 index 000000000000..e9485ab228b9 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "0", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/0" + }, + { + "name": "1", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}/updateDomains/1" + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json new file mode 100644 index 000000000000..48f8bbfce76c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "updateDomain": 1, + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json new file mode 100644 index 000000000000..d49aa97bc4a4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json @@ -0,0 +1,179 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + }, + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoBackend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "7f3edf91-cb34-4a3e-971a-177dc3dd43cb" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json new file mode 100644 index 000000000000..89447d575e0b --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json @@ -0,0 +1,155 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "location": "westus", + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/5393f919-a68a-43d0-9063-4b2bda6bffdf/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "packageUrl": "{PackageUrl}", + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/5393f919-a68a-43d0-9063-4b2bda6bffdf/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "packageUrl": "{PackageUrl}", + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" + } + }, + "name": "myfe" + } + ] + }, + "name": "myLoadBalancer" + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "14d10b45-ced7-42ef-a406-50a3df2cea7d" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json new file mode 100644 index 000000000000..8ae16503eec7 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json @@ -0,0 +1,191 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "location": "westus", + "properties": { + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [ + { + "sourceVault": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + }, + "vaultCertificates": [ + { + "certificateUrl": "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" + } + ] + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "60b6cd59-600b-4e02-b717-521b07aa94bf" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json new file mode 100644 index 000000000000..338d7324bb89 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json @@ -0,0 +1,206 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "properties": { + "extensionProfile": { + "extensions": [ + { + "properties": { + "type": "RDP", + "autoUpgradeMinorVersion": false, + "protectedSettings": "{password}", + "publisher": "Microsoft.Windows.Azure.Extensions", + "settings": "UserAzure10/22/2021 15:05:45", + "typeHandlerVersion": "1.2" + }, + "name": "RDPExtension" + } + ] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "properties": { + "frontendIPConfigurations": [ + { + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + }, + "name": "contosofe" + } + ] + }, + "name": "contosolb" + } + ] + }, + "roleProfile": { + "roles": [ + { + "sku": { + "name": "Standard_D1_v2", + "capacity": 1, + "tier": "Standard" + }, + "name": "ContosoFrontend" + } + ] + }, + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto" + }, + "location": "westus" + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Creating", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2", + "settings": "UserAzure10/22/2021 15:05:45" + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + }, + "201": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "westus", + "properties": { + "configuration": "{ServiceConfiguration}", + "packageUrl": "{PackageUrl}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 1 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Creating", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2", + "settings": "UserAzure10/22/2021 15:05:45" + } + } + ] + }, + "provisioningState": "Creating", + "uniqueId": "c948cccb-bbfa-4516-a250-c28abc4d0c15" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json new file mode 100644 index 000000000000..bc450ba027d2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json new file mode 100644 index 000000000000..c4d013429a44 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "roleInstance": { + "statusesSummary": [ + { + "code": "ProvisioningState/succeeded", + "count": 4 + }, + { + "code": "PowerState/started", + "count": 4 + }, + { + "code": "RoleState/RoleStateStarted", + "count": 4 + } + ] + }, + "sdkVersion": "2.9.6496.3", + "privateIds": [ + "3491bc0c-1f6c-444f-b1d0-ec0751a74e3e" + ], + "statuses": [ + { + "code": "ProvisioningState/succeeded", + "level": "Info", + "displayStatus": "Provisioning succeeded", + "time": "2021-01-12T16:50:07.0953535+05:30" + }, + { + "code": "PowerState/started", + "level": "Info", + "displayStatus": "Started", + "time": "2021-01-12T16:50:07.0953535+05:30" + }, + { + "code": "CurrentUpgradeDomain/-1", + "level": "Info", + "displayStatus": "Current Upgrade Domain of cloud service is -1." + }, + { + "code": "MaxUpgradeDomain/1", + "level": "Info", + "displayStatus": "Max Upgrade Domain of cloud service is 1." + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json new file mode 100644 index 000000000000..45ff1ae5fb68 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json @@ -0,0 +1,88 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + }, + "systemData": { + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedAt": "2020-01-01T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json new file mode 100644 index 000000000000..492b1eeaa24e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json new file mode 100644 index 000000000000..19693d272ffe --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2022-04-04" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "extensionProfile": { + "extensions": [ + { + "name": "RDPExtension", + "properties": { + "autoUpgradeMinorVersion": false, + "provisioningState": "Succeeded", + "rolesAppliedTo": [ + "*" + ], + "publisher": "Microsoft.Windows.Azure.Extensions", + "type": "RDP", + "typeHandlerVersion": "1.2", + "settings": "userazure01/12/2022 16:29:02" + } + } + ] + }, + "provisioningState": "Succeeded", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + ] + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json new file mode 100644 index 000000000000..176f711a9882 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json new file mode 100644 index 000000000000..176f711a9882 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04" + }, + "responses": { + "200": {}, + "202": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json new file mode 100644 index 000000000000..20041f5f6029 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "ConstosoRG", + "cloudServiceName": "{cs-name}", + "api-version": "2022-04-04", + "parameters": { + "tags": { + "Documentation": "RestAPI" + } + } + }, + "responses": { + "200": { + "body": { + "name": "{cs-name}", + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Compute/cloudServices/{cs-name}", + "type": "Microsoft.Compute/cloudServices", + "location": "eastus2euap", + "tags": { + "Documentation": "RestAPI" + }, + "properties": { + "configuration": "{ServiceConfiguration}", + "upgradeMode": "Auto", + "roleProfile": { + "roles": [ + { + "name": "ContosoFrontend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + }, + { + "name": "ContosoBackend", + "sku": { + "name": "Standard_D1_v2", + "tier": "Standard", + "capacity": 2 + } + } + ] + }, + "osProfile": { + "secrets": [] + }, + "networkProfile": { + "loadBalancerConfigurations": [ + { + "name": "contosolb", + "properties": { + "frontendIPConfigurations": [ + { + "name": "contosofe", + "properties": { + "publicIPAddress": { + "id": "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" + } + } + } + ] + } + } + ] + }, + "provisioningState": "Updating", + "uniqueId": "4ccb4323-4740-4545-bb81-780b27375947" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json new file mode 100644 index 000000000000..beada9ed44df --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/common.json @@ -0,0 +1,257 @@ +{ + "swagger": "2.0", + "info": { + "title": "ComputeManagementClient", + "description": "The Compute Management Client.", + "version": "2022-04-04" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Compute service." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "x-ms-identifiers": [ + "message", + "target" + ], + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, + "SubResource": { + "properties": { + "id": { + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "SubResourceReadOnly": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + } + }, + "x-ms-azure-resource": true + }, + "ResourceWithOptionalLocation": { + "type": "object", + "description": "The Resource model definition with location property as optional.", + "properties": { + "location": { + "type": "string", + "description": "Resource location" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true + }, + "ExtendedLocationType": { + "type": "string", + "description": "The type of extendedLocation.", + "enum": [ + "EdgeZone" + ], + "x-ms-enum": { + "name": "ExtendedLocationTypes", + "modelAsString": true + } + }, + "ExtendedLocation": { + "description": "The complex type of the extended location.", + "properties": { + "name": { + "type": "string", + "description": "The name of the extended location." + }, + "type": { + "$ref": "#/definitions/ExtendedLocationType", + "description": "The type of the extended location." + } + } + }, + "UserAssignedIdentities": { + "type": "object", + "additionalProperties": { + "type": "object", + "x-ms-client-name": "userAssignedIdentitiesValue", + "properties": { + "principalId": { + "readOnly": true, + "type": "string", + "description": "The principal id of user assigned identity." + }, + "clientId": { + "readOnly": true, + "type": "string", + "description": "The client id of user assigned identity." + } + } + }, + "description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 312ca3b14c18..660984d24945 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -34,7 +34,7 @@ These are the global settings for the Compute API. title: ComputeManagementClient description: Compute Client openapi-type: arm -tag: package-2022-03-02 +tag: package-2022-04-04 directive: - where: @@ -235,6 +235,52 @@ directive: - RequiredPropertiesMissingInResourceModel ``` + +### Tag: package-2022-04-04 + +These settings apply only when `--tag=package-2022-04-04` is specified on the command line. + +``` yaml $(tag) == 'package-2022-04-04' +input-file: +- Microsoft.Compute/stable/2022-04-04/common.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/computeRPCommon.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineScaleSet.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachine.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineImage.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachineExtensionImage.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/availabilitySet.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/proximityPlacementGroup.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/dedicatedHost.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/sshPublicKey.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/image.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/restorePoint.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/capacityReservation.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/logAnalytic.json +- Microsoft.Compute/stable/2022-03-01/ComputeRP/runCommand.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/diskRPCommon.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/disk.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/diskAccess.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/diskEncryptionSet.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/diskRestorePoint.json +- Microsoft.Compute/stable/2022-03-02/DiskRP/snapshot.json +- Microsoft.Compute/stable/2021-07-01/skus.json +- Microsoft.Compute/stable/2022-01-03/GalleryRP/galleryRPCommon.json +- Microsoft.Compute/stable/2022-01-03/GalleryRP/gallery.json +- Microsoft.Compute/stable/2022-01-03/GalleryRP/sharedGallery.json +- Microsoft.Compute/stable/2022-01-03/GalleryRP/communityGallery.json +- Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +``` + +### Tag: package-2022-04-04-only + +These settings apply only when `--tag=package-2022-04-04-oly` is specified on the command line. + +``` yaml $(tag) == 'package-2022-04-04-only' +input-file: +- Microsoft.Compute/stable/2022-04-04/common.json +- Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json +``` + ### Tag: package-2022-03-02 These settings apply only when `--tag=package-2022-03-02` is specified on the command line. @@ -1180,6 +1226,7 @@ swagger-to-sdk: - repo: azure-sdk-for-java - repo: azure-sdk-for-js - repo: azure-sdk-for-go + - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-node - repo: azure-sdk-for-ruby after_scripts: @@ -1205,4 +1252,4 @@ Creating this tag to pick proper resources from the hybrid profile. input-file: - Microsoft.Compute/stable/2020-06-01/compute.json - Microsoft.Compute/stable/2019-07-01/disk.json -``` +``` \ No newline at end of file From 8337f3690a1a8edede310f3e0ca13311aaa0b3fa Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 15 Jun 2022 15:55:44 -0500 Subject: [PATCH 10/11] change folder name --- .../{cloudServiceRP => CloudServiceRP1}/cloudService.json | 0 .../examples/CloudServiceOSFamilies_List.json | 0 .../examples/CloudServiceOSFamily_Get.json | 0 .../examples/CloudServiceOSVersion_Get.json | 0 .../examples/CloudServiceOSVersion_List.json | 0 .../examples/CloudServiceRoleInstance_Delete.json | 0 .../examples/CloudServiceRoleInstance_Delete_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Get.json | 0 .../examples/CloudServiceRoleInstance_Get_InstanceView.json | 0 .../examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json | 0 .../examples/CloudServiceRoleInstance_Rebuild.json | 0 .../examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Reimage.json | 0 .../examples/CloudServiceRoleInstance_Reimage_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Restart.json | 0 .../examples/CloudServiceRoleInstance_Restart_ByCloudService.json | 0 .../examples/CloudServiceRole_Get.json | 0 .../examples/CloudServiceRole_List.json | 0 .../examples/CloudServiceRolesInstance_List.json | 0 .../examples/CloudServiceUpdateDomain_Get.json | 0 .../examples/CloudServiceUpdateDomain_List.json | 0 .../examples/CloudServiceUpdateDomain_Update.json | 0 .../examples/CloudService_Create_WithMultiRole.json | 0 .../examples/CloudService_Create_WithSingleRole.json | 0 .../CloudService_Create_WithSingleRoleAndCertificate.json | 0 .../examples/CloudService_Create_WithSingleRoleAndRDP.json | 0 .../examples/CloudService_Delete.json | 0 .../examples/CloudService_Get_InstanceViewWithMultiRole.json | 0 .../examples/CloudService_Get_WithMultiRoleAndRDP.json | 0 .../examples/CloudService_List_ByResourceGroup.json | 0 .../examples/CloudService_List_BySubscription.json | 0 .../examples/CloudService_PowerOff.json | 0 .../examples/CloudService_Start.json | 0 .../examples/CloudService_Update_ToIncludeTags.json | 0 34 files changed, 0 insertions(+), 0 deletions(-) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/cloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceOSFamilies_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceOSFamily_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceOSVersion_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceOSVersion_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Delete.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Delete_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Get_InstanceView.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Rebuild.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Reimage.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Restart.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRoleInstance_Restart_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRole_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRole_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceRolesInstance_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceUpdateDomain_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceUpdateDomain_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudServiceUpdateDomain_Update.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Create_WithMultiRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Create_WithSingleRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Create_WithSingleRoleAndCertificate.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Create_WithSingleRoleAndRDP.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Delete.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Get_InstanceViewWithMultiRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Get_WithMultiRoleAndRDP.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_List_ByResourceGroup.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_List_BySubscription.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_PowerOff.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Start.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{cloudServiceRP => CloudServiceRP1}/examples/CloudService_Update_ToIncludeTags.json (100%) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/cloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/cloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/cloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamilies_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamilies_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamilies_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamily_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSFamily_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamily_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceOSVersion_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_InstanceView.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_InstanceView.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRole_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRolesInstance_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceRolesInstance_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRolesInstance_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Update.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudServiceUpdateDomain_Update.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Update.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithMultiRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithMultiRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithMultiRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndCertificate.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndCertificate.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndRDP.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndRDP.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Delete.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Delete.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Delete.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_InstanceViewWithMultiRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_InstanceViewWithMultiRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_WithMultiRoleAndRDP.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_WithMultiRoleAndRDP.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_ByResourceGroup.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_ByResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_ByResourceGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_BySubscription.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_List_BySubscription.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_BySubscription.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_PowerOff.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_PowerOff.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_PowerOff.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Start.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Start.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Start.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Update_ToIncludeTags.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/cloudServiceRP/examples/CloudService_Update_ToIncludeTags.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Update_ToIncludeTags.json From 8183381fd94c4726004829300a7c64ed9b4f4018 Mon Sep 17 00:00:00 2001 From: Theodore Chang Date: Wed, 15 Jun 2022 15:57:42 -0500 Subject: [PATCH 11/11] change folder name --- .../{CloudServiceRP1 => CloudServiceRP}/cloudService.json | 0 .../examples/CloudServiceOSFamilies_List.json | 0 .../examples/CloudServiceOSFamily_Get.json | 0 .../examples/CloudServiceOSVersion_Get.json | 0 .../examples/CloudServiceOSVersion_List.json | 0 .../examples/CloudServiceRoleInstance_Delete.json | 0 .../examples/CloudServiceRoleInstance_Delete_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Get.json | 0 .../examples/CloudServiceRoleInstance_Get_InstanceView.json | 0 .../examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json | 0 .../examples/CloudServiceRoleInstance_Rebuild.json | 0 .../examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Reimage.json | 0 .../examples/CloudServiceRoleInstance_Reimage_ByCloudService.json | 0 .../examples/CloudServiceRoleInstance_Restart.json | 0 .../examples/CloudServiceRoleInstance_Restart_ByCloudService.json | 0 .../examples/CloudServiceRole_Get.json | 0 .../examples/CloudServiceRole_List.json | 0 .../examples/CloudServiceRolesInstance_List.json | 0 .../examples/CloudServiceUpdateDomain_Get.json | 0 .../examples/CloudServiceUpdateDomain_List.json | 0 .../examples/CloudServiceUpdateDomain_Update.json | 0 .../examples/CloudService_Create_WithMultiRole.json | 0 .../examples/CloudService_Create_WithSingleRole.json | 0 .../CloudService_Create_WithSingleRoleAndCertificate.json | 0 .../examples/CloudService_Create_WithSingleRoleAndRDP.json | 0 .../examples/CloudService_Delete.json | 0 .../examples/CloudService_Get_InstanceViewWithMultiRole.json | 0 .../examples/CloudService_Get_WithMultiRoleAndRDP.json | 0 .../examples/CloudService_List_ByResourceGroup.json | 0 .../examples/CloudService_List_BySubscription.json | 0 .../examples/CloudService_PowerOff.json | 0 .../examples/CloudService_Start.json | 0 .../examples/CloudService_Update_ToIncludeTags.json | 0 34 files changed, 0 insertions(+), 0 deletions(-) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/cloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceOSFamilies_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceOSFamily_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceOSVersion_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceOSVersion_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Delete.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Delete_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Get_InstanceView.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Rebuild.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Reimage.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Restart.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRoleInstance_Restart_ByCloudService.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRole_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRole_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceRolesInstance_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceUpdateDomain_Get.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceUpdateDomain_List.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudServiceUpdateDomain_Update.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Create_WithMultiRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Create_WithSingleRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Create_WithSingleRoleAndCertificate.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Create_WithSingleRoleAndRDP.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Delete.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Get_InstanceViewWithMultiRole.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Get_WithMultiRoleAndRDP.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_List_ByResourceGroup.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_List_BySubscription.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_PowerOff.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Start.json (100%) rename specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/{CloudServiceRP1 => CloudServiceRP}/examples/CloudService_Update_ToIncludeTags.json (100%) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/cloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/cloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/cloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamilies_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamilies_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamilies_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamily_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSFamily_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSFamily_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceOSVersion_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceOSVersion_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Delete_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Delete_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_InstanceView.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_InstanceView.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_InstanceView.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Get_RemoteDesktopFile.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Rebuild_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Reimage_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart_ByCloudService.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRoleInstance_Restart_ByCloudService.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRoleInstance_Restart_ByCloudService.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRole_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRole_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRolesInstance_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceRolesInstance_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceRolesInstance_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Get.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Get.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Get.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_List.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_List.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_List.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Update.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudServiceUpdateDomain_Update.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudServiceUpdateDomain_Update.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithMultiRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithMultiRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndCertificate.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndCertificate.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndCertificate.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Create_WithSingleRoleAndRDP.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Create_WithSingleRoleAndRDP.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Delete.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Delete.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Delete.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_InstanceViewWithMultiRole.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_InstanceViewWithMultiRole.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_InstanceViewWithMultiRole.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_WithMultiRoleAndRDP.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Get_WithMultiRoleAndRDP.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Get_WithMultiRoleAndRDP.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_ByResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_ByResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_ByResourceGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_BySubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_List_BySubscription.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_List_BySubscription.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_PowerOff.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_PowerOff.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_PowerOff.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Start.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Start.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Start.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Update_ToIncludeTags.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP1/examples/CloudService_Update_ToIncludeTags.json rename to specification/compute/resource-manager/Microsoft.Compute/stable/2022-04-04/CloudServiceRP/examples/CloudService_Update_ToIncludeTags.json