Add-SCStorageProvider

Adds a storage provider to VMM.

Description

The Add-SCStorageProvider cmdlet adds a storage provider to System Center Virtual Machine Manager (VMM) by providing the connection information required to access the provider over the network.

For more information about Add-SCStorageProvider, type: "Get-Help Add-SCStorageProvider -online".

Parameters

Name

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

NetworkDeviceName

Required? true
Accept Pipeline Input? false
Position? named
Specifies the name of a network device.

RunAsAccount

Required? true
Accept Pipeline Input? false
Position? named
Specifies a Run As account that contains credentials with permission to perform this action.

TCPPort

Required? true
Accept Pipeline Input? false
Position? named
Specifies a numeric value that represents a TCP port. 

Certificate

Required? false
Accept Pipeline Input? false
Position? named
Specifies a security certificate object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

1: Add a storage provider by its Fully Qualified Domain Name (FQDN).
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Add-SCStorageProvider -NetworkDeviceName "http://StorProv01.Contoso.com" -TCPPort 5988 -Name "StorProv01.Contoso.com" -RunAsAccount $RunAsAcct
The first command gets the RunAs account named RunAsAccount01 and stores it in the $RunAsAcct variable.

The second command adds the storage provider named StorProv01.Contoso.com using the RunAs account stored in $RunAsAcct.
2: Add a storage provider by its IP address.
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount02"
PS C:\> Add-SCStorageProvider -NetworkDeviceName "http://10.10.12.23" -TCPPort 5988 -Name "StorProv02.Contoso.com" -RunAsAccount $RunAsAcct02
The first command gets the RunAs account named RunAsAccount02 and stores it in the $RunAsAcct variable.

The second command adds the storage provider with an IP address of 10.10.12.23 using the RunAsAccount stored in $RunAsAcct.

See Also