The Add-AzVpnClientRevokedCertificate cmdlet assigns a client-revocation certificate to a virtual network gateway.
Client-revocation certificates prevent client computers from using the specified certificate for authentication.
You need to specify both the certificate name and the certificate thumbprint to use this cmdlet.
Examples
Example 1: Add a new client-revocation certificate to a virtual network gateway
This command adds a new client-revocation certificate to the virtual network gateway named ContosoVirtualNetwork.
In order to add the certificate, you must specify both the certificate name and the certificate thumbprint.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Specifies the name of the resource group that the virtual network gateway is assigned to.
Resource groups categorize items to help simplify inventory management and general Azure administration.
Specifies the unique identifier of the certificate being added.
For example:
-Thumbprint "E3A38EBA60CAA1C162785A2E1C44A15AD450199C3"
You can get thumbprint information for your certificates by using a Windows PowerShell command similar to this: Get-ChildItem -Path Cert:\LocalMachine\Root.
The preceding command gets information for all the local computer certificates found in the root certificate store.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.