mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Configurations: 'specification/managedoperations/ManagedOps.Management/tspconfig.yaml', API Version: 2025-07-28-preview, SDK Release Type: beta, and CommitSHA: '83408dfe4894a9b5a5d3989023647bce792efc5f' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5788708 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. **Release plan link:** [https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe](https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe) **Submitted by**: [email protected] ## Release Plan Details - Release Plan: https://aka.ms/sdk-release-planner?release-plan-id=6712851c-60ef-f011-8407-000d3a5b0bfe Spec pull request: https://github.com/Azure/azure-rest-api-specs/pull/39501 Spec API version: 2025-07-28-preview --------- Co-authored-by: Will Cashman <[email protected]>
30 lines
862 B
TypeScript
30 lines
862 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { ManagedOpsClient } from "@azure/arm-managedops";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to list the operations for the provider
|
|
*
|
|
* @summary list the operations for the provider
|
|
* x-ms-original-file: 2025-07-28-preview/Operations_List.json
|
|
*/
|
|
async function operationsList(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const client = new ManagedOpsClient(credential, subscriptionId);
|
|
const resArray = new Array();
|
|
for await (const item of client.operations.list()) {
|
|
resArray.push(item);
|
|
}
|
|
|
|
console.log(resArray);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await operationsList();
|
|
}
|
|
|
|
main().catch(console.error);
|