Files
Jiao Di (MSFT)andGitHub a4109b7e24 [mgmt] migrate mgmt package to esm 23 (#33053)
https://github.com/Azure/azure-sdk-for-js/issues/32184
@azure/arm-signalr
@azure/arm-servicemap
@azure/arm-servicelinker
@azure/arm-servicefabricmesh
@azure/arm-servicefabricmanagedclusters
@azure/arm-securitydevops
2025-02-17 21:51:10 +08:00

28 lines
969 B
TypeScript

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { MicrosoftSecurityDevOps } from "../src/index.js";
import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity";
import { setLogLevel } from "@azure/logger";
import { describe, it } from "vitest";
describe("snippets", () => {
it("ReadmeSampleCreateClient_Node", async () => {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new MicrosoftSecurityDevOps(new DefaultAzureCredential(), subscriptionId);
});
it("ReadmeSampleCreateClient_Browser", async () => {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const client = new MicrosoftSecurityDevOps(credential, subscriptionId);
});
it("SetLogLevel", async () => {
setLogLevel("info");
});
});