locked
Azure Stack TP3 POC environment - Adding new Windows Server 2016 VM Image gives Gateway timeout error. RRS feed

  • Question

  • I have setup Azure Stack POC environment with ADFS and now I am trying to Add SQL Resource Provider and App Services Resource Provider but when I try to add new Windows Server 2016 image I get following error.

    MD5 hash is being calculated for the file  C:\AzureStack-Tools-master\ComputeAdmin\Server2016Datacenter

    FullEval.vhd.

    MD5 hash calculation is completed.

    Elapsed time for the operation: 00:02:00

    Creating new page blob of size 42949673472...

    Elapsed time for upload: 00:01:53

    LocalFilePath  : C:\AzureStack-Tools-master\ComputeAdmin\Server2016DatacenterFullEval.vhd

    DestinationUri : https://addvmimagestorageaccount.blob.local.azurestack.external/addvmimagecontainer/S

                     erver2016DatacenterFullEval.vhd

    New-Server2016VMImage : {"error":{"code":"GatewayTimeout","message":"The gateway did not receive a

    response from 'Microsoft.Compute.Admin' within the specified time period."}}

    At line:1 char:1

    + New-Server2016VMImage -ISOPath $ISOPath -TenantId $TenantID -Environm ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Write-Err

       or], WebException

        + FullyQualifiedErrorId : WebCmdletWebResponseException,New-Server2016VMImage

    Monday, May 29, 2017 6:51 PM

Answers

All replies

  • Hi,

    I tried above procedure on the MAS-CON01 machine and I got different error this time.

    MD5 hash is being calculated for the file  C:\AzureStack-Tools-master\ComputeAdmin\Server2016DatacenterFullEval.vhd.
    MD5 hash calculation is completed.
    Elapsed time for the operation: 00:03:40
    Creating new page blob of size 42949673472...
    Elapsed time for upload: 00:03:41
    LocalFilePath  : C:\AzureStack-Tools-master\ComputeAdmin\Server2016DatacenterFullEval.vhd
    DestinationUri : https://addvmimagestorageaccount.blob.local.azurestack.external/addvmimagecontainer/Server2016DatacenterFullEval.vhd

    id         : /subscriptions/a5ec8770-8404-48ad-bd10-80cfd147b924/providers/Microsoft.Compute.Admin/locations/local/artifactTypes/platformImage/publishers/MicrosoftWindow
                 sServer/offers/WindowsServer/skus/2016-Datacenter/versions/1.0.0
    name       :
    type       : Microsoft.Compute.Admin/locations/artifactTypes/publishers/offers/skus/versions
    location   : local
    properties : @{osDisk=; dataDisks=; details=; provisioningState=Creating}

    WARNING: Unable to acquire token for tenant 'Common'
    New-Server2016VMImage : VM image download failed.
    At line:1 char:1
    + New-Server2016VMImage -ISOPath $ISOPath -TenantId $TenantID -Environm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
        + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-Server2016VMImage

    Any help will be appreciated.

    Thanks,

    Raj

    Tuesday, May 30, 2017 2:00 PM
  • Check to see if there are any alerts on your system.  In particular look if the compute resource provider is healthy.

    If all is healthy, try registering your Azure Stack for syndication and grab the server image from the Azure Marketplace.

    https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-register

    Tuesday, May 30, 2017 5:12 PM
  • Hi David,

    Thanks for your reply.

    FYI in my Azure Stack environment I am trying to add App Services and SQL Resource providers and as part of the process I was trying to upload the Windows 2016 Eval ISO and SQL Server 2016 ISO to the Azure Stack.

    As per your instructions yesterday I started downloading Windows 2016 Eval Image (40GB) and SQL Server 2016 Dev Image(140 GB) from marketplace but for some reason both failed to download after few hours of downloading. In the status it does not show me the reason of failure so I don't know why it failed to download the images.

    Since this images are hugh in Marketplace I was wondering if there is any other way to upload the ISO's which I have got to AzureStack in order to enable above resource providers.

    Thanks,

    Raj

    Wednesday, May 31, 2017 2:00 PM
  • Hello,

    I suggest running this from your deployment host and not MAS-CON01.

    This error is typically caused by running out of diskspace.

    If you could, please validate your free diskspace by running the following PowerShell to check your diskspace

     

    $disk = Get-WmiObject Win32_LogicalDisk -Filter "DeviceID='C:'" |

    Select-Object Size,FreeSpace

    $disk.Size

    $disk.FreeSpace

     

    Also - Is your Azure Stack configured with ADFS or Azure AD?  

    If configured with Azure AD and you have internet access I suggest Adding the Default VM Image from the deployment host.

     

    1)From the deployment host, download the Server2016 ISO Image to your Azure Stack deployment Host E: or F: drive

    https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016

     

    2)Run the following script to Install and Import all the required PowerShell modules & tools.

    AzureStack Automation: RM Module Check/Fix ver.1.2.9 plus AzureStack-Tools

    3)Run the following script to Automate the Import of Azure Stack Modules and configure PowerShell ARM endpoints/environment

    AzureStack Automation: Setup & Validate AdminStackAdmin/User ARM Endpoints

     

    4)Run the following script to Automate the Adding of the Server 2016 default VM Image

    AzureStack Automation: Validate and Set Default Image

    Let us know how it goes

    We apologize for any inconvenience and appreciate your time and interest in Azure Stack.

    If you continue experience any issues with TP3 release, feel free to contact us.

      

    Azure Stack TP3R Docs:

    https://docs.microsoft.com/en-us/azure/azure-stack/

    https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-troubleshooting

    https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-diagnostics

    https://aka.ms/GetAzureStackLogs

     

    PowerShell giving you the Blues? Try my Azure Stack PowerShell Helper scripts

    AzureStack Automation: RM Module Check/Fix ver.1.2.9 plus AzureStack-Tools

    AzureStack Automation: Setup & Validate AdminStackAdmin/User ARM Endpoints

    AzureStack Automation: Validate and Set Default Image

    AzureStack Automation: Register Azure Stack for Azure Marketplace Syndication

     Thanks,


    Gary Gallanes

    Wednesday, May 31, 2017 5:36 PM
  • Hi Gary,

    Thanks for the reply.

    Actually from my previous failed attempts the image was already there in my Compute resource provider and that is why it was failing for subsequent attempts. I have deleted that failed image and I was able to deploy the image to the Marketplace.

    I am trying to add sql server provider using following command and it is complaining that required image could not be found in Platform Image Repository even though I can see the image in the MarketPlace in the Admin Portal.

    PS C:\Users\AzureStackAdmin\Downloads> .\DeploySQLProvider.ps1 -DirectoryTenantID $tenantID -AzCredential $AdminCreds -VMLocalCredential $vmLocal
    AdminCreds -ResourceGroupName "SqlRPRG" -VmName "SqlVM" -DependencyFilesLocalPath "J:\Images\SQLServer2014SP1-FullSlipstream-x64-ENU.iso" -ArmEnd
    point "https://adminmanagement.local.azurestack.external" -TenantArmEndpoint "https://management.local.azurestack.external"
    Transcript started, output file is C:\Users\AzureStackAdmin\Downloads\Logs\DeploySQLProvider.ps1_20170531-134505.txt

    Thanks for your help.

    Raj

    Wednesday, May 31, 2017 5:54 PM
  • Hi,

    Here is some more info. So after I managed to successfully upload the image to Azure Stack somehow it was showing up in only in marketplace but not under the local resource compute section so I was not able to use the image. Then I uploaded same image again with Location parameter set to local and now I am able to see one image under local region but when I go to create a new virtual machine it still not able to see the image and complains that "Selected image is not valid for the specified location. Select a different location".

    As per David's instruction above I have registered my AzureStack for Syndication so I am not sure whether that is causing any of this issue or not.

    Thanks,

    Raj

    Wednesday, May 31, 2017 7:34 PM
  • Hi,

    This issue is resolved now. I removed all the images from the Compute provider and removed the entry from the Marketplace as well and added them again. After adding I had to restart the whole host to get everything working again.

    Thanks,

    Raj

    Thursday, June 1, 2017 12:06 PM