none
On Prem VHD to Azure Disk RESPONSE Status: 500 Operation could not be completed within the specified time RRS feed

  • Question

  • Hello all,
    I am trying to take a virtual machine I have on prem and put it in the cloud and create a VM from it.
    I have used both AzCopy and Azure Storage Explorer to upload the VHD, both fail
    I have taken the vhdx files and converted them to VHD, static size. I even tried to do a resize-vhd on the files 200GB -> 205GB.
    Still fails

    In AzCopy, the log file looks like this (multiple entries):
     --------------------------------------------------------------------------------
       RESPONSE Status: 500 Operation could not be completed within the specified time.
       Content-Length: [246]
       Content-Type: [application/xml]
       Date: [Wed, 13 Nov 2019 14:19:48 GMT]
       Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
       X-Ms-Error-Code: [OperationTimedOut]
       X-Ms-Request-Id: [40629a49-a01e-002a-282d-9a95ee000000]
       X-Ms-Version: [2018-03-28]
    Response Details: <?xml version="1.0" encoding="utf-8"?> <Error><Code>OperationTimedOut</Code><Message>Operation could not be completed within the specified time. </Message>

    2019/11/13 14:19:50 ==> REQUEST/RESPONSE (Try=1/2m0.6355362s[SLOW >3s], OpTime=2m0.6355362s) -- RESPONSE STATUS CODE ERROR
       PUT https://md-impexp-rs20x2j0lkj2.blob.core.windows.net/l5dc1wnnjdsp/abcd?comp=page&si=7572c873-65d7-4ab6-b35a-e9fdecb8b3b4&sig=-REDACTED-&sr=b&sv=2017-04-17&timeout=901
       Content-Length: [4194304]
       User-Agent: [AzCopy/10.3.1 Azure-Storage/0.7 (go1.12; Windows_NT)]
       X-Ms-Client-Request-Id: [e83fc097-5f36-4b83-566a-5be7a47554d8]
       X-Ms-Page-Write: [update]
       X-Ms-Range: [bytes=20971520-25165823]
       X-Ms-Version: [2018-03-28]
       --------------------------------------------------------------------------------

    This is a snipet from the Azure storage explorer attempt:

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

    AzCopy failed to complete the transfer: %s
    Disk 'Exchange2010_Data' in 'webd2ms2-rg' was likely created. You may need to delete this disk before retrying this operation.

    AzCopy error message: Transfer of \?\D:\convertedVaultDataDrive.vhd to https://md-impexp-rs20x2j0lkj2.blob.core.windows.net/j0ssjzpz35mt/abcd failed: Status: Failed, Error code: 500

    AzCopy log file can be found at C:\Users\administrator.WEBD2MS2.azcopy\943d7260-e070-9f45-68c7-54dc655056bb.log
    Service response: {
    "name": "Error",
    "message": "The specified cookie value in VHD footer indicates that disk 'abcd' with blob https://md-impexp-rs20x2j0lkj2.blob.core.windows.net:8443/j0ssjzpz35mt/abcd is not a supported VHD. Disk is expected to have cookie value 'conectix'.",
    "stack": "Error: The specified cookie value in VHD footer indicates that disk 'abcd' with blob https://md-impexp-rs20x2j0lkj2.blob.core.windows.net:8443/j0ssjzpz35mt/abcd is not a supported VHD. Disk is expected to have cookie value 'conectix'.\n at new RestError (C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@Azure\ms-rest-js\dist\msRest.node.js:2400:28)\n at C:\Program Files (x86)\Microsoft Azure Storage Explorer\resources\app\node_modules\@Azure\ms-rest-js\dist\msRest.node.js:3544:37\n at process._tickCallback (internal/process/next_tick.js:68:7)",
    "code": "InvalidVhd",
    "statusCode": 400,
    "request":

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

    My Powershell commands are:
       --------------------------------------------------------------------------------

    $vhdSizeBytes = (Get-Item "D:\cxexchange2016\CXExchange2016_Data.vhd").length

    $diskconfig = New-AzDiskConfig -SkuName 'Premium_LRS' -OsType 'Windows' -UploadSizeInBytes $vhdSizeBytes -Location 'East US 2' -CreateOption 'Upload'

    New-AzDisk -ResourceGroupName 'webd2ms2-rg' -DiskName 'Exchange2016_Data' -Disk $diskconfig

    $diskSas = Grant-AzDiskAccess -ResourceGroupName 'webd2ms2-rg' -DiskName 'Exchange2016_Data' -DurationInSecond 900000 -Access 'Write'

    $disk = Get-AzDisk -ResourceGroupName 'webd2ms2-rg' -DiskName 'Exchange2016_Data'

    c:\downloads\azure\AzCopy.exe copy "D:\cxexchange2016\CXExchange2016_Data.vhd" $diskSas.AccessSAS --blob-type PageBlob --cap-mbps 5

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

    Any ideas on why these upload attempts continue to fail?


    • Edited by Seth Dunn Wednesday, November 13, 2019 2:47 PM
    Wednesday, November 13, 2019 2:35 PM

Answers

  • Working w/ Azure support....
    I think it may be working correctly
    Current transfer is up and running and hasn't failed yet.
    Log file shows data being uploaded.

    Support had me add these in my PS

    set AZCOPY_OPTIMIZE_SPARSE_PAGE_BLOB=false
    $env:AZCOPY_CONCURRENCY_VALUE="AUTO"

    and append this switch to the end of the azcopy command
    --s2s-preserve-access-tier=false

    So far things are looking good.
    Fingers crossed.
    Thursday, November 14, 2019 7:25 PM

All replies