Visual Studio 似乎在缓存 ARM 模板组件
Visual Studio seems to be caching ARM template components
我正在尝试使用 resourcegroup()
功能在 VS 中构建一个嵌套模板*,在我第一次尝试时,我的模板中有一个旧版本的 API,当我验证它时,它失败了(足够公平)。我已将该值更新为受支持的版本 "apiVersion": "2017-05-10"
但是当我验证失败时:
The api-version '2016-07-01' used to deploy the template does not support 'ResourceGroup' property. Please use api-version '2017-05-10' or later to deploy the template...
我没有使用 API 的那个版本!我检查了 bin\Debug\staging\
文件并且 azuredeploy.json
包含正确的 API 版本。
似乎 VS 正在从某处缓存该值并且验证失败,知道在哪里吗?
我正在使用 VS 2017 v15.1 (26403.7)
您需要将 Azure Powershell 更新到最新版本,它才能正常工作。这是(您在错误中看到的 api 版本)Powershell 用来与 API.
对话的内容
我正在尝试使用 resourcegroup()
功能在 VS 中构建一个嵌套模板*,在我第一次尝试时,我的模板中有一个旧版本的 API,当我验证它时,它失败了(足够公平)。我已将该值更新为受支持的版本 "apiVersion": "2017-05-10"
但是当我验证失败时:
The api-version '2016-07-01' used to deploy the template does not support 'ResourceGroup' property. Please use api-version '2017-05-10' or later to deploy the template...
我没有使用 API 的那个版本!我检查了 bin\Debug\staging\
文件并且 azuredeploy.json
包含正确的 API 版本。
似乎 VS 正在从某处缓存该值并且验证失败,知道在哪里吗?
我正在使用 VS 2017 v15.1 (26403.7)
您需要将 Azure Powershell 更新到最新版本,它才能正常工作。这是(您在错误中看到的 api 版本)Powershell 用来与 API.
对话的内容