Files
colawwjandGitHub d292c804a6 changes-track2-release (#21779)
* changes-track2-release

* update
2022-05-18 12:24:59 +08:00

40 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.
const { ChangesClient } = require("@azure/arm-changes");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Obtains the specified change resource for the target resource
*
* @summary Obtains the specified change resource for the target resource
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-05-01/examples/GetChange.json
*/
async function getChange() {
const subscriptionId = "subscriptionId1";
const resourceGroupName = "resourceGroup1";
const resourceProviderNamespace = "resourceProvider1";
const resourceType = "resourceType1";
const resourceName = "resourceName1";
const changeResourceId = "1d58d72f-0719-4a48-9228-b7ea682885bf";
const credential = new DefaultAzureCredential();
const client = new ChangesClient(credential, subscriptionId);
const result = await client.changes.get(
resourceGroupName,
resourceProviderNamespace,
resourceType,
resourceName,
changeResourceId
);
console.log(result);
}
getChange().catch(console.error);