Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'

Govindaswamy, Baskar 1 Reputation point
2022-05-19T10:06:02.533+00:00

Hi Team,

i am trying to create a Az-VirtualHub using Powershell script, but i am getting below error

New-AzVirtualHub : Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'
StatusCode: 200
ReasonPhrase: OK
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.
At line:2 char:1

  • New-AzVirtualHub -ResourceGroupName testRG1 -Name 'test...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : CloseError: (:) [New-AzVirtualHub], NetworkCloudException
  • FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.NewAzureRmVirtualHubCommand

Get-AzVirtualWan

$virtualWan = Get-AzVirtualWan
New-AzVirtualHub -ResourceGroupName testRG1 -Name 'testVWan1' -VirtualWanId $virtualWan.Id -AddressPrefix 10.78.252.0/24 -Location WestEurope -Sku Standard

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
197 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Rodriguez 6,196 Reputation points Microsoft Employee
    2022-05-19T12:12:01.78+00:00

    Hello @Govindaswamy, Baskar

    Welcome to Microsoft Q&A Platform.

    Internal server errors use to be related to transient platform issues, can you try again or use a different region as test?

    Best regards,

    ----------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    2 people found this answer helpful.

  2. GitaraniSharma-MSFT 49,261 Reputation points Microsoft Employee
    2022-05-19T12:15:12.7+00:00

    Hello @Govindaswamy, Baskar ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you are trying to create a Virtual Hub using PowerShell script in West Europe region on an existing Virtual WAN and it is failing with an InternalServerError.

    I tried to create a Virtual Hub in my lab on an existing Virtual WAN and below are the commands that I used and they completed successfully:

    203731-image.png

    203718-image.png

    Reference : https://video2.skills-academy.com/en-us/powershell/module/az.network/get-azvirtualwan?view=azps-7.5.0
    https://video2.skills-academy.com/en-us/powershell/module/az.network/new-azvirtualhub?view=azps-7.5.0

    Could you please use the below commands and try again?

    $virtualWan = Get-AzVirtualWan -Name "NameofVWan" -ResourceGroupName "testRG1"  
    New-AzVirtualHub -VirtualWan $virtualWan -ResourceGroupName "testRG1" -Name "testVWan1" -AddressPrefix "10.78.252.0/24" -Location "West Europe"  
    

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.