az managedservices definition

Manage the registration definitions in Azure.

Commands

az managedservices definition create

Creates a new registration definition.

az managedservices definition delete

Deletes a registration.

az managedservices definition list

List all the registration definitions under the default scope or under the subscription provided.

az managedservices definition show

Gets a registration definition.

az managedservices definition create

Creates a new registration definition.

az managedservices definition create --name
                                     --principal-id
                                     --role-definition-id
                                     --tenant-id
                                     [--definition-id]
                                     [--description]
                                     [--plan-name]
                                     [--plan-product]
                                     [--plan-publisher]
                                     [--plan-version]
                                     [--subscription]

Examples

Creates a registration definition under the default subscription scope with the required parameters.

az managedservices definition create --name mydef --tenant-id dab3375b-6197-4a15-a44b-16c41faa91d7 --principal-id b6f6c88a-5b7a-455e-ba40-ce146d4d3671 --role-definition-id ccdd72a7-3385-48ef-bd42-f606fba81ae7

Required Parameters

--name

The name of the registration definition.

--principal-id

The principal id.

--role-definition-id

The role definition id.

--tenant-id

The managed by tenant id.

Optional Parameters

--definition-id

Can be used to override the generated registration definition id.

--description

The friendly description.

--plan-name

The plan name.

--plan-product

The plan product.

--plan-publisher

The plan publisher.

--plan-version

The plan version.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az managedservices definition delete

Deletes a registration.

az managedservices definition delete --definition
                                     [--subscription]

Examples

Deletes the registration definition given its identifier under the default subscription scope.

az managedservices definition delete --definition af8772a0-fd9c-4ddc-8ad0-7d4b3913d7dd

Deletes the registration definition given its fully qualified resource id.

az managedservices definition delete --definition /subscriptions/39033314-9b39-4c7b-84fd-0e26e55f15dc/providers/Microsoft.ManagedServices/registrationDefinitions/1d693e4f-9e79-433a-b3a2-afce1f8b61ec

Required Parameters

--definition

The identifier (guid) or the fully qualified resource id of the registration definition. When resource id is used, subscription id and resource group parameters are ignored.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az managedservices definition list

List all the registration definitions under the default scope or under the subscription provided.

az managedservices definition list [--query-examples]
                                   [--subscription]

Examples

Lists all the registration definitions under the default subscription scope.

az managedservices definition list

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az managedservices definition show

Gets a registration definition.

az managedservices definition show --definition
                                   [--query-examples]
                                   [--subscription]

Examples

Gets the registration definition given its identifier under the default subscription scope.

az managedservices definition show --definition af8772a0-fd9c-4ddc-8ad0-7d4b3913d7dd

Gets the registration definition given its fully qualified resource id.

az managedservices definition show --definition /subscriptions/39033314-9b39-4c7b-84fd-0e26e55f15dc/providers/Microsoft.ManagedServices/registrationDefinitions/1d693e4f-9e79-433a-b3a2-afce1f8b61ec

Required Parameters

--definition

The identifier (guid) or the fully qualified resource id of the registration definition. When resource id is used, subscription id and resource group parameters are ignored.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.