az-container
Verified for current stable LTS
Az Container Command: Execute Command In Container
Use for execute command in container with Az Container. Exact CLI syntax to execute command in container using Az Container.
When to use this: Use for execute command in container with Az Container.
Command Syntax
az container exec -g <resource_group> -n <container_group_name> --exec-command "<command>" az container exec -g <resource_group> -n <container_group_name> --exec-command "<command>" Command Breakdown
-g- Command Option
- Tool-specific option used by this command invocation.
-n- Command Option
- Tool-specific option used by this command invocation.
--exec-command- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to execute command in container using Az Container.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Az Container Command: Create Container
az container create -g <resource_group> -n <name> --image <image_name> -os <windows|linux> --cpu <number_of_CPU_cores> --memory <memory_in_GB> Az Container Command: Delete Container Group az container delete -n <name> -g <resource_group> Az Container Command: Examine Container Logs az container logs -n <name> -g <resource_group> Az Container Command: Examine Logs az container logs -n <name> -g <resource_group> Az Container Command: Exec Command az container exec -g <resource_group> -n <container_group_name> --exec-command "<command>"