Import-SCSpfVMRoleGalleryItem

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

Syntax

Import-SCSpfVMRoleGalleryItem
      [-Package <Stream>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
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.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Package

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

Type:System.IO.Stream
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PackageFilePath

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

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object