Share via


Import-SCSPFVMRoleGalleryItem

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

Syntax

FromGalleryItemPackageParameterSetName (Default)

Import-SCSPFVMRoleGalleryItem
    [-Package <Stream>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromGalleryItemPackageFilePathParameterSetName

Import-SCSPFVMRoleGalleryItem
    [-PackageFilePath <String>]
    [-WhatIf]
    [-Confirm]
    [<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.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Package

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

Parameter properties

Type:System.IO.Stream
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromGalleryItemPackageParameterSetName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PackageFilePath

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

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

FromGalleryItemPackageFilePathParameterSetName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object