@@ -39,22 +39,22 @@ New-AzureRmADAppCredential -ApplicationId <String> -Password <String> [-StartDat
39
39
```
40
40
41
41
## DESCRIPTION
42
- The New-AzureRmADAppCredential cmdlet can be used to add a new credential or to roll credentials for an application.
43
- The application is identified by supplying either the application object id or application Id .
42
+ The ** New-AzureRmADAppCredential** cmdlet can be used to add a new credential or to roll credentials for an application.
43
+ The application is identified by supplying either the application object ID or application ID .
44
44
45
45
## EXAMPLES
46
46
47
- ### Example 1:
47
+ ### Example 1: Add a new password credential to an existing application
48
48
49
49
50
50
```
51
51
PS C:\> New-AzureRmADAppCredential -ObjectId 1f89cf81-0146-4f4e-beae-2007d0668416 -Password P@ssw0rd!
52
52
```
53
53
54
- A new password credential is added to an existing application.
55
- In this example, the supplied password value is added to the application using the application object id .
54
+ This command adds a new password credential to an existing application.
55
+ In this example, the supplied password value is added to the application using the application object ID .
56
56
57
- ### Example 2:
57
+ ### Example 2: Add a new key credential to an existing application
58
58
59
59
60
60
```
@@ -69,20 +69,13 @@ $credValue = [System.Convert]::ToBase64String($binCert)
69
69
PS C:\> New-AzureRmADAppCredential -ApplicationId 4589cd6b-3d79-4bb4-93b8-a0b99f3bfc58 -CertValue $credValue -StartDate $cer.GetEffectiveDateString() -EndDate $cer.GetExpirationDateString()
70
70
```
71
71
72
- A new key credential is added to an existing application.
73
- In this example, the supplied base64 encoded public X509 certificate ("myapp.cer") is added to the application using the applicationId.
74
-
75
- ### -------------------------- Example 3 --------------------------
76
-
77
-
78
- ```
79
- PS C:\> New-AzureRmADAppCredential -ApplicationId 4589cd6b-3d79-4bb4-93b8-a0b99f3bfc58 -CertValue $credValue
80
- ```
72
+ This example adds a new key credential to an existing application.
73
+ In this example, the supplied base64 encoded public X509 certificate ("myapp.cer") is added to the application using the application ID.
81
74
82
75
## PARAMETERS
83
76
84
77
### -ObjectId
85
- The object id of the application to add the credentials to.
78
+ Specifies the object ID of the application that this cmdlet adds the credentials to.
86
79
87
80
``` yaml
88
81
Type : String
@@ -97,7 +90,7 @@ Accept wildcard characters: False
97
90
` ` `
98
91
99
92
### -Password
100
- The password to be associated with the application.
93
+ Specifies the password to be associated with the application.
101
94
102
95
` ` ` yaml
103
96
Type : String
@@ -112,7 +105,7 @@ Accept wildcard characters: False
112
105
` ` `
113
106
114
107
### -StartDate
115
- The effective start date of the credential usage.
108
+ Specifies the effective start date of the credential usage.
116
109
The default start date value is today.
117
110
For an "asymmetric" type credential, this must be set to on or after the date that the X509 certificate is valid from.
118
111
@@ -129,7 +122,7 @@ Accept wildcard characters: False
129
122
` ` `
130
123
131
124
### -EndDate
132
- The effective end date of the credential usage.
125
+ Specifies the effective end date of the credential usage.
133
126
The default end date value is one year from today.
134
127
For an "asymmetric" type credential, this must be set to on or before the date that the X509 certificate is valid.
135
128
@@ -185,7 +178,8 @@ Accept wildcard characters: False
185
178
` ` `
186
179
187
180
### -WhatIf
188
-
181
+ Shows what would happen if the cmdlet runs.
182
+ The cmdlet is not run.
189
183
190
184
` ` ` yaml
191
185
Type : SwitchParameter
@@ -215,7 +209,7 @@ Accept wildcard characters: False
215
209
` ` `
216
210
217
211
### -CertValue
218
- The value of the "asymmetric" credential type.
212
+ Specifies the value of the "asymmetric" credential type.
219
213
It represents the base 64 encoded certificate.
220
214
221
215
` ` ` yaml
@@ -231,7 +225,7 @@ Accept wildcard characters: False
231
225
` ` `
232
226
233
227
### -ApplicationId
234
- The id of the application to add the credentials to.
228
+ Specifies the ID of the application that this cmdlet adds the credentials to.
235
229
236
230
` ` ` yaml
237
231
Type : String
@@ -253,9 +247,8 @@ Accept wildcard characters: False
253
247
254
248
## RELATED LINKS
255
249
256
- [Get-AzureRmADAppCredential]()
257
-
258
- [Remove-AzureRmADAppCredential]()
250
+ [Get-AzureRmADAppCredential](./Get-AzureRmADAppCredential.md)
259
251
260
- [Get-AzureRmADApplication]( )
252
+ [Remove-AzureRmADAppCredential](./Remove-AzureRmADAppCredential.md )
261
253
254
+ [Get-AzureRmADApplication](./Get-AzureRmADApplication.md)
0 commit comments