Files
kazrael2119andGitHub 11c05b27b8 Refresh16 (#24667)
* refresh 16

* update files

* update files

* update files

* update files

* update files

* update files

* update files
2023-02-03 15:20:30 +08:00

43 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 { VMwareCloudSimple } = require("@azure/arm-vmwarecloudsimple");
const { DefaultAzureCredential } = require("@azure/identity");
require("dotenv").config();
/**
* This sample demonstrates how to Patch dedicated cloud service's properties
*
* @summary Patch dedicated cloud service's properties
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/PatchDedicatedService.json
*/
async function patchDedicatedService() {
const subscriptionId = process.env["VMWARECLOUDSIMPLE_SUBSCRIPTION_ID"] || "{subscription-id}";
const resourceGroupName = process.env["VMWARECLOUDSIMPLE_RESOURCE_GROUP"] || "myResourceGroup";
const dedicatedCloudServiceName = "myService";
const dedicatedCloudServiceRequest = {
tags: { myTag: "tagValue" },
};
const credential = new DefaultAzureCredential();
const client = new VMwareCloudSimple(credential, subscriptionId);
const result = await client.dedicatedCloudServices.update(
resourceGroupName,
dedicatedCloudServiceName,
dedicatedCloudServiceRequest
);
console.log(result);
}
async function main() {
patchDedicatedService();
}
main().catch(console.error);