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 new file mode 100644 index 000000000000..fbeea72e8cbb --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/automanage.json @@ -0,0 +1,1626 @@ +{ + "swagger": "2.0", + "info": { + "version": "2021-04-30-preview", + "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": { + "201": { + "description": "Created. The configuration profile was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "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" + ] + }, + "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": { + "201": { + "description": "Created. The configuration profile was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfile" + } + }, + "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" + ] + }, + "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" + ] + }, + "patch": { + "tags": [ + "ConfigurationProfilesVersions" + ], + "operationId": "ConfigurationProfilesVersions_Update", + "description": "Updates a configuration profile version", + "x-ms-examples": { + "Update configuration profile version": { + "$ref": "./examples/updateConfigurationProfileVersion.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/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/{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": { + "201": { + "description": "Created. The Automanage configuration profile assignment for the VM was created successfully.", + "schema": { + "$ref": "#/definitions/ConfigurationProfileAssignment" + } + }, + "200": { + "description": "OK. The configuration profile assignment for the VM was updated 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.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" + ] + } + } + }, + "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" + } + }, + "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" + }, + "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." + } + } + } + }, + "parameters": { + "VmNameParameter": { + "name": "vmName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the virtual machine.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfile.json new file mode 100644 index 000000000000..9d2e84a1e0c8 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfile.json @@ -0,0 +1,173 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2021-04-30-preview", + "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/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileAssignment.json new file mode 100644 index 000000000000..419004c39974 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileAssignment.json @@ -0,0 +1,58 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2021-04-30-preview", + "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/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileVersion.json new file mode 100644 index 000000000000..af717f6842ba --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/createOrUpdateConfigurationProfileVersion.json @@ -0,0 +1,174 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2021-04-30-preview", + "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/preview/2021-04-30-preview/examples/deleteConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfile.json new file mode 100644 index 000000000000..992f88534c43 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfile.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2021-04-30-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileAssignment.json new file mode 100644 index 000000000000..18cd1e3e7e6e --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileAssignment.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2021-04-30-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileVersion.json new file mode 100644 index 000000000000..4ee733a0dd9f --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/deleteConfigurationProfileVersion.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2021-04-30-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPractice.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPractice.json new file mode 100644 index 000000000000..cabf946e3401 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPractice.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/getBestPracticeVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPracticeVersion.json new file mode 100644 index 000000000000..8f9c15233dc4 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getBestPracticeVersion.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "versionName": "version1", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/getConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfile.json new file mode 100644 index 000000000000..e3badc38e671 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfile.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/getConfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileAssignment.json new file mode 100644 index 000000000000..71dcff0a5610 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileAssignment.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/getConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileVersion.json new file mode 100644 index 000000000000..ed72727c99c7 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getConfigurationProfileVersion.json @@ -0,0 +1,70 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/getReport.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getReport.json new file mode 100644 index 000000000000..297f298aec54 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/getReport.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "reportName": "b4e9ee6b-1717-4ff0-a8d2-e6d72c33d5f4", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listBestPracticesByTenant.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesByTenant.json new file mode 100644 index 000000000000..4c4931b5600a --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesByTenant.json @@ -0,0 +1,86 @@ +{ + "parameters": { + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listBestPracticesVersionsByTenant.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesVersionsByTenant.json new file mode 100644 index 000000000000..8f3bb5631750 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listBestPracticesVersionsByTenant.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "bestPracticeName": "azureBestPracticesProduction", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsByResourceGroup.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsByResourceGroup.json new file mode 100644 index 000000000000..5bceb993e53a --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsByResourceGroup.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsBySubscription.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsBySubscription.json new file mode 100644 index 000000000000..c02a50c28681 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileAssignmentsBySubscription.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listConfigurationProfileVersions.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileVersions.json new file mode 100644 index 000000000000..b74236edd66e --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfileVersions.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listConfigurationProfilesByResourceGroup.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesByResourceGroup.json new file mode 100644 index 000000000000..988bdc60d6cd --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesByResourceGroup.json @@ -0,0 +1,102 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listConfigurationProfilesBySubscription.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesBySubscription.json new file mode 100644 index 000000000000..00d814eac4fa --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listConfigurationProfilesBySubscription.json @@ -0,0 +1,127 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/listOperations.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listOperations.json new file mode 100644 index 000000000000..8926f7e7eb16 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listOperations.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "api-version": "2021-04-30-preview" + }, + "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." + } + } + ] + } + } + } +} diff --git a/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listReportsByconfigurationProfileAssignment.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listReportsByconfigurationProfileAssignment.json new file mode 100644 index 000000000000..d90ec6e724fc --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/listReportsByconfigurationProfileAssignment.json @@ -0,0 +1,84 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "vmName": "myVMName", + "configurationProfileAssignmentName": "default", + "api-version": "2021-04-30-preview" + }, + "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/preview/2021-04-30-preview/examples/updateConfigurationProfile.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfile.json new file mode 100644 index 000000000000..95984fa0de14 --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfile.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "api-version": "2021-04-30-preview", + "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/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfileVersion.json b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfileVersion.json new file mode 100644 index 000000000000..13efe09f5eca --- /dev/null +++ b/specification/automanage/resource-manager/Microsoft.Automanage/preview/2021-04-30-preview/examples/updateConfigurationProfileVersion.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "mySubscriptionId", + "resourceGroupName": "myResourceGroupName", + "configurationProfileName": "customConfigurationProfile", + "versionName": "version1", + "api-version": "2021-04-30-preview", + "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/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 + } + }, + "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 c2b15407698e..15d7cdc9e7b9 100644 --- a/specification/automanage/resource-manager/readme.md +++ b/specification/automanage/resource-manager/readme.md @@ -31,6 +31,19 @@ openapi-type: arm tag: package-2020-06-30-preview ``` +### Tag: package-2021-04-30-preview + +These settings apply only when `--tag=package-2021-04-30-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2021-04-30-preview' +input-file: +- Microsoft.Automanage/preview/2021-04-30-preview/automanage.json +directive: + - suppress: R3010 + from: Microsoft.Automanage/preview/2021-04-30-preview/automanage.json + reason: list by immediate parent operations are defined +``` + ### Tag: package-2020-06-30-preview These settings apply only when `--tag=package-2020-06-30-preview` is specified on the command line. @@ -48,6 +61,11 @@ directive: from: automanage.json where: $.paths reason: 'Microsoft.Automanage is a proxy resource provider under Microsoft. Please refer PR https://github.com/Azure/azure-rest-api-specs-pr/pull/1283' + - suppress: R3018 # EnumInsteadOfBoolean - Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isDataAction" + where: + - $.definitions.Operation.properties.isDataAction + from: types.json + reason: its per the RPC specification ``` ---