Files

27 lines
818 B
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/**
* This sample demonstrates how to get a MapsResource
*
* @summary get a MapsResource
* x-ms-original-file: 2025-01-31-preview/Maps_Get.json
*/
import { DependencyMapClient } from "@azure/arm-dependencymap";
import { DefaultAzureCredential } from "@azure/identity";
async function mapsGetGeneratedByMaximumSetRule(): Promise<void> {
const credential = new DefaultAzureCredential();
const subscriptionId = "D6E58BDB-45F1-41EC-A884-1FC945058848";
const client = new DependencyMapClient(credential, subscriptionId);
const result = await client.maps.get("rgdependencyMap", "mapsTest1");
console.log(result);
}
async function main(): Promise<void> {
await mapsGetGeneratedByMaximumSetRule();
}
main().catch(console.error);