Files

31 lines
952 B
TypeScript

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