简体   繁体   English

Azure:如何解决创建服务原则时出现的错误?

[英]Azure: How do I fix this Error when Creating Service Principle?

I'm new-ish to Azure. I'm following along with a Pluralsight tutorial to learn how to programmatically access an Azure Media Service with c#, and it's telling me to create a Service Principle.我是 Azure 的新手。我正在按照 Pluralsight 教程学习如何使用 c# 以编程方式访问 Azure 媒体服务,它告诉我创建服务原则。

I'm using this command in Visual Studio Developer Powershell:我在 Visual Studio Developer Powershell 中使用此命令:

az ams account sp create -a mymediaservice -g mymediaservice --subscription MY_SUBSCRIPTION_NAME

Yes, my resource group name matches my media service name.是的,我的资源组名称与我的媒体服务名称匹配。 Different from the tutorial, I had to add the subscription name to the command, because the default subscription didn't match the subscription I'm trying to work in.与教程不同,我必须将订阅名称添加到命令中,因为默认订阅与我尝试使用的订阅不匹配。

I get this error:我收到此错误:

Values of identifierUris property must use a verified domain of the organization or its subdomain: 'http://mymediaservice-access-sp'

Can anyone explain this in a simplified way, telling me step by step how to get this done?任何人都可以用简化的方式解释这一点,一步一步地告诉我如何完成这项工作吗?

This can happen if you run an older version of the Azure Cli.如果您运行旧版本的 Azure Cli,就会发生这种情况。 I had the same problem a week ago and managed to solve it by updating the cli using this command:一周前我遇到了同样的问题,并设法通过使用以下命令更新 cli 来解决它:

az upgrade

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 gcp 云运行错误 505“服务不可用”? - How do I fix gcp cloud run error 505, "Service Unavailable"? 创建 GoogleFit 数据源时如何修复 403 错误 - How to fix 403 error when creating GoogleFit datasource 如何修复变异运算符不是可变错误? - How do i fix mutating operator isn't mutable error? 在Azure发布天气预报API出现500错误,如何调试? - 500 error when I publish the weatherforecast API in Azure, how do I debug this? 如何以编程方式访问 Azure 媒体服务内的存储容器? - How do I programmatically access a Storage Container inside an Azure Media Service? SAS 令牌使用 Azure java 目录级别的 ADLS Gen2 AD 服务原则 - SAS token using Azure AD Service Principle for ADLS Gen2 at directory level in java 使用 Google 的 API Explorer 发送 Firebase 云消息时,如何解决“THIRD_PARTY_AUTH_ERROR”背后的问题? - How do I fix the problem behind "THIRD_PARTY_AUTH_ERROR" when using Google's API Explorer to send a Firebase Cloud Messaging message? 如何使用 VSCode 修复 Azure web 应用程序部署错误? - How fix Azure web app deploy error with VSCode? 创建EMR集群出错,EMR服务角色无效 - Error when creating EMR cluster, EMR service role is invalid 如何修复 masm x86 中未解决的外部错误 - How do I fix error unreolved externals in masm x86
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM