microsoft / aad-app-credential-tools

Tooling for application credentials
MIT License
21 stars 23 forks source link

AadCertRollover.ps1 syntax error - critical script breaking issue #11

Open anesthetiize opened 3 years ago

anesthetiize commented 3 years ago

Issue on: https://github.com/microsoft/aad-app-credential-tools/blob/main/azure-site-recovery/AadCertRollover.ps1

Line 569 reads as follows:

Import-PFXCertificate -CertStoreLocation Cert:\localmachine\My –Exportable -FilePath $newPFXCertLocation

Note that there is an unrecognized character before the Exportable parameter flag.

It should be

Import-PFXCertificate -CertStoreLocation Cert:\localmachine\My -Exportable -FilePath $newPFXCertLocation

(A dash before Exportable)

This was breaking the script code execution and hence halting the rollover process.