az signalr network-rule

Manage network rules.

Commands

az signalr network-rule list

Get the Network access control of SignalR Service.

az signalr network-rule update

Update the Network access control of SignalR Service.

az signalr network-rule list

Get the Network access control of SignalR Service.

az signalr network-rule list --name
                             --resource-group
                             [--query-examples]
                             [--subscription]

Required Parameters

--name -n

Name of signalr service.

--resource-group -g

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

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az signalr network-rule update

Update the Network access control of SignalR Service.

az signalr network-rule update --name
                               --resource-group
                               [--allow]
                               [--connection-name]
                               [--deny]
                               [--public-network {false, true}]
                               [--subscription]

Examples

Set allowing RESTAPI only for public network.

az signalr network-rule update --public-network -n MySignalR -g MyResourceGroup --allow RESTAPI

Set allowing client connection and server connection for a private endpoint connection

az signalr network-rule update --connection-name MyPrivateEndpointConnection -n MySignalR -g MyResourceGroup --allow ClientConnection ServerConnection

Set denying client connection for both public network and private endpoint connections

az signalr network-rule update --public-network --connection-name MyPrivateEndpointConnection1 MyPrivateEndpointConnection2 -n MySignalR -g MyResourceGroup --deny ClientConnection

Required Parameters

--name -n

Name of signalr service.

--resource-group -g

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

Optional Parameters

--allow

The allowed virtual network rule. Space-separeted list of scope to assign. Allowed values: ClientConnection, ServerConnection, RESTAPI.

--connection-name

Space-separeted list of private endpoint connection name.

--deny

The denied virtual network rule. Space-separeted list of scope to assign. Allowed values: ClientConnection, ServerConnection, RESTAPI.

--public-network

Set rules for public network.

accepted values: false, true
--subscription

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