|
1 | | -#[CmdletBinding(DefaultParameterSetName="default")] |
| 1 | +[CmdletBinding(DefaultParameterSetName="default")] |
2 | 2 | param ( |
3 | 3 | [parameter(HelpMessage="Tenant ID value from Azure Stack active directory")] |
4 | 4 | [Parameter(ParameterSetName="default", Mandatory=$true)] |
@@ -208,7 +208,8 @@ while ($runCount -le $NumberOfIterations) |
208 | 208 | $asToken = NewAzureStackToken -AADTenantId $AADTenantId -EnvironmentDomainFQDN $EnvironmentDomainFQDN -Credentials $ServiceAdminCredentials -ArmEndPoint $AdminArmEndpoint |
209 | 209 | $defaultSubscription = Get-AzureRmSubscription -SubscriptionName "Default Provider Subscription" -ErrorAction Stop |
210 | 210 | $asCanaryQuotas = NewAzureStackDefaultQuotas -ResourceLocation $ResourceLocation -SubscriptionId $defaultSubscription.SubscriptionId -AADTenantID $AADTenantID -EnvironmentDomainFQDN $EnvironmentDomainFQDN -Credentials $ServiceAdminCredentials -ArmEndPoint $AdminArmEndPoint |
211 | | - New-AzureRMPlan -Name $tenantPlanName -DisplayName $tenantPlanName -ArmLocation $ResourceLocation -ResourceGroup $subscriptionRGName -SubscriptionId $defaultSubscription.SubscriptionId -AdminUri $AdminArmEndPoint -Token $asToken -QuotaIds $asCanaryQuotas -ErrorAction Stop |
| 211 | + New-AzureRMPlan -Name $tenantPlanName -DisplayName $tenantPlanName -ArmLocation $ResourceLocation -ResourceGroup $subscriptionRGName -QuotaIds $asCanaryQuotas -ErrorAction Stop |
| 212 | + |
212 | 213 | } |
213 | 214 |
|
214 | 215 | Invoke-Usecase -Name 'CreateTenantOffer' -Description "Create a tenant offer" -UsecaseBlock ` |
@@ -393,10 +394,15 @@ while ($runCount -le $NumberOfIterations) |
393 | 394 | { |
394 | 395 | $osVersion = "2016-Datacenter-Core" |
395 | 396 | } |
| 397 | + elseif (Get-AzureRmVMImage -Location $ResourceLocation -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Sku "2016-Datacenter" -ErrorAction SilentlyContinue) |
| 398 | + { |
| 399 | + $osVersion = "2016-Datacenter" |
| 400 | + } |
396 | 401 | elseif (Get-AzureRmVMImage -Location $ResourceLocation -PublisherName "MicrosoftWindowsServer" -Offer "WindowsServer" -Sku "2012-R2-Datacenter" -ErrorAction SilentlyContinue) |
397 | 402 | { |
398 | 403 | $osVersion = "2012-R2-Datacenter" |
399 | | - } |
| 404 | + } |
| 405 | + |
400 | 406 | $templateDeploymentName = "CanaryVMDeployment" |
401 | 407 | $parameters = @{"VMAdminUserName" = $VMAdminUserName; |
402 | 408 | "VMAdminUserPassword" = $VMAdminUserPass; |
|
0 commit comments