Skip to content

Commit e2f0292

Browse files
authored
Merge pull request #527 from sethmanheim/azsps
Update readme per Efi
2 parents fb5bd19 + a0d2dfd commit e2f0292

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

Identity/README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,39 @@ and for AD FS is `https://adfs.local.azurestack.external/adfs`.
4848
## Updating the Azure Stack AAD Home Directory (after installing updates or new Resource Providers)
4949

5050
After installing updates or hotfixes to Azure Stack, new features may be introduced which require new permissions to be
51-
granted to one or more identity applications. Granting these permissions requires Administrative access to the
52-
home directory, and so it cannot be done automatically.
51+
granted to one or more identity applications. Granting these permissions requires administrative access to the
52+
home directory, so it cannot be done automatically.
53+
54+
### Install PowerShell for Azure Stack
55+
56+
Use the latest PowerShell module for Azure Stack to register with Azure.
57+
If the latest version is not already installed, see [install PowerShell for Azure Stack](https://docs.microsoft.com/azure-stack/operator/azure-stack-powershell-install).
58+
59+
### Download Azure Stack tools
60+
61+
The Azure Stack tools GitHub repository contains PowerShell modules that support Azure Stack functionality, including updating permissions on Azure AD. During the registration process, you must import and use the **AzureStack.Connect** and **AzureStack.Identity** PowerShell modules, found in the Azure Stack tools repository, to update the permissions on Azure AD for the Azure stack stamp.
62+
63+
To ensure that you are using the latest version, delete any existing versions of the Azure Stack tools, then [download the latest version from GitHub](https://docs.microsoft.com/azure-stack/operator/azure-stack-powershell-download) before proceeding.
64+
65+
### Updating Azure AD tenant permissions
66+
67+
You should now be able to update the permissions which should clear the alert. Run the following commands from the **Azurestack-tools-master/identity** folder:
5368

5469
```powershell
70+
Import-Module ..\Connect\AzureStack.Connect.psm1
71+
Import-Module ..\Identity\AzureStack.Identity.psm1
72+
5573
$adminResourceManagerEndpoint = "https://adminmanagement.<region>.<domain>"
56-
$homeDirectoryTenantName = "<homeDirectoryTenant>.onmicrosoft.com" # this is the primary tenant Azure Stack is registered to
74+
75+
# This is the primary tenant Azure Stack is registered to:
76+
$homeDirectoryTenantName = "<homeDirectoryTenant>.onmicrosoft.com"
5777
5878
Update-AzsHomeDirectoryTenant -AdminResourceManagerEndpoint $adminResourceManagerEndpoint `
59-
-DirectoryTenantName $homeDirectoryTenantName -Verbose
79+
-DirectoryTenantName $homeDirectoryTenantName -Verbose
6080
```
6181

82+
The script prompts you for administrative credentials on the Azure AD tenant, and takes several minutes to run. The alert should clear after you have run the cmdlet.
83+
6284
## Enabling AAD Multi-Tenancy in Azure Stack
6385

6486
Allowing users and service principals from multiple AAD directory tenants to sign in and create resources on Azure Stack.

0 commit comments

Comments
 (0)