New-AzureLocalNetworkGateway : InternalError

Since we have upgraded our Azure Powershell to version 1.* we are unable to run the command “New-AzureLocalNetworkGateway”. Each time we run the command we run into a different error.

Some examples are:

PS C:\> New-AzureLocalNetworkGateway -GatewayName [Gateway Name] -IpAddress [Gateway IP] -AddressSpace [Subnet]
New-AzureLocalNetworkGateway : A task was canceled.
At line:1 char:1
+ New-AzureLocalNetworkGateway -GatewayName [Gateway Name] -IpAddre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureLocalNetworkGateway], TaskCanceledException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Gateway.NewAzureLocalNetworkGateway


PS C:\> New-AzureLocalNetworkGateway -GatewayName [Gateway Name] -IpAddress [Gateway IP] -AddressSpace [Subnet]
New-AzureLocalNetworkGateway : InternalError: The server encountered an internal error. Please retry the request.
At line:1 char:1
+ New-AzureLocalNetworkGateway -GatewayName [Gateway Name] -IpAdd ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureLocalNetworkGateway], CloudException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.Network.Gateway.NewAzureLocalNetworkGateway

The solution for now is to run the command from Azure Powershell 0.9.8. Here the same command runs without any problem.

About Daniel Etten

My name is Daniƫl Etten. I work as a Premier Field Engineer (PFE) at Microsoft. Together with Paul, a former colleague of mine at KPN, I started this blog to share our experiences with Azure to other Azure minded people and as a personal repo of Azure info. Opinions are my own.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Leave a Reply

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