Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AzurePowerShell@4: blob property set stopped working #14409

Closed
pkgw opened this issue Feb 17, 2021 · 15 comments
Closed

AzurePowerShell@4: blob property set stopped working #14409

pkgw opened this issue Feb 17, 2021 · 15 comments

Comments

@pkgw
Copy link

pkgw commented Feb 17, 2021

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Bug

Enter Task Name: AzurePowerShell@4

Environment

  • Server - Azure Pipelines or TFS on-premises?

    • Azure Pipelines: aasworldwidetelescope/WWT org/project, build definition WorldWideTelescope.wwt-web-client; build number 20210217.1
  • Agent - Hosted or Private:

    • Hosted: windows-latest VM

Issue Description

I have a build task that modifies the content-type of a blob on an Azure Storage Account. The (abbreviated) definition is:

  - task: AzurePowerShell@4
    inputs:
      azureSubscription: '[elided]'
      azurePowerShellVersion: 'LatestVersion'
      scriptType: 'inlineScript'
      inline: |
        $ctxt = New-AzStorageContext -UseConnectedAccount -StorageAccountName "wwtwebstatic"
        $blob = Get-AzStorageBlob -Context $ctxt -Container '$web' -Blob "webclient/default.aspx"
        $blob.ICloudBlob.Properties.ContentType = "text/html"
        $blob.ICloudBlob.SetProperties()

This used to work, and it stopped working at some point in the past month or two. Nothing in my configuration has changed in that time.

Error logs

The only output of interest is the error report:

##[error]The property 'ContentType' cannot be found on this object. Verify that the property exists and can be set.
@20shivangi
Copy link
Contributor

@pkgw Have you tried the above script locally in Windows PowerShell ?
If not, please do the same with same az module installed locally on your machine. With this, we can verify if there is problem with command or task .

@20shivangi 20shivangi added environment:under-investigation and removed bug environment:need-to-triage Issues need to be triage by environment-deployment team labels Feb 18, 2021
@pkgw
Copy link
Author

pkgw commented Feb 18, 2021

@20shivangi I have tried it on PowerShell on Linux. It works fine with Az 5.5.0, as well as some of the older versions I've used before. And again, it used to work in the Azure Pipelines environment, up until about a month or two ago.

@20shivangi
Copy link
Contributor

@pkgw I got that the script was working before.
But can you try these commands locally in a powershell prompt and confirm if you are still getting that error.

If so, then problem is with command and we have to raise bug on AzurePowerShell team

@pkgw
Copy link
Author

pkgw commented Feb 18, 2021

Sorry if I was unclear. Yes, it works for me locally now, on PowerShell on Linux. I could spin up a Windows VM if you want to have confirmation about whether it works specifically on Windows.

@AmrutaKawade
Copy link
Contributor

Can you print object values for this object ?
$blob.ICloudBlob.Properties

pkgw added a commit to WorldWideTelescope/wwt-web-client that referenced this issue Feb 23, 2021
Whee, pushing straight to `master` to debug CI issues:

microsoft/azure-pipelines-tasks#14409
@pkgw
Copy link
Author

pkgw commented Feb 23, 2021

With this powershell code:

https://github.com/WorldWideTelescope/wwt-web-client/blob/b8c35e2ad3be7c53b65448f55835176ef5128926/ci/azure-deployment.yml#L71-L78

I get blank output for the properties:

& 'D:\a\_temp\caf2c348-5fe8-45af-804c-5a46c930cf8a.ps1' 
temp debugging before
temp debugging after

(caveat that I'm not super familiar with PowerShell — is it sufficient to just include the $blob.ICloudBlob.Properties on a line on its own?)

@AmrutaKawade
Copy link
Contributor

you need to echo value of this $blob.ICloudBlob.Properties

echo $blob.ICloudBlob.Properties

@AmrutaKawade
Copy link
Contributor

Az 5.5.0 is available on windows agent now.
I have verified your scenario

$ctxt = New-AzStorageContext -UseConnectedAccount -StorageAccountName "*****"
$blob = Get-AzStorageBlob -Context $ctxt -Container '$web' -Blob "Web.config"
Write-Host "temp debugging before"

echo $blob.ICloudBlob.Properties # TEMPORARY DEBUGGING PRINT
Write-Host "temp debugging after"

$blob.ICloudBlob.Properties.ContentType = "text/html"
$blob.ICloudBlob.SetProperties()

Write-Host "Updated content type"
echo $blob.ICloudBlob.Properties 

Here is the output

temp debugging before


CacheControl                       : 
ContentDisposition                 : 
ContentEncoding                    : 
ContentLanguage                    : 
Length                             : 593
ContentMD5                         : mjrFbn19bBY9WLTZ5ByhEg==
ContentType                        : application/xml
ETag                               : "0x8D8759E0D933EC1"
Created                            : 10/21/2020 4:02:02 AM +00:00
LastModified                       : 10/21/2020 8:48:16 AM +00:00
BlobType                           : BlockBlob
LeaseStatus                        : Unlocked
LeaseState                         : Available
LeaseDuration                      : Unspecified
PageBlobSequenceNumber             : 
AppendBlobCommittedBlockCount      : 
IsServerEncrypted                  : True
EncryptionScope                    : 
IsIncrementalCopy                  : False
StandardBlobTier                   : Hot
RehydrationStatus                  : 
PremiumPageBlobTier                : 
BlobTierInferred                   : True
BlobTierLastModifiedTime           : 
DeletedTime                        : 
RemainingDaysBeforePermanentDelete : 

temp debugging after
Updated content type

CacheControl                       : 
ContentDisposition                 : 
ContentEncoding                    : 
ContentLanguage                    : 
Length                             : 593
ContentMD5                         : mjrFbn19bBY9WLTZ5ByhEg==
ContentType                        : text/html
ETag                               : "0x8D8DA240620FAB6"
Created                            : 10/21/2020 4:02:02 AM +00:00
LastModified                       : 2/26/2021 6:59:12 AM +00:00
BlobType                           : BlockBlob
LeaseStatus                        : Unlocked
LeaseState                         : Available
LeaseDuration                      : Unspecified
PageBlobSequenceNumber             : 
AppendBlobCommittedBlockCount      : 
IsServerEncrypted                  : False
EncryptionScope                    : 
IsIncrementalCopy                  : False
StandardBlobTier                   : Hot
RehydrationStatus                  : 
PremiumPageBlobTier                : 
BlobTierInferred                   : True
BlobTierLastModifiedTime           : 
DeletedTime                        : 
RemainingDaysBeforePermanentDelete : 

Please confirm if its resolved for you as well

@pkgw
Copy link
Author

pkgw commented Feb 26, 2021

Hi — I still see the same problem. I changed my PowerShell script to add the echo statement but still get the same output when running on the Azure hosted agent:

& 'D:\a\_temp\f0958d84-f8f7-46ae-91d7-8fcc0d947bcc.ps1' 
temp debugging before
temp debugging after

edit: log link — logs are public

@AmrutaKawade
Copy link
Contributor

can you set system.debug = true in variables and run pipeline?

also can you check content type of file on azure portal inside storage container?

image

@pkgw
Copy link
Author

pkgw commented Mar 2, 2021

Here's the log output from a debugging run: link. I'll copy/paste the contents below for posterity.

The content-type of the file is currently text/html because I changed in manually, but when I first created the file it was application/xml and wasn't updating after the script started crashing.

Log contents
2021-03-02T13:30:10.3225491Z ##[debug]Evaluating condition for step: 'Update Azure Blob storage content types'
2021-03-02T13:30:10.3227816Z ##[debug]Evaluating: and(succeeded(), ne(variables['WEBCLIENT_DEPLOYMENT_TAG'], 'skip'))
2021-03-02T13:30:10.3228460Z ##[debug]Evaluating and:
2021-03-02T13:30:10.3228976Z ##[debug]..Evaluating succeeded:
2021-03-02T13:30:10.3229982Z ##[debug]..=> True
2021-03-02T13:30:10.3230526Z ##[debug]..Evaluating ne:
2021-03-02T13:30:10.3231116Z ##[debug]....Evaluating indexer:
2021-03-02T13:30:10.3231691Z ##[debug]......Evaluating variables:
2021-03-02T13:30:10.3232468Z ##[debug]......=> Object
2021-03-02T13:30:10.3233141Z ##[debug]......Evaluating String:
2021-03-02T13:30:10.3233912Z ##[debug]......=> 'WEBCLIENT_DEPLOYMENT_TAG'
2021-03-02T13:30:10.3234790Z ##[debug]....=> 'testing_webclient'
2021-03-02T13:30:10.3235765Z ##[debug]....Evaluating String:
2021-03-02T13:30:10.3236414Z ##[debug]....=> 'skip'
2021-03-02T13:30:10.3237028Z ##[debug]..=> True
2021-03-02T13:30:10.3237641Z ##[debug]=> True
2021-03-02T13:30:10.3238781Z ##[debug]Expanded: and(True, ne('testing_webclient', 'skip'))
2021-03-02T13:30:10.3239460Z ##[debug]Result: True
2021-03-02T13:30:10.3240181Z ##[section]Starting: Update Azure Blob storage content types
2021-03-02T13:30:10.3362930Z ==============================================================================
2021-03-02T13:30:10.3363340Z Task         : Azure PowerShell
2021-03-02T13:30:10.3363683Z Description  : Run a PowerShell script within an Azure environment
2021-03-02T13:30:10.3364008Z Version      : 4.182.0
2021-03-02T13:30:10.3364292Z Author       : Microsoft Corporation
2021-03-02T13:30:10.3364645Z Help         : https://aka.ms/azurepowershelltroubleshooting
2021-03-02T13:30:10.3365046Z ==============================================================================
2021-03-02T13:30:11.0854876Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2021-03-02T13:30:11.2649837Z ##[debug]Entering D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\azurepowershell.ps1.
2021-03-02T13:30:11.2744674Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\Task.json
2021-03-02T13:30:11.3024159Z ##[debug]Loaded 8 strings.
2021-03-02T13:30:11.3025498Z ##[debug]SYSTEM_CULTURE: 'en-US'
2021-03-02T13:30:11.3033397Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\Strings\resources.resjson\en-US\resources.resjson
2021-03-02T13:30:11.3226632Z ##[debug]Loaded 8 strings.
2021-03-02T13:30:11.3453901Z ##[debug]INPUT_SCRIPTTYPE: 'inlineScript'
2021-03-02T13:30:11.3506394Z ##[debug]INPUT_SCRIPTPATH: 'D:\a\1\s'
2021-03-02T13:30:11.3507684Z ##[debug]INPUT_INLINE: '$ctxt = New-AzStorageContext -UseConnectedAccount -StorageAccountName "wwtwebstatic"
2021-03-02T13:30:11.3511159Z ##[debug]$blob = Get-AzStorageBlob -Context $ctxt -Container '$web' -Blob "testing_webclient/default.aspx"
2021-03-02T13:30:11.3523818Z ##[debug]Write-Host "temp debugging before"
2021-03-02T13:30:11.3535578Z ##[debug]echo $blob.ICloudBlob.Properties # TEMPORARY DEBUGGING PRINT
2021-03-02T13:30:11.3547709Z ##[debug]Write-Host "temp debugging after"
2021-03-02T13:30:11.3560211Z ##[debug]$blob.ICloudBlob.Properties.ContentType = "text/html"
2021-03-02T13:30:11.3573996Z ##[debug]Write-Host "temp debugging set type"
2021-03-02T13:30:11.3586869Z ##[debug]$blob.ICloudBlob.SetProperties()'
2021-03-02T13:30:11.3610537Z ##[debug]INPUT_SCRIPTARGUMENTS (empty)
2021-03-02T13:30:11.3665218Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'stop'
2021-03-02T13:30:11.3690044Z ##[debug]INPUT_FAILONSTANDARDERROR: 'false'
2021-03-02T13:30:11.3727831Z ##[debug] Converted to bool: False
2021-03-02T13:30:11.3752797Z ##[debug]INPUT_TARGETAZUREPS: 'LatestVersion'
2021-03-02T13:30:11.3776899Z ##[debug]INPUT_CUSTOMTARGETAZUREPS (empty)
2021-03-02T13:30:11.3801300Z ##[debug]INPUT_PWSH: 'false'
2021-03-02T13:30:11.3819159Z ##[debug] Converted to bool: False
2021-03-02T13:30:11.3843935Z ##[debug]INPUT_WORKINGDIRECTORY: 'D:\a\1\s'
2021-03-02T13:30:11.3867381Z ##[debug]INPUT_RESTRICTCONTEXTTOCURRENTTASK: 'false'
2021-03-02T13:30:11.3886793Z ##[debug] Converted to bool: False
2021-03-02T13:30:11.3894358Z ## Validating Inputs
2021-03-02T13:30:11.3935446Z ## Validating Inputs Complete
2021-03-02T13:30:11.3941753Z ## Initializing Az module
2021-03-02T13:30:11.4004474Z ##[debug]INPUT_CONNECTEDSERVICENAMEARM: '9d29889d-c925-4173-a0a6-4e56b66cb11c'
2021-03-02T13:30:11.4136200Z ##[debug]ENDPOINT_URL_9d29889d-c925-4173-a0a6-4e56b66cb11c: 'https://management.azure.com/'
2021-03-02T13:30:11.4161542Z ##[debug]ENDPOINT_AUTH_9d29889d-c925-4173-a0a6-4e56b66cb11c: '********'
2021-03-02T13:30:11.4191567Z ##[debug]ENDPOINT_DATA_9d29889d-c925-4173-a0a6-4e56b66cb11c: '{"subscriptionId":"581389a3-e46e-43a4-bef4-4d0c1c43e6a6","subscriptionName":"Microsoft Azure Sponsorship","environment":"AzureCloud","scopeLevel":"Subscription","creationMode":"Automatic","azureSpnRoleAssignmentId":"c59b2cba-fef9-4838-8cd8-8fda871fcb7c","azureSpnPermissions":"[{\"roleAssignmentId\":\"c59b2cba-fef9-4838-8cd8-8fda871fcb7c\",\"resourceProvider\":\"Microsoft.RoleAssignment\",\"provisioned\":true}]","spnObjectId":"c7a4a5b8-7951-4aaa-9ffb-f7700b86a539","appObjectId":"2e7381cd-56e4-4af5-8bd6-c8625f30c96a","environmentUrl":"https://management.azure.com/","galleryUrl":"https://gallery.azure.com/","serviceManagementUrl":"https://management.core.windows.net/","resourceManagerUrl":"https://management.azure.com/","activeDirectoryAuthority":"https://login.microsoftonline.com/","environmentAuthorityUrl":"https://login.windows.net/","graphUrl":"https://graph.windows.net/","managementPortalUrl":"https://manage.windowsazure.com/","armManagementPortalUrl":"https://portal.azure.com/","activeDirectoryServiceEndpointResourceId":"https://management.core.windows.net/","sqlDatabaseDnsSuffix":".database.windows.net","AzureKeyVaultDnsSuffix":"vault.azure.net","AzureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","StorageEndpointSuffix":"core.windows.net","EnableAdfsAuthentication":"false"}'
2021-03-02T13:30:11.4823972Z ##[debug]C:\Modules\azurerm_2.1.0 removed. Restart the prompt for the changes to take effect.
2021-03-02T13:30:11.5006723Z ##[debug]C:\Modules\azure_2.1.0 removed. Restart the prompt for the changes to take effect.
2021-03-02T13:30:12.0068277Z ##[debug]Latest module folder detected: C:\Modules\az_5.5.0
2021-03-02T13:30:12.0149865Z ##[debug]The updated value of the PSModulePath is: C:\Modules\az_5.5.0;C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules;C:\Users\packer\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Microsoft SQL Server\130\Tools\PowerShell\Modules\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell
2021-03-02T13:30:12.0171853Z ##[debug]Loading module from path 'D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\VstsAzureHelpers_\VstsAzureHelpers_.psm1'.
2021-03-02T13:30:12.0253646Z ##[debug]$OVERRIDING $global:DebugPreference from 'Continue' to 'SilentlyContinue'.
2021-03-02T13:30:12.0278625Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\VstsAzureHelpers_/module.json
2021-03-02T13:30:12.0884168Z ##[debug]Loaded 13 strings.
2021-03-02T13:30:12.0885470Z ##[debug]SYSTEM_CULTURE: 'en-US'
2021-03-02T13:30:12.1639670Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\VstsAzureHelpers_\Strings\resources.resjson\en-US\resources.resjson
2021-03-02T13:30:12.2032064Z ##[debug]Loaded 13 strings.
2021-03-02T13:30:12.2131263Z ##[debug]Entering Get-VstsWebProxy.
2021-03-02T13:30:12.2204332Z ##[debug]AGENT_VERSION: '2.182.1'
2021-03-02T13:30:12.2245739Z ##[debug]AGENT_PROXYURL (empty)
2021-03-02T13:30:12.2264136Z ##[debug]AGENT_PROXYUSERNAME (empty)
2021-03-02T13:30:12.2309307Z ##[debug]AGENT_PROXYPASSWORD (empty)
2021-03-02T13:30:12.2355758Z ##[debug]AGENT_PROXYBYPASSLIST (empty)
2021-03-02T13:30:12.2403654Z ##[debug]Leaving Get-VstsWebProxy.
2021-03-02T13:30:12.2440080Z ##[debug]Loading module from path 'D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\TlsHelper_\TlsHelper_.psm1'.
2021-03-02T13:30:12.2520178Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\TlsHelper_/module.json
2021-03-02T13:30:12.2602582Z ##[debug]Loaded 3 strings.
2021-03-02T13:30:12.2627496Z ##[debug]SYSTEM_CULTURE: 'en-US'
2021-03-02T13:30:12.2649931Z ##[debug]Loading resource strings from: D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\ps_modules\TlsHelper_\Strings\resources.resjson\en-US\resources.resjson
2021-03-02T13:30:12.2731861Z ##[debug]Loaded 3 strings.
2021-03-02T13:30:12.2747239Z ##[debug]Exporting function 'Add-Tls12InSession'.
2021-03-02T13:30:12.2763015Z ##[debug]Exporting function 'Assert-TlsError'.
2021-03-02T13:30:12.2778777Z ##[debug]Importing function 'Add-Tls12InSession'.
2021-03-02T13:30:12.2798492Z ##[debug]Importing function 'Assert-TlsError'.
2021-03-02T13:30:12.3063760Z ##[debug]TLS 1.2 already present in session.
2021-03-02T13:30:12.3374974Z ##[debug]Exporting function 'Initialize-Azure'.
2021-03-02T13:30:12.3390212Z ##[debug]Exporting function 'CmdletHasMember'.
2021-03-02T13:30:12.3405919Z ##[debug]Exporting function 'Remove-EndpointSecrets'.
2021-03-02T13:30:12.3424995Z ##[debug]Exporting function 'Initialize-AzureRMModule'.
2021-03-02T13:30:12.3441185Z ##[debug]Exporting function 'Initialize-AzModule'.
2021-03-02T13:30:12.3457101Z ##[debug]Exporting function 'Disconnect-AzureAndClearContext'.
2021-03-02T13:30:12.3472753Z ##[debug]Exporting function 'Update-PSModulePathForHostedAgentWithLatestModule'.
2021-03-02T13:30:12.3488659Z ##[debug]Importing function 'CmdletHasMember'.
2021-03-02T13:30:12.3503587Z ##[debug]Importing function 'Disconnect-AzureAndClearContext'.
2021-03-02T13:30:12.3518294Z ##[debug]Importing function 'Initialize-AzModule'.
2021-03-02T13:30:12.3532440Z ##[debug]Importing function 'Initialize-Azure'.
2021-03-02T13:30:12.3546746Z ##[debug]Importing function 'Initialize-AzureRMModule'.
2021-03-02T13:30:12.3560969Z ##[debug]Importing function 'Remove-EndpointSecrets'.
2021-03-02T13:30:12.3582417Z ##[debug]Importing function 'Update-PSModulePathForHostedAgentWithLatestModule'.
2021-03-02T13:30:12.3619924Z ##[debug]Entering Initialize-AzModule.
2021-03-02T13:30:12.3738747Z ##[debug] Endpoint: '@{Url=https://management.azure.com/; Data=; Auth=}'
2021-03-02T13:30:12.3754141Z ##[debug] azVersion: ''
2021-03-02T13:30:12.3770764Z ##[debug]Env:PSModulePath: 'C:\Modules\az_5.5.0;C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules;C:\Users\packer\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Microsoft SQL Server\130\Tools\PowerShell\Modules\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell'
2021-03-02T13:30:12.3819311Z ##[debug]Entering Import-AzModule.
2021-03-02T13:30:12.3834440Z ##[debug] azVersion: ''
2021-03-02T13:30:12.3849662Z ##[debug]Attempting to find the module 'Az.Accounts' from the module path.
2021-03-02T13:30:12.9383974Z ##[debug]Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
2021-03-02T13:30:12.9504014Z ##[debug]Populating RepositorySourceLocation property for module Az.Accounts.
2021-03-02T13:30:12.9812455Z ##[debug]Loading module from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Az.Accounts.psm1'.
2021-03-02T13:30:13.9668248Z ##[command]Import-Module -Name C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Az.Accounts.psd1 -Global
2021-03-02T13:30:13.9701123Z ##[debug]Loading module from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Az.Accounts.psd1'.
2021-03-02T13:30:13.9726260Z ##[debug]Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted versions.
2021-03-02T13:30:13.9846039Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.Abstractions.dll'.
2021-03-02T13:30:13.9872472Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.Abstractions.dll'.
2021-03-02T13:30:13.9975446Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.dll'.
2021-03-02T13:30:14.0013189Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.dll'.
2021-03-02T13:30:14.0109523Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authenticators.dll'.
2021-03-02T13:30:14.0139003Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authenticators.dll'.
2021-03-02T13:30:14.0586112Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll'.
2021-03-02T13:30:14.0644046Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll'.
2021-03-02T13:30:14.0749681Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Authorization.dll'.
2021-03-02T13:30:14.0780105Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Authorization.dll'.
2021-03-02T13:30:14.0809135Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Compute.dll'.
2021-03-02T13:30:14.0834764Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Compute.dll'.
2021-03-02T13:30:14.0862314Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll'.
2021-03-02T13:30:14.0888069Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Graph.Rbac.dll'.
2021-03-02T13:30:14.1007679Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Monitor.dll'.
2021-03-02T13:30:14.1036801Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Monitor.dll'.
2021-03-02T13:30:14.1138189Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Network.dll'.
2021-03-02T13:30:14.1183480Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Network.dll'.
2021-03-02T13:30:14.1607983Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll'.
2021-03-02T13:30:14.1638517Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.PolicyInsights.dll'.
2021-03-02T13:30:14.1670876Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll'.
2021-03-02T13:30:14.1701119Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.ResourceManager.dll'.
2021-03-02T13:30:14.1730529Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Common.dll'.
2021-03-02T13:30:14.1756494Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Common.dll'.
2021-03-02T13:30:14.1786902Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Storage.dll'.
2021-03-02T13:30:14.1812958Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Storage.dll'.
2021-03-02T13:30:14.1842509Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Storage.Management.dll'.
2021-03-02T13:30:14.1870423Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Storage.Management.dll'.
2021-03-02T13:30:14.1974960Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.KeyVault.dll'.
2021-03-02T13:30:14.2003109Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.KeyVault.dll'.
2021-03-02T13:30:14.2031857Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Websites.dll'.
2021-03-02T13:30:14.2058221Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Websites.dll'.
2021-03-02T13:30:14.2087902Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Hyak.Common.dll'.
2021-03-02T13:30:14.2113469Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Hyak.Common.dll'.
2021-03-02T13:30:14.2226219Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.ApplicationInsights.dll'.
2021-03-02T13:30:14.2252882Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.ApplicationInsights.dll'.
2021-03-02T13:30:14.2282206Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.Common.dll'.
2021-03-02T13:30:14.2307471Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.Common.dll'.
2021-03-02T13:30:14.2573901Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Rest.ClientRuntime.dll'.
2021-03-02T13:30:14.2660420Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Rest.ClientRuntime.dll'.
2021-03-02T13:30:14.2689767Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Rest.ClientRuntime.Azure.dll'.
2021-03-02T13:30:14.2716572Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Rest.ClientRuntime.Azure.dll'.
2021-03-02T13:30:14.2744689Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.WindowsAzure.Storage.dll'.
2021-03-02T13:30:14.2770965Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.WindowsAzure.Storage.dll'.
2021-03-02T13:30:14.2822302Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.WindowsAzure.Storage.DataMovement.dll'.
2021-03-02T13:30:14.2848947Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.WindowsAzure.Storage.DataMovement.dll'.
2021-03-02T13:30:14.2962727Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Aks.dll'.
2021-03-02T13:30:14.2989222Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Clients.Aks.dll'.
2021-03-02T13:30:14.3016902Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Strategies.dll'.
2021-03-02T13:30:14.3041119Z ##[debug]Loading 'Assembly' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Strategies.dll'.
2021-03-02T13:30:14.3068324Z ##[debug]Loading 'FormatsToProcess' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Accounts.format.ps1xml'.
2021-03-02T13:30:14.3083346Z ##[debug]Loading 'FormatsToProcess' from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Accounts.generated.format.ps1xml'.
2021-03-02T13:30:15.6520193Z ##[debug]Populating RepositorySourceLocation property for module Az.Accounts.
2021-03-02T13:30:15.6546561Z ##[debug]Loading module from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Az.Accounts.psm1'.
2021-03-02T13:30:27.7254644Z ##[debug]Loading module from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Microsoft.Azure.PowerShell.Cmdlets.Accounts.dll'.
2021-03-02T13:30:28.0925849Z ##[debug]Importing cmdlet 'Register-AzModule'.
2021-03-02T13:30:28.0943093Z ##[debug]Importing cmdlet 'Connect-AzAccount'.
2021-03-02T13:30:28.0959061Z ##[debug]Importing cmdlet 'Disconnect-AzAccount'.
2021-03-02T13:30:28.0975137Z ##[debug]Importing cmdlet 'Get-AzContext'.
2021-03-02T13:30:28.0991348Z ##[debug]Importing cmdlet 'Import-AzContext'.
2021-03-02T13:30:28.1004740Z ##[debug]Importing cmdlet 'Save-AzContext'.
2021-03-02T13:30:28.1019170Z ##[debug]Importing cmdlet 'Set-AzContext'.
2021-03-02T13:30:28.1033159Z ##[debug]Importing cmdlet 'Disable-AzDataCollection'.
2021-03-02T13:30:28.1047055Z ##[debug]Importing cmdlet 'Enable-AzDataCollection'.
2021-03-02T13:30:28.1061434Z ##[debug]Importing cmdlet 'Add-AzEnvironment'.
2021-03-02T13:30:28.1075788Z ##[debug]Importing cmdlet 'Get-AzEnvironment'.
2021-03-02T13:30:28.1094054Z ##[debug]Importing cmdlet 'Remove-AzEnvironment'.
2021-03-02T13:30:28.1109469Z ##[debug]Importing cmdlet 'Set-AzEnvironment'.
2021-03-02T13:30:28.1124446Z ##[debug]Importing cmdlet 'Send-Feedback'.
2021-03-02T13:30:28.1154579Z ##[debug]Importing cmdlet 'Get-AzSubscription'.
2021-03-02T13:30:28.1165429Z ##[debug]Importing cmdlet 'Get-AzTenant'.
2021-03-02T13:30:28.1180056Z ##[debug]Importing cmdlet 'Get-AzAccess***'.
2021-03-02T13:30:28.1194521Z ##[debug]Importing cmdlet 'Uninstall-AzureRm'.
2021-03-02T13:30:28.1212104Z ##[debug]Importing cmdlet 'Invoke-AzRestMethod'.
2021-03-02T13:30:28.1227663Z ##[debug]Importing cmdlet 'Resolve-AzError'.
2021-03-02T13:30:28.1243810Z ##[debug]Importing cmdlet 'Clear-AzDefault'.
2021-03-02T13:30:28.1259581Z ##[debug]Importing cmdlet 'Get-AzDefault'.
2021-03-02T13:30:28.1275747Z ##[debug]Importing cmdlet 'Set-AzDefault'.
2021-03-02T13:30:28.1291374Z ##[debug]Importing cmdlet 'Disable-AzureRmAlias'.
2021-03-02T13:30:28.1321597Z ##[debug]Importing cmdlet 'Enable-AzureRmAlias'.
2021-03-02T13:30:28.1336814Z ##[debug]Importing cmdlet 'Disable-AzContextAutosave'.
2021-03-02T13:30:28.1351241Z ##[debug]Importing cmdlet 'Enable-AzContextAutosave'.
2021-03-02T13:30:28.1365477Z ##[debug]Importing cmdlet 'Get-AzContextAutosaveSetting'.
2021-03-02T13:30:28.1379628Z ##[debug]Importing cmdlet 'Clear-AzContext'.
2021-03-02T13:30:28.1393809Z ##[debug]Importing cmdlet 'Remove-AzContext'.
2021-03-02T13:30:28.1416229Z ##[debug]Importing cmdlet 'Rename-AzContext'.
2021-03-02T13:30:28.1431917Z ##[debug]Importing cmdlet 'Select-AzContext'.
2021-03-02T13:30:28.1462268Z ##[debug]Importing alias 'Login-AzAccount'.
2021-03-02T13:30:28.1477096Z ##[debug]Importing alias 'Login-AzureRmAccount'.
2021-03-02T13:30:28.1493324Z ##[debug]Importing alias 'Add-AzAccount'.
2021-03-02T13:30:28.1508895Z ##[debug]Importing alias 'Logout-AzAccount'.
2021-03-02T13:30:28.1523517Z ##[debug]Importing alias 'Logout-AzureRmAccount'.
2021-03-02T13:30:28.1538916Z ##[debug]Importing alias 'Remove-AzAccount'.
2021-03-02T13:30:28.1554979Z ##[debug]Importing alias 'Save-AzProfile'.
2021-03-02T13:30:28.1569800Z ##[debug]Importing alias 'Select-AzSubscription'.
2021-03-02T13:30:29.1746564Z ##[debug]Importing alias 'Get-AzureRmDomain'.
2021-03-02T13:30:29.1747590Z ##[debug]Importing alias 'Get-AzDomain'.
2021-03-02T13:30:29.1748520Z ##[debug]Importing alias 'Invoke-AzRest'.
2021-03-02T13:30:29.1749404Z ##[debug]Importing alias 'Resolve-Error'.
2021-03-02T13:30:29.1750275Z ##[debug]Exporting function 'Test-DotNet'.
2021-03-02T13:30:29.1751207Z ##[debug]Exporting function 'Write-InstallationCheckToFile'.
2021-03-02T13:30:29.1752406Z ##[debug]Exporting cmdlet 'Register-AzModule'.
2021-03-02T13:30:29.1754457Z ##[debug]Exporting cmdlet 'Connect-AzAccount'.
2021-03-02T13:30:29.1755723Z ##[debug]Exporting cmdlet 'Disconnect-AzAccount'.
2021-03-02T13:30:29.1756937Z ##[debug]Exporting cmdlet 'Get-AzContext'.
2021-03-02T13:30:29.1758483Z ##[debug]Exporting cmdlet 'Import-AzContext'.
2021-03-02T13:30:29.1759642Z ##[debug]Exporting cmdlet 'Save-AzContext'.
2021-03-02T13:30:29.1760825Z ##[debug]Exporting cmdlet 'Set-AzContext'.
2021-03-02T13:30:29.1762016Z ##[debug]Exporting cmdlet 'Disable-AzDataCollection'.
2021-03-02T13:30:29.1763309Z ##[debug]Exporting cmdlet 'Enable-AzDataCollection'.
2021-03-02T13:30:29.1764497Z ##[debug]Exporting cmdlet 'Add-AzEnvironment'.
2021-03-02T13:30:29.1765647Z ##[debug]Exporting cmdlet 'Get-AzEnvironment'.
2021-03-02T13:30:29.1766816Z ##[debug]Exporting cmdlet 'Remove-AzEnvironment'.
2021-03-02T13:30:29.1768006Z ##[debug]Exporting cmdlet 'Set-AzEnvironment'.
2021-03-02T13:30:29.1769175Z ##[debug]Exporting cmdlet 'Send-Feedback'.
2021-03-02T13:30:29.1770357Z ##[debug]Exporting cmdlet 'Get-AzSubscription'.
2021-03-02T13:30:29.1771529Z ##[debug]Exporting cmdlet 'Get-AzTenant'.
2021-03-02T13:30:29.1772884Z ##[debug]Exporting cmdlet 'Get-AzAccess***'.
2021-03-02T13:30:29.1774089Z ##[debug]Exporting cmdlet 'Uninstall-AzureRm'.
2021-03-02T13:30:29.1775288Z ##[debug]Exporting cmdlet 'Invoke-AzRestMethod'.
2021-03-02T13:30:29.1776549Z ##[debug]Exporting cmdlet 'Resolve-AzError'.
2021-03-02T13:30:29.1777734Z ##[debug]Exporting cmdlet 'Clear-AzDefault'.
2021-03-02T13:30:29.1778888Z ##[debug]Exporting cmdlet 'Get-AzDefault'.
2021-03-02T13:30:29.1780055Z ##[debug]Exporting cmdlet 'Set-AzDefault'.
2021-03-02T13:30:29.1781226Z ##[debug]Exporting cmdlet 'Disable-AzureRmAlias'.
2021-03-02T13:30:29.1782469Z ##[debug]Exporting cmdlet 'Enable-AzureRmAlias'.
2021-03-02T13:30:29.1783695Z ##[debug]Exporting cmdlet 'Disable-AzContextAutosave'.
2021-03-02T13:30:29.1784928Z ##[debug]Exporting cmdlet 'Enable-AzContextAutosave'.
2021-03-02T13:30:29.1786179Z ##[debug]Exporting cmdlet 'Get-AzContextAutosaveSetting'.
2021-03-02T13:30:29.1787563Z ##[debug]Exporting cmdlet 'Clear-AzContext'.
2021-03-02T13:30:29.1788744Z ##[debug]Exporting cmdlet 'Remove-AzContext'.
2021-03-02T13:30:29.1789927Z ##[debug]Exporting cmdlet 'Rename-AzContext'.
2021-03-02T13:30:29.1791097Z ##[debug]Exporting cmdlet 'Select-AzContext'.
2021-03-02T13:30:29.1792367Z ##[debug]Exporting alias 'Login-AzAccount'.
2021-03-02T13:30:29.1793103Z ##[debug]Exporting alias 'Login-AzureRmAccount'.
2021-03-02T13:30:29.1793822Z ##[debug]Exporting alias 'Add-AzAccount'.
2021-03-02T13:30:29.1794522Z ##[debug]Exporting alias 'Logout-AzAccount'.
2021-03-02T13:30:29.1795250Z ##[debug]Exporting alias 'Logout-AzureRmAccount'.
2021-03-02T13:30:29.1796084Z ##[debug]Exporting alias 'Remove-AzAccount'.
2021-03-02T13:30:29.1796755Z ##[debug]Exporting alias 'Save-AzProfile'.
2021-03-02T13:30:29.1797427Z ##[debug]Exporting alias 'Select-AzSubscription'.
2021-03-02T13:30:29.1798099Z ##[debug]Exporting alias 'Get-AzureRmDomain'.
2021-03-02T13:30:29.1798768Z ##[debug]Exporting alias 'Get-AzDomain'.
2021-03-02T13:30:29.1799419Z ##[debug]Exporting alias 'Invoke-AzRest'.
2021-03-02T13:30:29.1800064Z ##[debug]Exporting alias 'Resolve-Error'.
2021-03-02T13:30:29.1800724Z ##[debug]Importing cmdlet 'Add-AzEnvironment'.
2021-03-02T13:30:29.1801561Z ##[debug]Importing cmdlet 'Clear-AzContext'.
2021-03-02T13:30:29.1802305Z ##[debug]Importing cmdlet 'Clear-AzDefault'.
2021-03-02T13:30:29.1803023Z ##[debug]Importing cmdlet 'Connect-AzAccount'.
2021-03-02T13:30:29.1803737Z ##[debug]Importing cmdlet 'Disable-AzContextAutosave'.
2021-03-02T13:30:29.1804483Z ##[debug]Importing cmdlet 'Disable-AzDataCollection'.
2021-03-02T13:30:29.1805223Z ##[debug]Importing cmdlet 'Disable-AzureRmAlias'.
2021-03-02T13:30:29.1805944Z ##[debug]Importing cmdlet 'Disconnect-AzAccount'.
2021-03-02T13:30:29.1806676Z ##[debug]Importing cmdlet 'Enable-AzContextAutosave'.
2021-03-02T13:30:29.1807415Z ##[debug]Importing cmdlet 'Enable-AzDataCollection'.
2021-03-02T13:30:29.1808152Z ##[debug]Importing cmdlet 'Enable-AzureRmAlias'.
2021-03-02T13:30:29.1808919Z ##[debug]Importing cmdlet 'Get-AzAccess***'.
2021-03-02T13:30:29.1809630Z ##[debug]Importing cmdlet 'Get-AzContext'.
2021-03-02T13:30:29.1810438Z ##[debug]Importing cmdlet 'Get-AzContextAutosaveSetting'.
2021-03-02T13:30:29.1811169Z ##[debug]Importing cmdlet 'Get-AzDefault'.
2021-03-02T13:30:29.1811876Z ##[debug]Importing cmdlet 'Get-AzEnvironment'.
2021-03-02T13:30:29.1812636Z ##[debug]Importing cmdlet 'Get-AzSubscription'.
2021-03-02T13:30:29.1813333Z ##[debug]Importing cmdlet 'Get-AzTenant'.
2021-03-02T13:30:29.1814041Z ##[debug]Importing cmdlet 'Import-AzContext'.
2021-03-02T13:30:29.1814761Z ##[debug]Importing cmdlet 'Invoke-AzRestMethod'.
2021-03-02T13:30:29.1815466Z ##[debug]Importing cmdlet 'Register-AzModule'.
2021-03-02T13:30:29.1816182Z ##[debug]Importing cmdlet 'Remove-AzContext'.
2021-03-02T13:30:29.1816904Z ##[debug]Importing cmdlet 'Remove-AzEnvironment'.
2021-03-02T13:30:29.1817640Z ##[debug]Importing cmdlet 'Rename-AzContext'.
2021-03-02T13:30:29.1818357Z ##[debug]Importing cmdlet 'Resolve-AzError'.
2021-03-02T13:30:29.1819117Z ##[debug]Importing cmdlet 'Save-AzContext'.
2021-03-02T13:30:29.1820394Z ##[debug]Importing cmdlet 'Select-AzContext'.
2021-03-02T13:30:29.1821129Z ##[debug]Importing cmdlet 'Send-Feedback'.
2021-03-02T13:30:29.1821827Z ##[debug]Importing cmdlet 'Set-AzContext'.
2021-03-02T13:30:29.1822660Z ##[debug]Importing cmdlet 'Set-AzDefault'.
2021-03-02T13:30:29.1836304Z ##[debug]Importing cmdlet 'Set-AzEnvironment'.
2021-03-02T13:30:29.1851663Z ##[debug]Importing cmdlet 'Uninstall-AzureRm'.
2021-03-02T13:30:29.1867310Z ##[debug]Importing alias 'Add-AzAccount'.
2021-03-02T13:30:29.1883136Z ##[debug]Importing alias 'Get-AzDomain'.
2021-03-02T13:30:29.1898509Z ##[debug]Importing alias 'Invoke-AzRest'.
2021-03-02T13:30:29.1913157Z ##[debug]Importing alias 'Login-AzAccount'.
2021-03-02T13:30:29.1927696Z ##[debug]Importing alias 'Logout-AzAccount'.
2021-03-02T13:30:29.1942874Z ##[debug]Importing alias 'Remove-AzAccount'.
2021-03-02T13:30:29.1958339Z ##[debug]Importing alias 'Resolve-Error'.
2021-03-02T13:30:29.2032721Z ##[debug]Importing alias 'Save-AzProfile'.
2021-03-02T13:30:29.2048166Z ##[debug]Importing alias 'Select-AzSubscription'.
2021-03-02T13:30:29.2084386Z ##[debug]Imported module version: 2.2.5
2021-03-02T13:30:29.2141218Z ##[debug]Leaving Import-AzModule.
2021-03-02T13:30:29.2157543Z ##[debug]Initializing Az Module.
2021-03-02T13:30:29.2291632Z ##[debug]AZURE_HTTP_USER_AGENT: 'VSTS_bc6fd740-4afc-4f26-9e0f-c9062c3aa36e_build_4_0'
2021-03-02T13:30:29.2323009Z ##[debug]Entering Set-UserAgent_Core.
2021-03-02T13:30:29.2381155Z ##[debug] UserAgent: 'VSTS_bc6fd740-4afc-4f26-9e0f-c9062c3aa36e_build_4_0'
2021-03-02T13:30:29.2425438Z ##[debug]Leaving Set-UserAgent_Core.
2021-03-02T13:30:29.2432374Z ##[command]Clear-AzContext -Scope CurrentUser -Force -ErrorAction SilentlyContinue
2021-03-02T13:30:30.1748921Z ##[command]Clear-AzContext -Scope Process
2021-03-02T13:30:30.6664350Z ##[command]Connect-AzAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope
2021-03-02T13:30:32.4063347Z ##[command] Set-AzContext -SubscriptionId 581389a3-e46e-43a4-bef4-4d0c1c43e6a6 -TenantId ***
2021-03-02T13:30:33.2898959Z ##[debug]Leaving Initialize-AzModule.
2021-03-02T13:30:33.2908730Z ## Az module initialization Complete
2021-03-02T13:30:33.2916198Z ## Beginning Script Execution
2021-03-02T13:30:33.3449066Z ##[command]& 'D:\a\_temp\fed3f077-46ea-40c9-ad7d-79d7eb354b2a.ps1' 
2021-03-02T13:30:37.4523245Z VERBOSE: Loading module from path 
2021-03-02T13:30:37.4524462Z 'C:\Modules\az_5.5.0\Az.Storage\3.3.0\Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.dll'.
2021-03-02T13:30:37.5408380Z VERBOSE: Importing cmdlet 'Add-AzRmStorageContainerLegalHold'.
2021-03-02T13:30:37.5411638Z VERBOSE: Importing cmdlet 'Disable-AzStorageBlobDeleteRetentionPolicy'.
2021-03-02T13:30:37.5415831Z VERBOSE: Importing cmdlet 'Disable-AzStorageBlobRestorePolicy'.
2021-03-02T13:30:37.5420345Z VERBOSE: Importing cmdlet 'Enable-AzStorageBlobDeleteRetentionPolicy'.
2021-03-02T13:30:37.5424743Z VERBOSE: Importing cmdlet 'Enable-AzStorageBlobRestorePolicy'.
2021-03-02T13:30:37.5428714Z VERBOSE: Importing cmdlet 'Get-AzStorageBlobServiceProperty'.
2021-03-02T13:30:37.5433267Z VERBOSE: Importing cmdlet 'Get-AzRmStorageContainer'.
2021-03-02T13:30:37.5438083Z VERBOSE: Importing cmdlet 'Get-AzRmStorageContainerImmutabilityPolicy'.
2021-03-02T13:30:37.5442391Z VERBOSE: Importing cmdlet 'Lock-AzRmStorageContainerImmutabilityPolicy'.
2021-03-02T13:30:37.5446845Z VERBOSE: Importing cmdlet 'New-AzRmStorageContainer'.
2021-03-02T13:30:37.5451322Z VERBOSE: Importing cmdlet 'Remove-AzRmStorageContainer'.
2021-03-02T13:30:37.5455363Z VERBOSE: Importing cmdlet 'Remove-AzRmStorageContainerImmutabilityPolicy'.
2021-03-02T13:30:37.5458908Z VERBOSE: Importing cmdlet 'Remove-AzRmStorageContainerLegalHold'.
2021-03-02T13:30:37.5462815Z VERBOSE: Importing cmdlet 'Set-AzRmStorageContainerImmutabilityPolicy'.
2021-03-02T13:30:37.5469428Z VERBOSE: Importing cmdlet 'Update-AzStorageBlobServiceProperty'.
2021-03-02T13:30:37.5473115Z VERBOSE: Importing cmdlet 'Update-AzRmStorageContainer'.
2021-03-02T13:30:37.5477729Z VERBOSE: Importing cmdlet 'Get-AzStorageFileServiceProperty'.
2021-03-02T13:30:37.5482848Z VERBOSE: Importing cmdlet 'Get-AzRmStorageShare'.
2021-03-02T13:30:37.5487889Z VERBOSE: Importing cmdlet 'New-AzRmStorageShare'.
2021-03-02T13:30:37.5492270Z VERBOSE: Importing cmdlet 'Remove-AzRmStorageShare'.
2021-03-02T13:30:37.5497406Z VERBOSE: Importing cmdlet 'Restore-AzRmStorageShare'.
2021-03-02T13:30:37.5501785Z VERBOSE: Importing cmdlet 'Update-AzStorageFileServiceProperty'.
2021-03-02T13:30:37.5505971Z VERBOSE: Importing cmdlet 'Update-AzRmStorageShare'.
2021-03-02T13:30:37.5510583Z VERBOSE: Importing cmdlet 'Add-AzStorageAccountManagementPolicyAction'.
2021-03-02T13:30:37.5514226Z VERBOSE: Importing cmdlet 'Add-AzStorageAccountNetworkRule'.
2021-03-02T13:30:37.5518642Z VERBOSE: Importing cmdlet 'Get-AzStorageObjectReplicationPolicy'.
2021-03-02T13:30:37.5522185Z VERBOSE: Importing cmdlet 'Get-AzStorageAccount'.
2021-03-02T13:30:37.5525805Z VERBOSE: Importing cmdlet 'Get-AzStorageAccountKey'.
2021-03-02T13:30:37.5529630Z VERBOSE: Importing cmdlet 'Get-AzStorageAccountManagementPolicy'.
2021-03-02T13:30:37.5532846Z VERBOSE: Importing cmdlet 'Get-AzStorageAccountNetworkRuleSet'.
2021-03-02T13:30:37.5537659Z VERBOSE: Importing cmdlet 'Get-AzStorageEncryptionScope'.
2021-03-02T13:30:37.5541482Z VERBOSE: Importing cmdlet 'Invoke-AzStorageAccountFailover'.
2021-03-02T13:30:37.5546433Z VERBOSE: Importing cmdlet 'New-AzStorageBlobRangeToRestore'.
2021-03-02T13:30:37.5549951Z VERBOSE: Importing cmdlet 'New-AzStorageObjectReplicationPolicyRule'.
2021-03-02T13:30:37.5552890Z VERBOSE: Importing cmdlet 'New-AzStorageAccount'.
2021-03-02T13:30:37.5556869Z VERBOSE: Importing cmdlet 'New-AzStorageAccountKey'.
2021-03-02T13:30:37.5560766Z VERBOSE: Importing cmdlet 'New-AzStorageAccountManagementPolicyFilter'.
2021-03-02T13:30:37.5564966Z VERBOSE: Importing cmdlet 'New-AzStorageAccountManagementPolicyRule'.
2021-03-02T13:30:37.5570049Z VERBOSE: Importing cmdlet 'New-AzStorageEncryptionScope'.
2021-03-02T13:30:37.5573409Z VERBOSE: Importing cmdlet 'Remove-AzStorageObjectReplicationPolicy'.
2021-03-02T13:30:37.5577076Z VERBOSE: Importing cmdlet 'Remove-AzStorageAccount'.
2021-03-02T13:30:37.5581272Z VERBOSE: Importing cmdlet 'Remove-AzStorageAccountManagementPolicy'.
2021-03-02T13:30:37.5585402Z VERBOSE: Importing cmdlet 'Remove-AzStorageAccountNetworkRule'.
2021-03-02T13:30:37.5590039Z VERBOSE: Importing cmdlet 'Restore-AzStorageBlobRange'.
2021-03-02T13:30:37.5594392Z VERBOSE: Importing cmdlet 'Revoke-AzStorageAccountUserDelegationKeys'.
2021-03-02T13:30:37.5598655Z VERBOSE: Importing cmdlet 'Set-AzStorageObjectReplicationPolicy'.
2021-03-02T13:30:37.5603423Z VERBOSE: Importing cmdlet 'Set-AzCurrentStorageAccount'.
2021-03-02T13:30:37.5607795Z VERBOSE: Importing cmdlet 'Set-AzStorageAccount'.
2021-03-02T13:30:37.5612127Z VERBOSE: Importing cmdlet 'Set-AzStorageAccountManagementPolicy'.
2021-03-02T13:30:37.5616503Z VERBOSE: Importing cmdlet 'Update-AzStorageAccountNetworkRuleSet'.
2021-03-02T13:30:37.5619187Z VERBOSE: Importing cmdlet 'Update-AzStorageEncryptionScope'.
2021-03-02T13:30:37.5626033Z VERBOSE: Importing cmdlet 'Get-AzStorageAccountNameAvailability'.
2021-03-02T13:30:37.5630545Z VERBOSE: Importing cmdlet 'Get-AzStorageUsage'.
2021-03-02T13:30:37.5643403Z VERBOSE: Loading module from path 
2021-03-02T13:30:37.5644188Z 'C:\Modules\az_5.5.0\Az.Storage\3.3.0\Microsoft.Azure.PowerShell.Cmdlets.Storage.dll'.
2021-03-02T13:30:37.7170383Z VERBOSE: Importing cmdlet 'New-AzStorageBlobQueryConfig'.
2021-03-02T13:30:37.7172273Z VERBOSE: Importing cmdlet 'Set-AzDataLakeGen2ItemAclObject'.
2021-03-02T13:30:37.7175744Z VERBOSE: Importing cmdlet 'Get-AzStorageTableStoredAccessPolicy'.
2021-03-02T13:30:37.7179970Z VERBOSE: Importing cmdlet 'Get-AzStorageTable'.
2021-03-02T13:30:37.7189458Z VERBOSE: Importing cmdlet 'New-AzStorageTableSAS***'.
2021-03-02T13:30:37.7192680Z VERBOSE: Importing cmdlet 'New-AzStorageTableStoredAccessPolicy'.
2021-03-02T13:30:37.7198923Z VERBOSE: Importing cmdlet 'New-AzStorageTable'.
2021-03-02T13:30:37.7201063Z VERBOSE: Importing cmdlet 'Remove-AzStorageTableStoredAccessPolicy'.
2021-03-02T13:30:37.7202273Z VERBOSE: Importing cmdlet 'Remove-AzStorageTable'.
2021-03-02T13:30:37.7210488Z VERBOSE: Importing cmdlet 'Set-AzStorageTableStoredAccessPolicy'.
2021-03-02T13:30:37.7211646Z VERBOSE: Importing cmdlet 'Get-AzStorageQueue'.
2021-03-02T13:30:37.7212846Z VERBOSE: Importing cmdlet 'New-AzStorageQueue'.
2021-03-02T13:30:37.7214168Z VERBOSE: Importing cmdlet 'Remove-AzStorageQueue'.
2021-03-02T13:30:37.7215321Z VERBOSE: Importing cmdlet 'Get-AzStorageQueueStoredAccessPolicy'.
2021-03-02T13:30:37.7217220Z VERBOSE: Importing cmdlet 'New-AzStorageQueueSAS***'.
2021-03-02T13:30:37.7218555Z VERBOSE: Importing cmdlet 'New-AzStorageQueueStoredAccessPolicy'.
2021-03-02T13:30:37.7220204Z VERBOSE: Importing cmdlet 'Remove-AzStorageQueueStoredAccessPolicy'.
2021-03-02T13:30:37.7223388Z VERBOSE: Importing cmdlet 'Set-AzStorageQueueStoredAccessPolicy'.
2021-03-02T13:30:37.7228601Z VERBOSE: Importing cmdlet 'Close-AzStorageFileHandle'.
2021-03-02T13:30:37.7230531Z VERBOSE: Importing cmdlet 'Get-AzStorageFile'.
2021-03-02T13:30:37.7234895Z VERBOSE: Importing cmdlet 'Get-AzStorageFileContent'.
2021-03-02T13:30:37.7241412Z VERBOSE: Importing cmdlet 'Get-AzStorageFileCopyState'.
2021-03-02T13:30:37.7244529Z VERBOSE: Importing cmdlet 'Get-AzStorageFileHandle'.
2021-03-02T13:30:37.7250693Z VERBOSE: Importing cmdlet 'Get-AzStorageShare'.
2021-03-02T13:30:37.7254207Z VERBOSE: Importing cmdlet 'Get-AzStorageShareStoredAccessPolicy'.
2021-03-02T13:30:37.7258775Z VERBOSE: Importing cmdlet 'New-AzStorageDirectory'.
2021-03-02T13:30:37.7263111Z VERBOSE: Importing cmdlet 'New-AzStorageFileSAS***'.
2021-03-02T13:30:37.7267053Z VERBOSE: Importing cmdlet 'New-AzStorageShare'.
2021-03-02T13:30:37.7271405Z VERBOSE: Importing cmdlet 'New-AzStorageShareSAS***'.
2021-03-02T13:30:37.7277603Z VERBOSE: Importing cmdlet 'New-AzStorageShareStoredAccessPolicy'.
2021-03-02T13:30:37.7278833Z VERBOSE: Importing cmdlet 'Remove-AzStorageDirectory'.
2021-03-02T13:30:37.7283863Z VERBOSE: Importing cmdlet 'Remove-AzStorageFile'.
2021-03-02T13:30:37.7287964Z VERBOSE: Importing cmdlet 'Remove-AzStorageShare'.
2021-03-02T13:30:37.7292188Z VERBOSE: Importing cmdlet 'Remove-AzStorageShareStoredAccessPolicy'.
2021-03-02T13:30:37.7296621Z VERBOSE: Importing cmdlet 'Set-AzStorageFileContent'.
2021-03-02T13:30:37.7300973Z VERBOSE: Importing cmdlet 'Set-AzStorageShareQuota'.
2021-03-02T13:30:37.7304961Z VERBOSE: Importing cmdlet 'Set-AzStorageShareStoredAccessPolicy'.
2021-03-02T13:30:37.7308759Z VERBOSE: Importing cmdlet 'Start-AzStorageFileCopy'.
2021-03-02T13:30:37.7313162Z VERBOSE: Importing cmdlet 'Stop-AzStorageFileCopy'.
2021-03-02T13:30:37.7317759Z VERBOSE: Importing cmdlet 'Disable-AzStorageDeleteRetentionPolicy'.
2021-03-02T13:30:37.7322246Z VERBOSE: Importing cmdlet 'Disable-AzStorageStaticWebsite'.
2021-03-02T13:30:37.7326122Z VERBOSE: Importing cmdlet 'Enable-AzStorageDeleteRetentionPolicy'.
2021-03-02T13:30:37.7330159Z VERBOSE: Importing cmdlet 'Enable-AzStorageStaticWebsite'.
2021-03-02T13:30:37.7334004Z VERBOSE: Importing cmdlet 'Get-AzStorageCORSRule'.
2021-03-02T13:30:37.7337904Z VERBOSE: Importing cmdlet 'Get-AzStorageServiceLoggingProperty'.
2021-03-02T13:30:37.7355537Z VERBOSE: Importing cmdlet 'Get-AzStorageServiceMetricsProperty'.
2021-03-02T13:30:37.7356467Z VERBOSE: Importing cmdlet 'Get-AzStorageServiceProperty'.
2021-03-02T13:30:37.7361190Z VERBOSE: Importing cmdlet 'New-AzStorageAccountSAS***'.
2021-03-02T13:30:37.7365239Z VERBOSE: Importing cmdlet 'New-AzStorageContext'.
2021-03-02T13:30:37.7369146Z VERBOSE: Importing cmdlet 'Remove-AzStorageCORSRule'.
2021-03-02T13:30:37.7374280Z VERBOSE: Importing cmdlet 'Set-AzStorageCORSRule'.
2021-03-02T13:30:37.7378791Z VERBOSE: Importing cmdlet 'Set-AzStorageServiceLoggingProperty'.
2021-03-02T13:30:37.7383140Z VERBOSE: Importing cmdlet 'Set-AzStorageServiceMetricsProperty'.
2021-03-02T13:30:37.7387373Z VERBOSE: Importing cmdlet 'Update-AzStorageServiceProperty'.
2021-03-02T13:30:37.7391593Z VERBOSE: Importing cmdlet 'Set-AzStorageContainerAcl'.
2021-03-02T13:30:37.7396045Z VERBOSE: Importing cmdlet 'Get-AzStorageBlobQueryResult'.
2021-03-02T13:30:37.7400670Z VERBOSE: Importing cmdlet 'Remove-AzStorageBlob'.
2021-03-02T13:30:37.7404831Z VERBOSE: Importing cmdlet 'Set-AzStorageBlobContent'.
2021-03-02T13:30:37.7409206Z VERBOSE: Importing cmdlet 'Get-AzStorageBlob'.
2021-03-02T13:30:37.7413466Z VERBOSE: Importing cmdlet 'Get-AzStorageBlobContent'.
2021-03-02T13:30:37.7418421Z VERBOSE: Importing cmdlet 'Get-AzStorageBlobCopyState'.
2021-03-02T13:30:37.7422476Z VERBOSE: Importing cmdlet 'Get-AzStorageContainer'.
2021-03-02T13:30:37.7426576Z VERBOSE: Importing cmdlet 'Get-AzStorageContainerStoredAccessPolicy'.
2021-03-02T13:30:37.7430745Z VERBOSE: Importing cmdlet 'New-AzStorageBlobSAS***'.
2021-03-02T13:30:37.7436151Z VERBOSE: Importing cmdlet 'New-AzStorageContainer'.
2021-03-02T13:30:37.7442022Z VERBOSE: Importing cmdlet 'New-AzStorageContainerSAS***'.
2021-03-02T13:30:37.7446648Z VERBOSE: Importing cmdlet 'New-AzStorageContainerStoredAccessPolicy'.
2021-03-02T13:30:37.7451085Z VERBOSE: Importing cmdlet 'Remove-AzStorageContainer'.
2021-03-02T13:30:37.7455387Z VERBOSE: Importing cmdlet 'Remove-AzStorageContainerStoredAccessPolicy'.
2021-03-02T13:30:37.7459857Z VERBOSE: Importing cmdlet 'Set-AzStorageContainerStoredAccessPolicy'.
2021-03-02T13:30:37.7463760Z VERBOSE: Importing cmdlet 'Start-AzStorageBlobCopy'.
2021-03-02T13:30:37.7468127Z VERBOSE: Importing cmdlet 'Start-AzStorageBlobIncrementalCopy'.
2021-03-02T13:30:37.7472506Z VERBOSE: Importing cmdlet 'Stop-AzStorageBlobCopy'.
2021-03-02T13:30:37.7476919Z VERBOSE: Importing cmdlet 'Get-AzDataLakeGen2ChildItem'.
2021-03-02T13:30:37.7481306Z VERBOSE: Importing cmdlet 'Get-AzDataLakeGen2ItemContent'.
2021-03-02T13:30:37.7485682Z VERBOSE: Importing cmdlet 'Get-AzDataLakeGen2Item'.
2021-03-02T13:30:37.7490452Z VERBOSE: Importing cmdlet 'Move-AzDataLakeGen2Item'.
2021-03-02T13:30:37.7494696Z VERBOSE: Importing cmdlet 'New-AzDataLakeGen2Item'.
2021-03-02T13:30:37.7508939Z VERBOSE: Importing cmdlet 'Remove-AzDataLakeGen2AclRecursive'.
2021-03-02T13:30:37.7513531Z VERBOSE: Importing cmdlet 'Remove-AzDataLakeGen2Item'.
2021-03-02T13:30:37.7517601Z VERBOSE: Importing cmdlet 'Set-AzDataLakeGen2AclRecursive'.
2021-03-02T13:30:37.7521858Z VERBOSE: Importing cmdlet 'Update-AzDataLakeGen2AclRecursive'.
2021-03-02T13:30:37.7524336Z VERBOSE: Importing cmdlet 'Update-AzDataLakeGen2Item'.
2021-03-02T13:30:37.7528154Z VERBOSE: Importing alias 'New-AzDataLakeGen2ItemAclObject'.
2021-03-02T13:30:37.7532481Z VERBOSE: Importing alias 'Disable-AzStorageSoftDelete'.
2021-03-02T13:30:37.7536316Z VERBOSE: Importing alias 'Enable-AzStorageSoftDelete'.
2021-03-02T13:30:37.7540341Z VERBOSE: Importing alias 'Get-AzStorageContainerAcl'.
2021-03-02T13:30:37.7544205Z VERBOSE: Importing alias 'Get-AzDatalakeGen2FileSystem'.
2021-03-02T13:30:37.7547909Z VERBOSE: Importing alias 'New-AzDatalakeGen2FileSystem'.
2021-03-02T13:30:37.7552211Z VERBOSE: Importing alias 'Remove-AzDatalakeGen2FileSystem'.
2021-03-02T13:30:37.7556515Z VERBOSE: Importing alias 'Start-CopyAzureStorageBlob'.
2021-03-02T13:30:37.7561931Z VERBOSE: Importing alias 'Stop-CopyAzureStorageBlob'.
2021-03-02T13:30:40.1156770Z temp debugging before
2021-03-02T13:30:40.1262607Z temp debugging after
2021-03-02T13:30:40.2026427Z VERBOSE: Importing function 'CmdletHasMember'.
2021-03-02T13:30:40.2045280Z VERBOSE: Importing function 'Disconnect-AzureAndClearContext'.
2021-03-02T13:30:40.2053009Z VERBOSE: Importing function 'Initialize-AzModule'.
2021-03-02T13:30:40.2063670Z VERBOSE: Importing function 'Initialize-Azure'.
2021-03-02T13:30:40.2073033Z VERBOSE: Importing function 'Initialize-AzureRMModule'.
2021-03-02T13:30:40.2083514Z VERBOSE: Importing function 'Remove-EndpointSecrets'.
2021-03-02T13:30:40.2091265Z VERBOSE: Importing function 'Update-PSModulePathForHostedAgentWithLatestModule'.
2021-03-02T13:30:40.2179672Z VERBOSE: Trying to disconnect from Azure and clear context at process scope
2021-03-02T13:30:40.2241049Z VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted 
2021-03-02T13:30:40.2241734Z versions.
2021-03-02T13:30:40.2258265Z VERBOSE: Populating RepositorySourceLocation property for module Az.Accounts.
2021-03-02T13:30:40.2277772Z VERBOSE: Loading module from path 'C:\Modules\az_5.5.0\Az.Accounts\2.2.5\Az.Accounts.psm1'.
2021-03-02T13:30:40.2580815Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop
2021-03-02T13:30:41.2035478Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop
2021-03-02T13:30:41.6104273Z ##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=AzurePowerShellV4]{"targetAzurePs":""}
2021-03-02T13:30:41.6136379Z ##[debug]Caught exception from task script.
2021-03-02T13:30:41.6145751Z ##[debug]Error record:
2021-03-02T13:30:41.6393771Z ##[debug]ForEach-Object : The property 'ContentType' cannot be found on this object. Verify that the property exists and can be set.
2021-03-02T13:30:41.6406666Z ##[debug]At D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\azurepowershell.ps1:227 char:13
2021-03-02T13:30:41.6418030Z ##[debug]+             ForEach-Object {
2021-03-02T13:30:41.6429482Z ##[debug]+             ~~~~~~~~~~~~~~~~
2021-03-02T13:30:41.6440949Z ##[debug]    + CategoryInfo          : InvalidOperation: (:) [ForEach-Object], RuntimeException
2021-03-02T13:30:41.6452161Z ##[debug]    + FullyQualifiedErrorId : PropertyNotFound,Microsoft.PowerShell.Commands.ForEachObjectCommand
2021-03-02T13:30:41.6462820Z ##[debug] 
2021-03-02T13:30:41.6480985Z ##[debug]Script stack trace:
2021-03-02T13:30:41.6514721Z ##[debug]at , D:\a\_temp\fed3f077-46ea-40c9-ad7d-79d7eb354b2a.ps1: line 6
2021-03-02T13:30:41.6525748Z ##[debug]at , : line 1
2021-03-02T13:30:41.6537483Z ##[debug]at , D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\azurepowershell.ps1: line 230
2021-03-02T13:30:41.6548675Z ##[debug]at , D:\a\_tasks\AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62\4.182.0\azurepowershell.ps1: line 226
2021-03-02T13:30:41.6559735Z ##[debug]at , : line 1
2021-03-02T13:30:41.6573043Z ##[debug]at , : line 22
2021-03-02T13:30:41.6584386Z ##[debug]at , : line 18
2021-03-02T13:30:41.6595423Z ##[debug]at , : line 1
2021-03-02T13:30:41.6612996Z ##[debug]Exception:
2021-03-02T13:30:41.6658264Z ##[debug]System.Management.Automation.RuntimeException: The property 'ContentType' cannot be found on this object. Verify that the property exists and can be set.
2021-03-02T13:30:41.6669622Z ##[debug]   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
2021-03-02T13:30:41.6772131Z ##[debug]   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
2021-03-02T13:30:41.6784214Z ##[debug]   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2021-03-02T13:30:41.6796078Z ##[debug]   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
2021-03-02T13:30:41.6807246Z ##[debug]   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
2021-03-02T13:30:41.6818623Z ##[debug]   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
2021-03-02T13:30:41.6830323Z ##[debug]   at System.Management.Automation.ScriptBlock.InvokeWithPipeImpl(ScriptBlockClauseToInvoke clauseToInvoke, Boolean createLocalScope, Dictionary`2 functionsToDefine, List`1 variablesToDefine, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Object[] args)
2021-03-02T13:30:41.6841207Z ##[debug]   at System.Management.Automation.ScriptBlock.<>c__DisplayClass57_0.b__0()
2021-03-02T13:30:41.6852300Z ##[debug]   at System.Management.Automation.Runspaces.RunspaceBase.RunActionIfNoRunningPipelinesWithThreadCheck(Action action)
2021-03-02T13:30:41.6863848Z ##[debug]   at System.Management.Automation.ScriptBlock.InvokeWithPipe(Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Pipe outputPipe, InvocationInfo invocationInfo, Boolean propagateAllExceptionsToTop, List`1 variablesToDefine, Dictionary`2 functionsToDefine, Object[] args)
2021-03-02T13:30:41.6875091Z ##[debug]   at System.Management.Automation.ScriptBlock.InvokeUsingCmdlet(Cmdlet contextCmdlet, Boolean useLocalScope, ErrorHandlingBehavior errorHandlingBehavior, Object dollarUnder, Object input, Object scriptThis, Object[] args)
2021-03-02T13:30:41.6887070Z ##[debug]   at Microsoft.PowerShell.Commands.ForEachObjectCommand.ProcessRecord()
2021-03-02T13:30:41.6898215Z ##[debug]   at System.Management.Automation.CommandProcessor.ProcessRecord()
2021-03-02T13:30:41.7104276Z ##[error]The property 'ContentType' cannot be found on this object. Verify that the property exists and can be set.
2021-03-02T13:30:41.7115580Z ##[debug]Processed: ##vso[task.logissue type=error]The property 'ContentType' cannot be found on this object. Verify that the property exists and can be set.
2021-03-02T13:30:41.7117988Z ##[debug]Processed: ##vso[task.complete result=Failed]
2021-03-02T13:30:41.7671422Z ##[section]Finishing: Update Azure Blob storage content types

@AmrutaKawade
Copy link
Contributor

I followed exact similar steps as yours but its not reproing for me.
can you add echo $ctxt step as well after
$ctxt = New-AzStorageContext -UseConnectedAccount -StorageAccountName "wwtwebstatic

I think service connection which is being used in task doesn't have access to storage container or expired.

@pkgw
Copy link
Author

pkgw commented Mar 2, 2021

Logs here.

Not obvious to me if there's an auth problem from the logging info, but I'll try to explore the possibility.

@pkgw
Copy link
Author

pkgw commented Mar 2, 2021

I tried adding a specific new Blob RBAC role for the service principal and that seems to have fixed the problem! Thank you for your help in figuring out what was going on.

I would say that there's a "bug" here in the sense that the cause of the failure was quite hard to pin down, but I doubt that azure-pipelines-tasks is the place where any fix would go. Feel free to close or transfer this issue as you see fit.

edit BTW, my guess is that this stopped working beacuse the service principal hit the two-year expiration date mentioned in the docs, — I think that timeline would be about right.

@AmrutaKawade
Copy link
Contributor

@pkgw yes you are right. As I stated earlier as well service principal might have expired.

Since this task just connects to Azure and make available Az modules. And every user might have different Azure Powershell Script written. its difficult to fix it in Task.

Since its resolved for you I am closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants