使用Visual Studio 2015 Community edition时,它会标记以下错误:
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('VMNamejumpBox')]",
"location": "[parameters('resourceLocation')]",
"apiVersion": "2016-03-30",
...它传达了这样的信息:
Value must be one of the following values: "2015-05-01-preview","2015-06-15"但我知道2016-03-30是可用的:
((Get-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute -Location "Australia East").ResourceTypes | Where-Object ResourceTypeName -eq virtualMachines).ApiVersions
2016-03-30
2015-06-15
2015-05-01-preview我想使用intellisense,所以现在,我可以只使用"2015-06-15“,错过最新的更新,但是Visual Studio如何获得更新?
我注意到我在apiVersion 2016-03-30的同一天遇到了这个问题,所以可能还有什么东西还没有更新,以便Visual Studio在线调用?
发布于 2016-03-31 20:57:04
模式尚未更新以支持该apiVersion,短期内最好的做法是使用较旧的模式(就像您已经做的那样),并在此处提交问题:https://github.com/Azure/azure-resource-manager-schemas/issues
更新之后,您可以在编辑器中右键单击json文档并选择"Reload Schemas“(然后关闭并重新打开该文件)。模式被缓存,这将立即刷新缓存,而不是等待它过期。
通常,您永远不需要更新模板文件的架构属性。资源提供者的模式是子模式,当它们被刷新时,它们通过顶层模式获得。
https://stackoverflow.com/questions/36313258
复制相似问题