Skip to content

Commit

Permalink
Invoke-AzureWebAppStorageAzCopy: Hotfixing the prepared mitigation fo…
Browse files Browse the repository at this point in the history
…r a breaking change in Az.Storage, vol.2
  • Loading branch information
BenedekFarkas committed Nov 16, 2023
1 parent cb394e3 commit 21d6b5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function Invoke-AzureWebAppStorageAzCopy
ExpiryTime = (Get-Date).AddMinutes($SasLifetimeMinutes)
}
$destinationAccessToken = New-AzStorageAccountSASToken @accessTokenCommonParameters @destinationAccessTokenParameters
if ($destinationAccessToken -notlike '?*') { $destinationAccessToken = "?$destinationAccessToken" }
if (-not $destinationAccessToken.StartsWith('?')) { $destinationAccessToken = "?$sourceAccessToken" }
$currentContainerDestination = "https://$($destinationStorageConnection.AccountName).blob.core.windows.net/$($destinationContainerName + $destinationAccessToken)"
}
# If the destination path is overriden and is a valid local path, then create the destination folder for the
Expand Down

0 comments on commit 21d6b5a

Please sign in to comment.