Skip to content

Commit f6c0c58

Browse files
committed
updadte cmndlets help
1 parent 0791ba4 commit f6c0c58

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmADAppCredential.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ The application is identified by supplying either the application object id or a
4545

4646
### -------------------------- Example 1 --------------------------
4747
```
48-
PS E:\> New-AzureRmADAppCredential -ObjectId 1f89cf81-0146-4f4e-beae-2007d0668416 -Password P@ssw0rd!
48+
PS E:\> $SecureStringPassword = ConvertTo-SecureString -String "password" -AsPlainText -Force
49+
PS E:\> New-AzureRmADAppCredential -ObjectId 1f89cf81-0146-4f4e-beae-2007d0668416 -Password $SecureStringPassword
4950
```
5051

5152
A new password credential is added to an existing application.

src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmADApplication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Creates a new azure active directory application without any credentials.
6262

6363
### -------------------------- Create new AAD application with password. --------------------------
6464
```
65+
PS E:\> $SecureStringPassword = ConvertTo-SecureString -String "password" -AsPlainText -Force
6566
PS C:\> New-AzureRmADApplication -DisplayName "NewApplication" -HomePage "http://www.microsoft.com" -IdentifierUris "http:
66-
//NewApplication" -Password "password"
67+
//NewApplication" -Password $SecureStringPassword
6768
```
6869

6970
Creates a new azure active directory application and associates password credentials with it.

src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmADServicePrincipal.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ DemoApp ServicePrincipal f95b6f5c-fc98-4af0
9494

9595
### -------------------------- Example 2 --------------------------
9696
```
97-
New-AzureRmADServicePrincipal -DisplayName SPForNoExistingApp
97+
$SecureStringPassword = ConvertTo-SecureString -String "password" -AsPlainText -Force
98+
New-AzureRmADServicePrincipal -DisplayName SPForNoExistingApp -Password $SecureStringPassword
9899
```
99100

100101
Creates a new service principal.

src/ResourceManager/Resources/Commands.Resources/help/New-AzureRmADSpCredential.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ The service principal is identified by supplying either the object id or service
4545

4646
### -------------------------- Example 1 --------------------------
4747
```
48-
PS E:\> New-AzureRmADSpCredential -ObjectId 1f99cf81-0146-4f4e-beae-2007d0668476 -Password "P@ssw0rd!"
48+
PS E:\> $SecureStringPassword = ConvertTo-SecureString -String "password" -AsPlainText -Force
49+
PS E:\> New-AzureRmADSpCredential -ObjectId 1f99cf81-0146-4f4e-beae-2007d0668476 -Password $SecureStringPassword
4950
```
5051

5152
A new password credential is added to an existing service principal.

0 commit comments

Comments
 (0)