az eventgrid namespace

Note

This reference is part of the eventgrid extension for the Azure CLI (version 2.51.0 or higher). The extension will automatically install the first time you run an az eventgrid namespace command. Learn more about extensions.

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage eventgrid namespace.

Commands

Name Description Type Status
az eventgrid namespace ca-certificate

Manage eventgrid namespace ca-certificate.

Extension Preview
az eventgrid namespace ca-certificate create

Create a CA certificate.

Extension Preview
az eventgrid namespace ca-certificate delete

Delete an existing CA certificate.

Extension Preview
az eventgrid namespace ca-certificate list

List all the CA certificates under a namespace.

Extension Preview
az eventgrid namespace ca-certificate show

Show a CA certificate.

Extension Preview
az eventgrid namespace ca-certificate update

Update a CA certificate with the specified parameters.

Extension Preview
az eventgrid namespace ca-certificate wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace client

Manage eventgrid namespace client.

Extension Preview
az eventgrid namespace client-group

Manage eventgrid namespace client-group.

Extension Preview
az eventgrid namespace client-group create

Create a client group.

Extension Preview
az eventgrid namespace client-group delete

Delete an existing client group.

Extension Preview
az eventgrid namespace client-group list

List all the client groups under a namespace.

Extension Preview
az eventgrid namespace client-group show

Show a client group.

Extension Preview
az eventgrid namespace client-group update

Update a client group.

Extension Preview
az eventgrid namespace client-group wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace client create

Create a client.

Extension Preview
az eventgrid namespace client delete

Delete an existing client.

Extension Preview
az eventgrid namespace client list

List all the client under a namespace.

Extension Preview
az eventgrid namespace client show

Show a client.

Extension Preview
az eventgrid namespace client update

Update a client.

Extension Preview
az eventgrid namespace client wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace create

Create a new namespace.

Extension Preview
az eventgrid namespace delete

Delete existing namespace.

Extension Preview
az eventgrid namespace list

List all the namespaces under an Azure subscription.

Extension Preview
az eventgrid namespace list-key

List the two keys used to publish to a namespace.

Extension Preview
az eventgrid namespace permission-binding

Manage eventgrid namespace permission binding.

Extension Preview
az eventgrid namespace permission-binding create

Create a permission binding.

Extension Preview
az eventgrid namespace permission-binding delete

Delete an existing permission binding.

Extension Preview
az eventgrid namespace permission-binding list

List all the permission bindings under a namespace.

Extension Preview
az eventgrid namespace permission-binding show

Show a permission binding.

Extension Preview
az eventgrid namespace permission-binding update

Update a permission binding.

Extension Preview
az eventgrid namespace permission-binding wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace regenerate-key

Regenerate a shared access key for a namespace.

Extension Preview
az eventgrid namespace show

Show a namespace.

Extension Preview
az eventgrid namespace topic

Manage eventgrid namespace topic.

Extension Preview
az eventgrid namespace topic-space

Manage eventgrid namespace topic space.

Extension Preview
az eventgrid namespace topic-space create

Create a topic space.

Extension Preview
az eventgrid namespace topic-space delete

Delete an existing topic space.

Extension Preview
az eventgrid namespace topic-space list

List all the topic spaces under a namespace.

Extension Preview
az eventgrid namespace topic-space show

Show a topic space.

Extension Preview
az eventgrid namespace topic-space update

Update a topic space.

Extension Preview
az eventgrid namespace topic-space wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace topic create

Create a new namespace topic.

Extension Preview
az eventgrid namespace topic delete

Delete existing namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription

Manage eventgrid namespace topic event subscription.

Extension Preview
az eventgrid namespace topic event-subscription create

Create an event subscription of a namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription delete

Delete an existing event subscription of a namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription list

List event subscriptions that belong to a specific namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription show

Show an event subscription of a namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription update

Update an event subscription of a namespace topic.

Extension Preview
az eventgrid namespace topic event-subscription wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace topic list

List all the namespace topics under a namespace.

Extension Preview
az eventgrid namespace topic list-key

List the two keys used to publish to a namespace topic.

Extension Preview
az eventgrid namespace topic regenerate-key

Regenerate a shared access key for a namespace topic.

Extension Preview
az eventgrid namespace topic show

Show a namespace topic.

Extension Preview
az eventgrid namespace topic update

Update a namespace topic.

Extension Preview
az eventgrid namespace topic wait

Place the CLI in a waiting state until a condition is met.

Extension Preview
az eventgrid namespace update

Update a namespace.

Extension Preview
az eventgrid namespace wait

Place the CLI in a waiting state until a condition is met.

Extension Preview

az eventgrid namespace create

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Create a new namespace.

az eventgrid namespace create --name
                              --resource-group
                              [--identity]
                              [--inbound-ip-rules]
                              [--is-zone-redundant {0, 1, f, false, n, no, t, true, y, yes}]
                              [--location]
                              [--minimum-tls-version-allowed {1.0, 1.1, 1.2}]
                              [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                              [--private-endpoint-connections]
                              [--public-network-access {Disabled, Enabled}]
                              [--sku]
                              [--tags]
                              [--topic-spaces-configuration]

Examples

Create namespace

az eventgrid namespace create -g rg -n namespace

Required Parameters

--name --namespace-name -n

Name of the namespace.

--resource-group -g

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

Optional Parameters

--identity

Identity information for the Namespace resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--inbound-ip-rules

This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--is-zone-redundant

Allows the user to specify if the service is zone-redundant.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--location -l

Location of the resource. When not specified, the location of the resource group will be used.

--minimum-tls-version-allowed

Minimum TLS version of the publisher allowed to publish to this namespace. Only TLS version 1.2 is supported.

Accepted values: 1.0, 1.1, 1.2
--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--private-endpoint-connections

Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--public-network-access

This determines if traffic is allowed over public network.

Accepted values: Disabled, Enabled
--sku

Represents available Sku pricing tiers. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--tags

Tags of the resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--topic-spaces-configuration

Topic spaces configuration information for the namespace resource Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

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 eventgrid namespace delete

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Delete existing namespace.

az eventgrid namespace delete [--ids]
                              [--name]
                              [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                              [--resource-group]
                              [--subscription]
                              [--yes]

Examples

Delete namespace

az eventgrid namespace delete -g rg -n namespace

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.

--name --namespace-name -n

Name of the namespace.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--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.

--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 eventgrid namespace list

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List all the namespaces under an Azure subscription.

az eventgrid namespace list [--filter]
                            [--max-items]
                            [--next-token]
                            [--resource-group]
                            [--top]

Examples

List namespace

az eventgrid namespace list -g rg

Optional Parameters

--filter

The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'.

--max-items

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.

--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

--resource-group -g

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

--top

The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page.

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 eventgrid namespace list-key

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

List the two keys used to publish to a namespace.

az eventgrid namespace list-key [--ids]
                                [--namespace-name]
                                [--resource-group]
                                [--subscription]

Examples

List key

az eventgrid namespace list-key -g rg --namespace-name name

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.

--namespace-name

Name of the namespace.

--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.

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 eventgrid namespace regenerate-key

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Regenerate a shared access key for a namespace.

az eventgrid namespace regenerate-key --key-name
                                      [--ids]
                                      [--namespace-name]
                                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                      [--resource-group]
                                      [--subscription]

Examples

Regenerate key

az eventgrid namespace regenerate-key -g rg --namespace-name name --key-name key1

Required Parameters

--key-name

Key name to regenerate key1 or key2.

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.

--namespace-name

Name of the Namespace.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--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.

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 eventgrid namespace show

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show a namespace.

az eventgrid namespace show [--ids]
                            [--name]
                            [--resource-group]
                            [--subscription]

Examples

Show namespace

az eventgrid namespace show -g rg -n namespace

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.

--name --namespace-name -n

Name of the namespace.

--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.

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 eventgrid namespace update

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Update a namespace.

az eventgrid namespace update [--identity]
                              [--ids]
                              [--inbound-ip-rules]
                              [--name]
                              [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                              [--public-network-access {Disabled, Enabled}]
                              [--resource-group]
                              [--sku]
                              [--subscription]
                              [--tags]
                              [--topic-spaces-configuration]

Examples

Update namespace

az eventgrid namespace update -g rg -n namespoace --tags "{tag:test}" --sku "{name:standard,capacity:2}" --topic-spaces-configuration "{maximumSessionExpiryInHours:1}"

Optional Parameters

--identity

Namespace resource identity information. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--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.

--inbound-ip-rules

This can be used to restrict traffic from specific IPs instead of all IPs. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--name --namespace-name -n

Name of the namespace.

--no-wait

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

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--public-network-access

This determines if traffic is allowed over public network.

Accepted values: Disabled, Enabled
--resource-group -g

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

--sku

Represents available Sku pricing tiers. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--subscription

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

--tags

Tags of the namespace resource. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--topic-spaces-configuration

Topic spaces configuration properties that can be updated. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

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 eventgrid namespace wait

Preview

Command group 'az eventgrid' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Place the CLI in a waiting state until a condition is met.

az eventgrid namespace wait [--created]
                            [--custom]
                            [--deleted]
                            [--exists]
                            [--ids]
                            [--interval]
                            [--name]
                            [--resource-group]
                            [--subscription]
                            [--timeout]
                            [--updated]

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

Default value: False
--exists

Wait until the resource exists.

Default value: False
--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.

--interval

Polling interval in seconds.

Default value: 30
--name --namespace-name -n

Name of the namespace.

--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.

--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

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.