Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
az managedservices definition
Manage the registration definitions in Azure.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az managedservices definition create |
Create a registration definition. |
Core | GA |
| az managedservices definition delete |
Delete a registration definition. |
Core | GA |
| az managedservices definition list |
List all the registration definitions under the default scope or under the subscription provided. |
Core | GA |
| az managedservices definition show |
Show the registration definition details. |
Core | GA |
| az managedservices definition wait |
Place the CLI in a waiting state until a condition is met. |
Core | GA |
az managedservices definition create
Create a registration definition.
az managedservices definition create --name
--principal-id
--role-definition-id
--tenant-id
[--acquire-policy-token]
[--change-reference]
[--definition-id]
[--description]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--plan-name]
[--plan-product]
[--plan-publisher]
[--plan-version]
Examples
Create 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 of the registration definition.
The principal id.
The role definition id.
Id of the managedBy tenant.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Guid of the registration definition.
Description of the registration definition.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Accepted values: | 0, 1, f, false, n, no, t, true, y, yes |
The plan name.
The product code.
The publisher ID.
The plan's version.
az managedservices definition delete
Delete a registration definition.
az managedservices definition delete --definition
[--acquire-policy-token]
[--change-reference]
[--yes]
Examples
Delete the registration definition given its identifier under the default subscription scope.
az managedservices definition delete --definition af8772a0-fd9c-4ddc-8ad0-7d4b3913d7dd
Delete 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
Guid of the registration definition.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
az managedservices definition list
List all the registration definitions under the default scope or under the subscription provided.
az managedservices definition list [--max-items]
[--next-token]
Examples
List all the registration definitions under the default subscription scope.
az managedservices definition list
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
Token to specify where to start paginating. This is the token value from a previously truncated response.
| Property | Value |
|---|---|
| Parameter group: | Pagination Arguments |
az managedservices definition show
Show the registration definition details.
az managedservices definition show --definition
Examples
Show the registration definition given its identifier under the default subscription scope.
az managedservices definition show --definition af8772a0-fd9c-4ddc-8ad0-7d4b3913d7dd
Show 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
Guid of the registration definition.
az managedservices definition wait
Place the CLI in a waiting state until a condition is met.
az managedservices definition wait --definition
--scope
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
Guid of the registration definition.
Scope of the resource.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Feedback
Was this page helpful?
