You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoke-Usecase-Name 'ListUpdatesResourceProviderInfo'-Description "List URP information like summary of updates available, update to be applied, last update applied etc."-UsecaseBlock `
267
267
{
268
268
Invoke-Usecase-Name 'GetAzureStackUpdateSummary'-Description "List summary of updates status"-UsecaseBlock `
Invoke-Usecase-Name 'VerifyReaderRoleAssignment'-Description "Verify if the Service Principle has got Reader role assigned successfully"-UsecaseBlock `
419
419
{
420
-
if (-not (Get-AzureRmRoleAssignment-RoleDefinitionName $readerRole.Name-Scope "/Subscriptions/$subscriptionID"-ErrorAction Stop))
420
+
if (-not (Get-AzureRmRoleAssignment-RoleDefinitionName $readerRole.Name-Scope "/Subscriptions/$subscriptionID"-ErrorAction Stop))
421
421
{
422
422
throw [System.Exception] "Unable to assign role ($readerRole.Name) to Service Principle ($servicePrincipal.Id) for subscription $tenantSubscriptionName"
423
423
}
@@ -427,15 +427,15 @@ while ($runCount -le $NumberOfIterations)
427
427
{
428
428
Invoke-Usecase-Name 'RemoveReaderRoleAssignment'-Description "Remove Reader role assignment from Service Principle - $($servicePrincipal.DisplayName)"-UsecaseBlock `
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -TenantArmEndpoint "<Tenant ARM endpoint>" -TenantAdminCredentials $TenantAdminCreds
22
24
```
23
25
24
-
# To execute Canary as Tenant Administrator (if Windows Server 2016 or Windows Server 2012-R2 images are not present in PIR)
26
+
## To execute Canary as Tenant Administrator (if Windows Server 2016 or Windows Server 2012-R2 images are not present in PIR)
27
+
25
28
```powershell
26
29
# Download the WS2016 ISO image from: https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-2016, and place it on your local machine
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -TenantArmEndpoint "<Tenant ARM endpoint>" -TenantAdminCredentials $TenantAdminCreds -WindowsISOPath "<path where the WS2016 ISO is present>"
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -ExclusionList "ListFabricResourceProviderInfo","ListUpdateResourceProviderInfo"
111
117
```
112
118
113
-
# Reading the results & logs
119
+
## Reading the results & logs
120
+
114
121
Canary generates log files in the TMP directory ($env:TMP). The logs can be found under the directory "CanaryLogs[DATETIME]". There are two types of logs generated, a text log and a JSON log. JSON log provides a quick and easy view of all the usecases and their corresponding results. Text log provides a more detailed output of each usecase execution, its output and results.
115
122
116
123
Each usecase entry in the JSON log consists of the following fields.
124
+
117
125
- Name
118
126
- Description
119
127
- StartTime
120
128
- EndTime
121
129
- Result
122
130
- Exception (in case a scenario fails)
123
131
124
-
The exception field is helpful to debug failed usecases.
125
-
132
+
The exception field is helpful to debug failed use cases.
0 commit comments