mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
* recording refresh 14 * update files * update files * update files * update files * update files * Update CHANGELOG.md
38 lines
1.5 KiB
JavaScript
38 lines
1.5 KiB
JavaScript
/*
|
|
* Copyright (c) Microsoft Corporation.
|
|
* Licensed under the MIT License.
|
|
*
|
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
*/
|
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
|
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
|
/**
|
|
* This sample demonstrates how to The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
|
|
*
|
|
* @summary The PATCH operation can be used to update only the tags for a cluster. Use PUT operation to update other properties.
|
|
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_Update.json
|
|
*/
|
|
async function patchOperationalizationCluster() {
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const resourceGroupName = "myResourceGroup";
|
|
const clusterName = "myCluster";
|
|
const parameters = {
|
|
tags: { key1: "value1" },
|
|
};
|
|
const credential = new DefaultAzureCredential();
|
|
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
const result = await client.operationalizationClusters.update(
|
|
resourceGroupName,
|
|
clusterName,
|
|
parameters
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
patchOperationalizationCluster().catch(console.error);
|