New-AzContainerAppJobExecutionContainerObject
Create an in-memory object for JobExecutionContainer.
Syntax
New-AzContainerAppJobExecutionContainerObject
[-Arg <String[]>]
[-Command <String[]>]
[-Env <IEnvironmentVar[]>]
[-Image <String>]
[-Name <String>]
[-ResourceCpu <Double>]
[-ResourceMemory <String>]
[<CommonParameters>]
Description
Create an in-memory object for JobExecutionContainer.
Examples
Example 1: Create an in-memory object for JobExecutionContainer.
New-AzContainerAppJobExecutionContainerObject -Image "mcr.microsoft.com/k8se/quickstart-jobs:latest" -Name "simple-hello-world-container2" -ResourceCpu 0.25 -ResourceMemory "0.5Gi" -Command "/bin/sh" -Arg "-c","echo hello; sleep 10;"
Image Name
----- ----
mcr.microsoft.com/k8se/quickstart:latest simple-hello-world-container2
Create an in-memory object for JobExecutionContainer.
Parameters
-Arg
Container start command arguments.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Command
Container start command.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Env
Container environment variables.
Type: | IEnvironmentVar[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Image
Container image tag.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Custom container name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceCpu
Required CPU in cores, e.g. 0.5.
Type: | Double |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceMemory
Required memory, e.g. "250Mb".
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.