< Back
Get-vRNIVM
Post
NAME Get-vRNIVM
SYNOPSIS
Get virtual machines from vRealize Network Insight.
SYNTAX
Get-vRNIVM [-Limit <Int32>] [[-Name] <String>] [-Connection <PSObject>] [<CommonParameters>]
DESCRIPTION
vRealize Network Insight has a database of all VMs in your environment
and this cmdlet will help you discover these VMs.
PARAMETERS
-Limit <Int32>
Limit the amount of records returned
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Limit the amount of records returned
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
vRNI Connection object
Required? false
Position? named
Default value $defaultvRNIConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-vRNIVM
List all VMs in your vRNI environment (note: this may take a while if you have a lot of VMs)
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-vRNIVM -Name my-vm-name
Retrieve only the VM object called "my-vm-name"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$vcenter_entity_id = (Get-vRNIvCenter | Where {$_.name -eq "vcenter.lab"}).entity_id
PS C:\\> Get-vRNIVM | Where {$_.vcenter_manager.entity_id -eq $vcenter_entity_id}
Get all VMs that are attached to the vCenter named "vcenter.lab"
RELATED LINKS
SYNOPSIS
Get virtual machines from vRealize Network Insight.
SYNTAX
Get-vRNIVM [-Limit <Int32>] [[-Name] <String>] [-Connection <PSObject>] [<CommonParameters>]
DESCRIPTION
vRealize Network Insight has a database of all VMs in your environment
and this cmdlet will help you discover these VMs.
PARAMETERS
-Limit <Int32>
Limit the amount of records returned
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
Limit the amount of records returned
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <PSObject>
vRNI Connection object
Required? false
Position? named
Default value $defaultvRNIConnection
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-vRNIVM
List all VMs in your vRNI environment (note: this may take a while if you have a lot of VMs)
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-vRNIVM -Name my-vm-name
Retrieve only the VM object called "my-vm-name"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>$vcenter_entity_id = (Get-vRNIvCenter | Where {$_.name -eq "vcenter.lab"}).entity_id
PS C:\\> Get-vRNIVM | Where {$_.vcenter_manager.entity_id -eq $vcenter_entity_id}
Get all VMs that are attached to the vCenter named "vcenter.lab"
RELATED LINKS