Skip to content

Commit 0f9cbe4

Browse files
committed
Updating instructions in README to reflect disconnected scenarios
1 parent a114b3e commit 0f9cbe4

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

CanaryValidator/README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ 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+
# $TenantID = To retrieve the TenantID if not available already, you can use Get-AzureStackStampInformation cmdlet Using the privileged endpoint in Azure Stack. https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-privileged-endpoint
2122
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
2223
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
2324
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -TenantArmEndpoint "<Tenant ARM endpoint>" -TenantAdminCredentials $TenantAdminCreds
@@ -30,30 +31,27 @@ $ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "serv
3031
# Install-Module -Name 'AzureRm.Bootstrapper'
3132
# Install-AzureRmProfile -profile '2017-03-09-profile' -Force
3233
# Install-Module -Name AzureStack -RequiredVersion 1.2.11
34+
# $TenantID = To retrieve the TenantID if not available already, you can use Get-AzureStackStampInformation cmdlet Using the privileged endpoint in Azure Stack. https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-privileged-endpoint
3335
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Tenant Admin password>" -AsPlainText -Force)
3436
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
3537
.\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>"
3638
```
39+
## To execute Canary as Tenant Administrator (In ADFS disconnected scenario)
40+
Install Azure PowerShell - 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
41+
```powershell
42+
# TenantID = To retrieve the TenantID if not available already, you can use Get-AzureStackStampInformation cmdlet Using the privileged endpoint in Azure Stack. https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-privileged-endpoint
3743
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-
41-
TenantID is the AADTenantID value returned from the PEP Get-AzureStackStampInformation
44+
# If there is no tenant user available, you can create one and use it as shown below
4245
43-
## NOTE:
44-
When running Canary against ADFS environment (disconnected), please make sure to pass in the tenantAdminObjectId parameter
45-
## NOTE:
46-
If there is no tenant user is available, you can create one and use it as shown below.
47-
```powershell
48-
$tenantAdminUserName = "CanaryTenantAdmin"
49-
$tenantAdminPassword = "PasswordOfYourChoice"
46+
$tenantAdminUserName = "TenantAdminUser"
47+
$tenantAdminPassword = "<Tenant Admin password>"
5048
$tenantAdminAccount = New-ADUser -Name $tenantAdminUserName -UserPrincipalName "$tenantAdminUserName@$env:USERDNSDOMAIN" -AccountPassword $tenantAdminPassword -ChangePasswordAtLogin $false -Enabled $true -PasswordNeverExpires $true -PassThru
5149
$tenantAdminUpn = $tenantAdminAccount.UserPrincipalName
5250
$tenantAdminObjectId = $tenantAdminAccount.SID.Value
5351
$TenantAdminCreds = New-Object System.Management.Automation.PSCredential $tenantAdminUpn, (ConvertTo-SecureString $tenantAdminPassword -AsPlainText -Force)
52+
$ServiceAdminCreds = New-Object System.Management.Automation.PSCredential "[email protected]", (ConvertTo-SecureString "<Service Admin password>" -AsPlainText -Force)
53+
.\Canary.Tests.ps1 -TenantID "<TenantID from Azure Active Directory>" -TenantAdminObjectID $tenantAdminObjectId -AdminArmEndpoint "<Administrative ARM endpoint>" -ServiceAdminCredentials $ServiceAdminCreds -TenantArmEndpoint "<Tenant ARM endpoint>" -TenantAdminCredentials $TenantAdminCreds
5454
```
55-
## NOTE:
56-
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
5755

5856
## NOTE:
5957
While running Canary make sure to pass the usernames in the format: [email protected]

0 commit comments

Comments
 (0)