@@ -61,12 +61,12 @@ param (
6161 [parameter (HelpMessage = " Resource group under which all the utilities need to be placed" )]
6262 [Parameter (ParameterSetName = " default" , Mandatory = $false )] [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
6363 [ValidateNotNullOrEmpty ()]
64- [string ]$CanaryUtilitiesRG = " canur " + [Random ]::new().Next(1 , 999 ),
64+ [string ]$CanaryUtilitiesRG = " cnur " + [Random ]::new().Next(1 , 99 ),
6565 [parameter (HelpMessage = " Resource group under which the virtual machines need to be placed" )]
6666 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
6767 [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
6868 [ValidateNotNullOrEmpty ()]
69- [string ]$CanaryVMRG = " canvr " + [Random ]::new().Next(1 , 999 ),
69+ [string ]$CanaryVMRG = " cnvr " + [Random ]::new().Next(1 , 99 ),
7070 [parameter (HelpMessage = " Location where all the resource need to deployed and placed" )]
7171 [Parameter (ParameterSetName = " default" , Mandatory = $false )]
7272 [Parameter (ParameterSetName = " tenant" , Mandatory = $false )]
@@ -105,22 +105,26 @@ Import-Module -Name $PSScriptRoot\..\Connect\AzureStack.Connect.psm1 -Force
105105Import-Module - Name $PSScriptRoot \..\Infrastructure\AzureStack.Infra.psm1 - Force
106106Import-Module - Name $PSScriptRoot \..\ComputeAdmin\AzureStack.ComputeAdmin.psm1 - Force
107107
108- $storageAccName = $CanaryUtilitiesRG + " sa"
109- $storageCtrName = $CanaryUtilitiesRG + " sc"
110- $keyvaultName = $CanaryUtilitiesRG + " kv"
111- $keyvaultCertName = " ASCanaryVMCertificate"
112- $kvSecretName = $keyvaultName.ToLowerInvariant () + " secret"
113- $VMAdminUserName = " CanaryAdmin"
114- $VMAdminUserPass = " CanaryAdmin@123"
115- $canaryUtilPath = Join-Path - Path $env: TEMP - ChildPath " CanaryUtilities$ ( (Get-Date ).Ticks) "
116- $linuxImagePublisher = " Canonical"
117- $linuxImageOffer = " UbuntuServer"
118- $linuxImageVersion = " 1.0.0"
119-
120108$runCount = 1
121109$tmpLogname = $CanaryLogFileName
122110while ($runCount -le $NumberOfIterations )
123111{
112+ if ($NumberOfIterations -gt 1 )
113+ {
114+ $CanaryUtilitiesRG = $CanaryUtilitiesRG + $runCount
115+ $CanaryVMRG = $CanaryVMRG + $runCount
116+ }
117+ $storageAccName = $CanaryUtilitiesRG + " sa"
118+ $storageCtrName = $CanaryUtilitiesRG + " sc"
119+ $keyvaultName = $CanaryUtilitiesRG + " kv"
120+ $keyvaultCertName = " ASCanaryVMCertificate"
121+ $kvSecretName = $keyvaultName.ToLowerInvariant () + " secret"
122+ $VMAdminUserName = " CanaryAdmin"
123+ $VMAdminUserPass = " CanaryAdmin@123"
124+ $canaryUtilPath = Join-Path - Path $env: TEMP - ChildPath " CanaryUtilities$ ( (Get-Date ).Ticks) "
125+ $linuxImagePublisher = " Canonical"
126+ $linuxImageOffer = " UbuntuServer"
127+ $linuxImageVersion = " 1.0.0"
124128 if (Test-Path - Path $canaryUtilPath )
125129 {
126130 Remove-Item - Path $canaryUtilPath - Force - Recurse
@@ -173,6 +177,90 @@ while ($runCount -le $NumberOfIterations)
173177 $defaultSubscription | Select-AzureRmSubscription
174178 }
175179 }
180+
181+ Invoke-Usecase - Name ' ListFabricResourceProviderInfo' - Description " List FabricResourceProvider(FRP) information like storage shares, capacity, logical networks etc." - UsecaseBlock `
182+ {
183+ Invoke-Usecase - Name ' GetAzureStackInfraRole' - Description " List all infrastructure roles" - UsecaseBlock `
184+ {
185+ Get-AzSInfraRole - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
186+ }
187+
188+ Invoke-Usecase - Name ' GetAzureStackInfraRoleInstance' - Description " List all infrastructure role instances" - UsecaseBlock `
189+ {
190+ Get-AzSInfraRoleInstance - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
191+ }
192+
193+ Invoke-Usecase - Name ' GetAzureStackLogicalNetwork' - Description " List all logical networks" - UsecaseBlock `
194+ {
195+ Get-AzSLogicalNetwork - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
196+ }
197+
198+ Invoke-Usecase - Name ' GetAzureStackStorageCapacity' - Description " List storage capacity" - UsecaseBlock `
199+ {
200+ Get-AzSStorageCapacity - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
201+ }
202+
203+ Invoke-Usecase - Name ' GetAzureStackStorageShare' - Description " List all storage file shares" - UsecaseBlock `
204+ {
205+ Get-AzSStorageShare - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
206+ }
207+
208+ Invoke-Usecase - Name ' GetAzureStackScaleUnit' - Description " List Azure Stack scale units in specified Region" - UsecaseBlock `
209+ {
210+ Get-AzSScaleUnit - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
211+ }
212+
213+ Invoke-Usecase - Name ' GetAzureStackScaleUnitNode' - Description " List nodes in scale unit" - UsecaseBlock `
214+ {
215+ Get-AzSScaleUnitNode - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
216+ }
217+
218+ Invoke-Usecase - Name ' GetAzureStackIPPool' - Description " List all IP pools" - UsecaseBlock `
219+ {
220+ Get-AzSIPPool - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
221+ }
222+
223+ Invoke-Usecase - Name ' GetAzureStackMacPool' - Description " List all MAC address pools " - UsecaseBlock `
224+ {
225+ Get-AzSMacPool - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
226+ }
227+
228+ Invoke-Usecase - Name ' GetAzureStackGatewayPool' - Description " List all gateway pools" - UsecaseBlock `
229+ {
230+ Get-AzSGatewayPool - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
231+ }
232+
233+ Invoke-Usecase - Name ' GetAzureStackSLBMux' - Description " List all SLB MUX instances" - UsecaseBlock `
234+ {
235+ Get-AzSSLBMUX - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
236+ }
237+
238+ Invoke-Usecase - Name ' GetAzureStackGateway' - Description " List all gateway" - UsecaseBlock `
239+ {
240+ Get-AzSGateway - AzureStackCredentials $ServiceAdminCredentials - TenantID $TenantID - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
241+ }
242+ }
243+
244+ Invoke-Usecase - Name ' ListHealthResourceProviderAlerts' - Description " List all HealthResourceProvider(HRP) alerts " - UsecaseBlock `
245+ {
246+ Invoke-Usecase - Name ' GetAzureStackAlert' - Description " List all alerts" - UsecaseBlock `
247+ {
248+ Get-AzSAlert - TenantID $TenantID - AzureStackCredentials $ServiceAdminCredentials - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
249+ }
250+ }
251+
252+ Invoke-Usecase - Name ' ListUpdatesResourceProviderInfo' - Description " List URP information like summary of updates available, update to be applied, last update applied etc." - UsecaseBlock `
253+ {
254+ Invoke-Usecase - Name ' GetAzureStackUpdateSummary' - Description " List summary of updates status" - UsecaseBlock `
255+ {
256+ Get-AzSUpdateSummary - TenantID $TenantID - AzureStackCredentials $ServiceAdminCredentials - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
257+ }
258+
259+ Invoke-Usecase - Name ' GetAzureStackUpdateToApply' - Description " List all updates that can be applied" - UsecaseBlock `
260+ {
261+ Get-AzSUpdate - TenantID $TenantID - AzureStackCredentials $ServiceAdminCredentials - EnvironmentName $SvcAdminEnvironmentName - region $ResourceLocation
262+ }
263+ }
176264
177265 if ($WindowsISOPath )
178266 {
0 commit comments