You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The New-AzVirtualNetworkGatewayCertificateAuthentication cmdlet creates a certificate authentication object that can be used with New-AzVirtualNetworkGatewayConnection to configure certificate-based authentication for VPN gateway connections. This enables secure authentication using certificates instead of pre-shared keys.
22
+
Creates a certificate authentication configuration object that can be used when creating or updating a VPN gateway connection with certificate-based authentication.
23
23
24
24
## EXAMPLES
25
25
26
-
### Example 1: Create a certificate authentication object with outbound certificate
26
+
### Example 1: Create a certificate authentication object
Creates a complete certificate authentication object with outbound certificate, inbound certificate subject name, and certificate chain.
40
+
This example creates a certificate authentication object with a Key Vault certificate URL for outbound authentication, a certificate subject name for inbound authentication, and a certificate chain. This object can then be used with New-AzVirtualNetworkGatewayConnection or Set-AzVirtualNetworkGatewayConnection.
40
41
41
42
## PARAMETERS
42
43
43
44
### -DefaultProfile
44
45
The credentials, account, tenant, and subscription used for communication with Azure.
This example creates a new virtual network gateway connection with certificate-based authentication.
109
+
The first two commands get the virtual network gateway and local network gateway.
110
+
The New-AzVirtualNetworkGatewayCertificateAuthentication cmdlet creates the certificate authentication configuration with the Key Vault certificate URL for outbound authentication, the certificate subject name for inbound authentication, and the certificate chain.
111
+
The final command creates the new connection with certificate-based authentication instead of a pre-shared key.
In both cases, the first command retrieves the gateway. You may then either modify the property directly on the object and persist it, or you may use the switch on the Set-AzVirtualNetworkGateway cmdlet.
524
526
527
+
### Example 13: Configure a virtual network gateway with a user-assigned managed identity
528
+
529
+
```powershell
530
+
# Create or retrieve the user-assigned managed identity
This example demonstrates how to configure a virtual network gateway with a user-assigned managed identity. This uses the UserAssignedIdentityId parameter to create the managed identity object. User-assigned identities are useful for accessing Azure Key Vault certificates for gateway authentication.
0 commit comments