[英]Cloning an Azure resource group using Deployment Details?
I am trying to replicate an existing Azure resource group using arm templates from the automation script section but running into a warning message about 10 resources types cannot be exported yet. 我正在尝试使用自动化脚本部分中的手臂模板复制现有的Azure资源组,但是遇到无法导出有关10种资源类型的警告消息。 One being Azure data factory. 其中之一就是Azure数据工厂。 After searching online I found that templates for some resource types are not yet available. 在线搜索后,我发现某些资源类型的模板尚不可用。 While looking at the Deployment section in my resource group, I am able to see a deployment details download link for each resource. 在查看资源组中的“部署”部分时,我能够看到每个资源的部署详细信息下载链接。
Can those be used to recreate each resource into a new resource group? 可以使用这些资源将每个资源重新创建到一个新的资源组中吗? Or is my best bet downloading the template from the automation script section and manually adding the resources for which the template are not yet available? 还是我最好的选择是从自动化脚本部分下载模板并手动添加尚无法使用模板的资源?
Any help would be appreciated. 任何帮助,将不胜感激。
Some of the warnings I got: 我收到的一些警告:
ResourceTypeSchemaNotFound: ResourceTypeSchemaNotFound:
***The schema of resource type 'Microsoft.DataFactory/dataFactories' is not available. ***资源类型'Microsoft.DataFactory / dataFactories'的架构不可用。 Resources of this type will not be exported to the template. 此类型的资源不会导出到模板。 (Code: ResourceTypeSchemaNotFound, Target: Microsoft.DataFactory/dataFactories (代码:ResourceTypeSchemaNotFound,目标:Microsoft.DataFactory / dataFactories
ExportTemplateProviderError: all related to sql server ExportTemplateProviderError:全部与sql server相关
***Could not get resources of the type 'Microsoft.Sql/servers/connectionPolicies'. ***无法获取类型为“ Microsoft.Sql / servers / connectionPolicies”的资源。 Resources of this type will not be exported. 此类型的资源将不会导出。 (Code: ExportTemplateProviderError, Target: Microsoft.Sql/servers/connectionPolicies) (代码:ExportTemplateProviderError,目标:Microsoft.Sql / servers / connectionPolicies)
***Could not get resources of the type 'Microsoft.Sql/servers/backupLongTermRetentionVaults' ***无法获取类型为“ Microsoft.Sql / servers / backupLongTermRetentionVaults”的资源
***Could not get resources of the type 'Microsoft.Sql/servers/extendedAuditingSettings'. ***无法获取类型为“ Microsoft.Sql / servers / extendedAuditingSettings”的资源。
The Azure resource group ARM templates from the automation script section are not as comprehensive as they should probably be. 自动化脚本部分中的Azure资源组ARM模板可能没有应有的全面。 For example, it is quite possible to deploy a Data Factory instance from ARM. 例如,很可能从ARM部署Data Factory实例。 It provides a reasonable starting point but you will find resources that don't deploy as well as a lot of superfluous cruft. 它提供了一个合理的起点,但是您会发现资源无法部署以及很多多余的东西。
The approach I take is to start from a clean template in Visual Studio and then construct a project from a blank template or quick-start, then refer to the template documentation and build up from scratch, using your exported ARM template from your resource group to help work out how it should look. 我采用的方法是从Visual Studio中的干净模板开始,然后从空白模板或快速入门构建项目,然后参考模板文档并使用从资源组中导出的ARM模板从头开始构建。帮助确定外观。 This results in a nice clean reusable template project. 这样就产生了一个很好的干净的可重用模板项目。
Unfortunately I have not found an better way yet. 不幸的是,我还没有找到更好的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.