如何使用 Powershell 访问 Azure ARM 获取 VNet 资源组

How to access Azure ARM Get VNet Reource Group with Powershell

我需要使用 powershell 命令找到 VNet(虚拟网络)的资源组。

如果您在同一个订阅中,您可以这样做:

Get-AzVirtualNetwork  | ? name -eq 'name_goes_here'

如果您在不同的订阅中,您需要先更改订阅:

Select-AzSubscription "sub_name_goes_here"