az containerapp hostname
Note
This command group has commands that are defined in both Azure CLI and at least one extension. Install each extension to benefit from its extended capabilities. Learn more about extensions.
Commands to manage hostnames of a container app.
Commands
Name | Description | Type | Status |
---|---|---|---|
az containerapp hostname add |
Add the hostname to a container app without binding. |
Core | GA |
az containerapp hostname bind |
Add or update the hostname and binding with a certificate. |
Core | GA |
az containerapp hostname bind (containerapp extension) |
Add or update the hostname and binding with a certificate. |
Extension | GA |
az containerapp hostname delete |
Delete hostnames from a container app. |
Core | GA |
az containerapp hostname list |
List the hostnames of a container app. |
Core | GA |
az containerapp hostname add
Add the hostname to a container app without binding.
az containerapp hostname add --hostname
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
Examples
Add hostname without binding.
az containerapp hostname add -n my-containerapp -g MyResourceGroup --hostname MyHostname
Required Parameters
The custom domain name.
Optional Parameters
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.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az containerapp hostname bind
Add or update the hostname and binding with a certificate.
az containerapp hostname bind --hostname
[--certificate]
[--environment]
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--thumbprint]
[--validation-method]
Examples
Add or update hostname and binding with a provided certificate.
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname --certificate MyCertificateId
Look for or create a managed certificate and bind with the hostname if no certificate or thumbprint is provided.
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname
Required Parameters
The custom domain name.
Optional Parameters
Name or resource id of the certificate.
Name or resource id of the Container App environment.
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.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Thumbprint of the certificate.
Validation method of custom domain ownership.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az containerapp hostname bind (containerapp extension)
Add or update the hostname and binding with a certificate.
az containerapp hostname bind --hostname
[--certificate]
[--environment]
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--thumbprint]
[--validation-method]
Examples
Add or update hostname and binding with a provided certificate.
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname --certificate MyCertificateId
Look for or create a managed certificate and bind with the hostname if no certificate or thumbprint is provided.
az containerapp hostname bind -n my-containerapp -g MyResourceGroup --hostname MyHostname
Required Parameters
The custom domain name.
Optional Parameters
Name or resource id of the certificate.
Name or resource id of the Container App environment.
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.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Thumbprint of the certificate.
Validation method of custom domain ownership.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az containerapp hostname delete
Delete hostnames from a container app.
az containerapp hostname delete --hostname
[--ids]
[--location]
[--name]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete secrets from a container app.
az containerapp hostname delete -n my-containerapp -g MyResourceGroup --hostname MyHostname
Required Parameters
The custom domain name.
Optional Parameters
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.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az containerapp hostname list
List the hostnames of a container app.
az containerapp hostname list --name
--resource-group
[--location]
Examples
List the hostnames of a container app.
az containerapp hostname list -n my-containerapp -g MyResourceGroup
Required Parameters
The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
Azure CLI