Share via


az containerapp ssl

Upload certificate to a managed environment, add hostname to an app in that environment, and bind the certificate to the hostname.

Commands

Name Description Type Status
az containerapp ssl upload

Upload certificate to a managed environment, add hostname to an app in that environment, and bind the certificate to the hostname.

Core GA

az containerapp ssl upload

Upload certificate to a managed environment, add hostname to an app in that environment, and bind the certificate to the hostname.

az containerapp ssl upload --certificate-file
                           --environment
                           --hostname
                           [--certificate-name]
                           [--ids]
                           [--location]
                           [--name]
                           [--password]
                           [--resource-group]
                           [--subscription]

Required Parameters

--certificate-file -f

The filepath of the .pfx or .pem file.

--environment -e

Name or resource id of the Container App environment.

--hostname

The custom domain name.

Optional Parameters

--certificate-name -c

Name of the certificate which should be unique within the Container Apps environment.

--ids

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 -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--name -n

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.

--password -p

The certificate file password.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.