az appservice hybrid-connection

A method that sets the key a hybrid-connection uses.

Commands

az appservice hybrid-connection set-key

Set the key that all apps in an appservice plan use to connect to the hybrid-connections in that appservice plan.

az appservice hybrid-connection set-key

Set the key that all apps in an appservice plan use to connect to the hybrid-connections in that appservice plan.

az appservice hybrid-connection set-key --hybrid-connection
                                        --key-type
                                        --namespace
                                        --plan
                                        --resource-group
                                        [--subscription]

Examples

set the key that all apps in an appservice plan use to connect to the hybrid-connections in that appservice plan

az appservice hybrid-connection set-key -g MyResourceGroup --plan MyAppServicePlan --namespace [HybridConectionNamespace] --hybrid-connection [HybridConnectionName] --key-type ["primary"/"secondary"]

Required Parameters

--hybrid-connection

Hybrid connection name.

--key-type

Which key (primary or secondary) should be used.

--namespace

Hybrid connection namespace.

--plan

AppService plan.

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