【发布时间】:2020-11-02 08:44:18
【问题描述】:
我尝试为 azure Data Factory 部署 ARM 模板,作为 DevOps 实施的一部分。
部署模式选择为complete,以便清理现有的 adf 实例并仅部署 ARM 模板中可用的管道。如下图
当我尝试运行部署时,它失败并出现错误
##[error]The deployment failed because some resources could not be deleted. This might be due to not having permissions to delete resources in the targeted scope. Please see https://aka.ms/arm-debug for usage details.
2020-11-02T05:33:34.5795133Z ##[error]Check out the troubleshooting guide to see if your issue is addressed: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops#troubleshooting
当我对这个问题进行调试时,我可以理解部署范围被选择为 资源组 并且部署任务试图删除该资源组下的所有资源并失败,因为它无法删除ADF 实例以外的资源,因为访问问题。
由于我无权访问其他资源,因此它们没有被删除,否则我可能会通过删除所有其他资源(如 ADLS、databricks、sql...)来搞砸一切。
由于我正在部署 ADF ARM 模板,有什么方法可以限制仅 ADF 实例的部署范围,这不会影响其他资源。
感谢任何潜在客户!
我对 azure 为 ARM 模板部署提供的 What-If 功能有疑问。我们可以在发布管道中将其用作 powershell 任务吗?
【问题讨论】:
标签: azure azure-devops azure-data-factory azure-data-factory-2