简体   繁体   English

使用部署详细信息克隆Azure资源组?

[英]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.

相关问题 在部署级别配置资源组和 azure function - Provisioning resource group and azure function at deployment level Azure 服务总线未在资源组部署中列出 - Azure service bus not listing in deployment of resource group Azure ARM:如果资源组不存在,则放置在部署资源组中 - Azure ARM: If resource group does not exist, place in deployment resource group 奇怪的Azure资源组部署错误 - Strange Azure Resource Group Deployment Error Azure:如何在“ Azure资源组部署任务”中指定“资源名称” - Azure: how to specify 'resource name' in 'Azure Resource Group Deployment task' 在Azure错误上克隆资源组:帐户XYZ已在此怀疑中的另一个资源组中 - Cloning Resource Group on Azure error: The account XYZ is already in another resource group in this susbscription 有没有办法找出给定 VM 的资源组,然后使用 Python sdk 在 Azure 中找出 VM 的详细信息 - Is there a way to find out Resource group for a given VM and then find out details of VM in Azure using Python sdk Azure Functions Docker 部署 Linux 工作者在资源组中不可用 - Azure Functions Docker Deployment Linux workers are not available in resource group 部署到新的Azure资源组和网站失败 - Deployment to new Azure Resource Group and Web Site failing 部署失败后无法删除Azure资源组 - Unable to delete Azure Resource Group after deployment failure in it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM