az network vnet-gateway aad

Manage AAD(Azure Active Directory) authentication of a virtual network gateway.

Commands

az network vnet-gateway aad assign

Assign/Update AAD(Azure Active Directory) authentication to a virtual network gateway.

az network vnet-gateway aad remove

Remove AAD(Azure Active Directory) authentication from a virtual network gateway.

az network vnet-gateway aad show

Show AAD(Azure Active Directory) authentication of a virtual network gateway.

az network vnet-gateway aad assign

Assign/Update AAD(Azure Active Directory) authentication to a virtual network gateway.

az network vnet-gateway aad assign --audience
                                   --gateway-name
                                   --issuer
                                   --resource-group
                                   --tenant
                                   [--no-wait]
                                   [--subscription]

Examples

Assign AAD authentication to a virtual network gateway

az network vnet-gateway aad assign \
--resource-group MyResourceGroup \
--gateway-name MyVnetGateway \
--tenant MyAADTenantURI \
--audience MyAADAudienceId \
--issuer MyAADIssuerURI

Required Parameters

--audience

The AADAudience ID of the VirtualNetworkGateway.

--gateway-name

Virtual network gateway name.

--issuer

The AADIssuer URI of the VirtualNetworkGateway.

--resource-group -g

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

--tenant

The AADTenant URI of the VirtualNetworkGateway.

Optional Parameters

--no-wait

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

--subscription

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

az network vnet-gateway aad remove

Remove AAD(Azure Active Directory) authentication from a virtual network gateway.

az network vnet-gateway aad remove --gateway-name
                                   --resource-group
                                   [--no-wait]
                                   [--subscription]

Examples

Remove AAD information

az network vnet-gateway aad remove --resource-group MyResourceGroup --gateway-name MyVnetGateway

Required Parameters

--gateway-name

Virtual network gateway name.

--resource-group -g

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

Optional Parameters

--no-wait

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

--subscription

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

az network vnet-gateway aad show

Show AAD(Azure Active Directory) authentication of a virtual network gateway.

az network vnet-gateway aad show --gateway-name
                                 --resource-group
                                 [--query-examples]
                                 [--subscription]

Examples

Show AAD information

az network vnet-gateway aad show --resource-group MyResourceGroup --gateway-name MyVnetGateway

Required Parameters

--gateway-name

Virtual network gateway name.

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