File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ while ($runCount -le $NumberOfIterations)
182182 {
183183 if (-not (Get-AzureRmVMImage - Location $ResourceLocation - PublisherName " MicrosoftWindowsServer" - Offer " WindowsServer" - Sku " 2016-Datacenter-Core" - ErrorAction SilentlyContinue))
184184 {
185- New-Server2016VMImage - ISOPath $WindowsISOPath - TenantId $TenantID - ArmEndpoint $AdminArmEndpoint - Version Core - AzureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false
185+ New-Server2016VMImage - ISOPath $WindowsISOPath - TenantId $TenantID - EnvironmentName $SvcAdminEnvironmentName - Version Core - AzureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false
186186 }
187187 }
188188 }
@@ -200,7 +200,7 @@ while ($runCount -le $NumberOfIterations)
200200 }
201201 New-Item - Path $CanaryCustomImageFolder - ItemType Directory
202202 $CustomVHDPath = CopyImage - ImagePath $LinuxImagePath - OutputFolder $CanaryCustomImageFolder
203- Add-VMImage - publisher $linuxImagePublisher - offer $linuxImageOffer - sku $LinuxOSSku - version $linuxImageVersion - osDiskLocalPath $CustomVHDPath - osType Linux - tenantID $TenantID - azureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false - ArmEndpoint $AdminArmEndpoint
203+ Add-VMImage - publisher $linuxImagePublisher - offer $linuxImageOffer - sku $LinuxOSSku - version $linuxImageVersion - osDiskLocalPath $CustomVHDPath - osType Linux - tenantID $TenantID - azureStackCredentials $ServiceAdminCredentials - CreateGalleryItem $false - EnvironmentName $SvcAdminEnvironmentName
204204 Remove-Item $CanaryCustomImageFolder - Force - Recurse
205205 }
206206 }
You can’t perform that action at this time.
0 commit comments