From c57d5de63bf216b2af92ceca9ab18b1605ad3e21 Mon Sep 17 00:00:00 2001 From: mc3784 <mc3784@nyu.edu> Date: Sun, 29 May 2022 21:54:55 -0400 Subject: [PATCH] [Hub Generated] Review request for Microsoft.Automanage to add version preview/2021-04-30-preview and stable/2022-05-04 (#19170) * Adds base for updating Microsoft.Automanage from version preview/2021-04-30-preview to version 2022-05-04 * Updates readme * Updates API version in new specs and examples * fix s360 swagger correctness issues * change targetId to be readonly * fix wrong commit * remove patch from configurationProfileVersion * fix api version --- .../2021-04-30-preview/automanage.json | 3 +- .../stable/2022-05-04/automanage.json | 2464 +++++++++++++++++ .../createOrUpdateConfigurationProfile.json | 173 ++ ...rUpdateConfigurationProfileAssignment.json | 58 + ...dateConfigurationProfileHCIAssignment.json | 58 + ...ateConfigurationProfileHCRPAssignment.json | 58 + ...teOrUpdateConfigurationProfileVersion.json | 174 ++ .../examples/deleteConfigurationProfile.json | 12 + .../deleteConfigurationProfileAssignment.json | 13 + ...leteConfigurationProfileHCIAssignment.json | 13 + ...eteConfigurationProfileHCRPAssignment.json | 13 + .../deleteConfigurationProfileVersion.json | 13 + .../2022-05-04/examples/getBestPractice.json | 52 + .../examples/getBestPracticeVersion.json | 53 + .../examples/getConfigurationProfile.json | 69 + .../getConfigurationProfileAssignment.json | 33 + .../getConfigurationProfileHCIAssignment.json | 33 + ...getConfigurationProfileHCRPAssignment.json | 33 + .../getConfigurationProfileVersion.json | 70 + .../2022-05-04/examples/getHCIReport.json | 48 + .../2022-05-04/examples/getHCRPReport.json | 48 + .../stable/2022-05-04/examples/getReport.json | 48 + .../examples/getServicePrincipal.json | 28 + .../examples/listBestPracticesByTenant.json | 86 + .../listBestPracticesVersionsByTenant.json | 87 + ...rationProfileAssignmentsByClusterName.json | 55 + ...rationProfileAssignmentsByMachineName.json | 55 + ...tionProfileAssignmentsByResourceGroup.json | 54 + ...ationProfileAssignmentsBySubscription.json | 53 + ...onProfileAssignmentsByVirtualMachines.json | 55 + .../listConfigurationProfileVersions.json | 103 + ...tConfigurationProfilesByResourceGroup.json | 102 + ...stConfigurationProfilesBySubscription.json | 127 + .../2022-05-04/examples/listOperations.json | 140 + ...portsByconfigurationProfileAssignment.json | 84 + ...tsByconfigurationProfileHCIAssignment.json | 84 + ...sByconfigurationProfileHCRPAssignment.json | 84 + .../listServicePrincipalBySubscription.json | 32 + .../examples/updateConfigurationProfile.json | 61 + .../automanage/resource-manager/readme.md | 12 +- 40 files changed, 4838 insertions(+), 3 deletions(-) create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/automanage.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfile.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCIAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCRPAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileVersion.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfile.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCIAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCRPAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileVersion.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPractice.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPracticeVersion.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfile.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCIAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCRPAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileVersion.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCIReport.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCRPReport.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getReport.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesByTenant.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesVersionsByTenant.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByClusterName.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByMachineName.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByResourceGroup.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsBySubscription.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByVirtualMachines.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileVersions.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesByResourceGroup.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesBySubscription.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listOperations.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCIAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCRPAssignment.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listServicePrincipalBySubscription.json create mode 100644 specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/updateConfigurationProfile.json diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json index 143fa913e929..fcab545ca49b 100644 --- a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json @@ -2293,7 +2293,8 @@ }, "targetId": { "type": "string", - "description": "The target VM resource URI" + "description": "The target VM resource URI", + "readOnly": true }, "status": { "type": "string", diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/automanage.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/automanage.json new file mode 100644 index 000000000000..4f7f51ff18f8 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/automanage.json @@ -0,0 +1,2464 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-05-04", + "title": "Automanage" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}": { + "get": { + "tags": [ + "BestPractices" + ], + "operationId": "BestPractices_Get", + "description": "Get information about a Automanage best practice", + "x-ms-examples": { + "Get an Automanage best practice ": { + "$ref": "./examples/getBestPractice.json" + } + }, + "parameters": [ + { + "name": "bestPracticeName", + "in": "path", + "required": true, + "type": "string", + "description": "The Automanage best practice name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The Automanage best practice was returned successfully.", + "schema": { + "$ref": "#/definitions/BestPractice" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/providers/Microsoft.Automanage/bestPractices": { + "get": { + "tags": [ + "BestPractices" + ], + "operationId": "BestPractices_ListByTenant", + "description": "Retrieve a list of Automanage best practices", + "x-ms-examples": { + "List Automanage bestPractices ": { + "$ref": "./examples/listBestPracticesByTenant.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of Automanage bestPractices configuration profile.", + "schema": { + "$ref": "#/definitions/BestPracticeList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions/{versionName}": { + "get": { + "tags": [ + "BestPracticesVersions" + ], + "operationId": "BestPracticesVersions_Get", + "description": "Get information about a Automanage best practice version", + "x-ms-examples": { + "Get an Automanage best practice version ": { + "$ref": "./examples/getBestPracticeVersion.json" + } + }, + "parameters": [ + { + "name": "bestPracticeName", + "in": "path", + "required": true, + "type": "string", + "description": "The Automanage best practice name." + }, + { + "name": "versionName", + "in": "path", + "required": true, + "type": "string", + "description": "The Automanage best practice version name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The Automanage best practice version was returned successfully.", + "schema": { + "$ref": "#/definitions/BestPractice" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/providers/Microsoft.Automanage/bestPractices/{bestPracticeName}/versions": { + "get": { + "tags": [ + "BestPracticesVersions" + ], + "operationId": "BestPracticesVersions_ListByTenant", + "description": "Retrieve a list of Automanage best practices versions", + "x-ms-examples": { + "List Automanage best practices versions ": { + "$ref": "./examples/listBestPracticesVersionsByTenant.json" + } + }, + "parameters": [ + { + "name": "bestPracticeName", + "in": "path", + "required": true, + "type": "string", + "description": "The Automanage best practice name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of Automanage bestPractices configuration profile versions.", + "schema": { + "$ref": "#/definitions/BestPracticeList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}": { + "put": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_CreateOrUpdate", + "description": "Creates a configuration profile", + "x-ms-examples": { + "Create or update configuration profile": { + "$ref": "./examples/createOrUpdateConfigurationProfile.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + }, + "description": "Parameters supplied to create or update configuration profile." + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "201": { + "description": "Created. The configuration profile was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_Get", + "description": "Get information about a configuration profile", + "x-ms-examples": { + "Get a configuration profile": { + "$ref": "./examples/getConfigurationProfile.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile was returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_Delete", + "description": "Delete a configuration profile", + "x-ms-examples": { + "Delete a configuration profile": { + "$ref": "./examples/deleteConfigurationProfile.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "patch": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_Update", + "description": "Updates a configuration profile", + "x-ms-examples": { + "Update configuration profile": { + "$ref": "./examples/updateConfigurationProfile.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfileUpdate" + }, + "description": "Parameters supplied to update configuration profile." + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles": { + "get": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_ListByResourceGroup", + "description": "Retrieve a list of configuration profile within a given resource group", + "x-ms-examples": { + "List configuration profiles by resource group": { + "$ref": "./examples/listConfigurationProfilesByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of configuration profiles.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfiles": { + "get": { + "tags": [ + "ConfigurationProfiles" + ], + "operationId": "ConfigurationProfiles_ListBySubscription", + "description": "Retrieve a list of configuration profile within a subscription", + "x-ms-examples": { + "List configuration profiles by subscription": { + "$ref": "./examples/listConfigurationProfilesBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of configuration profiles.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}": { + "put": { + "tags": [ + "ConfigurationProfilesVersions" + ], + "operationId": "ConfigurationProfilesVersions_CreateOrUpdate", + "description": "Creates a configuration profile version", + "x-ms-examples": { + "Create or update configuration profile version": { + "$ref": "./examples/createOrUpdateConfigurationProfileVersion.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile." + }, + { + "name": "versionName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile version name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + }, + "description": "Parameters supplied to create or update configuration profile." + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "201": { + "description": "Created. The configuration profile was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "ConfigurationProfilesVersions" + ], + "operationId": "ConfigurationProfilesVersions_Get", + "description": "Get information about a configuration profile version", + "x-ms-examples": { + "Get a configuration profile version": { + "$ref": "./examples/getConfigurationProfileVersion.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile name." + }, + { + "name": "versionName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile version name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile was returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "ConfigurationProfilesVersions" + ], + "operationId": "ConfigurationProfilesVersions_Delete", + "description": "Delete a configuration profile version", + "x-ms-examples": { + "Delete a configuration profile version": { + "$ref": "./examples/deleteConfigurationProfileVersion.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile" + }, + { + "name": "versionName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile version name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions": { + "get": { + "tags": [ + "ConfigurationProfilesVersions" + ], + "operationId": "ConfigurationProfilesVersions_ListChildResources", + "description": "Retrieve a list of configuration profile version for a configuration profile ", + "x-ms-examples": { + "List configuration profile versions by configuration profile": { + "$ref": "./examples/listConfigurationProfileVersions.json" + } + }, + "parameters": [ + { + "name": "configurationProfileName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of configuration profiles.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}": { + "put": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_CreateOrUpdate", + "description": "Creates an association between a VM and Automanage configuration profile", + "x-ms-examples": { + "Create or update configuration profile assignment": { + "$ref": "./examples/createOrUpdateConfigurationProfileAssignment.json" + } + }, + "parameters": [ + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment. Only default is supported." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + }, + "description": "Parameters supplied to the create or update configuration profile assignment." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment for the VM was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "201": { + "description": "Created. The Automanage configuration profile assignment for the VM was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_Get", + "description": "Get information about a configuration profile assignment", + "x-ms-examples": { + "Get a configuration profile assignment": { + "$ref": "./examples/getConfigurationProfileAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment was returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_Delete", + "description": "Delete a configuration profile assignment", + "x-ms-examples": { + "Delete an configuration profile assignment": { + "$ref": "./examples/deleteConfigurationProfileAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments": { + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_ListByVirtualMachines", + "description": "Get list of configuration profile assignments", + "x-ms-examples": { + "List configuration profile assignments by resourceGroup and virtual machine": { + "$ref": "./examples/listConfigurationProfileAssignmentsByVirtualMachines.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The list of configuration profile assignments were returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfileAssignments": { + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_List", + "description": "Get list of configuration profile assignments", + "x-ms-examples": { + "List configuration profile assignments by resourceGroup": { + "$ref": "./examples/listConfigurationProfileAssignmentsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The list of configuration profile assignments were returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfileAssignments": { + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_ListBySubscription", + "description": "Get list of configuration profile assignments under a given subscription", + "x-ms-examples": { + "List configuration profile assignments by subscription": { + "$ref": "./examples/listConfigurationProfileAssignmentsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The list of configuration profile assignments were returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/providers/Microsoft.Automanage/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all of the available Automanage REST API operations.", + "x-ms-examples": { + "Lists all of the available Automanage REST API operations": { + "$ref": "./examples/listOperations.json" + } + }, + "operationId": "Operations_List", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Success. The response describes the list of operations.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}": { + "get": { + "tags": [ + "reports" + ], + "operationId": "reports_Get", + "description": "Get information about a report associated with a configuration profile assignment run", + "x-ms-examples": { + "Get a report for a configuration profile assignment": { + "$ref": "./examples/getReport.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "name": "reportName", + "in": "path", + "required": true, + "type": "string", + "description": "The report name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The report was returned successfully.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports": { + "get": { + "tags": [ + "reports" + ], + "operationId": "reports_ListByConfigurationProfileAssignments", + "description": "Retrieve a list of reports within a given configuration profile assignment", + "x-ms-examples": { + "List reports by configuration profiles assignment": { + "$ref": "./examples/listReportsByconfigurationProfileAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "#/parameters/VmNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of reports.", + "schema": { + "$ref": "#/definitions/ReportList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals": { + "get": { + "tags": [ + "servicePrincipals" + ], + "operationId": "ServicePrincipals_ListBySubscription", + "description": "Get the Automanage AAD first party Application Service Principal details for the subscription id.", + "x-ms-examples": { + "List service principal by subscription": { + "$ref": "./examples/listServicePrincipalBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Returns the Automanage ADD first party Application Service Principal details for the subscription.", + "schema": { + "$ref": "#/definitions/ServicePrincipalListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/servicePrincipals/default": { + "get": { + "tags": [ + "servicePrincipals" + ], + "operationId": "ServicePrincipals_Get", + "description": "Get the Automanage AAD first party Application Service Principal details for the subscription id.", + "x-ms-examples": { + "Get service principal": { + "$ref": "./examples/getServicePrincipal.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Returns the Automanage ADD first party Application Service Principal details for the subscription.", + "schema": { + "$ref": "#/definitions/ServicePrincipal" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}": { + "put": { + "tags": [ + "ConfigurationProfileHCRPAssignments" + ], + "operationId": "ConfigurationProfileHCRPAssignments_CreateOrUpdate", + "description": "Creates an association between a ARC machine and Automanage configuration profile", + "x-ms-examples": { + "Create or update HCRP configuration profile assignment": { + "$ref": "./examples/createOrUpdateConfigurationProfileHCRPAssignment.json" + } + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + }, + "description": "Parameters supplied to the create or update configuration profile assignment." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment. Only default is supported." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment for the ARC machine was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "201": { + "description": "Created. The Automanage configuration profile assignment for the ARC machine was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "ConfigurationProfileHCRPAssignments" + ], + "operationId": "ConfigurationProfileHCRPAssignments_Get", + "description": "Get information about a configuration profile assignment", + "x-ms-examples": { + "Get a HCRP configuration profile assignment": { + "$ref": "./examples/getConfigurationProfileHCRPAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment was returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "ConfigurationProfileHCRPAssignments" + ], + "operationId": "ConfigurationProfileHCRPAssignments_Delete", + "description": "Delete a configuration profile assignment", + "x-ms-examples": { + "Delete a HCRP configuration profile assignment": { + "$ref": "./examples/deleteConfigurationProfileHCRPAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments": { + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_ListByMachineName", + "description": "Get list of configuration profile assignments", + "x-ms-examples": { + "List configuration profile assignments by resourceGroup and machine": { + "$ref": "./examples/listConfigurationProfileAssignmentsByMachineName.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The list of configuration profile assignments were returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}": { + "get": { + "tags": [ + "HCRPReports" + ], + "operationId": "HCRPReports_Get", + "description": "Get information about a report associated with a configuration profile assignment run", + "x-ms-examples": { + "Get a report for a HCRP configuration profile assignment": { + "$ref": "./examples/getHCRPReport.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "name": "reportName", + "in": "path", + "required": true, + "type": "string", + "description": "The report name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The report was returned successfully.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports": { + "get": { + "tags": [ + "HCRPReports" + ], + "operationId": "HCRPReports_ListByConfigurationProfileAssignments", + "description": "Retrieve a list of reports within a given configuration profile assignment", + "x-ms-examples": { + "List reports by HCRP configuration profiles assignment": { + "$ref": "./examples/listReportsByconfigurationProfileHCRPAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/MachineNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of reports.", + "schema": { + "$ref": "#/definitions/ReportList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}": { + "put": { + "tags": [ + "ConfigurationProfileHCIAssignments" + ], + "operationId": "ConfigurationProfileHCIAssignments_CreateOrUpdate", + "description": "Creates an association between a AzureStackHCI cluster and Automanage configuration profile", + "x-ms-examples": { + "Create or update a HCI configuration profile assignment": { + "$ref": "./examples/createOrUpdateConfigurationProfileHCIAssignment.json" + } + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + }, + "description": "Parameters supplied to the create or update configuration profile assignment." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment. Only default is supported." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment for the AzureStackHCI cluster was updated successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "201": { + "description": "Created. The Automanage configuration profile assignment for the AzureStackHCI cluster was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "get": { + "tags": [ + "ConfigurationProfileHCIAssignments" + ], + "operationId": "ConfigurationProfileHCIAssignments_Get", + "description": "Get information about a configuration profile assignment", + "x-ms-examples": { + "Get a HCI configuration profile assignment": { + "$ref": "./examples/getConfigurationProfileHCIAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The configuration profile assignment was returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + }, + "delete": { + "tags": [ + "ConfigurationProfileHCIAssignments" + ], + "operationId": "ConfigurationProfileHCIAssignments_Delete", + "description": "Delete a configuration profile assignment", + "x-ms-examples": { + "Delete a HCI configuration profile assignment": { + "$ref": "./examples/deleteConfigurationProfileHCIAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "Name of the configuration profile assignment" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": false, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments": { + "get": { + "tags": [ + "ConfigurationProfileAssignments" + ], + "operationId": "ConfigurationProfileAssignments_ListByClusterName", + "description": "Get list of configuration profile assignments", + "x-ms-examples": { + "List configuration profile assignments by resourceGroup and cluster": { + "$ref": "./examples/listConfigurationProfileAssignmentsByClusterName.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The list of configuration profile assignments were returned successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignmentList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}": { + "get": { + "tags": [ + "HCIReports" + ], + "operationId": "HCIReports_Get", + "description": "Get information about a report associated with a configuration profile assignment run", + "x-ms-examples": { + "Get a report for a HCI configuration profile assignment": { + "$ref": "./examples/getHCIReport.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "name": "reportName", + "in": "path", + "required": true, + "type": "string", + "description": "The report name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The report was returned successfully.", + "schema": { + "$ref": "#/definitions/Report" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports": { + "get": { + "tags": [ + "HCIReports" + ], + "operationId": "HCIReports_ListByConfigurationProfileAssignments", + "description": "Retrieve a list of reports within a given configuration profile assignment", + "x-ms-examples": { + "List reports by HCI configuration profiles assignment": { + "$ref": "./examples/listReportsByconfigurationProfileHCIAssignment.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ClusterNameParameter" + }, + { + "name": "configurationProfileAssignmentName", + "in": "path", + "required": true, + "type": "string", + "description": "The configuration profile assignment name." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. List of reports.", + "schema": { + "$ref": "#/definitions/ReportList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ] + } + } + }, + "definitions": { + "BestPracticeList": { + "description": "The response of the list best practice operation.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/BestPractice" + }, + "description": "Result of the list best practice operation." + } + } + }, + "ConfigurationProfileList": { + "description": "The response of the list configuration profile operation.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationProfile" + }, + "description": "Result of the list ConfigurationProfile operation." + } + } + }, + "BestPractice": { + "description": "Definition of the Automanage best practice.", + "type": "object", + "x-ms-azure-resource": true, + "properties": { + "id": { + "type": "string", + "description": "The fully qualified ID for the best practice. For example, /providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction", + "readOnly": true + }, + "type": { + "type": "string", + "description": "The type of the resource. For example, Microsoft.Automanage/bestPractices", + "readOnly": true + }, + "name": { + "type": "string", + "description": "The name of the best practice. For example, azureBestPracticesProduction", + "readOnly": true + }, + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConfigurationProfileProperties", + "description": "Properties of the best practice." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + } + } + }, + "ConfigurationProfile": { + "description": "Definition of the configuration profile.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": false, + "$ref": "#/definitions/ConfigurationProfileProperties", + "description": "Properties of the configuration profile." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "ConfigurationProfileProperties": { + "description": "Automanage configuration profile properties.", + "type": "object", + "properties": { + "configuration": { + "title": "configuration", + "$ref": "#/definitions/ConfigurationDictionary", + "description": "configuration dictionary of the configuration profile." + }, + "overrides": { + "title": "overrides", + "$ref": "#/definitions/Overrides", + "description": "overrides of the configuration profile." + } + } + }, + "ConfigurationDictionary": { + "description": "The custom configuration for configuration profile. Name and value pairs that define the configuration details of the configuration profile.", + "type": "object", + "example": { + "Antimalware/Enable": true + } + }, + "Overrides": { + "description": "The custom overrides for configuration profile", + "type": "array", + "items": { + "type": "object" + }, + "x-ms-identifiers": [] + }, + "ConfigurationProfileUpdate": { + "description": "Definition of the configuration profile.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": false, + "$ref": "#/definitions/ConfigurationProfileProperties", + "description": "Properties of the configuration profile." + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResource" + } + ] + }, + "ConfigurationProfileAssignmentList": { + "description": "The response of the list configuration profile assignment operation.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + }, + "description": "Result of the list configuration profile assignment operation." + } + } + }, + "ConfigurationProfileAssignment": { + "description": "Configuration profile assignment is an association between a VM and automanage profile configuration.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": false, + "$ref": "#/definitions/ConfigurationProfileAssignmentProperties", + "description": "Properties of the configuration profile assignment." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ] + }, + "ConfigurationProfileAssignmentProperties": { + "description": "Automanage configuration profile assignment properties.", + "type": "object", + "properties": { + "configurationProfile": { + "type": "string", + "description": "The Automanage configurationProfile ARM Resource URI." + }, + "targetId": { + "type": "string", + "description": "The target VM resource URI", + "readOnly": true + }, + "status": { + "type": "string", + "readOnly": true, + "description": "The status of onboarding, which only appears in the response." + }, + "profileOverrides": { + "$ref": "#/definitions/ConfigurationProfileAssignmentProfileOverrides", + "description": "The profileOverrides setting for the configuration profile assignment." + } + } + }, + "ConfigurationProfileAssignmentProfileOverrides": { + "description": "Data related to configuration profile assignment profile overrides.", + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "UpdateResource": { + "description": "Represents an update resource", + "type": "object", + "properties": { + "tags": { + "description": "The tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "ReportList": { + "description": "The response of the list report operation.", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Report" + }, + "description": "Result of the list report operation." + } + } + }, + "Report": { + "description": "Definition of the report.", + "type": "object", + "properties": { + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/AssignmentReportProperties", + "description": "The properties for the report." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ] + }, + "AssignmentReportProperties": { + "description": "Data related to the report detail.", + "type": "object", + "properties": { + "startTime": { + "type": "string", + "description": "Start time of the configuration profile assignment processing." + }, + "endTime": { + "type": "string", + "description": "End time of the configuration profile assignment processing." + }, + "lastModifiedTime": { + "type": "string", + "readOnly": true, + "description": "Last modified time of the configuration profile assignment processing." + }, + "duration": { + "type": "string", + "readOnly": true, + "description": "Duration of the configuration profile assignment processing." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of the configuration profile assignment processing (Initial/Consistency)." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "The status of the configuration profile assignment." + }, + "configurationProfile": { + "type": "string", + "readOnly": true, + "description": "The configurationProfile linked to the assignment." + }, + "resources": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/ReportResource" + }, + "description": "List of resources processed by the configuration profile assignment." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", + "readOnly": true, + "description": "Error message, if any, returned by the configuration profile assignment processing." + }, + "reportFormatVersion": { + "type": "string", + "readOnly": true, + "description": "Version of the report format" + } + } + }, + "ReportResource": { + "description": "Details about the resource processed by the configuration profile assignment", + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "Name of the resource." + }, + "id": { + "type": "string", + "readOnly": true, + "description": "ARM id of the resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Type of the resource." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "Status of the resource." + }, + "error": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", + "readOnly": true, + "description": "Error message, if any, returned when deploying the resource." + } + } + }, + "ServicePrincipalListResult": { + "description": "The list of ServicePrincipals.", + "type": "object", + "properties": { + "value": { + "description": "The list of servicePrincipals.", + "type": "array", + "items": { + "$ref": "#/definitions/ServicePrincipal" + } + } + } + }, + "ServicePrincipal": { + "description": "The Service Principal Id for the subscription.", + "type": "object", + "properties": { + "properties": { + "title": "Properties", + "x-ms-client-flatten": true, + "$ref": "#/definitions/ServicePrincipalProperties", + "description": "The Service Principal properties for the subscription" + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true, + "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ] + }, + "ServicePrincipalProperties": { + "description": "The Service Principal properties for the subscription.", + "type": "object", + "properties": { + "servicePrincipalId": { + "type": "string", + "readOnly": true, + "description": "The Service Principal Id for the subscription." + }, + "authorizationSet": { + "type": "boolean", + "readOnly": true, + "description": "Returns the contributor RBAC Role exist or not for the Service Principal Id." + } + } + } + }, + "parameters": { + "VmNameParameter": { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine.", + "x-ms-parameter-location": "method" + }, + "MachineNameParameter": { + "name": "machineName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Arc machine.", + "x-ms-parameter-location": "method" + }, + "ClusterNameParameter": { + "name": "clusterName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Arc machine.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfile.json new file mode 100644 index 000000000000..7bf96451b883 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfile.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2022-05-04", + "parameters": { + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/configurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-14T02:03:01.1974346Z" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/configurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileAssignment.json new file mode 100644 index 000000000000..be41ca7a05bc --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileAssignment.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04", + "parameters": { + "properties": { + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction" + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCIAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCIAssignment.json new file mode 100644 index 000000000000..ceb8c433cfc3 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCIAssignment.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04", + "parameters": { + "properties": { + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction" + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCRPAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCRPAssignment.json new file mode 100644 index 000000000000..5d73d2bce054 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileHCRPAssignment.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04", + "parameters": { + "properties": { + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction" + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/AutomanageAssignments/default", + "name": "default", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": null + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileVersion.json new file mode 100644 index 000000000000..445bae36deaa --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/createOrUpdateConfigurationProfileVersion.json @@ -0,0 +1,174 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2022-05-04", + "parameters": { + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile/versions/version1", + "name": "customConfigurationProfile/version1", + "type": "Microsoft.Automanage/configurationProfiles/versions", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile/versions/version1", + "name": "customConfigurationProfile/version1", + "type": "Microsoft.Automanage/configurationProfiles/versions", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfile.json new file mode 100644 index 000000000000..b8c1c5bbc1b0 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfile.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2022-05-04" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileAssignment.json new file mode 100644 index 000000000000..d69504e0e4df --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileAssignment.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCIAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCIAssignment.json new file mode 100644 index 000000000000..82c2716571e1 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCIAssignment.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCRPAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCRPAssignment.json new file mode 100644 index 000000000000..2c8883e23769 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileHCRPAssignment.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileVersion.json new file mode 100644 index 000000000000..b967cc01f656 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/deleteConfigurationProfileVersion.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2022-05-04" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPractice.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPractice.json new file mode 100644 index 000000000000..0d58aa5bd500 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPractice.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "azureBestPracticesProduction", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction", + "type": "Microsoft.Automanage/bestPractices", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": true, + "Backup/PolicyName": "dailyBackupPolicy", + "Backup/TimeZone": "UTC", + "Backup/InstantRpRetentionRangeInDays": "2", + "Backup/SchedulePolicy/ScheduleRunFrequency": "Daily", + "Backup/SchedulePolicy/ScheduleRunTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/SchedulePolicy/SchedulePolicyType": "SimpleSchedulePolicy", + "Backup/RetentionPolicy/RetentionPolicyType": "LongTermRetentionPolicy", + "Backup/RetentionPolicy/DailySchedule/RetentionTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count": "180", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType": "Days", + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPracticeVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPracticeVersion.json new file mode 100644 index 000000000000..e4ec5107af15 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getBestPracticeVersion.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "versionName": "version1", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "azureBestPracticesProduction/version1", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction/versions/version1", + "type": "Microsoft.Automanage/bestPractices/versions", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": true, + "Backup/PolicyName": "dailyBackupPolicy", + "Backup/TimeZone": "UTC", + "Backup/InstantRpRetentionRangeInDays": "2", + "Backup/SchedulePolicy/ScheduleRunFrequency": "Daily", + "Backup/SchedulePolicy/ScheduleRunTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/SchedulePolicy/SchedulePolicyType": "SimpleSchedulePolicy", + "Backup/RetentionPolicy/RetentionPolicyType": "LongTermRetentionPolicy", + "Backup/RetentionPolicy/DailySchedule/RetentionTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count": "180", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType": "Days", + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfile.json new file mode 100644 index 000000000000..e5396014b854 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfile.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/ConfigurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileAssignment.json new file mode 100644 index 000000000000..d39dc2a830a4 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileAssignment.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCIAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCIAssignment.json new file mode 100644 index 000000000000..fb4bd912f930 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCIAssignment.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/Microsoft.AzureStackHci/clusters/machines/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/Microsoft.AzureStackHci/clusters/machines/myClusterName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCRPAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCRPAssignment.json new file mode 100644 index 000000000000..7a06f78325d8 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileHCRPAssignment.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileVersion.json new file mode 100644 index 000000000000..3ee8fbc8e59f --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getConfigurationProfileVersion.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile/versions/version1", + "name": "customConfigurationProfile/version1", + "type": "Microsoft.Automanage/ConfigurationProfiles/versions", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCIReport.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCIReport.json new file mode 100644 index 000000000000..fbb1365f8978 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCIReport.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "configurationProfileAssignmentName": "default", + "reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCRPReport.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCRPReport.json new file mode 100644 index 000000000000..6a9d7e92ddb4 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getHCRPReport.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "configurationProfileAssignmentName": "default", + "reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myClustereName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getReport.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getReport.json new file mode 100644 index 000000000000..0486a8b20032 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getReport.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json new file mode 100644 index 000000000000..ad16f24e3c61 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/getServicePrincipal.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/providers/Microsoft.Automanage/servicePrincipals/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "servicePrincipalId": "<servicePrincipalId>", + "authorizationSet": true + }, + "systemData": { + "createdBy": "SYSTEM", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00.00Z", + "lastModifiedBy": "SYSTEM", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00.00Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesByTenant.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesByTenant.json new file mode 100644 index 000000000000..771509b5d2e2 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesByTenant.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "azureBestPracticesProduction", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction", + "type": "Microsoft.Automanage/bestPractices", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": true, + "Backup/PolicyName": "dailyBackupPolicy", + "Backup/TimeZone": "UTC", + "Backup/InstantRpRetentionRangeInDays": "2", + "Backup/SchedulePolicy/ScheduleRunFrequency": "Daily", + "Backup/SchedulePolicy/ScheduleRunTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/SchedulePolicy/SchedulePolicyType": "SimpleSchedulePolicy", + "Backup/RetentionPolicy/RetentionPolicyType": "LongTermRetentionPolicy", + "Backup/RetentionPolicy/DailySchedule/RetentionTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count": "180", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType": "Days", + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "name": "azureBestPracticesDevTest", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesDevTest", + "type": "Microsoft.Automanage/bestPractices", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": false, + "VMInsights/Enable": false, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesVersionsByTenant.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesVersionsByTenant.json new file mode 100644 index 000000000000..eea206f4ec3f --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listBestPracticesVersionsByTenant.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "azureBestPracticesProduction/version1", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction/versions/version1", + "type": "Microsoft.Automanage/bestPractices/versions", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": true, + "Backup/PolicyName": "dailyBackupPolicy", + "Backup/TimeZone": "UTC", + "Backup/InstantRpRetentionRangeInDays": "2", + "Backup/SchedulePolicy/ScheduleRunFrequency": "Daily", + "Backup/SchedulePolicy/ScheduleRunTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/SchedulePolicy/SchedulePolicyType": "SimpleSchedulePolicy", + "Backup/RetentionPolicy/RetentionPolicyType": "LongTermRetentionPolicy", + "Backup/RetentionPolicy/DailySchedule/RetentionTimes": "[ 2017-01-26T00:00:00Z ]", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/Count": "180", + "Backup/RetentionPolicy/DailySchedule/RetentionDuration/DurationType": "Days", + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "name": "azureBestPracticesProduction/version2", + "id": "/providers/Microsoft.Automanage/bestPractices/azureBestPracticesProduction/versions/version2", + "type": "Microsoft.Automanage/bestPractices/versions", + "properties": { + "configuration": { + "Antimalware/Enable": true, + "Antimalware/EnableRealTimeProtection": true, + "Antimalware/RunScheduledScan": true, + "Antimalware/ScanType": "Quick", + "Antimalware/ScanDay": "7", + "Antimalware/ScanTimeInMinutes": "120", + "Backup/Enable": false, + "VMInsights/Enable": false, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByClusterName.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByClusterName.json new file mode 100644 index 000000000000..09e7e4632737 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByClusterName.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": "NotCompliant " + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByMachineName.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByMachineName.json new file mode 100644 index 000000000000..a205e9088c0d --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByMachineName.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": "NotCompliant " + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByResourceGroup.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByResourceGroup.json new file mode 100644 index 000000000000..72f2706fca7f --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": "NotCompliant " + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsBySubscription.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsBySubscription.json new file mode 100644 index 000000000000..683534076a30 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsBySubscription.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": "NotCompliant " + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByVirtualMachines.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByVirtualMachines.json new file mode 100644 index 000000000000..2c9c4855f0b2 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileAssignmentsByVirtualMachines.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesDevTest", + "profileOverrides": null, + "status": "Compliant" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "targetId": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myArcMachineName", + "configurationProfile": "/providers/Microsoft.Automanage/bestPractices/AzureBestPracticesProduction", + "profileOverrides": null, + "status": "NotCompliant " + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileVersions.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileVersions.json new file mode 100644 index 000000000000..283153e25747 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfileVersions.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile/versions/versions1", + "name": "customConfigurationProfile/version1", + "type": "Microsoft.Automanage/ConfigurationProfiles/versions", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile/versions/version2", + "name": "customConfigurationProfile/version2", + "type": "Microsoft.Automanage/ConfigurationProfiles/versions", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesByResourceGroup.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesByResourceGroup.json new file mode 100644 index 000000000000..df16e4c1bf57 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesByResourceGroup.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/ConfigurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile2", + "name": "customConfigurationProfile2", + "type": "Microsoft.Automanage/ConfigurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesBySubscription.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesBySubscription.json new file mode 100644 index 000000000000..d08b721c3383 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listConfigurationProfilesBySubscription.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/ConfigurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile2", + "name": "customConfigurationProfile2", + "type": "Microsoft.Automanage/ConfigurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + }, + "overrides": [ + { + "priority": 100, + "if": { + "field": "$.location", + "equals": "eastus" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/eastus", + "LogAnalytics/Reprovision": true + } + }, + { + "priority": 200, + "if": { + "field": "$.location", + "equals": "centralcanada" + }, + "then": { + "LogAnalytics/Enable": true, + "LogAnalytics/Workspace": "/subscriptions/abc/resourceGroups/xyz/providers/Microsoft.La/Workspaces/centralcanada", + "LogAnalytics/Reprovision": true + } + } + ] + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listOperations.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listOperations.json new file mode 100644 index 000000000000..7f49df33f0a2 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listOperations.json @@ -0,0 +1,140 @@ +{ + "parameters": { + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "name": "Microsoft.Automanage/register/action", + "display": { + "provider": "Microsoft Automanage", + "resource": "Automanage Resource Provider", + "operation": "Register the Automanage Resource Provider", + "description": "Registers the subscription for the Automanage Resource Provider" + } + }, + { + "name": "Microsoft.Automanage/configurationProfileAssignments/write", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfileAssignments", + "operation": "Microsoft.Automanage/configurationProfileAssignments/write", + "description": "Create new configuration profile assignment." + } + }, + { + "name": "Microsoft.Automanage/configurationProfileAssignments/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfileAssignments", + "operation": "Microsoft.Automanage/configurationProfileAssignments/read", + "description": "Get configuration profile assignment." + } + }, + { + "name": "Microsoft.Automanage/configurationProfileAssignments/delete", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfileAssignments", + "operation": "Microsoft.Automanage/configurationProfileAssignments/delete", + "description": "Delete configuration profile assignment." + } + }, + { + "name": "Microsoft.Automanage/bestPractices/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/bestPractices", + "operation": "Microsoft.Automanage/bestPractices/read", + "description": "Get Automanage bestPractice." + } + }, + { + "name": "Microsoft.Automanage/bestPractices/versions/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/bestPractices/versions", + "operation": "Microsoft.Automanage/bestPractices/versions/read", + "description": "Get Automanage bestPractice version." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/write", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles", + "operation": "Microsoft.Automanage/configurationProfiles/write", + "description": "Create new Automanage Configuration Profile ." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles", + "operation": "Microsoft.Automanage/configurationProfiles/read", + "description": "Get Automanage Configuration Profile." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/delete", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles", + "operation": "Microsoft.Automanage/configurationProfiles/delete", + "description": "Delete Automanage Configuration Profile." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/versions/write", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles/versions", + "operation": "Microsoft.Automanage/configurationProfiles/versions/write", + "description": "Create new Automanage Configuration Profile version." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/versions/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles/versions", + "operation": "Microsoft.Automanage/configurationProfiles/versions/read", + "description": "Get Automanage Configuration Profile version." + } + }, + { + "name": "Microsoft.Automanage/configurationProfiles/versions/delete", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfiles/versions", + "operation": "Microsoft.Automanage/configurationProfiles/versions/delete", + "description": "Delete Automanage Configuration Profile version." + } + }, + { + "name": "Microsoft.Automanage/configurationProfileAssignments/reports/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/configurationProfileAssignments/reports", + "operation": "Microsoft.Automanage/configurationProfileAssignments/reports/read", + "description": "Get report for configuration profile assignment." + } + }, + { + "name": "Microsoft.Automanage/servicePrincipals/read", + "display": { + "provider": "Microsoft Automanage", + "resource": "Microsoft.Automanage/servicePrincipals", + "operation": "Microsoft.Automanage/servicePrincipals/read", + "description": "Read the Automanage AAD first party service principal id and authorizationSet for the subscription. This service principal id is used to grant the Contributor RBAC permission to Automanage AAD first party Application." + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileAssignment.json new file mode 100644 index 000000000000..494d50ca7b98 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileAssignment.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myVMName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/142cd92e-6413-49ba-94b0-8e74f251d828", + "name": "142cd92e-6413-49ba-94b0-8e74f251d828", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCIAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCIAssignment.json new file mode 100644 index 000000000000..297b8b9bdc6d --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCIAssignment.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "clusterName": "myClusterName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/Microsoft.AzureStackHci/clusters/machines/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.AzureStackHci/clusters/myClusterName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/142cd92e-6413-49ba-94b0-8e74f251d828", + "name": "142cd92e-6413-49ba-94b0-8e74f251d828", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCRPAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCRPAssignment.json new file mode 100644 index 000000000000..85eac2436c26 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listReportsByconfigurationProfileHCRPAssignment.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "machineName": "myMachineName", + "configurationProfileAssignmentName": "default", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "name": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + }, + { + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.HybridCompute/machines/myMachineName/providers/Microsoft.Automanage/configurationProfileAssignments/default/reports/142cd92e-6413-49ba-94b0-8e74f251d828", + "name": "142cd92e-6413-49ba-94b0-8e74f251d828", + "type": "Microsoft.Automanage/configurationProfileAssignments/reports", + "properties": { + "startTime": "2021-03-31T22:13:06Z", + "endTime": "2021-03-31T22:17:42Z", + "lastModifiedTime": "2021-03-31T22:32:42Z", + "duration": "PT15M32S", + "type": "Consistency", + "status": "Conformant", + "configurationProfile": "anyConfigurationProfile", + "resources": [ + { + "name": "myResourceGroupName", + "id": "/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName", + "type": "Microsoft.Resources/resourceGroups", + "status": "Conformant", + "error": null + } + ], + "error": null, + "reportFormatVersion": "1.0" + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listServicePrincipalBySubscription.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listServicePrincipalBySubscription.json new file mode 100644 index 000000000000..3afdfb2f309b --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/listServicePrincipalBySubscription.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2022-05-04" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subscriptionId/providers/Microsoft.Automanage/servicePrincipals/default", + "name": "default", + "type": "Microsoft.Automanage/ConfigurationProfileAssignments", + "properties": { + "servicePrincipalId": "<servicePrincipalId>", + "authorizationSet": true + }, + "systemData": { + "createdBy": "SYSTEM", + "createdByType": "User", + "createdAt": "0001-01-01T00:00:00.00Z", + "lastModifiedBy": "SYSTEM", + "lastModifiedByType": "User", + "lastModifiedAt": "0001-01-01T00:00:00.00Z" + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/updateConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/updateConfigurationProfile.json new file mode 100644 index 000000000000..d4a808f76b78 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/stable/2022-05-04/examples/updateConfigurationProfile.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2022-05-04", + "parameters": { + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfiles/customConfigurationProfile", + "name": "customConfigurationProfile", + "type": "Microsoft.Automanage/configurationProfiles", + "location": "East US", + "tags": { + "Organization": "Administration" + }, + "properties": { + "configuration": { + "Antimalware/Enable": false, + "Backup/Enable": false, + "VMInsights/Enable": true, + "AzureSecurityCenter/Enable": true, + "UpdateManagement/Enable": true, + "ChangeTrackingAndInventory/Enable": true, + "GuestConfiguration/Enable": true, + "LogAnalytics/Enable": true, + "BootDiagnostics/Enable": true + } + }, + "systemData": { + "createdBy": "user1@outlook.com", + "createdByType": "User", + "createdAt": "2020-02-03T01:01:01.1075056Z", + "lastModifiedBy": "user2@outlook.com", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-02-04T02:03:01.1974346Z" + } + } + } + } +} diff --git a/specification/automanage/resource-manager/readme.md b/specification/automanage/resource-manager/readme.md index 49b1c2edc93b..05da519ccc3c 100644 --- a/specification/automanage/resource-manager/readme.md +++ b/specification/automanage/resource-manager/readme.md @@ -28,9 +28,18 @@ These are the global settings for the Automanage API. title: AutomanageClient description: Automanage Client openapi-type: arm -tag: package-2021-04-30-preview +tag: package-2022-05 ``` + +### Tag: package-2022-05 + +These settings apply only when `--tag=package-2022-05` is specified on the command line. + +```yaml $(tag) == 'package-2022-05' +input-file: + - Microsoft.Automanage/stable/2022-05-04/automanage.json +``` ### Tag: package-2021-04-30-preview These settings apply only when `--tag=package-2021-04-30-preview` is specified on the command line. @@ -108,4 +117,3 @@ csharp: output-folder: $(csharp-sdks-folder)/automanage/Microsoft.Azure.Management.Automanage/src/Generated clear-output-folder: true ``` -