Get-AzConnectedVMwareVNet
Implements virtual network GET method.
Syntax
Get-AzConnectedVMwareVNet
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzConnectedVMwareVNet
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzConnectedVMwareVNet
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzConnectedVMwareVNet
-InputObject <IConnectedVMwareIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Implements virtual network GET method.
Examples
Example 1: List Virtual Networks in current subscription
Get-AzConnectedVMwareVNet -SubscriptionId "204898ee-cd13-4332-b9d4-55ca5c25496d"
Kind Location Name ResourceGroupName
---- -------- ---- -----------------
eastus test-vnet1 test-rg1
eastus test-vnet2 test-rg2
eastus test-vnet3 test-rg3
eastus test-vnet4 test-rg4
eastus test-vnet5 test-rg5
eastus test-vnet6 test-rg6
eastus test-vnet7 test-rg7
eastus test-vnet8 test-rg8
This command lists Virtual Networks in current subscription.
Example 2: List Virtual Networks in a resource group
Get-AzConnectedVMwareVNet -ResourceGroupName "test-rg" -SubscriptionId "204898ee-cd13-4332-b9d4-55ca5c25496d"
Kind Location Name ResourceGroupName
---- -------- ---- -----------------
eastus test-vnet1 test-rg
eastus test-vnet2 test-rg
This command lists Virtual Networks in a resource group named test-rg
.
Example 3: Get a specific Virtual Network
Get-AzConnectedVMwareVNet -Name "test-vnet" -ResourceGroupName "test-rg" -SubscriptionId "204898ee-cd13-4332-b9d4-55ca5c25496d"
CustomResourceName : a8feca6f-9d35-411d-a594-33fd28043966
ExtendedLocationName : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourcegroups/test-rg/providers/microsoft.extendedlocation/customlocations/test-cl
ExtendedLocationType : CustomLocation
Id : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/VirtualNetworks/VM-Network
InventoryItemId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vc/InventoryItems/network-563661
Kind :
Location : australiaeast
MoName : VM Network
MoRefId : network-563661
Name : VM-Network
ProvisioningState : Succeeded
ResourceGroupName : test-rg
Statuses : {{
"type": "Ready",
"status": "True",
"lastUpdatedAt": "2022-06-30T07:00:45.0455281Z"
}, {
"type": "Idle",
"status": "True",
"lastUpdatedAt": "2022-06-30T07:00:45.0455281Z"
}}
SystemDataCreatedAt : 6/30/2022 7:00:07 AM
SystemDataCreatedBy : xyz
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 6/30/2022 7:00:07 AM
SystemDataLastModifiedBy : xyz
SystemDataLastModifiedByType : User
Tag : {
}
Type : microsoft.connectedvmwarevsphere/virtualnetworks
Uuid : a8feca6f-9d35-411d-a594-33fd28043966
VCenterId : /subscriptions/204898ee-cd13-4332-b9d4-55ca5c25496d/resourceGroups/test-rg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/test-vc
This command gets a Virtual Network named test-vnet
in a resource group named test-rg
.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IConnectedVMwareIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Name of the virtual network resource.
Type: | String |
Aliases: | VirtualNetworkName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The Resource Group Name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The Subscription ID.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell