question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az storage blob upload-batch fails although the files are uploaded successfully

See original GitHub issue

I’m getting this error on the build agent. Here is the task in YAML

        - task: AzurePowerShell@5
          displayName: 'Copy sources to Blob'
          inputs:
            azureSubscription: '${{ parameters.subscription }}'
            ScriptType: InlineScript
            Inline: |
              Write-Output "Copy folder $(System.DefaultWorkingDirectory)\sources to ${{ parameters.containerName }}/${{ parameters.version }}"
              az storage blob upload-batch `
                -s $(System.DefaultWorkingDirectory)\sources `
                -d ${{ parameters.containerName }} `
                --destination-path ${{ parameters.version }} `
                --content-cache-control ${{ parameters.cacheControlValue }} `
                --account-name ${{ parameters.storageAccountName }} `
                --account-key $(CheckStorageContainer.StorageAccountKey) `
                --debug
              Write-Output "Exit code: $LastExitCode"
            FailOnStandardError: false
            azurePowerShellVersion: LatestVersion

And log:

2020-02-21T09:24:50.7206953Z ##[section]Starting: Copy sources to Blob
2020-02-21T09:24:50.7290940Z ==============================================================================
2020-02-21T09:24:50.7291076Z Task         : Azure PowerShell
2020-02-21T09:24:50.7291152Z Description  : Run a PowerShell script within an Azure environment
2020-02-21T09:24:50.7291243Z Version      : 5.162.5
2020-02-21T09:24:50.7291701Z Author       : Microsoft Corporation
2020-02-21T09:24:50.7291808Z Help         : [Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=613749)
2020-02-21T09:24:50.7291905Z ==============================================================================
2020-02-21T09:24:51.6404874Z Generating script.
2020-02-21T09:24:51.6405175Z ========================== Starting Command Output ===========================
2020-02-21T09:24:51.6407429Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'd:\a\_temp\0d8a7a8f-7081-43a0-a6f5-2f493479c810.ps1'"
2020-02-21T09:24:52.5246754Z ##[command]Import-Module -Name C:\Modules\az_3.1.0\Az.Accounts\1.6.4\Az.Accounts.psd1 -Global
2020-02-21T09:24:53.3556511Z ##[command]Clear-AzContext -Scope Process
2020-02-21T09:24:53.7352732Z ##[command]Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
2020-02-21T09:24:54.1628704Z ##[command]Connect-AzAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud
2020-02-21T09:24:55.2988793Z ##[command] Set-AzContext -SubscriptionId *** -TenantId ***
2020-02-21T09:24:55.8714746Z Copy folder d:\a\1\s\sources to my-container/20200221.3
2020-02-21T09:24:57.8804211Z ##[error]DEBUG: Command arguments: ['storage', 'blob', 'upload-batch', '-s', 'd:\\a\\1\\s\\sources', '-d', 'my-container', '--destination-path', '20200221.3', '--content-cache-control', 'max-age=3600', '--account-name', 'myaccount', '--account-key', '***', '--debug']
DEBUG: Event: Cli.PreExecute []

DEBUG: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x03687198>, <function OutputProducer.on_global_arguments at 0x036C5DF8>, <function CLIQuery.on_global_arguments at 0x036EAED0>]


DEBUG: Event: CommandInvoker.OnPreCommandTableCreate []


DEBUG: Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']


DEBUG: Loaded module 'acr' in 0.006 seconds.


DEBUG: Loaded module 'acs' in 0.020 seconds.


DEBUG: Loaded module 'advisor' in 0.002 seconds.


DEBUG: Event: CommandLoader.OnLoadCommandTable []


DEBUG: Loaded module 'ams' in 0.006 seconds.


DEBUG: Loaded module 'apim' in 0.002 seconds.


DEBUG: Loaded module 'appconfig' in 0.003 seconds.


DEBUG: Loaded module 'appservice' in 0.010 seconds.


DEBUG: Loaded module 'backup' in 0.003 seconds.


DEBUG: Event: CommandLoader.OnLoadCommandTable []


DEBUG: Loaded module 'batch' in 0.009 seconds.


DEBUG: Loaded module 'batchai' in 0.003 seconds.


DEBUG: Loaded module 'billing' in 0.002 seconds.


DEBUG: Loaded module 'botservice' in 0.004 seconds.


DEBUG: Event: CommandLoader.OnLoadCommandTable []


DEBUG: Loaded module 'cdn' in 0.003 seconds.


DEBUG: Loaded module 'cloud' in 0.002 seconds.


DEBUG: Loaded module 'cognitiveservices' in 0.002 seconds.


DEBUG: Loaded module 'configure' in 0.001 seconds.


DEBUG: Loaded module 'consumption' in 0.003 seconds.


DEBUG: Loaded module 'container' in 0.003 seconds.


DEBUG: Loaded module 'cosmosdb' in 0.007 seconds.


DEBUG: Loaded module 'deploymentmanager' in 0.002 seconds.


DEBUG: Loaded module 'dla' in 0.004 seconds.


DEBUG: Loaded module 'dls' in 0.003 seconds.


DEBUG: Loaded module 'dms' in 0.002 seconds.


DEBUG: Loaded module 'eventgrid' in 0.003 seconds.


DEBUG: Loaded module 'eventhubs' in 0.004 seconds.


DEBUG: Loaded module 'extension' in 0.001 seconds.


DEBUG: Loaded module 'feedback' in 0.001 seconds.


DEBUG: Loaded module 'find' in 0.001 seconds.


DEBUG: Loaded module 'hdinsight' in 0.003 seconds.


DEBUG: Loaded module 'interactive' in 0.000 seconds.


DEBUG: Loaded module 'iot' in 0.005 seconds.


DEBUG: Loaded module 'iotcentral' in 0.001 seconds.


DEBUG: Loaded module 'keyvault' in 0.005 seconds.


DEBUG: Loaded module 'kusto' in 0.002 seconds.


DEBUG: Loaded module 'lab' in 0.004 seconds.


DEBUG: Loaded module 'managedservices' in 0.002 seconds.


DEBUG: Loaded module 'maps' in 0.002 seconds.


DEBUG: Loaded module 'monitor' in 0.006 seconds.


DEBUG: Loaded module 'natgateway' in 0.002 seconds.


DEBUG: Event: CommandLoader.OnLoadCommandTable []


DEBUG: Loaded module 'netappfiles' in 0.004 seconds.


DEBUG: Loaded module 'network' in 0.038 seconds.


DEBUG: Loaded module 'policyinsights' in 0.002 seconds.


DEBUG: Loaded module 'privatedns' in 0.005 seconds.


DEBUG: Loaded module 'profile' in 0.002 seconds.


DEBUG: Loaded module 'rdbms' in 0.006 seconds.


DEBUG: Loaded module 'redis' in 0.002 seconds.


DEBUG: Loaded module 'relay' in 0.003 seconds.


DEBUG: Loaded module 'reservations' in 0.002 seconds.


DEBUG: Loaded module 'resource' in 0.010 seconds.


DEBUG: Loaded module 'role' in 0.006 seconds.


DEBUG: Loaded module 'search' in 0.002 seconds.


DEBUG: Loaded module 'security' in 0.003 seconds.


DEBUG: Loaded module 'servicebus' in 0.006 seconds.


DEBUG: Loaded module 'servicefabric' in 0.003 seconds.


DEBUG: Loaded module 'signalr' in 0.002 seconds.


DEBUG: Loaded module 'sql' in 0.007 seconds.


DEBUG: Loaded module 'sqlvm' in 0.002 seconds.


DEBUG: Event: CommandLoader.OnLoadCommandTable []


DEBUG: Loaded module 'storage' in 0.032 seconds.


DEBUG: Loaded module 'vm' in 0.017 seconds.


DEBUG: Loaded all modules in 0.295 seconds. (note: there's always an overhead with the first module loaded)


DEBUG: Extensions directory: 'C:\Program Files\Common Files\AzureCliExtensionDirectory'


DEBUG: Found 1 extensions: ['azure-devops']


DEBUG: Extensions directory: 'C:\Program Files\Common Files\AzureCliExtensionDirectory'


DEBUG: Extension compatibility result: is_compatible=True cli_core_version=2.0.81 min_required=2.0.69 max_required=None


DEBUG: Extensions directory: 'C:\Program Files\Common Files\AzureCliExtensionDirectory'


DEBUG: Loaded extension 'azure-devops' in 0.031 seconds.


DEBUG: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03809108>]


INFO: az_command_data_logger : command args: storage blob upload-batch -s {} -d {} --destination-path {} --content-cache-control {} --account-name {} --account-key {} --debug


DEBUG: metadata file logging enabled - writing logs to 'C:\Users\VssAdministrator\.azure\commands'.


DEBUG: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x0383ECD8>]


DEBUG: Event: CommandLoader.OnLoadArguments []


DEBUG: Event: CommandInvoker.OnPostArgumentLoad []


DEBUG: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x0383ED20>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x0383EF18>]


DEBUG: Event: CommandInvoker.OnCommandTableLoaded []


DEBUG: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x040E4540>]


DEBUG: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x036C5E40>, <function CLIQuery.handle_query_parameter at 0x036EAF18>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x0383EED0>, <function handler at 0x041BCB70>, <function DevCommandsLoader.post_parse_args at 0x04B12780>]


DEBUG: Getting data service client service_type=BlockBlobService


DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


150








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:text/html
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/index.html


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06bec5fa-548c-11ea-a44b-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/index.html, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'text/html', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '150', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : Starting new HTTPS connection (1): myaccount.blob.core.windows.net:443


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/index.html HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06bec5fa-548c-11ea-a44b-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3ae9a-701e-0018-3e98-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'b6rgCsEvtQRIE481WDW4dA==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB023857"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3ae9a-701e-0018-3e98-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



1/8: "20200221.3/index.html"[#########################################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


3508








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:application/javascript
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/index.js


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06cf7758-548c-11ea-9bef-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/index.js, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'application/javascript', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '3508', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/index.js HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06cf7758-548c-11ea-9bef-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3aebb-701e-0018-5c98-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'fCCfo8l0UDJgyLmZ6lPFTA==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB0630AD"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3aebb-701e-0018-5c98-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



2/8: "20200221.3/index.js"[###########################################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


11802








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:text/plain
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/index.js.map


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d1d8be-548c-11ea-ac07-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/index.js.map, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'text/plain', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '11802', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/index.js.map HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d1d8be-548c-11ea-ac07-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3aed9-701e-0018-7898-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': '8cajOyxIK0h3Y7bg6kzzcA==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB098CA7"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3aed9-701e-0018-7898-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



3/8: "20200221.3/index.js.map"[#######################################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


12127








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:text/css
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/css/app.30fe9606b6f90d015627.css


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d6aa4a-548c-11ea-a842-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/css/app.30fe9606b6f90d015627.css, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'text/css', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '12127', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/css/app.30fe9606b6f90d015627.css HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d6aa4a-548c-11ea-a842-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3aef4-701e-0018-1098-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'AiTmqgxnPF5SKZZD/K7RBg==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB0D0FB8"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3aef4-701e-0018-1098-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



4/8: "20200221.3/css/app.30fe9606b6f90d015627.css"[###################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


52781








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:application/javascript
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d8ffd2-548c-11ea-a67b-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'application/javascript', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '52781', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/js/app.54eea139d55b5535b0e8.js HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06d8ffd2-548c-11ea-a67b-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3af07-701e-0018-2298-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'teMs49abUBh040NzT/Gw9A==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB11F298"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3af07-701e-0018-2298-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



5/8: "20200221.3/js/app.54eea139d55b5535b0e8.js"[#####################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


117864








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:text/plain
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js.map


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06ddc45a-548c-11ea-9cb8-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js.map, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'text/plain', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '117864', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/js/app.54eea139d55b5535b0e8.js.map HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06ddc45a-548c-11ea-9cb8-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:56 GMT, Server-Request-ID=08e3af23-701e-0018-3e98-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'cZ8uBFTKQPTncoD4Payb2Q==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB1723AA"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3af23-701e-0018-3e98-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:56 GMT'}.



6/8: "20200221.3/js/app.54eea139d55b5535b0e8.js.map"[#################]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


650646








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:application/javascript
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06e77d9e-548c-11ea-a5ca-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'application/javascript', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '650646', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06e77d9e-548c-11ea-a5ca-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:57 GMT, Server-Request-ID=08e3af5e-701e-0018-7698-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'cpWOU8iwrX2JP1pZLaU8Pg==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB244560"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3af5e-701e-0018-7698-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:57 GMT'}.



7/8: "20200221.3/js/vendors~app.810583fd80d65243be81.js"[#############]  100.0000%
DEBUG: azure.multiapi.storage.v2018_11_09.common._auth : String_to_sign=PUT


2099489








x-ms-blob-cache-control:max-age=3600
x-ms-blob-content-type:text/plain
x-ms-blob-type:BlockBlob
x-ms-client-request-id:062f5328-548c-11ea-9797-000d3a3c4fc1
x-ms-date:Fri, 21 Feb 2020 09:24:57 GMT
x-ms-version:2018-11-09
/myaccount/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js.map


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06f1078a-548c-11ea-b72c-000d3a3c4fc1 Outgoing request: Method=PUT, Path=/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js.map, Query={'timeout': None}, Headers={'x-ms-blob-type': 'BlockBlob', 'x-ms-lease-id': None, 'If-Modified-Since': None, 'If-Unmodified-Since': None, 'If-Match': None, 'If-None-Match': None, 'x-ms-blob-cache-control': 'max-age=3600', 'x-ms-blob-content-type': 'text/plain', 'x-ms-blob-content-disposition': None, 'x-ms-blob-content-md5': None, 'x-ms-blob-content-encoding': None, 'x-ms-blob-content-language': None, 'Content-Length': '2099489', 'x-ms-version': '2018-11-09', 'User-Agent': 'Azure-Storage/2.0.0-2.0.1 (Python CPython 3.6.6; Windows 10) AZURECLI/2.0.81 VSTS_063b188f-58aa-4f55-a09c-a134366b428b_build_2266_0', 'x-ms-client-request-id': '062f5328-548c-11ea-9797-000d3a3c4fc1', 'x-ms-date': 'Fri, 21 Feb 2020 09:24:57 GMT', 'Authorization': 'REDACTED'}.


DEBUG: urllib3.connectionpool : https://myaccount.blob.core.windows.net:443 "PUT /my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js.map HTTP/1.1" 201 0


INFO: azure.multiapi.storage.v2018_11_09.common.storageclient : Client-Request-ID=06f1078a-548c-11ea-b72c-000d3a3c4fc1 Receiving Response: Server-Timestamp=Fri, 21 Feb 2020 09:24:57 GMT, Server-Request-ID=08e3afab-701e-0018-4098-e8dfdf000000, HTTP Status Code=201, Message=Created, Headers={'content-length': '0', 'content-md5': 'VoiopYu8mblBJXBp+nkszA==', 'last-modified': 'Fri, 21 Feb 2020 09:24:57 GMT', 'etag': '"0x8D7B6AFEB33B16F"', 'server': 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', 'x-ms-request-id': '08e3afab-701e-0018-4098-e8dfdf000000', 'x-ms-version': '2018-11-09', 'x-ms-request-server-encrypted': 'true', 'date': 'Fri, 21 Feb 2020 09:24:57 GMT'}.



8/8: "20200221.3/js/vendors~app.810583fd80d65243be81.js.map"[#########]  100.0000%

Finished[#############################################################]  100.0000%

DEBUG: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x0383E300>, <function _x509_from_base64_to_hex_transform at 0x0383E348>]


DEBUG: Event: CommandInvoker.OnFilterResult []
2020-02-21T09:24:57.8839231Z [
2020-02-21T09:24:57.8839350Z   {
2020-02-21T09:24:57.8839458Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/index.html",
2020-02-21T09:24:57.8839558Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8839650Z     "Type": "text/html",
2020-02-21T09:24:57.8839733Z     "eTag": "\"0x8D7B6AFEB023857\""
2020-02-21T09:24:57.8839802Z   },
2020-02-21T09:24:57.8839858Z   {
2020-02-21T09:24:57.8839959Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/index.js",
2020-02-21T09:24:57.8840231Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8840306Z     "Type": "application/javascript",
2020-02-21T09:24:57.8840392Z     "eTag": "\"0x8D7B6AFEB0630AD\""
2020-02-21T09:24:57.8840457Z   },
2020-02-21T09:24:57.8840530Z   {
2020-02-21T09:24:57.8840618Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/index.js.map",
2020-02-21T09:24:57.8840793Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8840865Z     "Type": "text/plain",
2020-02-21T09:24:57.8840943Z     "eTag": "\"0x8D7B6AFEB098CA7\""
2020-02-21T09:24:57.8841008Z   },
2020-02-21T09:24:57.8841082Z   {
2020-02-21T09:24:57.8841174Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/css/app.30fe9606b6f90d015627.css",
2020-02-21T09:24:57.8841290Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8841361Z     "Type": "text/css",
2020-02-21T09:24:57.8841447Z     "eTag": "\"0x8D7B6AFEB0D0FB8\""
2020-02-21T09:24:57.8841510Z   },
2020-02-21T09:24:57.8841582Z   {
2020-02-21T09:24:57.8841673Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js",
2020-02-21T09:24:57.8841791Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8841865Z     "Type": "application/javascript",
2020-02-21T09:24:57.8841957Z     "eTag": "\"0x8D7B6AFEB11F298\""
2020-02-21T09:24:57.8842021Z   },
2020-02-21T09:24:57.8842092Z   {
2020-02-21T09:24:57.8842185Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/js/app.54eea139d55b5535b0e8.js.map",
2020-02-21T09:24:57.8842300Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8842371Z     "Type": "text/plain",
2020-02-21T09:24:57.8842451Z     "eTag": "\"0x8D7B6AFEB1723AA\""
2020-02-21T09:24:57.8842566Z   },
2020-02-21T09:24:57.8842687Z   {
2020-02-21T09:24:57.8842812Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js",
2020-02-21T09:24:57.8842989Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8843103Z     "Type": "application/javascript",
2020-02-21T09:24:57.8843214Z     "eTag": "\"0x8D7B6AFEB244560\""
2020-02-21T09:24:57.8843332Z   },
2020-02-21T09:24:57.8843434Z   {
2020-02-21T09:24:57.8843594Z     "Blob": "https://myaccount.blob.core.windows.net/my-container/20200221.3/js/vendors~app.810583fd80d65243be81.js.map",
2020-02-21T09:24:57.8843747Z     "Last Modified": "2020-02-21T09:24:57+00:00",
2020-02-21T09:24:57.8843868Z     "Type": "text/plain",
2020-02-21T09:24:57.8843983Z     "eTag": "\"0x8D7B6AFEB33B16F\""
2020-02-21T09:24:57.8844093Z   }
2020-02-21T09:24:57.8844165Z ]
2020-02-21T09:24:57.9063376Z ##[error]DEBUG: Event: Cli.PostExecute []


INFO: az_command_data_logger : exit code: 0


INFO: telemetry.save : Save telemetry record of length 2538 in cache


WARNING: telemetry.check : Negative: The C:\Users\VssAdministrator\.azure\telemetry.txt was modified at 2020-02-21 09:24:34.729506, which in less than 600.000000 s


INFO: command ran in 1.411 seconds.
2020-02-21T09:24:57.9064208Z Exit code: 0
2020-02-21T09:24:58.3436414Z ##[section]Finishing: Copy sources to Blob

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Juliehzlcommented, Feb 24, 2020

Hi @Andree643, it may be more related to the AzurePowerShellTask, not cli commands. I guess that it is because Your PowerShell task will capture error when there is stderr output. But for CLI we are using stderr output for all warning and debug information and it should depend on if the exit code is 0 to decide the task status.

0reactions
zhoxing-mscommented, May 7, 2020

Because there is no reply to this question for a long time, I will close it temporarily. If you have any questions, please feel free to let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error from az storage blob upload-batch command in Azure ...
for some of the files its uploading we get the following error and it fails to upload anymore files. It use to work...
Read more >
Blob upload to azure blob storage is failed as unable to locate ...
Facing issue while uploading a blob to azue blob storage, detailed steps described below. Using azure-iot-sdk-c on top of it consuming CURL ...
Read more >
Azure DevOps Pipeline AZ CLI upload-batch not pushing files
The deployment completes successfully, however no files are published to the blob storage account. I was assuming that it had something to do ......
Read more >
How to Upload Files to Azure Blob Storage
With data migration and mobility being critical components of cloud adoption, Microsoft offers multiple native tools and services to support ...
Read more >
MicrosoftAzureStorage - Error occurred while uploading to Azure
az storage blob upload - account-name xxx -account-key xxx --container-name builds --file role.yaml --name role.yaml
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found