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. To construct, see NOTES section for ENV properties and create a hash table.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for