Azure:创建服务原则时如何修复此错误?

发布于 2025-01-20 11:59:12 字数 517 浏览 4 评论 0原文

我是新人对azure。我正在关注一个多元化教程,以学习如何使用C#编程访问Azure媒体服务,这告诉我创建服务原理。

我正在Visual Studio开发人员PowerShell中使用此命令:

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

是的,我的资源组名称与我的媒体服务名称匹配。与教程不同的是,我必须将订阅名称添加到命令中,因为默认订阅与我要使用的订阅不匹配。

我会遇到此错误:

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

任何人都可以简化的方式解释这一点,告诉我一步一步如何完成此操作?

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.

I'm using this command in 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

已下线请稍等 2025-01-27 11:59:12

如果运行旧版本的 Azure Cli,则可能会发生这种情况。一周前我遇到了同样的问题,并通过使用以下命令更新 cli 来解决它:

az upgrade

This can happen if you run an older version of the Azure Cli. I had the same problem a week ago and managed to solve it by updating the cli using this command:

az upgrade
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文