Skip to content

Commit b3f25c7

Browse files
author
TaraMeyer
authored
Merge pull request Azure#170 from isaiahwilliams/master
Corrected parameter for New-AzureADApplicationKeyCredential sample
2 parents 31ba1bf + 41a6899 commit b3f25c7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

azureadps-2.0-preview/AzureAD/New-AzureADApplicationKeyCredential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PS C:\> $base64Value = [System.Convert]::ToBase64String($bin)
5353
PS C:\> $bin = $cer.GetCertHash()
5454
PS C:\> $base64Thumbprint = [System.Convert]::ToBase64String($bin)
5555
PS C:\> $keyid = [System.Guid]::NewGuid().ToString()
56-
PS C:\> New-AzureADApplicationKeyCredential -ObjectId 009d786a-3503-4217-b8ab-db03d71c179a -CustomKeyIdentifier $base64Thumbprint -Type AsymmetricX509Cert -Usage Verify -Value $base64Value -StartDate $cer.GetEffectiveDateString() -EndDate cer.GetExpirationDateString()
56+
PS C:\> New-AzureADApplicationKeyCredential -ObjectId 009d786a-3503-4217-b8ab-db03d71c179a -CustomKeyIdentifier $base64Thumbprint -Type AsymmetricX509Cert -Usage Verify -Value $base64Value -StartDate $cer.GetEffectiveDateString() -EndDate $cer.GetExpirationDateString()
5757
```
5858

5959
The first seven commands create values for the application key credential and stores them in variables.

azureadps-2.0/AzureAD/New-AzureADApplicationKeyCredential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PS C:\> $base64Value = [System.Convert]::ToBase64String($bin)
5353
PS C:\> $bin = $cer.GetCertHash()
5454
PS C:\> $base64Thumbprint = [System.Convert]::ToBase64String($bin)
5555
PS C:\> $keyid = [System.Guid]::NewGuid().ToString()
56-
PS C:\> New-AzureADApplicationKeyCredential -ObjectId 009d786a-3503-4217-b8ab-db03d71c179a -CustomKeyIdentifier $base64Thumbprint -Type AsymmetricX509Cert -Usage Verify -Value $base64Value -StartDate $cer.GetEffectiveDateString() -EndDate cer.GetExpirationDateString()
56+
PS C:\> New-AzureADApplicationKeyCredential -ObjectId 009d786a-3503-4217-b8ab-db03d71c179a -CustomKeyIdentifier $base64Thumbprint -Type AsymmetricX509Cert -Usage Verify -Value $base64Value -StartDate $cer.GetEffectiveDateString() -EndDate $cer.GetExpirationDateString()
5757
```
5858

5959
The first seven commands create values for the application key credential and stores them in variables.

0 commit comments

Comments
 (0)