New-AzBatchApplicationPackage
Erstellt ein Anwendungspaket in einem Batchkonto.
Syntax
New-AzBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationName] <String>
[-ApplicationVersion] <String>
[-Format] <String>
-FilePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
New-AzBatchApplicationPackage
[-AccountName] <String>
[-ResourceGroupName] <String>
[-ApplicationName] <String>
[-ApplicationVersion] <String>
[-Format] <String>
[-ActivateOnly]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Das Cmdlet New-AzBatchApplicationPackage erstellt ein Anwendungspaket in einem Azure Batch-Konto.
Beispiele
Beispiel 1: Installieren eines Anwendungspakets in einem Batchkonto
New-AzBatchApplicationPackage -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationName "Litware" -ApplicationVersion "1.0" -FilePath "litware.1.0.zip" -Format "zip"
Dieser Befehl erstellt und aktiviert Version 1.0 der Litware-Anwendung und lädt den Inhalt von litware.1.0.zip als Anwendungspaketinhalt hoch.
Parameter
-AccountName
Gibt den Namen des Batchkontos an, dem dieses Cmdlet ein Anwendungspaket hinzufügt.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ActivateOnly
Gibt an, dass dieses Cmdlet ein Anwendungspaket aktiviert, das bereits hochgeladen wurde.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationName
Gibt den Namen der Anwendung an.
Type: | String |
Aliases: | ApplicationId |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ApplicationVersion
Gibt die Version der Anwendung an.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Die Anmeldeinformationen, Konten, Mandanten und Abonnements, die für die Kommunikation mit Azure verwendet werden.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FilePath
Gibt die Datei an, die als Binärdatei des Anwendungspakets hochgeladen werden soll.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Format
Gibt das Format der Binärdatei des Anwendungspakets an.
Type: | String |
Position: | 4 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Gibt den Namen der Ressourcengruppe an, die das Batchkonto enthält.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Eingaben
Ausgaben
Ähnliche Themen
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für