Add-AzVmssGalleryApplication
Voeg een GalleryApplication-object toe aan het PSVirtualMachineProfile-object.
Syntax
Add-AzVmssGalleryApplication
-VirtualMachineScaleSetVM <PSVirtualMachineScaleSetVMProfile>
-GalleryApplication <PSVMGalleryApplication>
[-TreatFailureAsDeploymentFailure]
[-Order <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Hiermee voegt u een GalleryApplication-object toe aan het PSVirtualMachineProfile-object.
Voorbeelden
Voorbeeld 1
$vmss = Get-AzVmss -ResourceGroupName $rgName -Name $vmssName
$vmGal = New-AzVmssGalleryApplication -PackageReferenceId $packageRefId -ConfigReferenceId $configRefId
Add-AzVmssGalleryApplication -VirtualMachineScaleSetVM $vmss.VirtualMachineProfile -GalleryApplication $vmGal -Order 1
In dit voorbeeld wordt een lokaal VMGalleryApplication-object gemaakt en toegevoegd aan een PSVirtualMachineScaleSetVM-object.
Parameters
-Confirm
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GalleryApplication
Vm Gallery-toepassingsobject.
Type: | PSVMGalleryApplication |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Order
Volgorde waarin de toepassing wordt geïnstalleerd.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TreatFailureAsDeploymentFailure
Indien waar, mislukt een fout voor een bewerking in vmApplication de implementatie. De standaardinstelling is onwaar als deze niet is opgegeven.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VirtualMachineScaleSetVM
Het object PSVirtualMachineScaleSetVMProfile om een referentie-id voor galerietoepassingen toe te voegen.
Type: | PSVirtualMachineScaleSetVMProfile |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Invoerwaarden
None