powershell - 另一个具有相同属性identifierUris值的对象已存在

标签 powershell azure

我正在 this key vault sample project 运行 setup.ps1 脚本 我执行过一次就成功了。

当我使用除 uri 之外的不同值再次运行它时,出现错误

New-AzureRmADApplication : Another object with the same value for property identifierUris already 
exists.
At C:\dev\key-vault-dotnet-quickstart\Setup.ps1:84 char:10
+ $adapp = New-AzureRmADApplication -DisplayName "$applicationName" -Ho ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-AzureRmADApplication], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.NewAzureADApplicationCommand

最佳答案

看来标识符 url 需要是唯一的

关于powershell - 另一个具有相同属性identifierUris值的对象已存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51228366/

相关文章:

powershell - 如何使用 Powershell Commandlet 在应用服务环境中创建 Azure WebApp

Azure 虚拟机规模集自动缩放

azure-ad-b2c - 如何防止重复使用 Oauth 授权代码?

Azure:无法将字节发送到 XContainer wad-tracefiles

powershell - 对Foreach对象的错误处理

powershell - 如何在 PowerShell 上解码字符串

powershell - 在 PowerShell 中将二进制类型 SID 转换为 System.Security.Principal.SecurityIdentifier

regex - Select-String:仅当字符串前面没有特定字符时才匹配字符串

powershell - Azure自动化DSC节点未拉取最新模块

azure - 用于获取 Azure Active Directory 中成员的 Objectid 的 Powershell 脚本