26 строки
795 B
JavaScript
26 строки
795 B
JavaScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
const { IoTOperationsClient } = require("@azure/arm-iotoperations");
|
|
const { DefaultAzureCredential } = require("@azure/identity");
|
|
|
|
/**
|
|
* This sample demonstrates how to get a BrokerResource
|
|
*
|
|
* @summary get a BrokerResource
|
|
* x-ms-original-file: 2024-09-15-preview/Broker_Get_MaximumSet_Gen.json
|
|
*/
|
|
async function brokerGet() {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "F8C729F9-DF9C-4743-848F-96EE433D8E53";
|
|
const client = new IoTOperationsClient(credential, subscriptionId);
|
|
const result = await client.broker.get("rgiotoperations", "resource-name123", "resource-name123");
|
|
console.log(result);
|
|
}
|
|
|
|
async function main() {
|
|
brokerGet();
|
|
}
|
|
|
|
main().catch(console.error);
|