Share via


az providerhub operation

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 operation command. Learn more about extensions.

Manage operation with providerhub.

Commands

Name Description Type Status
az providerhub operation create

Create the operation supported by the given provider.

Extension GA
az providerhub operation delete

Deletes an operation.

Extension GA
az providerhub operation list

Gets the operations supported by the given provider.

Extension GA

az providerhub operation create

Create the operation supported by the given provider.

az providerhub operation create --contents
                                --provider-namespace

Examples

Operations_CreateOrUpdate

az providerhub operation create --contents "[{\"name\":\"Microsoft.Contoso/Employees/Read\",\"display\":{\"description\":\"Read employees\",\"operation\":\"Gets/List employee resources\",\"provider\":\"Microsoft.Contoso\",\"resource\":\"Employees\"}}]" --provider-namespace "Microsoft.Contoso"

Required Parameters

--contents

Expected value: json-string/@json-file.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

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 operation delete

Deletes an operation.

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

Examples

Operations_Delete

az providerhub operation 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 operation list

Gets the operations supported by the given provider.

az providerhub operation list --provider-namespace

Examples

Operations_ListByProviderRegistration

az providerhub operation list --provider-namespace "Microsoft.Contoso"

Required Parameters

--provider-namespace

The name of the resource provider hosted within ProviderHub.

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.