mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
/**
|
|
* This sample demonstrates how to updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the resource.
|
|
*
|
|
* @summary updates the SAP Central Services Instance resource. <br><br>This can be used to update tags on the resource.
|
|
* x-ms-original-file: 2024-09-01/SapCentralInstances_Update.json
|
|
*/
|
|
|
|
import { WorkloadsClient } from "@azure/arm-workloadssapvirtualinstance";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
async function sapCentralServerInstancesUpdate(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapCentralServerInstances.update("test-rg", "X00", "centralServer", {
|
|
tags: { tag1: "value1" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await sapCentralServerInstancesUpdate();
|
|
}
|
|
|
|
main().catch(console.error);
|