az container container-group-profile
Manage Azure Container Instance Container Group Profile.
Commands
Name | Description | Type | Status |
---|---|---|---|
az container container-group-profile create |
Create a container group profile. |
Core | GA |
az container container-group-profile delete |
Delete a container group profile. |
Core | GA |
az container container-group-profile list |
List all container group profiles in a resource group. |
Core | GA |
az container container-group-profile list-revisions |
List all revisions for a container group profile. |
Core | GA |
az container container-group-profile show |
Get a container group profile. |
Core | GA |
az container container-group-profile show-revision |
Show a container group profile revision. |
Core | GA |
az container container-group-profile create
Create a container group profile.
az container container-group-profile create --resource-group
[--acr-identity]
[--add-capabilities]
[--allow-escalation]
[--azure-file-volume-account-key]
[--azure-file-volume-account-name]
[--azure-file-volume-mount-path]
[--azure-file-volume-share-name]
[--cce-policy]
[--command-line]
[--config-map]
[--cpu]
[--drop-capabilities]
[--environment-variables]
[--file]
[--gitrepo-dir]
[--gitrepo-mount-path]
[--gitrepo-revision]
[--gitrepo-url]
[--image]
[--ip-address {Private, Public}]
[--location]
[--log-analytics-workspace]
[--log-analytics-workspace-key]
[--memory]
[--name]
[--no-wait]
[--os-type {Linux, Windows}]
[--ports]
[--priority]
[--privileged]
[--protocol {TCP, UDP}]
[--registry-login-server]
[--registry-password]
[--registry-username]
[--restart-policy {Always, Never, OnFailure}]
[--run-as-group]
[--run-as-user]
[--seccomp-profile]
[--secrets]
[--secrets-mount-path]
[--secure-environment-variables]
[--sku]
[--zone]
Examples
Create a container group profile.
az container container-group-profile create --resource-group MyResourceGroup --name myapp --image myimage:latest --cpu 1 --memory 1
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The identity with access to the container registry.
Property | Value |
---|---|
Parameter group: | Image Registry Arguments |
A List of security context capabilities to be added.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
Allow whether a process can gain more privileges than its parent process.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
Default value: | False |
The storage account access key used to access the Azure File share.
Property | Value |
---|---|
Parameter group: | Azure File Volume Arguments |
The name of the storage account that contains the Azure File share.
Property | Value |
---|---|
Parameter group: | Azure File Volume Arguments |
The path within the container where the azure file volume should be mounted. Must not contain colon ':'.
Property | Value |
---|---|
Parameter group: | Azure File Volume Arguments |
The name of the Azure File share to be mounted as a volume.
Property | Value |
---|---|
Parameter group: | Azure File Volume Arguments |
The CCE policy for the confidential container group.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
The command line to run when the container is started, e.g. '/bin/bash -c myscript.sh'.
A list of config map key-value pairs for the container. Space-separated values in 'key=value' format.
The required number of CPU cores of the containers, accurate to one decimal place.
Property | Value |
---|---|
Default value: | 1 |
A List of security context capabilities to be dropped.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
A list of environment variable for the container. Space-separated values in 'key=value' format.
The path to the input file.
The target directory path in the git repository. Must not contain '..'.
Property | Value |
---|---|
Parameter group: | Git Repo Volume Arguments |
Default value: | . |
The path within the container where the git repo volume should be mounted. Must not contain colon ':'.
Property | Value |
---|---|
Parameter group: | Git Repo Volume Arguments |
The commit hash for the specified revision.
Property | Value |
---|---|
Parameter group: | Git Repo Volume Arguments |
The URL of a git repository to be mounted as a volume.
Property | Value |
---|---|
Parameter group: | Git Repo Volume Arguments |
The container image name.
The IP address type of the container group.
Property | Value |
---|---|
Accepted values: | Private, Public |
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
The Log Analytics workspace name or id. Use the current subscription or use --subscription flag to set the desired subscription.
Property | Value |
---|---|
Parameter group: | Log Analytics Arguments |
The Log Analytics workspace key.
Property | Value |
---|---|
Parameter group: | Log Analytics Arguments |
The required memory of the containers in GB, accurate to one decimal place.
Property | Value |
---|---|
Default value: | 1.5 |
The name of the container group.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
The OS type of the containers.
Property | Value |
---|---|
Default value: | Linux |
Accepted values: | Linux, Windows |
A list of ports to open. Space-separated list of ports.
Property | Value |
---|---|
Default value: | [80] |
The priority of the container group.
The flag to determine if the container permissions is elevated to Privileged.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
Default value: | False |
The network protocol to use.
Property | Value |
---|---|
Accepted values: | TCP, UDP |
The container image registry login server.
Property | Value |
---|---|
Parameter group: | Image Registry Arguments |
The password to log in container image registry server.
Property | Value |
---|---|
Parameter group: | Image Registry Arguments |
The username to log in container image registry server.
Property | Value |
---|---|
Parameter group: | Image Registry Arguments |
Restart policy for all containers within the container group.
Property | Value |
---|---|
Accepted values: | Always, Never, OnFailure |
Set the User UID for the container.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
Set the User GID for the container.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
A base64 encoded string containing the contents of the JSON in the seccomp profile.
Property | Value |
---|---|
Parameter group: | Confidential Container Group Arguments |
Space-separated secrets in 'key=value' format.
The path within the container where the secrets volume should be mounted. Must not contain colon ':'.
A list of secure environment variable for the container. Space-separated values in 'key=value' format.
The SKU of the container group.
The zone to place the container group.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az container container-group-profile delete
Delete a container group profile.
az container container-group-profile delete [--ids]
[--name]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a container group profile.
az container container-group-profile delete --resource-group MyResourceGroup --name mycgprofile
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the container group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az container container-group-profile list
List all container group profiles in a resource group.
az container container-group-profile list [--resource-group]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az container container-group-profile list-revisions
List all revisions for a container group profile.
az container container-group-profile list-revisions [--ids]
[--name]
[--resource-group]
[--subscription]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the container group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az container container-group-profile show
Get a container group profile.
az container container-group-profile show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Get a container group profile.
az container container-group-profile show --resource-group MyResourceGroup --name mycgprofile
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the container group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az container container-group-profile show-revision
Show a container group profile revision.
az container container-group-profile show-revision
[--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Show a container group profile.
az container container-group-profile show-revision --resource-group MyResourceGroup --name mycgprofile -r 1
Required Parameters
The revision of the container group profile.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
The name of the container group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |