Import-SCSpfVMRoleGalleryItem

Imports a gallery item for use by applications hosted on the Azure portal.

Syntax

Import-SCSpfVMRoleGalleryItem [-Confirm] [-Package <Stream>] [-WhatIf] [<CommonParameters>]
Import-SCSpfVMRoleGalleryItem [-Confirm] [-PackageFilePath <String>] [-WhatIf] [<CommonParameters>]

Description

The Import-SCSpfVMRoleGalleryItem cmdlet imports a gallery item for use by applications hosted on the portal. The gallery item for the virtual machine role is imported into Virtual Machine Manager (VMM). The Service Provider Foundation database manages the gallery item.

Examples

Example 1: Import an item

PS C:\> $Path = "C:\Packages\Create.resdefpkg"
PS C:\> $FStream = New-Object IO.FileStream $Path, Open
PS C:\> Import-SCSPFVMRoleGalleryItem -Package $FStream

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Package

Specifies a System.IO.FileStream object that contains the resource package.

Type:Stream
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PackageFilePath

Specifies the full path, including the .resdefpkg extension, to the resource package file.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False