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