Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Unable to Run Set-AzureVNetGatewayKey PowerShell Comand

$
0
0

I am trying to run Run Set-AzureVNetGatewayKey PowerShell Comand like this :

Set-AzureVNetGatewayKey -VNetName AzureVN1 -LocalNetworkSiteName ITservice -SharedKey 1234abcd

But I get the following error : 

Set-AzureVNetGatewayKey : BadRequest: The specified virtual network name 'AzureVN1' is not valid or could not be found.
At line:1 char:1
+ Set-AzureVNetGatewayKey -VNetName AzureVN1 -LocalNetworkSiteName ITService -Shar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Set-AzureVNetGatewayKey], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Gateway.SetAzureVNetGatewayKey

Also tried to run :

Add-AzureAccount before runing previous comand.

I am trying to set up a VNet-to-VNet connection


Gerson Gutierrez


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>