diff --git a/sdk/nginx/arm-nginx/LICENSE b/sdk/nginx/arm-nginx/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/nginx/arm-nginx/LICENSE +++ b/sdk/nginx/arm-nginx/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/nginx/arm-nginx/_meta.json b/sdk/nginx/arm-nginx/_meta.json index 8585cdb39496..ef7d94a287e9 100644 --- a/sdk/nginx/arm-nginx/_meta.json +++ b/sdk/nginx/arm-nginx/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ed84b11847785792767b0b84cc6f98f4ea08ca77", + "commit": "4792bce7667477529991457890b4a6b670e70508", "readme": "specification/nginx/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.12" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.13" } \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/package.json b/sdk/nginx/arm-nginx/package.json index 00b7585a1b93..3a9c4e07d6a8 100644 --- a/sdk/nginx/arm-nginx/package.json +++ b/sdk/nginx/arm-nginx/package.json @@ -116,4 +116,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts index dfb185b92a48..0f88ba5edee1 100644 --- a/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/certificatesCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,12 +32,21 @@ async function certificatesCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key" + } + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.certificates.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts index 136426e44be4..447a257fc6e0 100644 --- a/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/configurationsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,12 +32,21 @@ async function configurationsCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf" + } + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.configurations.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts index 3bb068e86e51..8329fd4eaa31 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -27,11 +31,44 @@ async function deploymentsCreate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + ], + publicIPAddresses: [ + { + id: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress" + } + ] + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + }, + userProfile: { preferredEmail: "example@example.email" } + }, + tags: { environment: "Dev" } + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginCreateOrUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts index 3bab5f93258d..4ad524fe8992 100644 --- a/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples-dev/deploymentsUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -27,11 +31,16 @@ async function deploymentsUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" } + }; + const options: DeploymentsUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesCreateOrUpdateSample.js index 7951927af216..aa5be307dedb 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesCreateOrUpdateSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesCreateOrUpdateSample.js @@ -24,12 +24,21 @@ async function certificatesCreateOrUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const certificateName = "default"; + const body = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key", + }, + }; + const options = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.certificates.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesDeleteSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesDeleteSample.js index c95f464d1972..15d615ab34af 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesDeleteSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/certificatesDeleteSample.js @@ -29,7 +29,7 @@ async function certificatesDelete() { const result = await client.certificates.beginDeleteAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsCreateOrUpdateSample.js index 6ff99ce6ea1a..c468094d5c0a 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsCreateOrUpdateSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsCreateOrUpdateSample.js @@ -24,12 +24,21 @@ async function configurationsCreateOrUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const configurationName = "default"; + const body = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf", + }, + }; + const options = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.configurations.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsDeleteSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsDeleteSample.js index e73534fe216e..c85363c93b67 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsDeleteSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsDeleteSample.js @@ -29,7 +29,7 @@ async function configurationsDelete() { const result = await client.configurations.beginDeleteAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsGetSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsGetSample.js index 38c1a9cba290..5c295bc22985 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsGetSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/configurationsGetSample.js @@ -29,7 +29,7 @@ async function configurationsGet() { const result = await client.configurations.get( resourceGroupName, deploymentName, - configurationName + configurationName, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsCreateOrUpdateSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsCreateOrUpdateSample.js index 7b2e7882242e..a1c410591d03 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsCreateOrUpdateSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsCreateOrUpdateSample.js @@ -23,11 +23,43 @@ async function deploymentsCreate() { process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body = { + name: "myDeployment", + location: "West US", + properties: { + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + ], + publicIPAddresses: [ + { + id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress", + }, + ], + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet", + }, + }, + userProfile: { preferredEmail: "example@example.email" }, + }, + tags: { environment: "Dev" }, + }; + const options = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginCreateOrUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options, ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsUpdateSample.js b/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsUpdateSample.js index 26786cc78d03..79fc8080a841 100644 --- a/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsUpdateSample.js +++ b/sdk/nginx/arm-nginx/samples/v3/javascript/deploymentsUpdateSample.js @@ -23,9 +23,17 @@ async function deploymentsUpdate() { process.env["NGINX_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body = { + tags: { environment: "Dev" }, + }; + const options = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); - const result = await client.deployments.beginUpdateAndWait(resourceGroupName, deploymentName); + const result = await client.deployments.beginUpdateAndWait( + resourceGroupName, + deploymentName, + options, + ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts index dfb185b92a48..0f88ba5edee1 100644 --- a/sdk/nginx/arm-nginx/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxCertificate, + CertificatesCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,12 +32,21 @@ async function certificatesCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const certificateName = "default"; + const body: NginxCertificate = { + properties: { + certificateVirtualPath: "/src/cert/somePath.cert", + keyVaultSecretId: "https://someKV.vault.azure.com/someSecretID", + keyVirtualPath: "/src/cert/somekey.key" + } + }; + const options: CertificatesCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.certificates.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - certificateName + certificateName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/typescript/src/configurationsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v3/typescript/src/configurationsCreateOrUpdateSample.ts index 136426e44be4..447a257fc6e0 100644 --- a/sdk/nginx/arm-nginx/samples/v3/typescript/src/configurationsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples/v3/typescript/src/configurationsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxConfiguration, + ConfigurationsCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,12 +32,21 @@ async function configurationsCreateOrUpdate() { process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; const configurationName = "default"; + const body: NginxConfiguration = { + properties: { + files: [{ content: "ABCDEF==", virtualPath: "/etc/nginx/nginx.conf" }], + package: { data: undefined }, + rootFile: "/etc/nginx/nginx.conf" + } + }; + const options: ConfigurationsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.configurations.beginCreateOrUpdateAndWait( resourceGroupName, deploymentName, - configurationName + configurationName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts index 3bb068e86e51..8329fd4eaa31 100644 --- a/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeployment, + DeploymentsCreateOrUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -27,11 +31,44 @@ async function deploymentsCreate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeployment = { + name: "myDeployment", + location: "West US", + properties: { + managedResourceGroup: "myManagedResourceGroup", + networkProfile: { + frontEndIPConfiguration: { + privateIPAddresses: [ + { + privateIPAddress: "1.1.1.1", + privateIPAllocationMethod: "Static", + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + ], + publicIPAddresses: [ + { + id: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/myPublicIPAddress" + } + ] + }, + networkInterfaceConfiguration: { + subnetId: + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet" + } + }, + userProfile: { preferredEmail: "example@example.email" } + }, + tags: { environment: "Dev" } + }; + const options: DeploymentsCreateOrUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginCreateOrUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options ); console.log(result); } diff --git a/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsUpdateSample.ts b/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsUpdateSample.ts index 3bab5f93258d..4ad524fe8992 100644 --- a/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsUpdateSample.ts +++ b/sdk/nginx/arm-nginx/samples/v3/typescript/src/deploymentsUpdateSample.ts @@ -8,7 +8,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { NginxManagementClient } from "@azure/arm-nginx"; +import { + NginxDeploymentUpdateParameters, + DeploymentsUpdateOptionalParams, + NginxManagementClient +} from "@azure/arm-nginx"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -27,11 +31,16 @@ async function deploymentsUpdate() { const resourceGroupName = process.env["NGINX_RESOURCE_GROUP"] || "myResourceGroup"; const deploymentName = "myDeployment"; + const body: NginxDeploymentUpdateParameters = { + tags: { environment: "Dev" } + }; + const options: DeploymentsUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); const client = new NginxManagementClient(credential, subscriptionId); const result = await client.deployments.beginUpdateAndWait( resourceGroupName, - deploymentName + deploymentName, + options ); console.log(result); }