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