gpt4 book ai didi

azure - 创建 Azure 管道时出现 ResourcePurchaseValidationFailed 错误

转载 作者:行者123 更新时间:2023-12-02 08:31:48 25 4
gpt4 key购买 nike

我在通过 Azure Devops CD 启动虚拟机时遇到以下错误

Failure sending request: StatusCode=400 -- Original Error: Code="ResourcePurchaseValidationFailed" Message="User failed validation to purchase resources. Error message: 'Legal terms have not been accepted for this item on this subscription

最佳答案

您正在尝试部署需要接受额外法律和购买条款的资源。您需要识别资源(通常可能是非 Microsoft 的资源,例如 Oracle 数据库或任何网络设备)并在部署之前使用 Set-AzureRmMarketplaceTerms(对于任何新的非标准 Azure 产品一次)。

AzureRm:

Get-AzureRmMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" | Set-AzureRmMarketplaceTerms -Accept

文档:https://learn.microsoft.com/en-us/powershell/module/azurerm.marketplaceordering/set-azurermmarketplaceterms?view=azurermps-6.13.0

阿兹:

Get-AzMarketplaceTerms -Publisher "microsoft-ads" -Product "windows-data-science-vm" -Name "windows2016" | Set-AzMarketplaceTerms -Accept

文档:https://learn.microsoft.com/en-us/powershell/module/az.marketplaceordering/set-azmarketplaceterms?view=azps-3.4.0

关于azure - 创建 Azure 管道时出现 ResourcePurchaseValidationFailed 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60284654/

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