Add-AzVmssGalleryApplication
Lägg till ett GalleryApplication-objekt i OBJEKTET PSVirtualMachineProfile.
Anteckning
Det här är den tidigare versionen av vår dokumentation. Se den senaste versionen för uppdaterad information.
Syntax
Add-AzVmssGalleryApplication
-VirtualMachineScaleSetVM <PSVirtualMachineScaleSetVMProfile>
-GalleryApplication <PSVMGalleryApplication>
[-Order <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Lägger till ett GalleryApplication-objekt i OBJEKTET PSVirtualMachineProfile.
Exempel
Exempel 1
$vmss = Get-AzVmss -ResourceGroupName $rgName -Name $vmssName
$vmGal = New-AzVmssGalleryApplication -PackageReferenceId $packageRefId -ConfigReferenceId $configRefId
Add-AzVmssGalleryApplication -VirtualMachineScaleSetVM $vmss.VirtualMachineProfile -GalleryApplication $vmGal -Order 1
Det här exemplet skapar ett lokalt VMGalleryApplication-objekt och lägger till det i ett PSVirtualMachineScaleSetVM-objekt.
Parametrar
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Programobjekt för VM-galleri.
| Type: | PSVMGalleryApplication |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
I vilken ordning programmet ska installeras.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
OBJEKTET PSVirtualMachineScaleSetVMProfile för att lägga till ett referens-ID för galleriprogram.
| Type: | PSVirtualMachineScaleSetVMProfile |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Indata
None