Skip to content

Commit 835e612

Browse files
author
Stephen Tramer
committed
Update Service Principal instructions for 6.0.0
1 parent 60222b5 commit 835e612

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs-conceptual/azurermps-6.0.0/create-azure-service-principal-azureps.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ The `New-AzureRmADServicePrincipal` cmdlet is used to create the service princip
7474
```powershell
7575
Add-Type -Assembly System.Web
7676
$password = [System.Web.Security.Membership]::GeneratePassword(16,3)
77-
New-AzureRmADServicePrincipal -ApplicationId 00c01aaa-1603-49fc-b6df-b78c4e5138b4 -Password $password
77+
$securePassword = ConvertTo-SecureString -Force -AsPlainText -String $password
78+
New-AzureRmADServicePrincipal -ApplicationId 00c01aaa-1603-49fc-b6df-b78c4e5138b4 -Password $securePassword
7879
```
7980

8081
```

0 commit comments

Comments
 (0)