Files

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.
/**
* 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
*/
const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
const { DefaultAzureCredential } = require("@azure/identity");
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);