Azure:自动化帐户的SKU属性值,集中的模板文档在哪里? [英] Azure: SKU property value for Automation Account, where are centralized Template Docs?

查看:163
本文介绍了Azure:自动化帐户的SKU属性值,集中的模板文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署一个包含Azure自动化帐户的资源组. parameters.json文件中的参数之一称为automationAccounts_DSCAutomationAccount_sku.将任意字符串作为其值会导致InvalidTemplate错误:

I'm trying to deploy a Resource Group that includes an Azure Automation Account. One of the parameters in the parameters.json file is called automationAccounts_DSCAutomationAccount_sku. Putting an arbitrary string as its value results in an InvalidTemplate error:

在行"7"处为模板参数"automationAccounts_DSCAutomationAccount_sku"提供的值, 7'无效.'.

The provided value for the template parameter 'automationAccounts_DSCAutomationAccount_sku' at line '7' and 7' is not valid.'.

特定问题:什么构成有效值?在powershell中,没有AutomationAccount对象的sku属性.而且,在门户网站中创建新帐户时,永远不会选择多种不同类型的自动化帐户之一,只有一种.那么,Azure需要一个SKU字段做什么呢?

Specific Question: What would constitute a valid value? In powershell there is no sku property of the AutomationAccount object. And when creating a new account in the Portal, there is never an option to select one of many different kinds of Automation Accounts, there is only one kind. So what does Azure need an SKU field for anyway?

常规问题::在Azure模板(和参数文件)中,我如何知道某个字段期望什么,以及某个资源需要哪些字段?是否有满足所有这些要求的集中式文档?
似乎没有,如果是这样的话,这使得创作模板几乎变得不可能,生成模板的唯一可行选择是在Azure门户中配置资源组,然后下载生成的模板JSON文件.

General Question: In Azure Templates (and parameter files) how can I know what a certain field expects, and what fields are required for a certain resource? Is there any centralized doc that has all of these requirements?
It seems that there isn't, and if that's the case, that makes authoring templates nearly impossible, with the only viable option for producing templates being configuring a resource group in the Azure Portal, and then downloading the template JSON file that it generates.

推荐答案

实际上,您提出了一个有效的观点,但我还没有看到一个集中的地方可以查询该观点,但是,有一个

Indeed you raise a valid point, I have not seen a centralized place to look that up, but, there's a ARM schema which is the closest to what you ask that you can get, in my opinion. But that place is a pain to navigate\look through.

此外,还有 https://resources.azure.com 资源,它确实很有帮助,并且门户网站上有Automation script选项,可以为您有效地导出json模板.话虽如此,这是免费的SKU示例:

Also, there's the https://resources.azure.com resource, which is really helpful, and there's the Automation script option on the portal, that would effectively export out the json template for you. Having said that, here's the free SKU example:

"sku": {
  "name": "Free",
  "family": null,
  "capacity": null
},

而且,这似乎是自动化的相关模式

also, this seems to be the relevant schema for Automation

https://raw.githubusercontent.com/Azure/azure-resource-manager-schemas/master/schemas/2015-10-31/Microsoft.Automation.json

这篇关于Azure:自动化帐户的SKU属性值,集中的模板文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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