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]>
26 lines
855 B
TypeScript
26 lines
855 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 updates the ManagedOps instance with the supplied fields.
|
|
*
|
|
* @summary updates the ManagedOps instance with the supplied fields.
|
|
* x-ms-original-file: 2025-07-28-preview/ManagedOps_Update.json
|
|
*/
|
|
async function managedOpsUpdate(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "11809CA1-E126-4017-945E-AA795CD5C5A9";
|
|
const client = new ManagedOpsClient(credential, subscriptionId);
|
|
const result = await client.managedOps.update("default", {});
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await managedOpsUpdate();
|
|
}
|
|
|
|
main().catch(console.error);
|