Skip to main content

deployments

Creates, updates, deletes, gets or lists a deployments resource.

Overview

Namedeployments
TypeResource
Idazure_isv.nginx.deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
autoUpgradeProfileobjectAutoupgrade settings of a deployment.
dataplaneApiEndpointstringDataplane API endpoint for the caller to update the NGINX state of the deployment.
enableDiagnosticsSupportboolean:vartype enable_diagnostics_support: bool
identityobjectIdentity Properties.
ipAddressstringThe IP address of the deployment.
locationstringThe geo-location where the resource lives. Required.
loggingobjectNginx Logging.
networkProfileobjectNginx Network Profile.
nginxAppProtectobjectSettings for NGINX App Protect (NAP).
nginxVersionstring:vartype nginx_version: str
provisioningStatestringProvisioning State. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified". (Accepted, Creating, Updating, Deleting, Succeeded, Failed, Canceled, Deleted, NotSpecified)
scalingPropertiesobjectInformation on how the deployment will be scaled.
skuobjectResource Sku.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userProfileobjectNginx Deployment User Profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, deployment_name, subscription_idGet the NGINX deployment.
list_by_resource_groupselectresource_group_name, subscription_idList all NGINX deployments under the specified resource group.
listselectsubscription_idList the NGINX deployments resources.
create_or_updateinsertresource_group_name, deployment_name, subscription_id, locationCreate or update the NGINX deployment.
updateupdateresource_group_name, deployment_name, subscription_idUpdate the NGINX deployment.
create_or_updatereplaceresource_group_name, deployment_name, subscription_id, locationCreate or update the NGINX deployment.
deletedeleteresource_group_name, deployment_name, subscription_idDelete the NGINX deployment resource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
deployment_namestringThe name of targeted NGINX deployment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the NGINX deployment.

SELECT
id,
name,
autoUpgradeProfile,
dataplaneApiEndpoint,
enableDiagnosticsSupport,
identity,
ipAddress,
location,
logging,
networkProfile,
nginxAppProtect,
nginxVersion,
provisioningState,
scalingProperties,
sku,
systemData,
tags,
type,
userProfile
FROM azure_isv.nginx.deployments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update the NGINX deployment.

INSERT INTO azure_isv.nginx.deployments (
tags,
location,
properties,
identity,
sku,
resource_group_name,
deployment_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ deployment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Update the NGINX deployment.

UPDATE azure_isv.nginx.deployments
SET
identity = '{{ identity }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Create or update the NGINX deployment.

REPLACE azure_isv.nginx.deployments
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Delete the NGINX deployment resource.

DELETE FROM azure_isv.nginx.deployments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;