仅在Azure中注册提供程序的ARM模板 [英] ARM Template to Only Register a Provider in Azure

查看:69
本文介绍了仅在Azure中注册提供程序的ARM模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有此要求 可以与Powershell一起使用,但是我们无法自定义或创建ARM模板以仅在Azure中注册提供程序,而无需为此提供程序创建任何资源.

We have this requirement  which works as desired with Powershell but we are not able to customize or create a ARM template to just register a provider in Azure without any resources being created for this provider.

例如:

我只需要在azure订阅中添加/注册Microsoft.Storage提供程序,但如果仅通过传递参数,则不应使用相同的模板文件创建任何资源(例如具有相同模板文件的存储帐户),也可能使所有示例变得疲惫不堪类型 = Microsoft.Storage"在JSON文件中,它会引发错误,要求创建资源所需的其他参数.

I just need to add/register Microsoft.Storage provider in the azure subscription but it should not create any resource like a storage account with the same template file ,all the samples available and as tired ourself also, if just pass the parameter "Type = Microsoft.Storage" in the JSON file it throws an error asking for other parameters needed to create the resource.

仅注册提供程序的相同要求与使用registerRP的Powershell脚本配合使用就很好,因为它仅在Azure订阅中注册了提供程序.

The same requirement to only register the provider works fine with the Powershell script using registerRP as it only register the provider in the Azure Subscription.

尝试许多可能性时,任何想法都会对我们有所帮助,但没有奏效.

Any idea would help us as we tried many possibilities but it did not work out.

致谢

Raj

推荐答案

当前,您可以使用Azure门户,CLI和PowerShell注册资源提供程序,但不能使用ARM模板.

Currently, you can register resource providers using Azure portal, CLI and PowerShell but not using ARM template.


这篇关于仅在Azure中注册提供程序的ARM模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆