mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
* refresh 16 * update files * update files * update files * update files * update files * update files * update files
39 lines
1.3 KiB
JavaScript
39 lines
1.3 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 Returns Dedicate Cloud Service
|
|
*
|
|
* @summary Returns Dedicate Cloud Service
|
|
* x-ms-original-file: specification/vmwarecloudsimple/resource-manager/Microsoft.VMwareCloudSimple/stable/2019-04-01/examples/GetDedicatedCloudService.json
|
|
*/
|
|
async function getDedicatedCloudService() {
|
|
const subscriptionId = process.env["VMWARECLOUDSIMPLE_SUBSCRIPTION_ID"] || "{subscription-id}";
|
|
const resourceGroupName = process.env["VMWARECLOUDSIMPLE_RESOURCE_GROUP"] || "myResourceGroup";
|
|
const dedicatedCloudServiceName = "myService";
|
|
const credential = new DefaultAzureCredential();
|
|
const client = new VMwareCloudSimple(credential, subscriptionId);
|
|
const result = await client.dedicatedCloudServices.get(
|
|
resourceGroupName,
|
|
dedicatedCloudServiceName
|
|
);
|
|
console.log(result);
|
|
}
|
|
|
|
async function main() {
|
|
getDedicatedCloudService();
|
|
}
|
|
|
|
main().catch(console.error);
|