az nginx deployment
Note
This reference is part of the nginx extension for the Azure CLI (version 2.64.0 or higher). The extension will automatically install the first time you run an az nginx deployment command. Learn more about extensions.
Manage NGINX deployment resources.
Commands
Name | Description | Type | Status |
---|---|---|---|
az nginx deployment certificate |
Manage NGINX certificate resources. |
Extension | GA |
az nginx deployment certificate create |
Create a certificate for an NGINX deployment. |
Extension | GA |
az nginx deployment certificate delete |
Delete an NGINX deployment certificate. |
Extension | GA |
az nginx deployment certificate list |
List all certificates under the specified deployment and resource group. |
Extension | GA |
az nginx deployment certificate show |
Get the properties of a specific NGINX certificate. |
Extension | GA |
az nginx deployment certificate update |
Update an NGINX deployment certificate. |
Extension | GA |
az nginx deployment certificate wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az nginx deployment configuration |
Manage NGINX configuration resources. |
Extension | GA |
az nginx deployment configuration analyze |
Analyze an NGINX configuration without applying it to the NGINXaaS deployment. |
Extension | GA |
az nginx deployment configuration create |
Create a configuration for an NGINX deployment. |
Extension | GA |
az nginx deployment configuration delete |
Delete an Nginx configuration. |
Extension | GA |
az nginx deployment configuration list |
List all configurations under the specified deployment and resource group. |
Extension | GA |
az nginx deployment configuration show |
Get the properties of a specific NGINX configuration. |
Extension | GA |
az nginx deployment configuration update |
Update an NGINX configuration. |
Extension | GA |
az nginx deployment configuration wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az nginx deployment create |
Create an NGINX for Azure resource. |
Extension | GA |
az nginx deployment delete |
Delete an NGINX deployment. |
Extension | GA |
az nginx deployment list |
List of NGINX deployments. |
Extension | GA |
az nginx deployment show |
Get the properties of a specific NGINX Deployment. |
Extension | GA |
az nginx deployment update |
Update an NGINX deployment. |
Extension | GA |
az nginx deployment wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az nginx deployment create
Create an NGINX for Azure resource.
az nginx deployment create --deployment-name
--resource-group
[--auto-upgrade-profile]
[--enable-diagnostics {0, 1, f, false, n, no, t, true, y, yes}]
[--identity]
[--location]
[--logging]
[--network-profile]
[--nginx-app-protect]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--scaling-properties]
[--sku]
[--tags]
[--user-profile]
Examples
Deployment Create with PublicIP
az nginx deployment create --name myDeployment --resource-group myResourceGroup --location eastus2 --sku name="standardv2_Monthly_gmz7xq9ge3py" --network-profile front-end-ip-configuration="{public-ip-addresses:[{id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIP}]}" network-interface-configuration="{subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet}"
Deployment Create with PrivateIP
az nginx deployment create --name myDeployment --resource-group myResourceGroup --location eastus2 --sku name="standardv2_Monthly_gmz7xq9ge3py" --network-profile front-end-ip-configuration="{private-ip-addresses:[{private-ip-allocation-method:Static,subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet,private-ip-address:10.0.0.2}]}" network-interface-configuration="{subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet}"
az nginx deployment create --name myDeployment --resource-group myResourceGroup --location eastus2 --sku name="standardv2_Monthly_gmz7xq9ge3py" --network-profile front-end-ip-configuration="{private-ip-addresses:[{private-ip-allocation-method:Dynamic,subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet,private-ip-address:10.0.0.2}]}" network-interface-configuration="{subnet-id:/subscriptions/mySubscription/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet}"
Deployment with managed identity, storage account and scaling
az anginx deployment create --deployment-name myDeployment --myResourceGroup azclitest-geo --location eastus --sku name=standardv2_Monthly_gmz7xq9ge3py --network-profile network-interface-configuration='{subnet-id:/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet-azclitest/subnets/mySubnet}' front-end-ip-configuration='{public-ip-addresses:[{id:/subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIP}]}' --identity '{"type":"UserAssigned","userAssignedIdentities":{"/subscriptions/subscriptionId/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myManagedIdentity":{}}}' --logging storage-account='{"account-name":"myStorageAccount","container-name":"myContainer"}' --scaling-properties capacity=10
Required Parameters
The name of the targeted NGINX deployment.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Autoupgrade settings of a deployment. can be stable or preview Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Boolean to enable/disable diagnostics support.
Managed identity to perform operations on Azure key vault or storage account Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
To have logs sent to your storage account. Must specify managed identity with blob contributor role on Azure storage account Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
IP address and VNet + subnet information Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Settings for NGINX App Protect (NAP) Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Do not wait for the long-running operation to finish.
Scaling for NGINX capacity units (NCUs) Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The billing information for the resource Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Tags for deployment. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Optional: Preferred communication email Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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 nginx deployment delete
Delete an NGINX deployment.
az nginx deployment delete [--deployment-name]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
[--yes]
Examples
Deployment Delete
az nginx deployment delete --name myDeployment --resource-group myResourceGroup
Optional Parameters
The name of targeted NGINX deployment.
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.
Do not wait for the long-running operation to finish.
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 nginx deployment list
List of NGINX deployments.
List all deployments under the specified subscription. List all Nginx Deployments under the specified resource group.
az nginx deployment list [--max-items]
[--next-token]
[--resource-group]
Examples
Deployment List
az nginx deployment list
az nginx deployment list --resource-group myResourceGroup
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
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.
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 nginx deployment show
Get the properties of a specific NGINX Deployment.
az nginx deployment show [--deployment-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Deployment Get
az nginx deployment show --name myDeployment --resource-group myResourceGroup
Optional Parameters
The name of targeted Nginx deployment.
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.
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 nginx deployment update
Update an NGINX deployment.
az nginx deployment update [--add]
[--auto-upgrade-profile]
[--deployment-name]
[--enable-diagnostics {0, 1, f, false, n, no, t, true, y, yes}]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--identity]
[--ids]
[--location]
[--logging]
[--network-profile]
[--nginx-app-protect]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--remove]
[--resource-group]
[--scaling-properties]
[--set]
[--sku]
[--subscription]
[--tags]
[--user-profile]
Examples
Update tags and enable diagnostics support for a deployment
az nginx deployment update --name myDeployment --resource-group myResourceGroup --location eastus2 --tags tag1="value1" tag2="value2" --enable-diagnostics --nginx-app-protect web-application-firewall-settings="{"activation-state":"Enabled"}"
Optional Parameters
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>
.
Autoupgrade settings of a deployment. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
The name of targeted Nginx deployment.
Boolean to enable/disable diagnostics support.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Managed identity to perform operations on Azure key vault or storage account Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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>
.
To have logs sent to your storage account. Must specify managed identity with blob contributor role on Azure storage account Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
IP address and VNet + subnet information Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Settings for NGINX App Protect (NAP) Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Do not wait for the long-running operation to finish.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Scaling for NGINX capacity units (NCUs) Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
The billing information for the resource Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Tags for deployment. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Optional: Preferred communication email Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
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 nginx deployment wait
Place the CLI in a waiting state until a condition is met.
az nginx deployment wait [--created]
[--custom]
[--deleted]
[--deployment-name]
[--exists]
[--ids]
[--interval]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
The name of targeted Nginx deployment.
Wait until the resource exists.
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.
Polling interval in seconds.
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
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
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.