Import-SCSpfVMRoleGalleryItem
Import-SCSpfVMRoleGalleryItem
Imports a gallery item.
構文
Parameter Set: FromGalleryItemPackageParameterSetName
Import-SCSpfVMRoleGalleryItem [-Package <Stream> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: FromGalleryItemPackageFilePathParameterSetName
Import-SCSpfVMRoleGalleryItem [-PackageFilePath <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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 database.
パラメーター
-Package<Stream>
Specifies an System.IO.FileStream object that contains the resource package.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PackageFilePath<String>
Specifies the full path to the resource package file, with the .resdefpkg extension.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
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