Set-SCSPFVMRoleGalleryItem
Sets the publishing status of an item in the gallery.
Syntax
Set-SCSPFVMRoleGalleryItem
-VmRoleGalleryItem <VMRoleGalleryItem>
-PublishingStatus <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-SCSPFVMRoleGalleryItem
-VmRoleGalleryItem <VMRoleGalleryItem>
-Package <Stream>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-SCSPFVMRoleGalleryItem cmdlet sets the publishing status of an item in the gallery to either publish or un-publish.
Examples
Example 1: Set a gallery item to publish
PS C:\>Set-SCSPFVmRoleGalleryItem -VmRoleGalleryItem $GalleryItem -PublishingStatus "published"
This command sets the publishing status of an item in the gallery to "published".
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 an object of type System.IO.MemoryStream that contains the resource package of the gallery item.
Type: | System.IO.Stream |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PublishingStatus
Specifies either published or un-published.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VmRoleGalleryItem
Specifies the gallery item of which to set the publishing status.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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
Microsoft.SystemCenter.Foundation.SPFData.Types.Gallery.VMRoleGalleryItem
Outputs
System.Object