Read-SCVirtualizationManager

Read-SCVirtualizationManager

Refreshes the properties of a VMware vCenter Server so that the VMM console displays updated information about vCenter Server entities.

Syntax

Parameter Set: Default
Read-SCVirtualizationManager [-VirtualizationManager] <VirtualizationManager> [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [ <CommonParameters>]

Detailed Description

The Read-SCVirtualizationManager cmdlet refreshes the properties of a VMware vCenter Server managed by Virtual Machine Manager (VMM) so that the VMM console displays updated information about vCenter Server entities.

Parameters

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VirtualizationManager<VirtualizationManager>

Specifies a virtualization manager object managed by VMM.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • VirtualizationManager

Notes

  • Requires a VMM virtualization manager object, which can be retrieved by using the Get-SCVirtualizationManager cmdlet.

Examples

1: Refresh all VMware vCenter Servers managed by VMM.

The first command retrieves all virtualizaton manager objects from the VMM database on VMMServer01 and stores the returned objects in the $VirtManagers array.

The second command uses a foreach loop statement to refresh the properties of the objects stored in $VirtManagers so that current information about these virtualization managers displays in the VMM console.

For more information about the standard Windows PowerShell foreach loop statement, type: Get-Help about_ForEach.

PS C:\> $VirtManagers = Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com"
PS C:\> ForEach ($VManager in $VirtManagers) {Read-SCVirtualizationManager -VirtualizationManager $VManager}

2: Refresh a specific VMware vCenter Server managed by VMM.

The first command gets the virtualizaton manager object named VirtMgrServer01 from VMMServer01 and stores the object in $VirtManager.

The second command refreshes the properties for the object stored in $VirtManager so that current information about this virtualization manager displays in the VMM console.

PS C:\> $VirtManager = Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com" -Computername "VirtMgrServer01.Contoso.com"
PS C:\> Read-SCVirtualizationManager -VirtualizationManager $VirtManager

Get-SCVirtualizationManager

Add-SCVirtualizationManager

Remove-SCVirtualizationManager

Set-SCVirtualizationManager