mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
34 lines
1.4 KiB
JavaScript
34 lines
1.4 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 Updates system services in a cluster.
|
|
*
|
|
* @summary Updates system services in a cluster.
|
|
* x-ms-original-file: specification/machinelearningcompute/resource-manager/Microsoft.MachineLearningCompute/preview/2017-08-01-preview/examples/OperationalizationClusters_UpdateSystemServices.json
|
|
*/
|
|
const { MachineLearningComputeManagementClient } = require("@azure/arm-machinelearningcompute");
|
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
|
async function updateSystemServicesInAnOperationalizationCluster() {
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const resourceGroupName = "myResourceGroup";
|
|
const clusterName = "myCluster";
|
|
const credential = new DefaultAzureCredential();
|
|
const client = new MachineLearningComputeManagementClient(credential, subscriptionId);
|
|
const result = await client.operationalizationClusters.beginUpdateSystemServicesAndWait(
|
|
resourceGroupName,
|
|
clusterName
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
updateSystemServicesInAnOperationalizationCluster().catch(console.error);
|