az nginx deployment certificate

Note

This reference is part of the nginx extension for the Azure CLI (version 2.40.0 or higher). The extension will automatically install the first time you run an az nginx deployment certificate command. Learn more about extensions.

Manage NGINX certificate resources.

Commands

az nginx deployment certificate create

Create a certificate for an NGINX deployment.

az nginx deployment certificate delete

Delete an Nginx deployment certificate.

az nginx deployment certificate list

List all certificates under the specified deployment and resource group.

az nginx deployment certificate show

Get the properties of a specific Nginx certificate.

az nginx deployment certificate update

Update an Nginx deployment certificate.

az nginx deployment certificate wait

Place the CLI in a waiting state until a condition is met.

az nginx deployment certificate create

Create a certificate for an NGINX deployment.

az nginx deployment certificate create --certificate-name
                                       --deployment-name
                                       --resource-group
                                       [--certificate-path]
                                       [--key-path]
                                       [--key-vault-secret-id]
                                       [--location]
                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--provisioning-state {Accepted, Canceled, Creating, Deleted, Deleting, Failed, NotSpecified, Succeeded, Updating}]
                                       [--tags]

Examples

Certificate Create

az nginx deployment certificate create --certificate-name myCertificate --deployment-name myDeployment --resource-group myResourceGroup --certificate-path /etc/nginx/test.cert --key-path /etc/nginx/test.key --key-vault-secret-id keyVaultSecretId

Required Parameters

--certificate-name --name -n

The name of certificate.

--deployment-name

The name of targeted Nginx deployment.

--resource-group -g

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

Optional Parameters

--certificate-path

This path must match one or more ssl_certificate directive file argument in your Nginx configuration. This path must be unique between certificates within the same deployment.

--key-path

This path must match one or more ssl_certificate_key directive file argument in your Nginx configuration. This path must be unique between certificates within the same deployment.

--key-vault-secret-id

The secret id to the certificate in KeyVault.

--location -l

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

--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--provisioning-state

State of the certificate deployment.

accepted values: Accepted, Canceled, Creating, Deleted, Deleting, Failed, NotSpecified, Succeeded, Updating
--tags

Support shorthand-syntax, json-file and yaml-file. Try ?? to show more.

az nginx deployment certificate delete

Delete an Nginx deployment certificate.

az nginx deployment certificate delete [--certificate-name]
                                       [--deployment-name]
                                       [--ids]
                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--resource-group]
                                       [--subscription]
                                       [--yes]

Examples

Certificate_Delete

az nginx deployment certificate delete --certificate-name myCertificate --deployment-name myDeployment --resource-group myResourceGroup

Optional Parameters

--certificate-name --name -n

The name of certificate.

--deployment-name

The name of targeted Nginx deployment.

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

--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--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.

--yes -y

Do not prompt for confirmation.

default value: False

az nginx deployment certificate list

List all certificates under the specified deployment and resource group.

az nginx deployment certificate list --deployment-name
                                     --resource-group

Examples

Certificate ListByDeployment

az nginx deployment certificate list --deployment-name myDeployment --resource-group myResourceGroup

Required Parameters

--deployment-name

The name of targeted Nginx deployment.

--resource-group -g

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

az nginx deployment certificate show

Get the properties of a specific Nginx certificate.

az nginx deployment certificate show [--certificate-name]
                                     [--deployment-name]
                                     [--ids]
                                     [--resource-group]
                                     [--subscription]

Examples

Certificate Get

az nginx deployment certificate show --certificate-name myCertificate --deployment-name myDeployment --resource-group myResourceGroup

Optional Parameters

--certificate-name --name -n

The name of certificate.

--deployment-name

The name of targeted Nginx deployment.

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

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

az nginx deployment certificate update

Update an Nginx deployment certificate.

az nginx deployment certificate update [--add]
                                       [--certificate-name]
                                       [--certificate-path]
                                       [--deployment-name]
                                       [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--ids]
                                       [--key-path]
                                       [--key-vault-secret-id]
                                       [--location]
                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--provisioning-state {Accepted, Canceled, Creating, Deleted, Deleting, Failed, NotSpecified, Succeeded, Updating}]
                                       [--remove]
                                       [--resource-group]
                                       [--set]
                                       [--subscription]
                                       [--tags]

Examples

Update the certificate virtual path, key virtual path and certificate

az nginx deployment certificate update --certificate-name myCertificate --deployment-name myDeployment --resource-group myResourceGroup --certificate-path /etc/nginx/testupdated.cert --key-path /etc/nginx/testupdated.key --key-vault-secret-id newKeyVaultSecretId

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--certificate-name --name -n

The name of certificate.

--certificate-path

This path must match one or more ssl_certificate directive file argument in your Nginx configuration. This path must be unique between certificates within the same deployment.

--deployment-name

The name of targeted Nginx deployment.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--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.

--key-path

This path must match one or more ssl_certificate_key directive file argument in your Nginx configuration. This path must be unique between certificates within the same deployment.

--key-vault-secret-id

The secret id to the certificate in KeyVault.

--location -l

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

--no-wait

Do not wait for the long-running operation to finish.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--provisioning-state

State of the certificate deployment.

accepted values: Accepted, Canceled, Creating, Deleted, Deleting, Failed, NotSpecified, Succeeded, Updating
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

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

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

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

--tags

Support shorthand-syntax, json-file and yaml-file. Try ?? to show more.

az nginx deployment certificate wait

Place the CLI in a waiting state until a condition is met.

az nginx deployment certificate wait [--certificate-name]
                                     [--created]
                                     [--custom]
                                     [--deleted]
                                     [--deployment-name]
                                     [--exists]
                                     [--ids]
                                     [--interval]
                                     [--resource-group]
                                     [--subscription]
                                     [--timeout]
                                     [--updated]

Optional Parameters

--certificate-name --name -n

The name of certificate.

--created

Wait until created with 'provisioningState' at 'Succeeded'.

default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

default value: False
--deployment-name

The name of targeted Nginx deployment.

--exists

Wait until the resource exists.

default value: False
--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.

--interval

Polling interval in seconds.

default value: 30
--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.

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

default value: False