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

标签 azure azure-devops azure-pipelines

我在通过 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/

相关文章:

tfs - NPM:仅安装丢失 - 如何加快 npm install

azure-devops - 无法扩展变量 '...' 。检测到循环引用

python - Azure 功能(消费 Linux 计划)无法与系统标识一起访问用于 zip 部署的存储帐户

azure - 状态 = 403 代码 ="AuthorizationFailure"消息 ="This request is not authorized to perform this operation"

azure - 集中管理的 Azure 管道

azure - 写入 Azure OMS 日志分析的延迟是多少?

java - 检测失败: Resource not found

azure - 使用 terraform 管理许多 azure 订阅

Azure kubernetes - 在 Azure API 管理中注册服务?

azure-devops - 如何从特定工件指定构建变量?