Files

23 lines
1.0 KiB
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
*
* @summary Gets the details of all operations possible on the Microsoft.VisualStudio resource provider.
* x-ms-original-file: specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/GetOperations.json
*/
import { VisualStudioResourceProviderClient } from "@azure/arm-visualstudio";
import { DefaultAzureCredential } from "@azure/identity";
async function getAListOfOperationsForThisResourceProvider(): Promise<void> {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new VisualStudioResourceProviderClient(credential, subscriptionId);
const result = await client.operations.list();
console.log(result);
}
getAListOfOperationsForThisResourceProvider().catch(console.error);