I'm trying to upload a 100+ GB of VHDX file in a Azure Storage inside a container resource by Azure Portal but I get always Out of Memory error on Edge, despite I disable hardware acceleration and other settings.
I'm trying to upload it by using Azcopy and using the SAS token to authorize the process but the process always fails.
The code I'm using for uploading the image is:
$StorageAccountName = "athenaosimages"
$ContainerName = "athenaarch"
$LocalPath = "C:\ProgramData\Microsoft\Windows\Virtual Hard Disks\AthenaArch.vhdx"
$SAS = "sp=....."
$URI = "https://$StorageAccountName.blob.core.windows.net/$ContainerName?$SAS"
.\azcopy.exe copy "$LocalPath" "$URI" --recursive
but I get:
INFO: Scanning...
INFO: Autologin not specified.
INFO: Authenticating to destination using Unknown, Please authenticate using Microsoft Entra ID (https://aka.ms/AzCopy/AuthZ), use AzCopy login, or append a SAS token to your Azure URL.
INFO: Any empty folders will not be processed, because source and/or destination doesn't have full folder support
Job 5383dff6-14fd-e242-6d90-00c70398041f has started
Log file is located at: C:\Users\<user>\.azcopy\5383dff6-14fd-e242-6d90-00c70398041f.log 0.0 %, 0 Done, 1 Failed, 0 Pending, 0 Skipped, 1 Total,
and the log file:
2024/08/06 20:56:30 AzcopyVersion 10.26.0
2024/08/06 20:56:30 OS-Environment windows
2024/08/06 20:56:30 OS-Architecture amd64
2024/08/06 20:56:30 Log times are in UTC. Local time is 6 Aug 2024 22:56:30
2024/08/06 20:56:31 ISO 8601 START TIME: to copy files that changed before or after this job started, use the parameter --include-befo
re=2024-08-06T20:56:25Z or --include-after=2024-08-06T20:56:25Z
2024/08/06 20:56:31 Authenticating to destination using Unknown, Please authenticate using Microsoft Entra ID (https://aka.ms/AzCopy/A
uthZ), use AzCopy login, or append a SAS token to your Azure URL.
2024/08/06 20:56:31 Any empty folders will not be processed, because source and/or destination doesn't have full folder support
2024/08/06 20:56:31 Job-Command copy C:\ProgramData\Microsoft\Windows\Virtual Hard Disks\AthenaArch.vhdx https://athenaosimages.blob.c
ore.windows.net/sp=racwdli&st=2024-08-06T20:24:36Z&se=2024-08-07T04:24:36Z&spr=https&sv=2022-11-02&sr=c&sig=-REDACTED- --recursive
2024/08/06 20:56:31 Number of CPUs: 12
2024/08/06 20:56:31 Max file buffer RAM 6.000 GB
2024/08/06 20:56:31 Max concurrent network operations: 192 (Based on number of CPUs. Set AZCOPY_CONCURRENCY_VALUE environment variable
to override)
2024/08/06 20:56:31 Check CPU usage when dynamically tuning concurrency: true (Based on hard-coded default. Set AZCOPY_TUNE_TO_CPU env
ironment variable to true or false override)
2024/08/06 20:56:31 Max concurrent transfer initiation routines: 64 (Based on hard-coded default. Set AZCOPY_CONCURRENT_FILES environm
ent variable to override)
2024/08/06 20:56:31 Max enumeration routines: 16 (Based on hard-coded default. Set AZCOPY_CONCURRENT_SCAN environment variable to over
ride)
2024/08/06 20:56:31 Parallelize getting file properties (file.Stat): false (Based on AZCOPY_PARALLEL_STAT_FILES environment variable)
2024/08/06 20:56:31 Max open files when downloading: 2147483048 (auto-computed)
2024/08/06 20:56:31 Final job part has been created
2024/08/06 20:56:31 Final job part has been scheduled
2024/08/06 20:56:31 INFO: [P#0-T#0] Starting transfer: Source "\\\\?\\C:\\ProgramData\\Microsoft\\Windows\\Virtual Hard Disks\\AthenaA
rch.vhdx" Destination "https://athenaosimages.blob.core.windows.net/sp=racwdli&st=2024-08-06T20:24:36Z&se=2024-08-07T04:24:36Z&spr=htt
ps&sv=2022-11-02&sr=c&sig=-REDACTED- Specified chunk size 4194304
2024/08/06 20:56:31 ==> REQUEST/RESPONSE (Try=1/17.516ms, OpTime=114.7552ms) -- RESPONSE STATUS CODE ERROR
PUT https://athenaosimages.blob.core.windows.net/sp=racwdli&st=2024-08-06T20:24:36Z&se=2024-08-07T04:24:36Z&spr=https&sv=2022-11-02
&sr=c&sig=-REDACTED-
Accept: application/xml
Content-Length: 0
User-Agent: AzCopy/10.26.0 azsdk-go-azblob/v1.4.0 (go1.22.5; Windows_NT)
X-Ms-Client-Request-Id: 515fc517-b48e-43a9-5f48-7793cc386973
x-ms-blob-content-length: 136369405952
x-ms-blob-content-type: application/octet-stream
x-ms-blob-sequence-number: 0
x-ms-blob-type: PageBlob
x-ms-version: 2023-08-03
--------------------------------------------------------------------------------
RESPONSE Status: 401 Server failed to authenticate the request. Please refer to the information in the www-authenticate header.
Content-Length: 302
Content-Type: application/xml
Date: Tue, 06 Aug 2024 20:56:31 GMT
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
Www-Authenticate: Bearer authorization_uri=https://login.microsoftonline.com/961f255c-920f-4f73-87c0-625de0dbf74c/oauth2/authorize
resource_id=https://storage.azure.com
X-Ms-Client-Request-Id: 515fc517-b48e-43a9-5f48-7793cc386973
X-Ms-Error-Code: NoAuthenticationInformation
X-Ms-Request-Id: 21894279-501e-0008-3a43-e8bd9e000000
X-Ms-Version: 2023-08-03
Response Details: <Code>NoAuthenticationInformation</Code><Message>Server failed to authenticate the request. Please refer to the i
nformation in the www-authenticate header. </Message>
2024/08/06 20:56:31 ERR: [P#0-T#0] UPLOADFAILED: \\?\C:\ProgramData\Microsoft\Windows\Virtual Hard Disks\AthenaArch.vhdx : 401 : 401 S
erver failed to authenticate the request. Please refer to the information in the www-authenticate header.. When Creating blob. X-Ms-Re
quest-Id: 21894279-501e-0008-3a43-e8bd9e000000
Dst: https://athenaosimages.blob.core.windows.net/sp=racwdli&st=2024-08-06T20:24:36Z&se=2024-08-07T04:24:36Z&spr=https&sv=2022-11-0
2&sr=c&sig=-REDACTED-
2024/08/06 20:56:31 JobID=5383dff6-14fd-e242-6d90-00c70398041f, Part#=0, TransfersDone=1 of 1
2024/08/06 20:56:31 all parts of entire Job 5383dff6-14fd-e242-6d90-00c70398041f successfully completed, cancelled or paused
2024/08/06 20:56:31 is part of Job which 1 total number of parts done
2024/08/06 20:56:33 PERF: primary performance constraint is Unknown. States: X: 0, O: 0, M: 0, L: 0, R: 0, D: 0, W: 0, F: 0, B
: 0, E: 0, T: 0, GRs: 192
2024/08/06 20:56:33 0.0 %, 0 Done, 1 Failed, 0 Pending, 0 Skipped, 1 Total,
2024/08/06 20:56:33
I also provided all permissions on SAS token (I created it as "Account Key" in Container -> Shared Access Tokens.
I also tried to set the container access level to "Anonymous read access for containers and blobs":
PS C:\> Get-AzStorageContainer -Context $ctx | Select Name, PublicAccess
Name PublicAccess
---- ------------
athenaarch Container
but still getting the error.