Add-AzsGalleryItem
Uploads a provider gallery item to the storage.
Syntax
Add-AzsGalleryItem
[-SubscriptionId <String>]
[-GalleryItemUri <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Add-AzsGalleryItem
-GalleryItemUriPayload \<IGalleryItemUriPayload>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Uploads a provider gallery item to the storage.
Examples
Example 1: Add-AzsGalleryItem
PS C:\> Add-AzsGalleryItem -GalleryItemUri https://testsa.blob.redmond.ext-n35r1010.masd.stbtest.microsoft.com/testsc/TestUbuntu.Test.1.0.0.azpkg
Name Publisher PublisherDisplayName ItemName ItemDisplayName Version Summary
---- --------- -------------------- -------- --------------- ------- -------
TestUbuntu.Test.1.0.0 TestUbuntu TestUbuntu Test Test.TestUbuntu.1.0.0 1.0.0 Create a simple VM
Uploads TestUbuntu.Test.1.0.0 to the gallery.
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 |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | System.Management.Automation.PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GalleryItemUri
URI for your gallery package that has already been uploaded online.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GalleryItemUriPayload
Location of gallery item payload. To construct, see NOTES section for GALLERYITEMURIPAYLOAD properties and create a hash table.
Type: | Microsoft.Azure.PowerShell.Cmdlets.Gallery.Models.Api20150401.IGalleryItemUriPayload |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SubscriptionId
Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Type: | System.String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
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
Microsoft.Azure.PowerShell.Cmdlets.Gallery.Models.Api20150401.IGalleryItemUriPayload
Outputs
Microsoft.Azure.PowerShell.Cmdlets.Gallery.Models.Api20150401.IGalleryItem
Notes
COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
GALLERYITEMURIPAYLOAD <IGalleryItemUriPayload>: Location of gallery item payload.
[GalleryItemUri <String>]
: URI for your gallery package that has already been uploaded online.