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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell