New-AzVmGalleryApplication

Maak een lokaal PSVMGalleryApplication-object.

Notitie

Dit is de vorige versie van onze documentatie. Raadpleeg de meest recente versie voor actuele informatie.

Syntax

New-AzVmGalleryApplication
   -PackageReferenceId <String>
   [-ConfigReferenceId <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Hiermee maakt u een lokaal PSVMGalleryApplication-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

-ConfigReferenceId

Configuratiereferentie-id van de galerietoepassing.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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
-PackageReferenceId

Pakketreferentie-id van de galerietoepassing.

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

Invoerwaarden

None

Uitvoerwaarden

PSVMGalleryApplication