Share via


az providerhub provider-registration

Note

This reference is part of the providerhub extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az providerhub provider-registration command. Learn more about extensions.

Manage provider registration with providerhub.

Commands

Name Description Type Status
az providerhub provider-registration create

Create the provider registration.

Extension GA
az providerhub provider-registration delete

Deletes a provider registration.

Extension GA
az providerhub provider-registration generate-operation

Generates the operations api for the given provider.

Extension GA
az providerhub provider-registration list

Gets the list of the provider registrations in the subscription.

Extension GA
az providerhub provider-registration show

Gets the provider registration details.

Extension GA

az providerhub provider-registration create

Create the provider registration.

az providerhub provider-registration create --provider-namespace
                                            [--capabilities]
                                            [--incident-contact-email]
                                            [--incident-routing-service]
                                            [--incident-routing-team]
                                            [--lighthouse-auth]
                                            [--managed-by-tenant-id]
                                            [--manifest-owners]
                                            [--metadata]
                                            [--metadata-authn]
                                            [--metadata-authz]
                                            [--namespace]
                                            [--no-wait]
                                            [--opt-in-headers {ClientGroupMembership, NotSpecified, SignedAuxiliaryTokens, SignedUserToken, UnboundedClientGroupMembership}]
                                            [--override-actions]
                                            [--provider-authentication]
                                            [--provider-authorizations]
                                            [--provider-type]
                                            [--provider-version]
                                            [--req-features-policy {All, Any}]
                                            [--required-features]
                                            [--resource-access-policy {AcisActionAllowed, AcisReadAllowed, NotSpecified}]
                                            [--resource-access-roles]
                                            [--schema-owners]
                                            [--service-tree-infos]
                                            [--soft-delete-ttl]
                                            [--template-deployment-options]

Examples

ProviderRegistrations_CreateOrUpdate

az providerhub provider-registration create     --providerhub-metadata-authorizations application-id="00000000-0000-0000-0000-000000000000"     role-definition-id="00000000-0000-0000-0000-000000000000"     --providerhub-metadata-authentication allowed-audiences="https://management.core.windows.net/"     --service-tree-infos service-id="00000000-0000-0000-0000-000000000000"     component-id="00000000-0000-0000-0000-000000000000"     --capabilities effect="Allow" quota-id="CSP_2015-05-01"     --capabilities effect="Allow" quota-id="CSP_MG_2017-12-01"     --manifest-owners "SPARTA-PlatformServiceAdministrator"     --incident-contact-email "helpme@contoso.com"     --incident-routing-service "Contoso Resource Provider"     --incident-routing-team "Contoso Triage"     --provider-type "Internal"     --provider-version "2.0"     --provider-namespace "Microsoft.Contoso"

Required Parameters

--provider-namespace

The name of the resource provider hosted within ProviderHub.

Optional Parameters

--capabilities

The resource provider capabilities.

Usage: --capabilities quota-id=XX effect=XX required-features=XX

Multiple actions can be specified by using more than one --capabilities argument.

--incident-contact-email

The email address of contacts for incidents related to the RP.

Usage: --incident-contact-email "helpme@contoso.com".

--incident-routing-service --incident-service

The service in IcM when creating or transferring incidents to the RP.

Usage: --incident-routing-service "Contoso Resource Provider".

--incident-routing-team --incident-team

The team in IcM when creating or transferring incidents to the RP.

Usage: --incident-routing-team "Contoso Triage".

--lighthouse-auth --lighthouse-authorizations

The lighthouse authorizations.

Usage: --lighthouse-authorizations principal-id=XX role-definition-id=XX

principal-id: Required. The principal ID. role-definition-id: Required. The role definition ID.

--managed-by-tenant-id

The managed by tenant ID.

Usage: --managed-by-tenant-id "00000000-0000-0000-0000-000000000000".

--manifest-owners

Specifies an array of required ACIS claims to modify the resource provider's manifest content via ACIS.

Usage: --manifest-owners "SPARTA-PlatformServiceAdministrator"

Multiple actions can be specified by using more than one --manifest-owners argument.

--metadata

The metadata.

--metadata-authn --providerhub-metadata-authentication

The ProviderHub metadata authentication.

Usage: --providerhub-metadata-authentication allowed-audiences=XX

allowed-audiences: Required. The allowed audiences.

--metadata-authz --providerhub-metadata-authorizations

The ProviderHub metadata authorizations.

Usage: --providerhub-metadata-authorizations application-id=XX role-definition-id=XX managed-by-role-definition-id=XX

application-id: Required. The application ID. role-definition-id: Required. The role definition ID. managed-by-role-definition-id: Required. The managed by role definition ID.

Multiple actions can be specified by using more than one --providerhub-metadata-authorizations argument.

--namespace

The name of the resource provider hosted within ProviderHub.

Usage: --namespace "Microsoft.Contoso".

--no-wait

Do not wait for the long-running operation to finish.

default value: False
--opt-in-headers

The opt-in headers.

Usage: --opt-in-headers "SignedUserToken".

accepted values: ClientGroupMembership, NotSpecified, SignedAuxiliaryTokens, SignedUserToken, UnboundedClientGroupMembership
--override-actions --subscription-state-override-actions

The subscription state override actions.

Usage: --subscription-state-override-actions state=XX action=XX

Multiple actions can be specified by using more than one --subscription-state-override-actions argument.

--provider-authentication --provider-authn

Used to set alternative audiences or resources that ARM should accept from the token while authenticating requests for the provider.

Usage: --provider-authentication allowed-audiences=XX

allowed-audiences: Required. The allowed audiences.

--provider-authorizations --provider-authz

The resource provider authorizations.

Usage: --provider-authorizations application-id=XX role-definition-id=XX managed-by-role-definition-id=XX

application-id: Required. The application ID. role-definition-id: Required. The role definition ID. managed-by-role-definition-id: Required. The managed by role definition ID.

Multiple actions can be specified by using more than one --provider-authorizations argument.

--provider-type

The provider type.

Usage: --provider-type "Internal"

Available provider types include: Internal, External, Hidden, RegistrationFree, LegacyRegistrationRequired, TenantOnly, AuthorizationFree.

--provider-version

The provider version.

Usage: --provider-version "2.0".

--req-features-policy --required-features-policy

The accepted values are "Any" or "All". If the value is "All", then only the subscriptions registered to all the corresponding feature flag will be allowed.​.

accepted values: All, Any
--required-features

The required features.

--resource-access-policy

The resource access policy.

Usage: --resource-access-policy "AcisReadAllowed, AcisActionAllowed".

accepted values: AcisActionAllowed, AcisReadAllowed, NotSpecified
--resource-access-roles

The resource access roles. Expected value: json-string/@json-file.

--schema-owners

Specifies an array of needed ACIS claims to modify the resource provider schema via ACIS.

Usage: --schema-owners "Contoso schema owners"

Multiple actions can be specified by using more than one --schema-owners argument.

--service-tree-infos

The ServiceTree information for the resource provider.

Usage: --service-tree-infos service-id=XX component-id=XX

service-id: Required. The service ID. component-id: Required. The component ID.

Multiple actions can be specified by using more than one --service-tree-infos argument.

--soft-delete-ttl

The soft delete time to live.

--template-deployment-options --tmplt-deploy-opt

The template deployment options.

Usage: --template-deployment-options preflight-supported=XX preflight-options=XX.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az providerhub provider-registration delete

Deletes a provider registration.

az providerhub provider-registration delete [--ids]
                                            [--provider-namespace]
                                            [--subscription]
                                            [--yes]

Examples

ProviderRegistrations_Delete

az providerhub provider-registration delete --provider-namespace "Microsoft.Contoso"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--subscription

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

--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az providerhub provider-registration generate-operation

Generates the operations api for the given provider.

az providerhub provider-registration generate-operation [--ids]
                                                        [--provider-namespace]
                                                        [--subscription]

Examples

ProviderRegistrations_GenerateOperations

az providerhub provider-registration generate-operation --provider-namespace "Microsoft.Contoso"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az providerhub provider-registration list

Gets the list of the provider registrations in the subscription.

az providerhub provider-registration list

Examples

ProviderRegistrations_List

az providerhub provider-registration list
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az providerhub provider-registration show

Gets the provider registration details.

az providerhub provider-registration show [--ids]
                                          [--provider-namespace]
                                          [--subscription]

Examples

ProviderRegistrations_Get

az providerhub provider-registration show --provider-namespace "Microsoft.Contoso"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.