0

我已经安装了 Azure stack 开发工具包,并且正在尝试安装 App 服务。
然后当我必须运行 PS1 脚本时,Create-AADIdentityApp.ps1我填写以下参数

DirectoryTenantName
AdminArmEndpoint
TenantArmEndpoint
CertificateFilePath

然后我收到以下错误

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

有人有经验吗?

4

1 回答 1

0

您提供了无效的CertificateFilePath.

它应该是前面生成的身份应用证书文件的完整路径

请检查并更正。

于 2020-07-13T03:09:48.513 回答