File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ while ($runCount -le $NumberOfIterations)
268268 {
269269 if (-not (Get-AzureRmVMImage - Location $ResourceLocation - PublisherName " MicrosoftWindowsServer" - Offer " WindowsServer" - Sku " 2016-Datacenter-Core" - ErrorAction SilentlyContinue))
270270 {
271- New-Server2016VMImage - ISOPath $WindowsISOPath - TenantId $TenantID - EnvironmentName $SvcAdminEnvironmentName - Version Core - AzureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false
271+ New-Server2016VMImage - ISOPath $WindowsISOPath - TenantId $TenantID - EnvironmentName $SvcAdminEnvironmentName - Location $ResourceLocation - Version Core - AzureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false
272272 }
273273 }
274274 }
@@ -288,7 +288,7 @@ while ($runCount -le $NumberOfIterations)
288288 }
289289 New-Item - Path $CanaryCustomImageFolder - ItemType Directory
290290 $CustomVHDPath = CopyImage - ImagePath $LinuxImagePath - OutputFolder $CanaryCustomImageFolder
291- Add-VMImage - publisher $linuxImagePublisher - offer $linuxImageOffer - sku $LinuxOSSku - version $linuxImageVersion - osDiskLocalPath $CustomVHDPath - osType Linux - tenantID $TenantID - azureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false - EnvironmentName $SvcAdminEnvironmentName
291+ Add-VMImage - publisher $linuxImagePublisher - offer $linuxImageOffer - sku $LinuxOSSku - version $linuxImageVersion - osDiskLocalPath $CustomVHDPath - osType Linux - tenantID $TenantID - azureStackCredentials $ServiceAdminCredentials - Location $ResourceLocation - CreateGalleryItem $false - EnvironmentName $SvcAdminEnvironmentName
292292 Remove-Item $CanaryCustomImageFolder - Force - Recurse
293293 }
294294 }
You can’t perform that action at this time.
0 commit comments