Azure VNET Gateway – Preshared Keys

I’m trying to modify the pre shared keys in an existing VNET gateway. Most user guides refer to using powershell in order to modify preshared keys (as per here)

PS C:\> Set-AzureVNetGatewayKey
Set-AzureVNetGatewayKey : The term ‘Set-AzureVNetGatewayKey’ is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ Set-AzureVNetGatewayKey
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-AzureVNetGatewayKey:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I get the above error suggesting the cmdlet is not available. Am I missing a powershell Module?


Turns out you need to run an update on the azure powershell tools.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.