如何将Azure Powershell模块添加到可视代码Intellisense

如何将Azure Powershell模块添加到可视代码Intellisense,azure,powershell,visual-studio-code,Azure,Powershell,Visual Studio Code,有人知道如何在可视代码中为Azure模块添加intellisense吗?我最近安装了Azure Powershell模块,希望使用可视化代码编写一些Powershell脚本,但编辑器没有为az函数提供任何智能感知,例如Get-AzResourceGroupAzure Powershell和Azure CLI之间存在差异。Azure PowerShell严格适用于Windows PowerShell和PowerShell核心,而Azure CLI对Windows、Mac和Linux具有跨平台支持。

有人知道如何在可视代码中为Azure模块添加intellisense吗?我最近安装了Azure Powershell模块,希望使用可视化代码编写一些Powershell脚本,但编辑器没有为az函数提供任何智能感知,例如Get-AzResourceGroup

Azure Powershell和Azure CLI之间存在差异。Azure PowerShell严格适用于Windows PowerShell和PowerShell核心,而Azure CLI对Windows、Mac和Linux具有跨平台支持。这也意味着如果你在Mac或Linux上有PowerShell内核,你仍然可以使用Azure PowerShell

您通常可以分辨出这两者之间的语法差异,例如
Get-AzResourceGroup
vs
az-group-list
。似乎您想要后者(Azure CLI),因为您提到:

az函数的智能感知


此外,使用Microsoft提供的默认扩展将足以为Azure PowerShell cmdlet提供intellisense。但是,对于Azure CLI,您可以安装Microsoft提供的扩展。这将为您编写
az
命令的任何
.azcli
文件提供智能感知

Azure PowerShell和Azure CLI之间存在差异。Azure PowerShell严格适用于Windows PowerShell和PowerShell核心,而Azure CLI对Windows、Mac和Linux具有跨平台支持。这也意味着如果你在Mac或Linux上有PowerShell内核,你仍然可以使用Azure PowerShell

您通常可以分辨出这两者之间的语法差异,例如
Get-AzResourceGroup
vs
az-group-list
。似乎您想要后者(Azure CLI),因为您提到:

az函数的智能感知


此外,使用Microsoft提供的默认扩展将足以为Azure PowerShell cmdlet提供intellisense。但是,对于Azure CLI,您可以安装Microsoft提供的扩展。这将为您编写
az
命令的任何
.azcli
文件提供智能感知

谢谢你的回复,我的意思是我想要Azure PowerShell的intellisense,比如Get-AzResourceGroup,我的可视代码中安装了PowerShell扩展,但是当我键入“Get-az”时,它没有任何intellisense popup@Long我使用默认的Powershell扩展,它对我来说很好。它是否为其他cmdlet带来intellisense?我可能也会更新你的vscode。还有,你是如何安装Azure Powershell的?谢谢你的回复,我的意思是我想要Azure Powershell的intellisense,比如Get-AzResourceGroup,我的可视代码中确实安装了Powershell扩展,但是当我键入“Get-az”时,它没有任何智能感知流行音乐up@Long我使用默认的Powershell扩展,它对我来说很好。它是否为其他cmdlet带来intellisense?我可能也会更新你的vscode。另外,您是如何安装Azure Powershell的?