我正在尝试为中具有Azure数据工厂的资源组导出ARM模板,但在使用" export -AzureRmResourceGroup“时,它抛出如下警告,并且该模板中没有下载任何ADF架构。有没有办法用powershell下载ADF模板??
Export-AzureRmResourceGroup -ResourceGroupName ****************
WARNING: ExportTemplateCompletedWithErrors : Export template operation completed with errors. Some resources were not exported. Please see details for more information.
WARNING: ResourceTypeSchemaNotFound : The schema of resource type 'Microsoft.Databricks/workspaces' is not available. Resources of this type will not be exported to the template.
WARNING: ResourceTypeSchemaNotFound : The schema of resource type '**Microsoft.DataFactory/factories**' is not available. Resources of this type will not be exported to the template.
WARNING: ResourceTypeSchemaNotFound : The schema of resource type 'Microsoft.Portal/dashboards' is not available. Resources of this type will not be exported to the template.
发布于 2018-11-28 02:01:58
这是因为这些"ResourceTypeSchemas“在ARM模板中不可用。如果您进入门户并尝试获取资源模板,这并不重要。它也将在那里显示相同的错误。
发布于 2019-10-16 01:57:18
正如前面提到的there,目前还不支持DataFactory模板导出。
但是,我们在CI/CD中使用了一个解决方案。
首先,我们为数据工厂创建了一个虚拟的通用模板(参见下面的步骤),然后使用从数据工厂模板导出的ARM模板或adf_publish (参见下面的注释)分支来更新和最终确定数据工厂。
要创建虚拟数据工厂模板:
门户上的
提供的真实ARM模板对其进行更新
笔记
因此,我们必须首先创建一个虚拟DataFactory,然后用实际的DataFactory模板更新它。
发布于 2018-11-22 12:56:45
如果您只需要模板,并且您尝试通过PowerShell下载,那么我假设您有权访问该RG.So导航到Azure Portal->Resource Group
(其中包含ADF或您需要的任何资源)。在左侧导航栏中,您将找到以下Automation Script
。
点击它,模板就会出现。在这里,您可以直接download
模板
https://stackoverflow.com/questions/53416883
复制相似问题