[英]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.