UNPKG

@azure/arm-dns

Version:
32 lines 1.35 kB
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { __awaiter } from "tslib"; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { DnsManagementClient } from "@azure/arm-dns"; import { DefaultAzureCredential } from "@azure/identity"; /** * This sample demonstrates how to Updates a DNS zone. Does not modify DNS records within the zone. * * @summary Updates a DNS zone. Does not modify DNS records within the zone. * x-ms-original-file: specification/dns/resource-manager/Microsoft.Network/stable/2018-05-01/examples/PatchZone.json */ function patchZone() { return __awaiter(this, void 0, void 0, function* () { const subscriptionId = "subid"; const resourceGroupName = "rg1"; const zoneName = "zone1"; const parameters = { tags: { key2: "value2" } }; const credential = new DefaultAzureCredential(); const client = new DnsManagementClient(credential, subscriptionId); const result = yield client.zones.update(resourceGroupName, zoneName, parameters); console.log(result); }); } patchZone().catch(console.error); //# sourceMappingURL=zonesUpdateSample.js.map