mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 02:46:51 +00:00
Fix CI for runners with powershell 7 (#8245)
This commit is contained in:
@@ -95,8 +95,12 @@ $targetKey = az storage account keys list `
|
||||
Write-Host ("Copying VHD blob from '{0}' to 'https://{1}.blob.core.windows.net/{2}/{3}'..." `
|
||||
-f $sourceDiskUri.Split('?')[0], $StorageAccountName, $StorageAccountContainerName, $VhdName)
|
||||
|
||||
if ($env:OS) {
|
||||
$sourceDiskUri = """{0}""" -f $sourceDiskUri
|
||||
}
|
||||
|
||||
az storage blob copy start `
|
||||
--source-uri """$sourceDiskUri""" `
|
||||
--source-uri $sourceDiskUri `
|
||||
--destination-blob $VhdName `
|
||||
--destination-container $StorageAccountContainerName `
|
||||
--account-name $StorageAccountName `
|
||||
|
||||
Reference in New Issue
Block a user