gpt4 book ai didi

azure - 如何将 Azure 资源注册为 Azure Active Directory 中的应用程序?

转载 作者:行者123 更新时间:2023-12-04 09:43:56 26 4
gpt4 key购买 nike

我有一个 Azure CDN。它有一个自定义域,我尝试注册自己的证书以支持 HTTPS。

我正在尝试按照此处的说明进行操作:https://learn.microsoft.com/en-us/azure/cdn/cdn-custom-ssl?tabs=option-2-enable-https-with-your-own-certificate

我已将我的证书上传到 Key Vault。那应该很好。我现在尝试向我的 Azure CDN 配置文件授予对 Key Vault 的访问权限,以便它获取证书。这就是教程中的这一步(注册 Azure CDN,步骤 #2)

enter image description here

该步骤显示 GUID (205478c0-bd83-4e1b-a9d6-db63a3e1e1c8)。那是从哪里来的?这是我的 Azure CDN 配置文件的标识符吗?如果是这样,我从哪里得到它?

我还注意到那里有两个命令:文本显示 New-AzADServicePrincipal,但屏幕截图显示 New-AzureRmADServicePrincipal。据推测,后者是基于资源管理器的(较旧的?)命令。但是,我应该使用哪一个?

此外,我认为我没有安装 Azure Powershell。我可以通过 Azure 门户使用 Cloud Shell 执行此操作吗?

尝试从 Cloud Shell 运行命令时看到的内容

enter image description here

最佳答案

That step shows a GUID (205478c0-bd83-4e1b-a9d6-db63a3e1e1c8). Where is that coming from? Is that the identifier for my Azure CDN Profile? If so, where would I get that?

当您使用 New 时,GUID 是 Microsoft 租户 (microsoft.onmicrosoft.com) 中 Multi-Tenancy AD 应用程序的应用程序 ID -AzADServicePrincipal 与 GUID,它将在您的 AAD 租户中创建与此 AD 应用程序相关的服务主体,它代表您的 CDN。

成功运行New-AzADServicePrincipal后,您可以在门户 -> Azure Active Directory -> 企业应用程序中找到它您的租户。

enter image description here

I also just noticed there are two commands there: The text shows New-AzADServicePrincipal, but the screenshot shows New-AzureRmADServicePrincipal. Presumably, the latter is the (older?) command based on Resource Manager. But, which one should I be using?

New-AzureRmADServicePrincipal 属于旧的 AzureRM模块,New-AzADServicePrincipal 属于新的 Az模块。您可以同时使用它们,但我建议您使用 New-AzADServicePrincipal,因为 AzureRM 模块已弃用,并且不会再更新。

Also, I don't think I have Azure Powershell installed. Can I do this using Cloud Shell via the Azure Portal?

当然可以。只需在 Cloud shell 中运行即可,无需手动安装任何模块。

关于azure - 如何将 Azure 资源注册为 Azure Active Directory 中的应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62206432/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com