Skip to content

Commit f0fc747

Browse files
committed
Updating instructions in README to reflect disconnected scenarios
1 parent a024080 commit f0fc747

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

CanaryValidator/README.md

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Set-Location -Path ".\AzureStack-Tools-master\CanaryValidator" -PassThru
1818
# Install-Module -Name 'AzureRm.Bootstrapper'
1919
# Install-AzureRmProfile -profile '2017-03-09-profile' -Force
2020
# Install-Module -Name AzureStack -RequiredVersion 1.2.11
21-
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "<Tenant Admin username>", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
22-
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "<Service Admin username>", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
21+
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
22+
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
2323
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -TenantArmEndpoint "<Tenant ARM endpoint>" -TenantAdminCredentials $TenantAdminCreds
2424
```
2525

@@ -30,11 +30,31 @@ $ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "<Ser
3030
# Install-Module -Name 'AzureRm.Bootstrapper'
3131
# Install-AzureRmProfile -profile '2017-03-09-profile' -Force
3232
# Install-Module -Name AzureStack -RequiredVersion 1.2.11
33-
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "<Tenant Admin username>", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
34-
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "<Service Admin username>", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
33+
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
34+
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
3535
.\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>"
3636
```
37-
## NOTE: When running Canary against ADFS environment, please make sure to pass in the TenantAdminObjectId parameter
37+
38+
# NOTE:
39+
# To retrieve the TenantID if not available already, you can use the PEP Get-AzureStackStampInformation available on the emergency console. Instructions on connecting to the PEP are available @ https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-privileged-endpoint
40+
# TenantID is the AADTenantID value returned from the PEP Get-AzureStackStampInformation
41+
42+
## NOTE: When running Canary against ADFS environment (disconnected), please make sure to pass in the tenantAdminObjectId parameter
43+
## NOTE:
44+
# If there is no tenant user available, you can create one and use it as shown below.
45+
```powershell
46+
$tenantAdminUserName = "CanaryTenantAdmin"
47+
$tenantAdminPassword = "PasswordOfYourChoice"
48+
$tenantAdminAccount = New-ADUser -Name $tenantAdminUserName -UserPrincipalName "$tenantAdminUserName@$env:USERDNSDOMAIN" -AccountPassword $tenantAdminPassword -ChangePasswordAtLogin $false -Enabled $true -PasswordNeverExpires $true -PassThru
49+
$tenantAdminUpn = $tenantAdminAccount.UserPrincipalName
50+
$tenantAdminObjectId = $tenantAdminAccount.SID.Value
51+
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential $tenantAdminUpn, (ConvertTo-SecureString $tenantAdminPassword -AsPlainText -Force)
52+
```
53+
## NOTE:
54+
# To install Azure PowerShell in a disconnected or a partially connected senario, follow the instructions @ https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install?view=azurestackps-1.2.9&toc=%2fpowershell%2fmodule%2ftoc.json%3fview%3dazurestackps-1.2.9&view=azurestackps-1.2.9#install-powershell-in-a-disconnected-or-in-a-partially-connected-scenario
55+
56+
## NOTE:
57+
# While running Canary make sure to pass the usernames in the format: [email protected]
3858

3959
## To list the usecases in Canary
4060

0 commit comments

Comments
 (0)