0

I have installed Azure stack development kit and i am trying to install the App service.
Then when i have to run the PS1 script Create-AADIdentityApp.ps1 i fill in the following parameters

DirectoryTenantName
AdminArmEndpoint
TenantArmEndpoint
CertificateFilePath

Then i get the following error

New-Object : Exception calling ".ctor" with "3" argument(s): "The system cannot find the file specified.
"
At C:\app-service-certificate-install\Create-AADIdentityApp.ps1:81 char:24
    + ... rtificate = New-Object System.Security.Cryptography.X509Certificates. ...
    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

does anyone have any experience?

Mohnish
  • 1,010
  • 1
  • 12
  • 20

1 Answers1

0

You provided a invalid CertificateFilePath.

It should be Full path to the identity application certificate file generated earlier.

Please check and correct it.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20
  • I did I put C:\app-service-certificate-install\sso.appservice.************.onmicrosoft.com.pfx the script to create the certificates placed my asdk directory name in the certificate. but same error – dean martin Jul 13 '20 at 08:50