VS代码IntelliSense不适用于某些ARM命令
我创建了一个ARM模板来部署Azure存储帐户。 VS代码臂Intellisense到目前为止工作正常。 但是,对于“复制”(复制已经创建的存储帐户),它根本不起作用。我想念什么?
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"functions": [],
"variables": {},
"resources": [
{
"name": "appstore22121975",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"tags": {
"displayName": "appstore"
},
"location": "East US",
"kind": "StorageV2",
"sku": {
"name": "Standard_LRS"
}
}
],
"outputs": {}
}
I have created an ARM template to deploy Azure Storage Account. VS Code ARM intellisense worked fine until now.
However, for 'copy'(to copy the storage account already created) it simply does not work. What am i missing?
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"functions": [],
"variables": {},
"resources": [
{
"name": "appstore22121975",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2021-04-01",
"tags": {
"displayName": "appstore"
},
"location": "East US",
"kind": "StorageV2",
"sku": {
"name": "Standard_LRS"
}
}
],
"outputs": {}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们尝试使用配置中的VS代码中的ARM模板创建一个存储帐户,并成功地工作 。
以下是我们遵循的解决方法;
,您似乎已经创建了一个具有相同名称的存储帐户,并尝试再次创建具有相同名称的存储帐户,该名称已经创建了已经创建的 。
如果是这种情况, 请确保 创建存储帐户相应地,使用全球唯一的名称 使它起作用 。
template.json
: -对于注释,我们已在资源中使用此
API版本
。 em>
倾向
。安装和更新 。
输出详细信息: -


注2: - 对于Intellisense,如果您想尝试重新部署相同的尝试刷新VS代码并再次部署,它应该起作用 。
有关更多信息,请参阅下面的链接: -
SO THERE | IntelliSense不自动工作vscode
vs代码指南 | intellisense 。 。
We have tried to create an storage account using ARM Template in VS CODE with your configuration as well and works successfully.
Below are the workaround we followed;
It seems you have created one storage account with the same name and trying to create the storage account with the same name again which has been created already.
If that is the case ,Please make sure to Create storage account with globally unique name accordingly to get it work.
template.json
:-For a Note we have used this
api version
for the storage account in resource.Deplyment.parameter.json
NOTE 1:- Make sure the we have following ARM EXTENSION installed and updated.
OUTPUT DETAILS:-


NOTE 2:- For the intellisense If you are trying to redeploy the same try to refresh the VS CODE and deploy it again,It should work.
For more information please refer the below links:-
SO THREAD |Intellisense not automatically working VSCode
VS CODE GUIDE | Intellisense .