CmdID / az / az container
az container create
Create a container group. Azure CLI reference
53 options Its page in the Azure CLI reference
Options
Show its 53 options
--acr-identityThe identity with access to the container registry--add-capabilitiesA List of security context capabilities to be added--allow-escalationAllow whether a process can gain more privileges than its parent process.--assign-identitySpace-separated list of assigned identities.--azure-file-volume-account-keyThe storage account access key used to access the Azure File share--azure-file-volume-account-nameThe name of the storage account that contains the Azure File share--azure-file-volume-mount-pathThe path within the container where the azure file volume should be mounted.--azure-file-volume-share-nameThe name of the Azure File share to be mounted as a volume--cce-policyThe CCE policy for the confidential container group--command-lineThe command line to run when the container is started, e.g. '/bin/bash -c myscript.sh'--config-mapA list of config map key-value pairs for the container.--container-group-profile-idThe reference container group profile ARM resource id.--container-group-profile-revisionThe reference container group profile revision.--cpuThe required number of CPU cores of the containers, accurate to one decimal place--dns-name-labelThe dns name label for container group with public IP--drop-capabilitiesA List of security context capabilities to be dropped--environment-variables, -eA list of environment variable for the container.--fail-container-group-create-on-reuse-failureThe flag indicating whether to fail the container group creation if the standby pool reuse failed.--file, -fThe path to the input file.--gitrepo-dirThe target directory path in the git repository.--gitrepo-mount-pathThe path within the container where the git repo volume should be mounted.--gitrepo-revisionThe commit hash for the specified revision--gitrepo-urlThe URL of a git repository to be mounted as a volume--imageThe container image name--ip-addressThe IP address type of the container group--location, -lLocation.--log-analytics-workspace-keyThe Log Analytics workspace key.--log-analytics-workspaceThe Log Analytics workspace name or id.--memoryThe required memory of the containers in GB, accurate to one decimal place--os-typeThe OS type of the containers--portsA list of ports to open.--priorityThe priority of the container group--privilegedThe flag to determine if the container permissions is elevated to Privileged--protocolThe network protocol to use--registry-login-serverThe container image registry login server--registry-passwordThe password to log in container image registry server--registry-usernameThe username to log in container image registry server--restart-policyRestart policy for all containers within the container group--roleRole name or id the system assigned identity will have--run-as-groupSet the User UID for the container--run-as-userSet the User GID for the container--scopeScope that the system assigned identity can access--seccomp-profileA base64 encoded string containing the contents of the JSON in the seccomp profile--secrets-mount-pathThe path within the container where the secrets volume should be mounted.--secretsspace-separated secrets in 'key=value' format.--secure-environment-variablesA list of secure environment variable for the container.--skuThe SKU of the container group--standby-pool-profile-idThe standby pool profile ARM resource id from which the container will be reused.--subnet-address-prefixThe subnet IP address prefix to use when creating a new VNET in CIDR format.--subnetThe name of the subnet when creating a new VNET or referencing an existing one.--vnet-address-prefixThe IP address prefix to use when creating a new VNET in CIDR format.--vnet-name, --vnetThe name of the VNET when creating a new one or referencing an existing one.--zoneThe zone to place the container group.