INSTALLING AZURE STACK DEVELOPMENT KIT ON MY LAB – PART III : ADD Windows 2016 Image to ASDK

         Connect to Azure Stack by using Remote Desktop Connection
  1. Open Remote Desktop Connection and connect to the development kit. For the user name, enter AzureStack\AzureStackAdmin. Use the operator password that you specified when you set up Azure Stack.
  2. To open the Azure Stack operator portal, go to https://adminportal.local.azurestack.external/. Sign in by using the ADFS credentials that you specified during installation.
  3. Download Windows 2016 Evaluation ISO and copy the ISO to ASDK server.
  4. Run the following scripts:
    # For Azure Stack Development Kit, this value is set to https://adminmanagement.local.azurestack.external. To get this value for Azure Stack integrated systems, contact your service provider.
    $ArmEndpoint = "https://adminmanagement.local.azurestack.external"
    
    # For Azure Stack Development Kit, this value is set to https://graph.local.azurestack.external/. To get this value for Azure Stack integrated systems, contact your service provider.
    $GraphAudience = "https://graph.local.azurestack.external/"
    
    # Create the Azure Stack operator's Azure Resource Manager environment by using the following cmdlet:
    Add-AzureRMEnvironment `
     -Name "AzureStackAdmin" `
     -ArmEndpoint $ArmEndpoint
    
    Set-AzureRmEnvironment `
     -Name "AzureStackAdmin" `
     -GraphAudience $GraphAudience `
     -EnableAdfsAuthentication:$true
    
    $TenantID = Get-AzsDirectoryTenantId -ADFS -EnvironmentName "AzureStackAdmin"
    
    Login-AzureRmAccount -EnvironmentName "AzureStackAdmin" -TenantId $TenantID 

    5. Add Windows 206 image to Azure Market Place:

    $ISOPath = "C:\isos\windowsserver2016.iso"
    # Add a Windows Server 2016 Evaluation VM image.
    New-AzsServer2016VMImage `
     -ISOPath $ISOPath 

     


    I encountered the above error while uploading the Windows 2016 image. I believe it tries to go to internet to download Azure Stack Marketplace Item Generator and Sample.zip and fails. I am not sure if ASDK code change to get rid of this issue in newer version. I had to allow the ASDK server to connect to internet after which upload was successfully.
    Reference : https://social.msdn.microsoft.com/Forums/en-US/a8500948-0eb3-4f25-b9c2-87c3c6576e9e/newazsserver2016vmimage-failure?forum=AzureStack