az custom-providers resource-provider

Commands to manage custom resource provider.

Commands

az custom-providers resource-provider create

Create or update the custom resource provider.

az custom-providers resource-provider delete

Delete the custom resource provider.

az custom-providers resource-provider list

Get all the custom resource providers within a resource group or in the current subscription.

az custom-providers resource-provider show

Get the properties for the custom resource provider.

az custom-providers resource-provider update

Update the custom resource provider. Only tags can be updated.

az custom-providers resource-provider create

Create or update the custom resource provider.

az custom-providers resource-provider create --name
                                             --resource-group
                                             [--action]
                                             [--location]
                                             [--no-wait]
                                             [--resource-type]
                                             [--tags]
                                             [--validation]

Examples

Create or update a custom resource provider.

az custom-providers resource-provider create -n MyRP -g MyRG \
--action name=ping endpoint=https://test.azurewebsites.net/api routing_type=Proxy \
--resource-type name=users endpoint=https://test.azurewebsites.net/api routing_type="Proxy, Cache" \
--validation validation_type=swagger specification=https://raw.githubusercontent.com/test.json

Required Parameters

--name -n

The name of the resource provider.

--resource-group -g

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

Optional Parameters

--action -a

Add an action to the custom resource provider.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--no-wait

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

--resource-type -r

Add a custom resource type to the custom resource provider.

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--validation -v

Add a validation to the custom resource provider.

az custom-providers resource-provider delete

Delete the custom resource provider.

az custom-providers resource-provider delete --name
                                             --resource-group
                                             [--no-wait]
                                             [--yes]

Examples

Delete a custom resource provider.

az custom-providers resource-provider delete -g MyRG -n MyRP

Required Parameters

--name -n

The name of the resource provider.

--resource-group -g

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

Optional Parameters

--no-wait

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

--yes -y

Do not prompt for confirmation.

az custom-providers resource-provider list

Get all the custom resource providers within a resource group or in the current subscription.

az custom-providers resource-provider list [--resource-group]

Examples

List all custom resource providers in the resource group.

az custom-providers resource-provider list -g MyRG

List all custom resource providers in the current subscription.

az custom-providers resource-provider list

Optional Parameters

--resource-group -g

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

az custom-providers resource-provider show

Get the properties for the custom resource provider.

az custom-providers resource-provider show --name
                                           --resource-group

Examples

Get a custom resource provider.

az custom-providers resource-provider show -g MyRG -n MyRP

Required Parameters

--name -n

The name of the resource provider.

--resource-group -g

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

az custom-providers resource-provider update

Update the custom resource provider. Only tags can be updated.

az custom-providers resource-provider update --name
                                             --resource-group
                                             [--tags]

Examples

Update the tags for a custom resource provider.

az custom-providers resource-provider update -g MyRG -n MyRP --tags a=b

Required Parameters

--name -n

The name of the resource provider.

--resource-group -g

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

Optional Parameters

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.