az signalr cors

Manage CORS for Azure SignalR Service.

Commands

az signalr cors add

Add allowed origins to a SignalR Service.

az signalr cors list

List allowed origins of a SignalR Service.

az signalr cors remove

Remove allowed origins from a SignalR Service.

az signalr cors add

Add allowed origins to a SignalR Service.

az signalr cors add --allowed-origins
                    --name
                    --resource-group
                    [--subscription]

Examples

Add a list of allowed origins to a SignalR Service

az signalr cors add -n MySignalR -g MyResourceGroup --allowed-origins "http://example1.com" "https://example2.com"

Required Parameters

--allowed-origins -a

Space separated origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). To allow all, use "*".

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

--subscription

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

az signalr cors list

List allowed origins of a SignalR Service.

az signalr cors 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 cors remove

Remove allowed origins from a SignalR Service.

az signalr cors remove --allowed-origins
                       --name
                       --resource-group
                       [--subscription]

Examples

Remove a list of allowed origins from a SignalR Service

az signalr cors remove -n MySignalR -g MyResourceGroup --allowed-origins "http://example1.com" "https://example2.com"

Required Parameters

--allowed-origins -a

Space separated origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). To allow all, use "*".

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

--subscription

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