Import-SCSpfVMRoleGalleryItem
Applies To: System Center 2012 R2 Orchestrator
Import-SCSpfVMRoleGalleryItem
Imports a gallery item.
Syntax
Parameter Set: FromGalleryItemPackageParameterSetName
Import-SCSpfVMRoleGalleryItem [-Package <Stream> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: FromGalleryItemPackageFilePathParameterSetName
Import-SCSpfVMRoleGalleryItem [-PackageFilePath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Import-SCSpfVMRoleGalleryItem imports a gallery item for use by portal applications. The virtual machine role item is imported into Virtual Machine Manager (VMM) and is tracked in the Service Provider Foundation database.
Parameters
-Package<Stream>
Specifies an System.IO.FileStream object that contains the resource package.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PackageFilePath<String>
Specifies the full path to the resource package file, with the .resdefpkg extension.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
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.
Examples
1. Import an item.
The first command gets the path to the resource package and stores it in the $Path variable. The second command gets a System.IO.FileStream object of the package. The third command imports the package.
PS C:\> $Path = "c:\packages\create.resdefpkg"
PS C:\> $FStream = New-Object IO.FileStream $Path, Open
PS C:\> Import-SCSPFVMRoleGalleryItem -Package $FStream