Files

27 lines
771 B
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to update a Pool
*
* @summary update a Pool
* x-ms-original-file: 2024-10-19/UpdatePool.json
*/
import { DevOpsInfrastructureClient } from "@azure/arm-devopsinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
async function poolsUpdate(): Promise<void> {
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(): Promise<void> {
await poolsUpdate();
}
main().catch(console.error);