简体   繁体   English

ARM 模板与 Azure SDK 功能兼容性

[英]ARM template vs Azure SDK feature compatibility

I'm looking for any gaps in the support for operations on Azure resources via the Azure SDK (java) vs. ARM templates.我正在寻找通过 Azure SDK (java) 与 ARM 模板对 Azure 资源操作的支持之间的任何差距。

So far, we've only found that blobs/queues/tables cannot be managed by ARM, while the containing StorageAccount can be.到目前为止,我们只发现 blob/队列/表不能由 ARM 管理,而包含 StorageAccount 可以。 No documentation that calls out the differences either.也没有说明差异的文件。

I prefer to use ARM templates as they provide atomicity of create and update across resources, provided they support all or most of the functionality.我更喜欢使用 ARM 模板,因为它们提供跨资源创建和更新的原子性,前提是它们支持所有或大部分功能。

Resources we're interested in are mostly IAAS-ish resources - Virtual network, security groups, subnets et al, LBs, storage artifacts, VM instances, DNS, etc.我们感兴趣的资源主要是 IAAS-ish 资源 - 虚拟网络、安全组、子网等、LB、存储工件、VM 实例、DNS 等。

Need this for basic create/delete operations and frequent update operations (eg patch VM images, modify DNS entries, move the ENI from one VM to another, etc).对于基本的创建/删除操作和频繁的更新操作(例如修补 VM 映像、修改 DNS 条目、将 ENI 从一个 VM 移动到另一个 VM 等),需要它。

Firstly, Template only supports ARM mode.首先,Template 只支持 ARM 模式。 Azure SDK supports ARM mode and asm mode. Azure SDK 支持 ARM 模式和 asm 模式。

Second, with template you could define a resource but you could not operation the resource, like start, stop a VM or a web app.其次,使用模板,您可以定义资源,但不能操作该资源,例如启动、停止 VM 或 Web 应用程序。

If you just want to deploy resources to Azure, I suggest you could select template, it is more easy for you to do it.如果你只是想将资源部署到Azure,我建议你可以选择模板,这样更容易做到。 SDK is more suitable for developer, Azure provides powerful API . SDK 更适合开发者,Azure 提供了强大的API You could manage your Azure resources and integrate them to your service.您可以管理您的 Azure 资源并将它们集成到您的服务中。

Update:更新:

If you only want to create or modify resources in Azure.如果只想在 Azure 中创建或修改资源。 Template is a more suitable option.模板是更合适的选择。 Template supports more resources.模板支持更多资源。 Java SDK supports API is here . Java SDK 支持 API 在这里 Template supports resource is here .模板支持资源在这里 Click Reference .单击Reference

Note: You could not use template to delete a resource.注意:您不能使用模板来删除资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM