Add-AzVmGalleryApplication
Voeg een GalleryApplication-object toe aan het PSVirtualMachine-object.
Notitie
Dit is de vorige versie van onze documentatie. Raadpleeg de meest recente versie voor actuele informatie.
Syntax
Add-AzVmGalleryApplication
-VM <PSVirtualMachine>
-GalleryApplication <PSVMGalleryApplication>
[-Order <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Hiermee voegt u een GalleryApplication-object toe aan het PSVirtualMachine-object.
Voorbeelden
Voorbeeld 1
$vm = Get-AzVm -ResourceGroupName $rgName -Name $vmName
$vmGal = New-AzVmGalleryApplication -PackageReferenceId $packageRefId -ConfigReferenceId $configRefId
Add-AzVmGalleryApplication -VM $vm -GalleryApplication $vmGal -Order 1
In dit voorbeeld wordt een lokaal VMGalleryApplication-object gemaakt en toegevoegd aan een PSVirtualMachine-object.
Parameters
De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
PSVMGalleryApplication-object.
| Type: | PSVMGalleryApplication |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Volgorde waarin de toepassing wordt geïnstalleerd.
| Type: | Int32 |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Het PSVirtualMachine-object om een galerietoepassingsverwijzings-id toe te voegen.
| Type: | PSVirtualMachine |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Invoerwaarden
None