Skip to content

Commit 482d839

Browse files
shnatarashnatara
authored andcommitted
updated Readme
1 parent 8208c79 commit 482d839

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Identity/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Azure Stack Identity
22

3-
43
```powershell
54
Install-Module -Name AzureRM -RequiredVersion 1.2.8 -Scope CurrentUser
65
Install-Module -Name AzureStack
@@ -11,15 +10,15 @@ Then make sure the following modules are imported:
1110
Import-Module ..\Connect\AzureStack.Connect.psm1
1211
Import-Module ..\Identity\AzureStack.Identity.psm1
1312
```
14-
13+
## Creating a Service Principal in a disconnected (AD FS) topology
1514
You can create a Service Principal by executing the following command after importing the Identity Module
1615

1716
```powershell
18-
$servicePrincipal = New-ADGraphServicePrincipal -DisplayName "myServicePrincipal" -AdminCredential $(Get-Credential) -Verbose
17+
$servicePrincipal = New-ADGraphServicePrincipal -DisplayName "<YourServicePrincipalName>" -AdminCredential $(Get-Credential) -Verbose
1918
```
2019

2120
After the Service Principal is created, you should open your Azure Stack Portal to provide the appropriate level of RBAC to it. You can do this from the Access Control (IAM) tab of any resource. After the RBAC is given, you can login using the service principal as follows:
2221

2322
```powershell
24-
Add-AzureRmAccount -EnvironmentName AzureStack-Tenant -ServicePrincipal -CertificateThumbprint $servicePrincipal.Thumbprint -ApplicationId $servicePrincipal.ApplicationId -TenantId "<yourTenantId>"
23+
Add-AzureRmAccount -EnvironmentName "<AzureStackEnvironmentName>" -ServicePrincipal -CertificateThumbprint $servicePrincipal.Thumbprint -ApplicationId $servicePrincipal.ApplicationId -TenantId "<yourTenantId>"
2524
```

0 commit comments

Comments
 (0)