Files

26 lines
744 B
JavaScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
const { DevOpsInfrastructureClient } = require("@azure/arm-devopsinfrastructure");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to update a Pool
*
* @summary update a Pool
* x-ms-original-file: 2024-10-19/UpdatePool.json
*/
async function poolsUpdate() {
const credential = new DefaultAzureCredential();
const subscriptionId = "a2e95d27-c161-4b61-bda4-11512c14c2c2";
const client = new DevOpsInfrastructureClient(credential, subscriptionId);
const result = await client.pools.update("rg", "pool", {});
console.log(result);
}
async function main() {
poolsUpdate();
}
main().catch(console.error);