az managedservices assignment

Manage the registration assignments in Azure.

Commands

az managedservices assignment create

Creates a new registration assignment.

az managedservices assignment delete

Deletes the registration assignment.

az managedservices assignment list

List all the registration assignments.

az managedservices assignment show

Gets a registration assignment.

az managedservices assignment create

Creates a new registration assignment.

az managedservices assignment create --definition
                                     [--assignment-id]
                                     [--resource-group]
                                     [--subscription]

Examples

Create an assignment under the default subscription scope.

az managedservices assignment create --definition "/subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationDefinitions/0c3e9687-b461-4615-b6e4-74d54998d6e4"

Create an assignment under a given resource group scope.

az managedservices assignment create --definition "/subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationDefinitions/0c3e9687-b461-4615-b6e4-74d54998d6e4" --resource-group mygroup

Required Parameters

--definition

The fully qualified resource id of the registration definition.

Optional Parameters

--assignment-id

Can be used to override the generated registration assignment id.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az managedservices assignment delete

Deletes the registration assignment.

az managedservices assignment delete --assignment
                                     [--resource-group]
                                     [--subscription]

Examples

Deletes an assignment given its identifier under the default subscription scope.

az managedservices assignment delete --assignment d3087cf0-e180-4cca-b147-54ae00c7b504

Deletes an assignment given its fully qualified resource id.

az managedservices assignment delete --assignment /subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationAssignments/0c3e9687-b461-4615-b6e4-74d54998d6e4

Required Parameters

--assignment

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

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az managedservices assignment list

List all the registration assignments.

az managedservices assignment list [--include-definition {false, true}]
                                   [--query-examples]
                                   [--resource-group]
                                   [--subscription]

Examples

Lists all the registration assignments under the default scope.

az managedservices assignment list

Lists all the registration assignments under the given resource group.

az managedservices assignment list --resource-group mygroup

Lists all the registration assignments under the default scope along with the associated registration definition details.

az managedservices assignment list --include-definition true

Optional Parameters

--include-definition

When provided, gets the associated registration definition details.

accepted values: false, true
--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.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az managedservices assignment show

Gets a registration assignment.

az managedservices assignment show --assignment
                                   [--include-definition {false, true}]
                                   [--query-examples]
                                   [--resource-group]
                                   [--subscription]

Examples

Get an assignment given its identifier under the default subscription scope.

az managedservices assignment show --assignment d3087cf0-e180-4cca-b147-54ae00c7b504

Get an assignment given its fully qualified resource id.

az managedservices assignment show --assignment /subscriptions/a62076fa-768a-403c-9d9d-6a9919aae441/providers/Microsoft.ManagedServices/registrationAssignments/0c3e9687-b461-4615-b6e4-74d54998d6e4

Get an assignment given its identifier under the default subscription scope with the registration definition details.

az managedservices assignment show --assignment d3087cf0-e180-4cca-b147-54ae00c7b504 --include-definition true

Required Parameters

--assignment

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

Optional Parameters

--include-definition

When provided, gets the associated registration definition details.

accepted values: false, true
--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.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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