gpt4 book ai didi

azure - 使用 ARM 模板创建 SendGrid 帐户失败,且不接受法律条款

转载 作者:行者123 更新时间:2023-12-03 02:43:28 25 4
gpt4 key购买 nike

我正在尝试遵循本教程:

https://anthonychu.ca/post/arm-template-storage-sendgrid/

我的构建管道工作正常,但是当它发布时,它失败并出现以下错误:

"User failed validation to purchase resources. Error message: 'Legal terms have not been accepted for this item on this subscription: '87ce59eb-a0b7-428c-8b0a-506da6569d92'. To accept legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms and Set-AzureRmMarketplaceTerms API(https://go.microsoft.com/fwlink/?linkid=862451), to accept the terms using Azure CLI, please use az vm image accpet-terms (https://go.microsoft.com/fwlink/?linkid=2110637) or deploy via the Azure portal to accept the terms'"

它声明我可以使用 powershell,但这在使用 ARM 模板时似乎并不适用,而且我在部署时似乎找不到接受条款的选项。

有谁知道如何在不使用 powershell 的情况下完成此操作?

最佳答案

2 个选项,或者使用提供的 powershell cmdlet 来接受术语:

Get-AzMarketplaceTerms -Publisher 'Sendgrid' -Product 'sendgrid_azure' -Name 'free' | Set-AzMarketplaceTerms -Accept

或者使用门户创建一次 sendgrid,之后模板即可工作

对于计划使用此模板的每个订阅,您都必须执行这两个选项

关于azure - 使用 ARM 模板创建 SendGrid 帐户失败,且不接受法律条款,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59841480/

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