You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a new application certificate credential with any end date value creates a new application certificate credential with a one-year expiry. EndDate parameter value is ignored.
I believe this is a mirror issue of #6505, albeit when using a certificate instead of a password.
Script/Steps for Reproduction
$DisplayName='My AAD App'$DomainName=$DisplayName.Replace('','.')
$Date=Get-Date# Create new self-signed certificate$Cert=New-SelfSignedCertificate-CertStoreLocation 'Cert:\LocalMachine\My'`-Subject "CN=$DomainName"`-KeySpec KeyExchange `-NotBefore $Date`-NotAfter $Date.AddYears(5)
$DomainName="http://$DomainName"# Create new AAD Application$AADApp=New-AzureRmADApplication-DisplayName $DisplayName-HomePage $DomainName-IdentifierUris $DomainName# Get cert content for uploading to AAD Application$keyValue= [System.Convert]::ToBase64String($cert.GetRawCertData())
# Add certificate for AAD Application authentication$AADApp|New-AzureRmADAppCredential-CertValue $keyValue-EndDate $cert.NotAfter-StartDate $cert.NotBefore
Module Version
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.3.0 AzureRM
@AndyHerb Hey Andy, this appears to be related to the issue you linked in the original description, so it will be fixed in the upcoming release of AzureRM (which will be available on July 3rd). Please let us know if you have any other questions!
Description
Creating a new application certificate credential with any end date value creates a new application certificate credential with a one-year expiry. EndDate parameter value is ignored.
I believe this is a mirror issue of #6505, albeit when using a certificate instead of a password.
Script/Steps for Reproduction
Module Version
Environment Data
Debug Output
The text was updated successfully, but these errors were encountered: