From e6b0481a8dc45c7d35f04b2cbab435a72a2bc11f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:06:53 +0800
Subject: [PATCH 01/62] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-defendereasm/api-extractor.json | 6 +-
.../arm-defendereasm/package.json | 59 +++++++++++--------
.../arm-defendereasm/tsconfig.json | 40 ++++---------
.../arm-defendereasm/tsconfig.samples.json | 10 ++++
.../arm-defendereasm/tsconfig.src.json | 3 +
.../arm-defendereasm/tsconfig.test.json | 6 ++
6 files changed, 66 insertions(+), 58 deletions(-)
create mode 100644 sdk/defendereasm/arm-defendereasm/tsconfig.samples.json
create mode 100644 sdk/defendereasm/arm-defendereasm/tsconfig.src.json
create mode 100644 sdk/defendereasm/arm-defendereasm/tsconfig.test.json
diff --git a/sdk/defendereasm/arm-defendereasm/api-extractor.json b/sdk/defendereasm/arm-defendereasm/api-extractor.json
index 1b04bbe33282..432f0efb2add 100644
--- a/sdk/defendereasm/arm-defendereasm/api-extractor.json
+++ b/sdk/defendereasm/arm-defendereasm/api-extractor.json
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
- "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
@@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
- "publicTrimmedFilePath": "./types/arm-defendereasm.d.ts"
+ "publicTrimmedFilePath": "dist/arm-defendereasm.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/defendereasm/arm-defendereasm/package.json b/sdk/defendereasm/arm-defendereasm/package.json
index 95929cc5a409..1f313c4c2a56 100644
--- a/sdk/defendereasm/arm-defendereasm/package.json
+++ b/sdk/defendereasm/arm-defendereasm/package.json
@@ -28,18 +28,18 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-defendereasm.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.0.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -49,24 +49,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -78,7 +68,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -88,7 +78,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -109,5 +99,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-defendereasm?view=azure-node-preview"
- }
+ },
+ "type": "module",
+ "tshy": {
+ "project": "./tsconfig.src.json",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ },
+ "dialects": [
+ "esm",
+ "commonjs"
+ ],
+ "esmDialects": [
+ "browser",
+ "react-native"
+ ],
+ "selfLink": false
+ },
+ "browser": "./dist/browser/index.js",
+ "react-native": "./dist/react-native/index.js"
}
diff --git a/sdk/defendereasm/arm-defendereasm/tsconfig.json b/sdk/defendereasm/arm-defendereasm/tsconfig.json
index 0c9626484ec0..19ceb382b521 100644
--- a/sdk/defendereasm/arm-defendereasm/tsconfig.json
+++ b/sdk/defendereasm/arm-defendereasm/tsconfig.json
@@ -1,33 +1,13 @@
{
- "compilerOptions": {
- "module": "es6",
- "moduleResolution": "node",
- "strict": true,
- "target": "es6",
- "sourceMap": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "lib": [
- "es6",
- "dom"
- ],
- "declaration": true,
- "outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-defendereasm": [
- "./src/index"
- ]
+ "references": [
+ {
+ "path": "./tsconfig.src.json"
+ },
+ {
+ "path": "./tsconfig.samples.json"
+ },
+ {
+ "path": "./tsconfig.test.json"
}
- },
- "include": [
- "./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
- ],
- "exclude": [
- "node_modules"
]
-}
\ No newline at end of file
+}
diff --git a/sdk/defendereasm/arm-defendereasm/tsconfig.samples.json b/sdk/defendereasm/arm-defendereasm/tsconfig.samples.json
new file mode 100644
index 000000000000..33098269f557
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-defendereasm": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/defendereasm/arm-defendereasm/tsconfig.src.json b/sdk/defendereasm/arm-defendereasm/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/defendereasm/arm-defendereasm/tsconfig.test.json b/sdk/defendereasm/arm-defendereasm/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From d79957708029b6dda4e432f433e4227aad0be172 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:06:53 +0800
Subject: [PATCH 02/62] Migration: Update test config
---
.../tsconfig.browser.config.json | 6 ++++++
.../arm-defendereasm/vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-defendereasm/vitest.config.ts | 16 ++++++++++++++++
.../arm-defendereasm/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 51 insertions(+)
create mode 100644 sdk/defendereasm/arm-defendereasm/tsconfig.browser.config.json
create mode 100644 sdk/defendereasm/arm-defendereasm/vitest.browser.config.ts
create mode 100644 sdk/defendereasm/arm-defendereasm/vitest.config.ts
create mode 100644 sdk/defendereasm/arm-defendereasm/vitest.esm.config.ts
diff --git a/sdk/defendereasm/arm-defendereasm/tsconfig.browser.config.json b/sdk/defendereasm/arm-defendereasm/tsconfig.browser.config.json
new file mode 100644
index 000000000000..0c8bafa97126
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/tsconfig.browser.config.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.test.json",
+ "../../../tsconfig.browser.base.json"
+ ]
+}
diff --git a/sdk/defendereasm/arm-defendereasm/vitest.browser.config.ts b/sdk/defendereasm/arm-defendereasm/vitest.browser.config.ts
new file mode 100644
index 000000000000..182729ab5ce9
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/vitest.browser.config.ts
@@ -0,0 +1,17 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.browser.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ include: ["dist-test/browser/test/**/*.spec.js",],
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/defendereasm/arm-defendereasm/vitest.config.ts b/sdk/defendereasm/arm-defendereasm/vitest.config.ts
new file mode 100644
index 000000000000..40e031385dd8
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/vitest.config.ts
@@ -0,0 +1,16 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/defendereasm/arm-defendereasm/vitest.esm.config.ts b/sdk/defendereasm/arm-defendereasm/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/defendereasm/arm-defendereasm/vitest.esm.config.ts
@@ -0,0 +1,12 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { mergeConfig } from "vitest/config";
+import vitestConfig from "./vitest.config.ts";
+import vitestEsmConfig from "../../../vitest.esm.shared.config.ts";
+
+export default mergeConfig(
+ vitestConfig,
+ vitestEsmConfig
+);
From 9d606ac4d2400f9aa4a33e96682da8e81faadee7 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:06:53 +0800
Subject: [PATCH 03/62] Migration: Clean up files
From 75ee069bbba1bf0bde514df8e3d43c9d408da1be Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:10 +0800
Subject: [PATCH 04/62] Migration: Apply codemod: "fixSourceFile"
---
.../samples-dev/labelsCreateAndUpdateSample.ts | 4 +---
.../samples-dev/labelsDeleteSample.ts | 4 +---
.../samples-dev/labelsGetByWorkspaceSample.ts | 4 +---
.../samples-dev/labelsListByWorkspaceSample.ts | 4 +---
.../samples-dev/labelsUpdateSample.ts | 4 +---
.../samples-dev/operationsListSample.ts | 4 +---
.../samples-dev/tasksGetByWorkspaceSample.ts | 4 +---
.../samples-dev/workspacesCreateAndUpdateSample.ts | 4 +---
.../samples-dev/workspacesDeleteSample.ts | 4 +---
.../samples-dev/workspacesGetSample.ts | 4 +---
.../workspacesListByResourceGroupSample.ts | 4 +---
.../workspacesListBySubscriptionSample.ts | 4 +---
.../samples-dev/workspacesUpdateSample.ts | 4 +---
.../typescript/src/labelsCreateAndUpdateSample.ts | 4 +---
.../v1-beta/typescript/src/labelsDeleteSample.ts | 4 +---
.../typescript/src/labelsGetByWorkspaceSample.ts | 4 +---
.../typescript/src/labelsListByWorkspaceSample.ts | 4 +---
.../v1-beta/typescript/src/labelsUpdateSample.ts | 4 +---
.../v1-beta/typescript/src/operationsListSample.ts | 4 +---
.../typescript/src/tasksGetByWorkspaceSample.ts | 4 +---
.../src/workspacesCreateAndUpdateSample.ts | 4 +---
.../typescript/src/workspacesDeleteSample.ts | 4 +---
.../v1-beta/typescript/src/workspacesGetSample.ts | 4 +---
.../src/workspacesListByResourceGroupSample.ts | 4 +---
.../src/workspacesListBySubscriptionSample.ts | 4 +---
.../typescript/src/workspacesUpdateSample.ts | 4 +---
.../arm-defendereasm/src/easmMgmtClient.ts | 6 +++---
sdk/defendereasm/arm-defendereasm/src/index.ts | 8 ++++----
.../arm-defendereasm/src/models/parameters.ts | 2 +-
.../arm-defendereasm/src/operations/index.ts | 8 ++++----
.../arm-defendereasm/src/operations/labels.ts | 14 +++++++-------
.../arm-defendereasm/src/operations/operations.ts | 12 ++++++------
.../arm-defendereasm/src/operations/tasks.ts | 10 +++++-----
.../arm-defendereasm/src/operations/workspaces.ts | 14 +++++++-------
.../src/operationsInterfaces/index.ts | 8 ++++----
.../src/operationsInterfaces/labels.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/tasks.ts | 2 +-
.../src/operationsInterfaces/workspaces.ts | 2 +-
.../test/defendereasm_operations_test.spec.ts | 9 +++------
40 files changed, 74 insertions(+), 129 deletions(-)
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
index 87cbd9c9fa3a..b41dedba950c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
index b650f6a56849..116cd995708d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
index e7b2915d4920..f48dc2fa904f 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a label in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
index e7fe5a6858fc..9ccf3079dfc0 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of labels in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
index bbe4de47c83d..24185619408d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
index 0ff9f7b39273..b82f7edb9819 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns list of operations.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
index 69f79bd402d3..fe60b63a6e0c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a task in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
index 2b6bae91a3dc..c9598e026cf5 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
@@ -14,9 +14,7 @@ import {
EasmMgmtClient
} from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
index 4a04f899df1e..86ded5fb828c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
index 14f7bd264cdc..ab3e0372f85d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a workspace with the given name.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
index 3119c2fa025f..a91e5b6cd172 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of workspaces in the given resource group.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
index 1c2142f7a40e..d07d902e60b1 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of workspaces under the given subscription.
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
index 9e7474c52bb0..c637e6a90030 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsCreateAndUpdateSample.ts
index 87cbd9c9fa3a..b41dedba950c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsCreateAndUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsDeleteSample.ts
index b650f6a56849..116cd995708d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsGetByWorkspaceSample.ts
index e7b2915d4920..f48dc2fa904f 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a label in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsListByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsListByWorkspaceSample.ts
index e7fe5a6858fc..9ccf3079dfc0 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsListByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of labels in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsUpdateSample.ts
index bbe4de47c83d..24185619408d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/labelsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a Label.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/operationsListSample.ts
index 0ff9f7b39273..b82f7edb9819 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/operationsListSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns list of operations.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/tasksGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/tasksGetByWorkspaceSample.ts
index 69f79bd402d3..fe60b63a6e0c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/tasksGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/tasksGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a task in the given workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesCreateAndUpdateSample.ts
index 2b6bae91a3dc..c9598e026cf5 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesCreateAndUpdateSample.ts
@@ -14,9 +14,7 @@ import {
EasmMgmtClient
} from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesDeleteSample.ts
index 4a04f899df1e..86ded5fb828c 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesGetSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesGetSample.ts
index 14f7bd264cdc..ab3e0372f85d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesGetSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a workspace with the given name.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts
index 3119c2fa025f..a91e5b6cd172 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of workspaces in the given resource group.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts
index 1c2142f7a40e..d07d902e60b1 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of workspaces under the given subscription.
diff --git a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesUpdateSample.ts
index 9e7474c52bb0..c637e6a90030 100644
--- a/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples/v1-beta/typescript/src/workspacesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EasmMgmtClient } from "@azure/arm-defendereasm";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a Workspace.
diff --git a/sdk/defendereasm/arm-defendereasm/src/easmMgmtClient.ts b/sdk/defendereasm/arm-defendereasm/src/easmMgmtClient.ts
index d2be86df517b..21f974741521 100644
--- a/sdk/defendereasm/arm-defendereasm/src/easmMgmtClient.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/easmMgmtClient.ts
@@ -19,9 +19,9 @@ import {
LabelsImpl,
TasksImpl,
OperationsImpl
-} from "./operations";
-import { Workspaces, Labels, Tasks, Operations } from "./operationsInterfaces";
-import { EasmMgmtClientOptionalParams } from "./models";
+} from "./operations/index.js";
+import { Workspaces, Labels, Tasks, Operations } from "./operationsInterfaces/index.js";
+import { EasmMgmtClientOptionalParams } from "./models/index.js";
export class EasmMgmtClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/defendereasm/arm-defendereasm/src/index.ts b/sdk/defendereasm/arm-defendereasm/src/index.ts
index 3f9b88b979d8..dbfa3fa955df 100644
--- a/sdk/defendereasm/arm-defendereasm/src/index.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { EasmMgmtClient } from "./easmMgmtClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { EasmMgmtClient } from "./easmMgmtClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/defendereasm/arm-defendereasm/src/models/parameters.ts b/sdk/defendereasm/arm-defendereasm/src/models/parameters.ts
index e8715bf3bd00..a63ed0dc71bb 100644
--- a/sdk/defendereasm/arm-defendereasm/src/models/parameters.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/models/parameters.ts
@@ -16,7 +16,7 @@ import {
WorkspacePatchResource as WorkspacePatchResourceMapper,
LabelResource as LabelResourceMapper,
LabelPatchResource as LabelPatchResourceMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/defendereasm/arm-defendereasm/src/operations/index.ts b/sdk/defendereasm/arm-defendereasm/src/operations/index.ts
index 03702f3a1bbd..482dd9c55331 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operations/index.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operations/index.ts
@@ -6,7 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./workspaces";
-export * from "./labels";
-export * from "./tasks";
-export * from "./operations";
+export * from "./workspaces.js";
+export * from "./labels.js";
+export * from "./tasks.js";
+export * from "./operations.js";
diff --git a/sdk/defendereasm/arm-defendereasm/src/operations/labels.ts b/sdk/defendereasm/arm-defendereasm/src/operations/labels.ts
index 14f8e03a088b..2a30e87b2606 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operations/labels.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operations/labels.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Labels } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Labels } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { EasmMgmtClient } from "../easmMgmtClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { EasmMgmtClient } from "../easmMgmtClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
LabelResource,
LabelsListByWorkspaceNextOptionalParams,
@@ -32,7 +32,7 @@ import {
LabelsUpdateResponse,
LabelsDeleteOptionalParams,
LabelsListByWorkspaceNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Labels operations. */
diff --git a/sdk/defendereasm/arm-defendereasm/src/operations/operations.ts b/sdk/defendereasm/arm-defendereasm/src/operations/operations.ts
index 146a8def9856..a237ca257f1d 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operations/operations.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operations/operations.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Operations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { EasmMgmtClient } from "../easmMgmtClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { EasmMgmtClient } from "../easmMgmtClient.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/defendereasm/arm-defendereasm/src/operations/tasks.ts b/sdk/defendereasm/arm-defendereasm/src/operations/tasks.ts
index fb2b787fa336..54742b5fdb5d 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operations/tasks.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operations/tasks.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Tasks } from "../operationsInterfaces";
+import { Tasks } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { EasmMgmtClient } from "../easmMgmtClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { EasmMgmtClient } from "../easmMgmtClient.js";
import {
TasksGetByWorkspaceOptionalParams,
TasksGetByWorkspaceResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Tasks operations. */
export class TasksImpl implements Tasks {
diff --git a/sdk/defendereasm/arm-defendereasm/src/operations/workspaces.ts b/sdk/defendereasm/arm-defendereasm/src/operations/workspaces.ts
index a6bf398d68e2..0baf43152b95 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operations/workspaces.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operations/workspaces.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Workspaces } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Workspaces } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { EasmMgmtClient } from "../easmMgmtClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { EasmMgmtClient } from "../easmMgmtClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
WorkspaceResource,
WorkspacesListBySubscriptionNextOptionalParams,
@@ -36,7 +36,7 @@ import {
WorkspacesDeleteOptionalParams,
WorkspacesListBySubscriptionNextResponse,
WorkspacesListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Workspaces operations. */
diff --git a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/index.ts b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/index.ts
index 03702f3a1bbd..482dd9c55331 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/index.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/index.ts
@@ -6,7 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./workspaces";
-export * from "./labels";
-export * from "./tasks";
-export * from "./operations";
+export * from "./workspaces.js";
+export * from "./labels.js";
+export * from "./tasks.js";
+export * from "./operations.js";
diff --git a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/labels.ts b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/labels.ts
index 5dcdb1b23269..7087c2013e08 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/labels.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/labels.ts
@@ -18,7 +18,7 @@ import {
LabelsUpdateOptionalParams,
LabelsUpdateResponse,
LabelsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Labels. */
diff --git a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/operations.ts b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/operations.ts
index 0c50b09b459e..bc7836f62faa 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/operations.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/operations.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Operation, OperationsListOptionalParams } from "../models";
+import { Operation, OperationsListOptionalParams } from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/tasks.ts b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/tasks.ts
index e229245fa778..7035cc367b9f 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/tasks.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/tasks.ts
@@ -9,7 +9,7 @@
import {
TasksGetByWorkspaceOptionalParams,
TasksGetByWorkspaceResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Tasks. */
export interface Tasks {
diff --git a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/workspaces.ts b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/workspaces.ts
index 7e60428aa2e0..7116af164fa5 100644
--- a/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/workspaces.ts
+++ b/sdk/defendereasm/arm-defendereasm/src/operationsInterfaces/workspaces.ts
@@ -19,7 +19,7 @@ import {
WorkspacesUpdateOptionalParams,
WorkspacesUpdateResponse,
WorkspacesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Workspaces. */
diff --git a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
index c5c0224cea5d..e9280901aead 100644
--- a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
+++ b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
@@ -10,13 +10,11 @@ import {
env,
Recorder,
RecorderStartOptions,
- delay,
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
import { assert } from "chai";
-import { Context } from "mocha";
-import { EasmMgmtClient } from "../src/easmMgmtClient";
+import { EasmMgmtClient } from "../src/easmMgmtClient.js";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -45,8 +43,8 @@ describe("DefenderEasm test", () => {
let resourceGroup: string;
let resourceName: string;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
subscriptionId = env.SUBSCRIPTION_ID || '';
// This is an example of how the environment variables are used
@@ -88,7 +86,6 @@ describe("DefenderEasm test", () => {
it("workspaces delete test", async function () {
const resArray = new Array();
- const res = await client.workspaces.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions)
for await (let item of client.workspaces.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
From aa83ecff5550d3cd4af2af0860e79ab713bc6775 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:11 +0800
Subject: [PATCH 05/62] Migration: Apply codemod: "fixTestingImports"
---
.../arm-defendereasm/test/defendereasm_operations_test.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
index e9280901aead..626c84d08081 100644
--- a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
+++ b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
@@ -13,8 +13,8 @@ import {
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
import { EasmMgmtClient } from "../src/easmMgmtClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
From cc165decdc08222e048685799d51be1c4684af87 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:11 +0800
Subject: [PATCH 06/62] Migration: Apply codemod: "replaceAssertIsRejected"
From b8f3f2d1d95a18104e7936c9319e933ced7dad90 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:12 +0800
Subject: [PATCH 07/62] Migration: Apply codemod: "replaceSinonStub"
From 555668fe982056664a86439290bbfde8d488e09f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:13 +0800
Subject: [PATCH 08/62] Migration: Apply codemod: "addViHelper"
From b01a432993d1c2e8915d333705ad3f227ac25a59 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:13 +0800
Subject: [PATCH 09/62] Migration: Apply codemod: "replaceSupportTracing"
From 8805019fa7f201bc249bdbad852c3e741bf9a323 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:14 +0800
Subject: [PATCH 10/62] Migration: Apply codemod: "replaceTestUtils"
From 9ed24396216d4c194e89ff2f3b8105148195eabf Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:07:29 +0800
Subject: [PATCH 11/62] Migration: rushx format
From dd4e93aad96d054f4735e25873efc29dddf5ea8e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:14:22 +0800
Subject: [PATCH 12/62] update
---
common/config/rush/pnpm-lock.yaml | 79 +++++++++----------
.../arm-defendereasm/package.json | 29 ++++++-
.../test/defendereasm_operations_test.spec.ts | 1 +
3 files changed, 65 insertions(+), 44 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 6d21586b5169..d82e17f46fd6 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -282,7 +282,7 @@ importers:
version: file:projects/arm-dataprotection.tgz
'@rush-temp/arm-defendereasm':
specifier: file:./projects/arm-defendereasm.tgz
- version: file:projects/arm-defendereasm.tgz
+ version: file:projects/arm-defendereasm.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-deploymentmanager':
specifier: file:./projects/arm-deploymentmanager.tgz
version: file:projects/arm-deploymentmanager.tgz
@@ -2607,59 +2607,59 @@ packages:
version: 0.0.0
'@rush-temp/arm-authorization-profile-2020-09-01-hybrid@file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz':
- resolution: {integrity: sha512-PD56aZA2FrCuvAMh9+MS2TwmNcJgMrNAzvaRfx+wBzt5wHrWSXWGtU1O1QyeM3HRWvsx5sMTxiflKw6YNVa3ig==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz}
+ resolution: {integrity: sha512-HDgQwU6NCxxgmh84EBgMyzdicHx39dso+Wc9GVOR1sS4/O3P7TM15UomoAeiTxKWxIgZBsvjLtL+U2Reu1xyQg==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz}
version: 0.0.0
'@rush-temp/arm-authorization@file:projects/arm-authorization.tgz':
- resolution: {integrity: sha512-k0lSi/F3DOyg+nE+uHnQrcX14JcA7SFqojyC/w1UyXRywgKlfWw8cm+Fps7EMNLkVqzNGFpCQQFjctgTXBGw6Q==, tarball: file:projects/arm-authorization.tgz}
+ resolution: {integrity: sha512-4R1UfsebEzt2b/hK4mGRlUB4qYkF9qLrdUf4bJy3MRzhXwRLnPDwO0UcHQadD4fnoONW0E/MJAFc3uOt/WG7vA==, tarball: file:projects/arm-authorization.tgz}
version: 0.0.0
'@rush-temp/arm-automanage@file:projects/arm-automanage.tgz':
- resolution: {integrity: sha512-gIv/PCbg19wHwiXLkXbatjtOxJVPCkfJtDan4xQQjHXdK6549EYiC4eeYzy/sNWfpF7NmodW+saObfl8BELwPQ==, tarball: file:projects/arm-automanage.tgz}
+ resolution: {integrity: sha512-Y6D6rLzH4wt38kZLGx+OYbraVF+rRmQiM796PtQImS0hgBULKliq1pi3oU0L4UN991eEkDlwaapf31fQZh/JgA==, tarball: file:projects/arm-automanage.tgz}
version: 0.0.0
'@rush-temp/arm-automation@file:projects/arm-automation.tgz':
- resolution: {integrity: sha512-DYAwYoZOswRcjMbF8RYjfB+u68LhzckfjxGWGyPE332IhJHJIj+LKpGDoRAH1JlIu7nACJsBhElGD6jRwlhAlA==, tarball: file:projects/arm-automation.tgz}
+ resolution: {integrity: sha512-8Dopkf/qw7AOx/DSQxd2Kw7MVBORcsCnWIgtorrPzKjESPpbFd/KyGjPQ7X0geW+2tcfDp2T7PLtkW8CL62eEQ==, tarball: file:projects/arm-automation.tgz}
version: 0.0.0
'@rush-temp/arm-avs@file:projects/arm-avs.tgz':
- resolution: {integrity: sha512-My7rydT8HIfnTtYq6Ib88N7JGVuUNo+t74xVgAfv8LHHTPIe+3mGdMCPRntkv+qXMcZvlVUx7x4x47SNh2rZVA==, tarball: file:projects/arm-avs.tgz}
+ resolution: {integrity: sha512-wR71/JR7Oz/5U0AL6ttKi32b4blSVYQtmQscr5jwNI5OY1gqNGItcvAx1HrL8LcTlmQ0ZxLudi77I/dehOnvag==, tarball: file:projects/arm-avs.tgz}
version: 0.0.0
'@rush-temp/arm-azureadexternalidentities@file:projects/arm-azureadexternalidentities.tgz':
- resolution: {integrity: sha512-tAnASWfl/QHthiOl0Ut/Vkz8C4IevlqKwwC2UY2ptWEH57RSp1NSkCWn82SIv1tItYbLZ1xqC97nOVZEVCVC3w==, tarball: file:projects/arm-azureadexternalidentities.tgz}
+ resolution: {integrity: sha512-rY8anXxMj+nGBp+w0RykFvmVLSegL8pU5cWH1qp4HWuBc88nGCqvltxymvh5w0/IJz770tjzZwJ9UAJacEaLig==, tarball: file:projects/arm-azureadexternalidentities.tgz}
version: 0.0.0
'@rush-temp/arm-azurestack@file:projects/arm-azurestack.tgz':
- resolution: {integrity: sha512-EJBsJteFl0XnsNo7YVZtlZ60+qvzHdki4NwGV9oB/GSpTGm96Z56sTHRKBkax+ochWRGtaQnROFYrooKWrcJpg==, tarball: file:projects/arm-azurestack.tgz}
+ resolution: {integrity: sha512-PsIwMRHAJA1aUJbL6XoEojSrp2yfw3b3u9eFZWWwPMzO6mEbVO/h/Q8fUNpwUbnDA14O8AIw/jFC3e96SMnN1w==, tarball: file:projects/arm-azurestack.tgz}
version: 0.0.0
'@rush-temp/arm-azurestackhci@file:projects/arm-azurestackhci.tgz':
- resolution: {integrity: sha512-8CVRoh6m+rO3RCtiy6IpaGoAtAbaZWLVT8BLwE7XQUiyDfi3jNaWnBUbZmKVJ83LomSdYBYXQCr5wnWus1HfiQ==, tarball: file:projects/arm-azurestackhci.tgz}
+ resolution: {integrity: sha512-yMhbE9fs6pajsrJ0DiL5YXV51TQtMT0wPNodb8o3zLmqSoldtDS3hmjvI2B9DxP42kQ4mutvNdrfQGZg1lFZ6Q==, tarball: file:projects/arm-azurestackhci.tgz}
version: 0.0.0
'@rush-temp/arm-baremetalinfrastructure@file:projects/arm-baremetalinfrastructure.tgz':
- resolution: {integrity: sha512-e1Uq4wcVQjn7MN+7dJsxfFFGtSxFAVbjSLCQIx9egoEJZ7bejMSU/oErA0TJtaOIFRaN5rLxGhBFLv6a7LFnJQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz}
+ resolution: {integrity: sha512-twqtvgMZ4e7UgkVOcSc03qo/TA3dfIEDEmYSSFOxcbElCIQXu6N2m7mk6Cq/XEXMPYkXZgwzUBPrys85pFSEuw==, tarball: file:projects/arm-baremetalinfrastructure.tgz}
version: 0.0.0
'@rush-temp/arm-batch@file:projects/arm-batch.tgz':
- resolution: {integrity: sha512-ojmUUZIRJJcd7WtFU90Mrz3ThZB7fZlcMLCDFjzS/ZL0tTae7J1XL6KjTfsZJUkGb81etIRqFjOazytPHtK73g==, tarball: file:projects/arm-batch.tgz}
+ resolution: {integrity: sha512-BzB1I2O47TVQBQyrPl4R1ph4frK5KnawVL76OH4ol6tIHZRmgBlQ7MWLDiawiWIxM4VHFg6yYgAzDgrJJM+GlA==, tarball: file:projects/arm-batch.tgz}
version: 0.0.0
'@rush-temp/arm-billing@file:projects/arm-billing.tgz':
- resolution: {integrity: sha512-vptaeXMZQzFieZKSD2Be3qTH+nxFbCwQuHmYkIG+SrNKEnFkijyRrf7sZoO8USOlWZLkiL8p+I5VjgM1+OpcYw==, tarball: file:projects/arm-billing.tgz}
+ resolution: {integrity: sha512-VT2QWRjy/0LEOjE9SbnOf/HYjbG8MIyKPnDY4uzton8Rp+Nl6SINd3SxAmWt0KCeSBSdyCW8Q9gJS2jGRAgwvw==, tarball: file:projects/arm-billing.tgz}
version: 0.0.0
'@rush-temp/arm-billingbenefits@file:projects/arm-billingbenefits.tgz':
- resolution: {integrity: sha512-R4l815tS1k9Ko7Kk1g57o1zLvd3SxmmRRFWdTjcSpor1gxAlIMH6BbRRW5p+6i+o0Y4T1ZRZk88jp476VrmMWQ==, tarball: file:projects/arm-billingbenefits.tgz}
+ resolution: {integrity: sha512-2fGS10irsUHukhJHyuL02Y8qdEcHVdJn12futyBta1Fg9uCGSBr4X25rKU+JURZjaSMe5eX+isIb7Ub8uoDgSA==, tarball: file:projects/arm-billingbenefits.tgz}
version: 0.0.0
'@rush-temp/arm-botservice@file:projects/arm-botservice.tgz':
- resolution: {integrity: sha512-OfTfmSGKdE9GNTaKnkrHFj7MkrpF41ubMSXR2eT6hnmY24LmVr8ynzC3gmO5US6yJruNaljoWddTWuw+0sllaQ==, tarball: file:projects/arm-botservice.tgz}
+ resolution: {integrity: sha512-rTHRIM3Q7hmrWBYmhNA+gFW+iFRqJMfw9sduEU0DL42kxyunWGzXYq0GB464GAuGI+K2tZMRP8Rfp/jU05VKug==, tarball: file:projects/arm-botservice.tgz}
version: 0.0.0
'@rush-temp/arm-cdn@file:projects/arm-cdn.tgz':
- resolution: {integrity: sha512-uYLsL4OGbNmkZ8gptZpip7cHYhm0IUEwz7tbiTHv8w7k5WCU0i03aB9mdgYD3dbR3BYjA7bAHjibcwcDR2/7CQ==, tarball: file:projects/arm-cdn.tgz}
+ resolution: {integrity: sha512-WrQT2JhelE7cpg5SywkXN0/rQABtPhicBmHVf53Dd0h5WCTadaiSnYhMFZwyUg2/JGBd1fKBM6FpZUafxKM6CQ==, tarball: file:projects/arm-cdn.tgz}
version: 0.0.0
'@rush-temp/arm-changeanalysis@file:projects/arm-changeanalysis.tgz':
@@ -2823,7 +2823,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-defendereasm@file:projects/arm-defendereasm.tgz':
- resolution: {integrity: sha512-9aibOD4KZ/vMVE9uxjAvkl+XNJvTcI5T4JyWFT+xsm10mOor9BtTFkpOOEzW3L2rzwgqDkRufBcl8YX30A65qA==, tarball: file:projects/arm-defendereasm.tgz}
+ resolution: {integrity: sha512-hvTpKCuGK4lrYHDGkTAsavozQp7CiTscZj0U0AHan179ARx5754/MUkWZa6A9O/rpohNp9p7vQZs45GiqBTx7w==, tarball: file:projects/arm-defendereasm.tgz}
version: 0.0.0
'@rush-temp/arm-deploymentmanager@file:projects/arm-deploymentmanager.tgz':
@@ -3547,7 +3547,7 @@ packages:
version: 0.0.0
'@rush-temp/batch@file:projects/batch.tgz':
- resolution: {integrity: sha512-D2HxCf4Ng9SdTAqHY54j94Sb+ksmCFT4y9WK7CfoHeFy4xp5B3gdFxV/D1MTFqRXGEkb1cibarcbGeA7NNDzFg==, tarball: file:projects/batch.tgz}
+ resolution: {integrity: sha512-FbX6dyyyrdB9TGJzof19ZXB3ESOzW7OoRFaIxj5Qfz6LRo+hY3yYN9kCoBJVxeNHLLJ4uTte5ucB3yWrsg2tIQ==, tarball: file:projects/batch.tgz}
version: 0.0.0
'@rush-temp/communication-alpha-ids@file:projects/communication-alpha-ids.tgz':
@@ -10885,7 +10885,6 @@ snapshots:
'@rush-temp/arm-authorization@file:projects/arm-authorization.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -10947,7 +10946,6 @@ snapshots:
'@rush-temp/arm-automation@file:projects/arm-automation.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -10979,7 +10977,6 @@ snapshots:
'@rush-temp/arm-avs@file:projects/arm-avs.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -10987,7 +10984,6 @@ snapshots:
dotenv: 16.4.7
playwright: 1.49.1
tslib: 2.8.1
- tsx: 4.19.2
typescript: 5.7.2
vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
@@ -11012,7 +11008,6 @@ snapshots:
'@rush-temp/arm-azureadexternalidentities@file:projects/arm-azureadexternalidentities.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -11072,7 +11067,6 @@ snapshots:
'@rush-temp/arm-azurestackhci@file:projects/arm-azurestackhci.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -11080,7 +11074,6 @@ snapshots:
dotenv: 16.4.7
playwright: 1.49.1
tslib: 2.8.1
- tsx: 4.19.2
typescript: 5.7.2
vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
@@ -11105,7 +11098,6 @@ snapshots:
'@rush-temp/arm-baremetalinfrastructure@file:projects/arm-baremetalinfrastructure.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -11144,7 +11136,6 @@ snapshots:
dotenv: 16.4.7
playwright: 1.49.1
tslib: 2.8.1
- tsx: 4.19.2
typescript: 5.7.2
vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
@@ -11176,7 +11167,6 @@ snapshots:
dotenv: 16.4.7
playwright: 1.49.1
tslib: 2.8.1
- tsx: 4.19.2
typescript: 5.7.2
vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
@@ -11201,7 +11191,6 @@ snapshots:
'@rush-temp/arm-billingbenefits@file:projects/arm-billingbenefits.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -11232,7 +11221,6 @@ snapshots:
'@rush-temp/arm-botservice@file:projects/arm-botservice.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -11264,7 +11252,6 @@ snapshots:
'@rush-temp/arm-cdn@file:projects/arm-cdn.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
'@types/node': 18.19.70
'@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
@@ -12481,25 +12468,37 @@ snapshots:
- '@swc/wasm'
- supports-color
- '@rush-temp/arm-defendereasm@file:projects/arm-defendereasm.tgz':
+ '@rush-temp/arm-defendereasm@file:projects/arm-defendereasm.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure-tools/test-credential': 1.3.1
- '@azure-tools/test-recorder': 3.5.2
'@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
- '@types/chai': 4.3.20
- '@types/mocha': 10.0.10
'@types/node': 18.19.70
- chai: 4.5.0
+ '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
+ '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8)
dotenv: 16.4.7
- mocha: 11.1.0
- ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.2)
+ playwright: 1.49.1
tslib: 2.8.1
typescript: 5.7.2
+ vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
+ - '@edge-runtime/vm'
+ - '@vitest/ui'
+ - bufferutil
+ - happy-dom
+ - jsdom
+ - less
+ - lightningcss
+ - msw
+ - safaridriver
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
- supports-color
+ - terser
+ - utf-8-validate
+ - vite
+ - webdriverio
'@rush-temp/arm-deploymentmanager@file:projects/arm-deploymentmanager.tgz':
dependencies:
diff --git a/sdk/defendereasm/arm-defendereasm/package.json b/sdk/defendereasm/arm-defendereasm/package.json
index 1f313c4c2a56..191cf1c5da34 100644
--- a/sdk/defendereasm/arm-defendereasm/package.json
+++ b/sdk/defendereasm/arm-defendereasm/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-defendereasm.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
@@ -118,5 +118,26 @@
"selfLink": false
},
"browser": "./dist/browser/index.js",
- "react-native": "./dist/react-native/index.js"
+ "react-native": "./dist/react-native/index.js",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ }
}
diff --git a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
index 626c84d08081..20b081c7cf4c 100644
--- a/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
+++ b/sdk/defendereasm/arm-defendereasm/test/defendereasm_operations_test.spec.ts
@@ -86,6 +86,7 @@ describe("DefenderEasm test", () => {
it("workspaces delete test", async function () {
const resArray = new Array();
+ await client.workspaces.beginDeleteAndWait(resourceGroup, resourceName, testPollingOptions)
for await (let item of client.workspaces.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
From de6d9e5cd9a2cc0b329162f65dd92655cede6712 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:40 +0800
Subject: [PATCH 13/62] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-deploymentmanager/api-extractor.json | 6 +-
.../arm-deploymentmanager/package.json | 59 +++++++++++--------
.../arm-deploymentmanager/tsconfig.json | 40 ++++---------
.../tsconfig.samples.json | 10 ++++
.../arm-deploymentmanager/tsconfig.src.json | 3 +
.../arm-deploymentmanager/tsconfig.test.json | 6 ++
6 files changed, 66 insertions(+), 58 deletions(-)
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/tsconfig.samples.json
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/tsconfig.src.json
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/tsconfig.test.json
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/api-extractor.json b/sdk/deploymentmanager/arm-deploymentmanager/api-extractor.json
index 17a4013c3ea3..0c37a0454b78 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/api-extractor.json
+++ b/sdk/deploymentmanager/arm-deploymentmanager/api-extractor.json
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
- "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
@@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
- "publicTrimmedFilePath": "./types/arm-deploymentmanager.d.ts"
+ "publicTrimmedFilePath": "dist/arm-deploymentmanager.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/package.json b/sdk/deploymentmanager/arm-deploymentmanager/package.json
index caf8123d4ffd..dd0ded55ee84 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/package.json
+++ b/sdk/deploymentmanager/arm-deploymentmanager/package.json
@@ -27,17 +27,17 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-deploymentmanager.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.0.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deploymentmanager/arm-deploymentmanager",
"repository": {
@@ -48,24 +48,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -77,7 +67,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -87,7 +77,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -107,5 +97,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-deploymentmanager?view=azure-node-preview"
- }
+ },
+ "type": "module",
+ "tshy": {
+ "project": "./tsconfig.src.json",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ },
+ "dialects": [
+ "esm",
+ "commonjs"
+ ],
+ "esmDialects": [
+ "browser",
+ "react-native"
+ ],
+ "selfLink": false
+ },
+ "browser": "./dist/browser/index.js",
+ "react-native": "./dist/react-native/index.js"
}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.json b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.json
index a4b8acb581bc..19ceb382b521 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.json
+++ b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.json
@@ -1,33 +1,13 @@
{
- "compilerOptions": {
- "module": "es6",
- "moduleResolution": "node",
- "strict": true,
- "target": "es6",
- "sourceMap": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "lib": [
- "es6",
- "dom"
- ],
- "declaration": true,
- "outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-deploymentmanager": [
- "./src/index"
- ]
+ "references": [
+ {
+ "path": "./tsconfig.src.json"
+ },
+ {
+ "path": "./tsconfig.samples.json"
+ },
+ {
+ "path": "./tsconfig.test.json"
}
- },
- "include": [
- "./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
- ],
- "exclude": [
- "node_modules"
]
-}
\ No newline at end of file
+}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.samples.json b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.samples.json
new file mode 100644
index 000000000000..786ebd190275
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-deploymentmanager": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.src.json b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.test.json b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From e8c81d036161ce20dd03c619dd18eb1bc5e70b35 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:40 +0800
Subject: [PATCH 14/62] Migration: Update test config
---
.../tsconfig.browser.config.json | 6 ++++++
.../vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-deploymentmanager/vitest.config.ts | 16 ++++++++++++++++
.../arm-deploymentmanager/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 51 insertions(+)
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/tsconfig.browser.config.json
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/vitest.browser.config.ts
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/vitest.config.ts
create mode 100644 sdk/deploymentmanager/arm-deploymentmanager/vitest.esm.config.ts
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.browser.config.json b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.browser.config.json
new file mode 100644
index 000000000000..0c8bafa97126
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/tsconfig.browser.config.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.test.json",
+ "../../../tsconfig.browser.base.json"
+ ]
+}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/vitest.browser.config.ts b/sdk/deploymentmanager/arm-deploymentmanager/vitest.browser.config.ts
new file mode 100644
index 000000000000..182729ab5ce9
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/vitest.browser.config.ts
@@ -0,0 +1,17 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.browser.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ include: ["dist-test/browser/test/**/*.spec.js",],
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/vitest.config.ts b/sdk/deploymentmanager/arm-deploymentmanager/vitest.config.ts
new file mode 100644
index 000000000000..40e031385dd8
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/vitest.config.ts
@@ -0,0 +1,16 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/vitest.esm.config.ts b/sdk/deploymentmanager/arm-deploymentmanager/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/deploymentmanager/arm-deploymentmanager/vitest.esm.config.ts
@@ -0,0 +1,12 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { mergeConfig } from "vitest/config";
+import vitestConfig from "./vitest.config.ts";
+import vitestEsmConfig from "../../../vitest.esm.shared.config.ts";
+
+export default mergeConfig(
+ vitestConfig,
+ vitestEsmConfig
+);
From 07bbe42955ce35b65501409930e8811b143c83ab Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:41 +0800
Subject: [PATCH 15/62] Migration: Clean up files
From e82961857867e23aa6ff2073d2371cc049843de4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:54 +0800
Subject: [PATCH 16/62] Migration: Apply codemod: "fixSourceFile"
---
.../src/azureDeploymentManager.ts | 6 +++---
.../arm-deploymentmanager/src/index.ts | 6 +++---
.../arm-deploymentmanager/src/models/parameters.ts | 2 +-
.../src/operations/artifactSources.ts | 10 +++++-----
.../arm-deploymentmanager/src/operations/index.ts | 14 +++++++-------
.../src/operations/operations.ts | 10 +++++-----
.../src/operations/rollouts.ts | 12 ++++++------
.../src/operations/serviceTopologies.ts | 10 +++++-----
.../src/operations/serviceUnits.ts | 12 ++++++------
.../src/operations/services.ts | 10 +++++-----
.../arm-deploymentmanager/src/operations/steps.ts | 10 +++++-----
.../src/operationsInterfaces/artifactSources.ts | 2 +-
.../src/operationsInterfaces/index.ts | 14 +++++++-------
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/rollouts.ts | 2 +-
.../src/operationsInterfaces/serviceTopologies.ts | 2 +-
.../src/operationsInterfaces/serviceUnits.ts | 2 +-
.../src/operationsInterfaces/services.ts | 2 +-
.../src/operationsInterfaces/steps.ts | 2 +-
.../arm-deploymentmanager/test/sampleTest.ts | 10 +++-------
20 files changed, 68 insertions(+), 72 deletions(-)
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts
index a08d8e1be4ea..879660fa49bc 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/azureDeploymentManager.ts
@@ -22,7 +22,7 @@ import {
RolloutsImpl,
ArtifactSourcesImpl,
OperationsImpl
-} from "./operations";
+} from "./operations/index.js";
import {
ServiceTopologies,
Services,
@@ -31,8 +31,8 @@ import {
Rollouts,
ArtifactSources,
Operations
-} from "./operationsInterfaces";
-import { AzureDeploymentManagerOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AzureDeploymentManagerOptionalParams } from "./models/index.js";
export class AzureDeploymentManager extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/index.ts
index 16a19737ae65..7e136c8df68b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/index.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/index.ts
@@ -6,6 +6,6 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./models";
-export { AzureDeploymentManager } from "./azureDeploymentManager";
-export * from "./operationsInterfaces";
+export * from "./models/index.js";
+export { AzureDeploymentManager } from "./azureDeploymentManager.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts
index f20058f7647d..b21276ac589b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/models/parameters.ts
@@ -18,7 +18,7 @@ import {
StepResource as StepResourceMapper,
RolloutRequest as RolloutRequestMapper,
ArtifactSource as ArtifactSourceMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const contentType: OperationParameter = {
parameterPath: ["options", "contentType"],
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts
index 177659775796..406bd0372564 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/artifactSources.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ArtifactSources } from "../operationsInterfaces";
+import { ArtifactSources } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import {
ArtifactSourcesCreateOrUpdateOptionalParams,
ArtifactSourcesCreateOrUpdateResponse,
@@ -19,7 +19,7 @@ import {
ArtifactSourcesDeleteOptionalParams,
ArtifactSourcesListOptionalParams,
ArtifactSourcesListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ArtifactSources operations. */
export class ArtifactSourcesImpl implements ArtifactSources {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts
index 37f8bb9e59b5..b6b4b9176e7d 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./serviceTopologies";
-export * from "./services";
-export * from "./serviceUnits";
-export * from "./steps";
-export * from "./rollouts";
-export * from "./artifactSources";
-export * from "./operations";
+export * from "./serviceTopologies.js";
+export * from "./services.js";
+export * from "./serviceUnits.js";
+export * from "./steps.js";
+export * from "./rollouts.js";
+export * from "./artifactSources.js";
+export * from "./operations.js";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts
index a3e2726b00f3..2f77ad790adb 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/operations.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Operations } from "../operationsInterfaces";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import {
OperationsListOptionalParams,
OperationsListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Operations operations. */
export class OperationsImpl implements Operations {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts
index b2a408f03dfb..76535fe2ec2a 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/rollouts.ts
@@ -6,13 +6,13 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Rollouts } from "../operationsInterfaces";
+import { Rollouts } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
import {
RolloutsCreateOrUpdateOptionalParams,
RolloutsCreateOrUpdateResponse,
@@ -25,7 +25,7 @@ import {
RolloutsRestartResponse,
RolloutsListOptionalParams,
RolloutsListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Rollouts operations. */
export class RolloutsImpl implements Rollouts {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts
index 02757821176f..c872ab3d5e5f 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceTopologies.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ServiceTopologies } from "../operationsInterfaces";
+import { ServiceTopologies } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import {
ServiceTopologyResource,
ServiceTopologiesCreateOrUpdateOptionalParams,
@@ -20,7 +20,7 @@ import {
ServiceTopologiesDeleteOptionalParams,
ServiceTopologiesListOptionalParams,
ServiceTopologiesListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ServiceTopologies operations. */
export class ServiceTopologiesImpl implements ServiceTopologies {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts
index 8f259d31b15d..97e4590a33f6 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/serviceUnits.ts
@@ -6,13 +6,13 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ServiceUnits } from "../operationsInterfaces";
+import { ServiceUnits } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
import {
ServiceUnitResource,
ServiceUnitsCreateOrUpdateOptionalParams,
@@ -22,7 +22,7 @@ import {
ServiceUnitsDeleteOptionalParams,
ServiceUnitsListOptionalParams,
ServiceUnitsListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ServiceUnits operations. */
export class ServiceUnitsImpl implements ServiceUnits {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts
index dca68d921ff7..6af398b9e142 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/services.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Services } from "../operationsInterfaces";
+import { Services } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import {
ServiceResource,
ServicesCreateOrUpdateOptionalParams,
@@ -20,7 +20,7 @@ import {
ServicesDeleteOptionalParams,
ServicesListOptionalParams,
ServicesListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Services operations. */
export class ServicesImpl implements Services {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts
index 4c142c912ed0..f2837a96219d 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operations/steps.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Steps } from "../operationsInterfaces";
+import { Steps } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDeploymentManager } from "../azureDeploymentManager";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDeploymentManager } from "../azureDeploymentManager.js";
import {
StepsCreateOrUpdateOptionalParams,
StepsCreateOrUpdateResponse,
@@ -19,7 +19,7 @@ import {
StepsDeleteOptionalParams,
StepsListOptionalParams,
StepsListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Steps operations. */
export class StepsImpl implements Steps {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/artifactSources.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/artifactSources.ts
index c93de7d7a71c..b06cedf7831b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/artifactSources.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/artifactSources.ts
@@ -14,7 +14,7 @@ import {
ArtifactSourcesDeleteOptionalParams,
ArtifactSourcesListOptionalParams,
ArtifactSourcesListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ArtifactSources. */
export interface ArtifactSources {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/index.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/index.ts
index 37f8bb9e59b5..b6b4b9176e7d 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/index.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./serviceTopologies";
-export * from "./services";
-export * from "./serviceUnits";
-export * from "./steps";
-export * from "./rollouts";
-export * from "./artifactSources";
-export * from "./operations";
+export * from "./serviceTopologies.js";
+export * from "./services.js";
+export * from "./serviceUnits.js";
+export * from "./steps.js";
+export * from "./rollouts.js";
+export * from "./artifactSources.js";
+export * from "./operations.js";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/operations.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/operations.ts
index ff1c9747f121..218131b35054 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/operations.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/operations.ts
@@ -9,7 +9,7 @@
import {
OperationsListOptionalParams,
OperationsListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Operations. */
export interface Operations {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/rollouts.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/rollouts.ts
index 4ac68026e18c..2bebeccd7a8f 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/rollouts.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/rollouts.ts
@@ -19,7 +19,7 @@ import {
RolloutsRestartResponse,
RolloutsListOptionalParams,
RolloutsListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Rollouts. */
export interface Rollouts {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceTopologies.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceTopologies.ts
index 975f32ab1956..d1fbf1eeb759 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceTopologies.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceTopologies.ts
@@ -15,7 +15,7 @@ import {
ServiceTopologiesDeleteOptionalParams,
ServiceTopologiesListOptionalParams,
ServiceTopologiesListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ServiceTopologies. */
export interface ServiceTopologies {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceUnits.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceUnits.ts
index 182dc9fe7b6e..1dc2113f658b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceUnits.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/serviceUnits.ts
@@ -16,7 +16,7 @@ import {
ServiceUnitsDeleteOptionalParams,
ServiceUnitsListOptionalParams,
ServiceUnitsListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ServiceUnits. */
export interface ServiceUnits {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/services.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/services.ts
index 747f2374be3a..8770e8fff4be 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/services.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/services.ts
@@ -15,7 +15,7 @@ import {
ServicesDeleteOptionalParams,
ServicesListOptionalParams,
ServicesListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Services. */
export interface Services {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/steps.ts b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/steps.ts
index 53b89e969a91..7b6a7010600b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/steps.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/src/operationsInterfaces/steps.ts
@@ -14,7 +14,7 @@ import {
StepsDeleteOptionalParams,
StepsListOptionalParams,
StepsListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Steps. */
export interface Steps {
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts b/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts
index 8ff7deb0acbe..f0d6ea6885e4 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts
@@ -8,11 +8,7 @@
import {
Recorder,
- RecorderStartOptions,
- env
-} from "@azure-tools/test-recorder";
-import { assert } from "chai";
-import { Context } from "mocha";
+ RecorderStartOptions} from "@azure-tools/test-recorder";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -32,8 +28,8 @@ const recorderOptions: RecorderStartOptions = {
describe("My test", () => {
let recorder: Recorder;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
});
From bf6782a2559aba66a4d3d0085db2e34330847bb9 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:55 +0800
Subject: [PATCH 17/62] Migration: Apply codemod: "fixTestingImports"
From 2d05b064d2070ae712d8b0aea682676434fa3e7c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:56 +0800
Subject: [PATCH 18/62] Migration: Apply codemod: "replaceAssertIsRejected"
From b129536f99707230fe3ed067b301f42b463ceaae Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:57 +0800
Subject: [PATCH 19/62] Migration: Apply codemod: "replaceSinonStub"
From 7dc93dc4a53cad06b8d0b1ee3060f2e9125a7072 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:58 +0800
Subject: [PATCH 20/62] Migration: Apply codemod: "addViHelper"
From 61cc5ac68f2cad3dcbd36c72662a844e848fc9ec Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:58 +0800
Subject: [PATCH 21/62] Migration: Apply codemod: "replaceSupportTracing"
From 75fa82e1b37c29c4f1b8dda1c5012dd64efeb858 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:17:59 +0800
Subject: [PATCH 22/62] Migration: Apply codemod: "replaceTestUtils"
From eb50074cbdb6f8380706f5b754ee6dd017a2d182 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:18:01 +0800
Subject: [PATCH 23/62] Migration: rushx format
From 00a060c3fbf74737a591fa760963d8dae717db4d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:22:28 +0800
Subject: [PATCH 24/62] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
.../arm-deploymentmanager/package.json | 29 ++++++++++++---
2 files changed, 49 insertions(+), 16 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index d82e17f46fd6..c968ae03e64d 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -285,7 +285,7 @@ importers:
version: file:projects/arm-defendereasm.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-deploymentmanager':
specifier: file:./projects/arm-deploymentmanager.tgz
- version: file:projects/arm-deploymentmanager.tgz
+ version: file:projects/arm-deploymentmanager.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-desktopvirtualization':
specifier: file:./projects/arm-desktopvirtualization.tgz
version: file:projects/arm-desktopvirtualization.tgz
@@ -2827,7 +2827,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-deploymentmanager@file:projects/arm-deploymentmanager.tgz':
- resolution: {integrity: sha512-q+HTSfzfG+rqXpa/elgcISj/cC0SYeJ2/1tJaNAj9c3OHMh5kA/LCn5iLaCjihfa91zQJFqiZz0h10EiRlGDgQ==, tarball: file:projects/arm-deploymentmanager.tgz}
+ resolution: {integrity: sha512-NFf9ulnSwoCLS4cmKYt3Q9XH+yn1xhcYsSJbFBys4cUXE9xqwSbjw+HLEY8Hk6uoa9//mhsN5rkBDDGWIj5BQg==, tarball: file:projects/arm-deploymentmanager.tgz}
version: 0.0.0
'@rush-temp/arm-desktopvirtualization@file:projects/arm-desktopvirtualization.tgz':
@@ -12500,24 +12500,36 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-deploymentmanager@file:projects/arm-deploymentmanager.tgz':
+ '@rush-temp/arm-deploymentmanager@file:projects/arm-deploymentmanager.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure-tools/test-credential': 1.3.1
- '@azure-tools/test-recorder': 3.5.2
'@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
- '@types/chai': 4.3.20
- '@types/mocha': 10.0.10
'@types/node': 18.19.70
- chai: 4.5.0
- mocha: 11.1.0
- ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.2)
+ '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
+ '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8)
+ playwright: 1.49.1
tslib: 2.8.1
typescript: 5.7.2
+ vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
+ - '@edge-runtime/vm'
+ - '@vitest/ui'
+ - bufferutil
+ - happy-dom
+ - jsdom
+ - less
+ - lightningcss
+ - msw
+ - safaridriver
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
- supports-color
+ - terser
+ - utf-8-validate
+ - vite
+ - webdriverio
'@rush-temp/arm-desktopvirtualization@file:projects/arm-desktopvirtualization.tgz':
dependencies:
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/package.json b/sdk/deploymentmanager/arm-deploymentmanager/package.json
index dd0ded55ee84..55cf9b197ab6 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/package.json
+++ b/sdk/deploymentmanager/arm-deploymentmanager/package.json
@@ -23,9 +23,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-deploymentmanager.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
@@ -116,5 +116,26 @@
"selfLink": false
},
"browser": "./dist/browser/index.js",
- "react-native": "./dist/react-native/index.js"
+ "react-native": "./dist/react-native/index.js",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ }
}
From c91779e948adae5c053d16360002de7e9e7aeaf6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:06 +0800
Subject: [PATCH 25/62] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../api-extractor.json | 6 +-
.../arm-desktopvirtualization/package.json | 59 +++++++++++--------
.../arm-desktopvirtualization/tsconfig.json | 40 ++++---------
.../tsconfig.samples.json | 10 ++++
.../tsconfig.src.json | 3 +
.../tsconfig.test.json | 6 ++
6 files changed, 66 insertions(+), 58 deletions(-)
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.samples.json
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.src.json
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.test.json
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/api-extractor.json b/sdk/desktopvirtualization/arm-desktopvirtualization/api-extractor.json
index 391ea6b62b0f..de4856b72d49 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/api-extractor.json
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/api-extractor.json
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
- "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
@@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
- "publicTrimmedFilePath": "./types/arm-desktopvirtualization.d.ts"
+ "publicTrimmedFilePath": "dist/arm-desktopvirtualization.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
index c90c2f40ef8f..22ba0017097c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
@@ -26,18 +26,18 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-desktopvirtualization.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.0.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -47,24 +47,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -76,7 +66,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -86,7 +76,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -107,5 +97,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-desktopvirtualization?view=azure-node-preview"
- }
+ },
+ "type": "module",
+ "tshy": {
+ "project": "./tsconfig.src.json",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ },
+ "dialects": [
+ "esm",
+ "commonjs"
+ ],
+ "esmDialects": [
+ "browser",
+ "react-native"
+ ],
+ "selfLink": false
+ },
+ "browser": "./dist/browser/index.js",
+ "react-native": "./dist/react-native/index.js"
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json
index 02d427ad910e..19ceb382b521 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.json
@@ -1,33 +1,13 @@
{
- "compilerOptions": {
- "module": "es6",
- "moduleResolution": "node",
- "strict": true,
- "target": "es6",
- "sourceMap": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "lib": [
- "es6",
- "dom"
- ],
- "declaration": true,
- "outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-desktopvirtualization": [
- "./src/index"
- ]
+ "references": [
+ {
+ "path": "./tsconfig.src.json"
+ },
+ {
+ "path": "./tsconfig.samples.json"
+ },
+ {
+ "path": "./tsconfig.test.json"
}
- },
- "include": [
- "./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
- ],
- "exclude": [
- "node_modules"
]
-}
\ No newline at end of file
+}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.samples.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.samples.json
new file mode 100644
index 000000000000..44e042e70d3f
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-desktopvirtualization": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.src.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.test.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From 4a75bb555bd571623af0128f7a656dda4eda7086 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:07 +0800
Subject: [PATCH 26/62] Migration: Update test config
---
.../tsconfig.browser.config.json | 6 ++++++
.../vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-desktopvirtualization/vitest.config.ts | 16 ++++++++++++++++
.../vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 51 insertions(+)
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.browser.config.json
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/vitest.browser.config.ts
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/vitest.config.ts
create mode 100644 sdk/desktopvirtualization/arm-desktopvirtualization/vitest.esm.config.ts
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.browser.config.json b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.browser.config.json
new file mode 100644
index 000000000000..0c8bafa97126
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/tsconfig.browser.config.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.test.json",
+ "../../../tsconfig.browser.base.json"
+ ]
+}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.browser.config.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.browser.config.ts
new file mode 100644
index 000000000000..182729ab5ce9
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.browser.config.ts
@@ -0,0 +1,17 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.browser.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ include: ["dist-test/browser/test/**/*.spec.js",],
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.config.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.config.ts
new file mode 100644
index 000000000000..40e031385dd8
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.config.ts
@@ -0,0 +1,16 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.esm.config.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/vitest.esm.config.ts
@@ -0,0 +1,12 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { mergeConfig } from "vitest/config";
+import vitestConfig from "./vitest.config.ts";
+import vitestEsmConfig from "../../../vitest.esm.shared.config.ts";
+
+export default mergeConfig(
+ vitestConfig,
+ vitestEsmConfig
+);
From eea70aaa18339a4db8f276e0402ccba9be41ca2d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:07 +0800
Subject: [PATCH 27/62] Migration: Clean up files
From dfc549f64ea595998f1aa5f0bcd5455192adf636 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:43 +0800
Subject: [PATCH 28/62] Migration: Apply codemod: "fixSourceFile"
---
.../appAttachPackageCreateOrUpdateSample.ts | 4 +--
.../appAttachPackageDeleteSample.ts | 4 +--
.../samples-dev/appAttachPackageGetSample.ts | 4 +--
.../appAttachPackageInfoImportSample.ts | 4 +--
...pAttachPackageListByResourceGroupSample.ts | 4 +--
...ppAttachPackageListBySubscriptionSample.ts | 4 +--
.../appAttachPackageUpdateSample.ts | 4 +--
.../applicationGroupsCreateOrUpdateSample.ts | 4 +--
.../applicationGroupsDeleteSample.ts | 4 +--
.../samples-dev/applicationGroupsGetSample.ts | 4 +--
...licationGroupsListByResourceGroupSample.ts | 4 +--
...plicationGroupsListBySubscriptionSample.ts | 4 +--
.../applicationGroupsUpdateSample.ts | 4 +--
.../applicationsCreateOrUpdateSample.ts | 4 +--
.../samples-dev/applicationsDeleteSample.ts | 4 +--
.../samples-dev/applicationsGetSample.ts | 4 +--
.../samples-dev/applicationsListSample.ts | 4 +--
.../samples-dev/applicationsUpdateSample.ts | 4 +--
.../samples-dev/desktopsGetSample.ts | 4 +--
.../samples-dev/desktopsListSample.ts | 4 +--
.../samples-dev/desktopsUpdateSample.ts | 4 +--
.../hostPoolsCreateOrUpdateSample.ts | 4 +--
.../samples-dev/hostPoolsDeleteSample.ts | 4 +--
.../samples-dev/hostPoolsGetSample.ts | 4 +--
.../hostPoolsListByResourceGroupSample.ts | 4 +--
.../hostPoolsListRegistrationTokensSample.ts | 4 +--
.../samples-dev/hostPoolsListSample.ts | 4 +--
...ostPoolsRetrieveRegistrationTokenSample.ts | 4 +--
.../samples-dev/hostPoolsUpdateSample.ts | 4 +--
.../samples-dev/msixImagesExpandSample.ts | 4 +--
.../msixPackagesCreateOrUpdateSample.ts | 4 +--
.../samples-dev/msixPackagesDeleteSample.ts | 4 +--
.../samples-dev/msixPackagesGetSample.ts | 4 +--
.../samples-dev/msixPackagesListSample.ts | 4 +--
.../samples-dev/msixPackagesUpdateSample.ts | 4 +--
.../samples-dev/operationsListSample.ts | 4 +--
...dpointConnectionsDeleteByHostPoolSample.ts | 4 +--
...pointConnectionsDeleteByWorkspaceSample.ts | 4 +--
...eEndpointConnectionsGetByHostPoolSample.ts | 4 +--
...EndpointConnectionsGetByWorkspaceSample.ts | 4 +--
...EndpointConnectionsListByHostPoolSample.ts | 4 +--
...ndpointConnectionsListByWorkspaceSample.ts | 4 +--
...dpointConnectionsUpdateByHostPoolSample.ts | 4 +--
...pointConnectionsUpdateByWorkspaceSample.ts | 4 +--
...rivateLinkResourcesListByHostPoolSample.ts | 4 +--
...ivateLinkResourcesListByWorkspaceSample.ts | 4 +--
...calingPlanPersonalSchedulesCreateSample.ts | 4 +--
...calingPlanPersonalSchedulesDeleteSample.ts | 4 +--
.../scalingPlanPersonalSchedulesGetSample.ts | 4 +--
.../scalingPlanPersonalSchedulesListSample.ts | 4 +--
...calingPlanPersonalSchedulesUpdateSample.ts | 4 +--
.../scalingPlanPooledSchedulesCreateSample.ts | 4 +--
.../scalingPlanPooledSchedulesDeleteSample.ts | 4 +--
.../scalingPlanPooledSchedulesGetSample.ts | 4 +--
.../scalingPlanPooledSchedulesListSample.ts | 4 +--
.../scalingPlanPooledSchedulesUpdateSample.ts | 4 +--
.../samples-dev/scalingPlansCreateSample.ts | 4 +--
.../samples-dev/scalingPlansDeleteSample.ts | 4 +--
.../samples-dev/scalingPlansGetSample.ts | 4 +--
.../scalingPlansListByHostPoolSample.ts | 4 +--
.../scalingPlansListByResourceGroupSample.ts | 4 +--
.../scalingPlansListBySubscriptionSample.ts | 4 +--
.../samples-dev/scalingPlansUpdateSample.ts | 4 +--
.../samples-dev/sessionHostsDeleteSample.ts | 4 +--
.../samples-dev/sessionHostsGetSample.ts | 4 +--
.../samples-dev/sessionHostsListSample.ts | 4 +--
.../samples-dev/sessionHostsUpdateSample.ts | 4 +--
.../samples-dev/startMenuItemsListSample.ts | 4 +--
.../samples-dev/userSessionsDeleteSample.ts | 4 +--
.../userSessionsDisconnectSample.ts | 4 +--
.../samples-dev/userSessionsGetSample.ts | 4 +--
.../userSessionsListByHostPoolSample.ts | 4 +--
.../samples-dev/userSessionsListSample.ts | 4 +--
.../userSessionsSendMessageSample.ts | 4 +--
.../workspacesCreateOrUpdateSample.ts | 4 +--
.../samples-dev/workspacesDeleteSample.ts | 4 +--
.../samples-dev/workspacesGetSample.ts | 4 +--
.../workspacesListByResourceGroupSample.ts | 4 +--
.../workspacesListBySubscriptionSample.ts | 4 +--
.../samples-dev/workspacesUpdateSample.ts | 4 +--
.../appAttachPackageCreateOrUpdateSample.ts | 4 +--
.../src/appAttachPackageDeleteSample.ts | 4 +--
.../src/appAttachPackageGetSample.ts | 4 +--
.../src/appAttachPackageInfoImportSample.ts | 4 +--
...pAttachPackageListByResourceGroupSample.ts | 4 +--
...ppAttachPackageListBySubscriptionSample.ts | 4 +--
.../src/appAttachPackageUpdateSample.ts | 4 +--
.../applicationGroupsCreateOrUpdateSample.ts | 4 +--
.../src/applicationGroupsDeleteSample.ts | 4 +--
.../src/applicationGroupsGetSample.ts | 4 +--
...licationGroupsListByResourceGroupSample.ts | 4 +--
...plicationGroupsListBySubscriptionSample.ts | 4 +--
.../src/applicationGroupsUpdateSample.ts | 4 +--
.../src/applicationsCreateOrUpdateSample.ts | 4 +--
.../src/applicationsDeleteSample.ts | 4 +--
.../typescript/src/applicationsGetSample.ts | 4 +--
.../typescript/src/applicationsListSample.ts | 4 +--
.../src/applicationsUpdateSample.ts | 4 +--
.../v1/typescript/src/desktopsGetSample.ts | 4 +--
.../v1/typescript/src/desktopsListSample.ts | 4 +--
.../v1/typescript/src/desktopsUpdateSample.ts | 4 +--
.../src/hostPoolsCreateOrUpdateSample.ts | 4 +--
.../typescript/src/hostPoolsDeleteSample.ts | 4 +--
.../v1/typescript/src/hostPoolsGetSample.ts | 4 +--
.../src/hostPoolsListByResourceGroupSample.ts | 4 +--
.../hostPoolsListRegistrationTokensSample.ts | 4 +--
.../v1/typescript/src/hostPoolsListSample.ts | 4 +--
...ostPoolsRetrieveRegistrationTokenSample.ts | 4 +--
.../typescript/src/hostPoolsUpdateSample.ts | 4 +--
.../typescript/src/msixImagesExpandSample.ts | 4 +--
.../src/msixPackagesCreateOrUpdateSample.ts | 4 +--
.../src/msixPackagesDeleteSample.ts | 4 +--
.../typescript/src/msixPackagesGetSample.ts | 4 +--
.../typescript/src/msixPackagesListSample.ts | 4 +--
.../src/msixPackagesUpdateSample.ts | 4 +--
.../v1/typescript/src/operationsListSample.ts | 4 +--
...dpointConnectionsDeleteByHostPoolSample.ts | 4 +--
...pointConnectionsDeleteByWorkspaceSample.ts | 4 +--
...eEndpointConnectionsGetByHostPoolSample.ts | 4 +--
...EndpointConnectionsGetByWorkspaceSample.ts | 4 +--
...EndpointConnectionsListByHostPoolSample.ts | 4 +--
...ndpointConnectionsListByWorkspaceSample.ts | 4 +--
...dpointConnectionsUpdateByHostPoolSample.ts | 4 +--
...pointConnectionsUpdateByWorkspaceSample.ts | 4 +--
...rivateLinkResourcesListByHostPoolSample.ts | 4 +--
...ivateLinkResourcesListByWorkspaceSample.ts | 4 +--
...calingPlanPersonalSchedulesCreateSample.ts | 4 +--
...calingPlanPersonalSchedulesDeleteSample.ts | 4 +--
.../scalingPlanPersonalSchedulesGetSample.ts | 4 +--
.../scalingPlanPersonalSchedulesListSample.ts | 4 +--
...calingPlanPersonalSchedulesUpdateSample.ts | 4 +--
.../scalingPlanPooledSchedulesCreateSample.ts | 4 +--
.../scalingPlanPooledSchedulesDeleteSample.ts | 4 +--
.../scalingPlanPooledSchedulesGetSample.ts | 4 +--
.../scalingPlanPooledSchedulesListSample.ts | 4 +--
.../scalingPlanPooledSchedulesUpdateSample.ts | 4 +--
.../src/scalingPlansCreateSample.ts | 4 +--
.../src/scalingPlansDeleteSample.ts | 4 +--
.../typescript/src/scalingPlansGetSample.ts | 4 +--
.../src/scalingPlansListByHostPoolSample.ts | 4 +--
.../scalingPlansListByResourceGroupSample.ts | 4 +--
.../scalingPlansListBySubscriptionSample.ts | 4 +--
.../src/scalingPlansUpdateSample.ts | 4 +--
.../src/sessionHostsDeleteSample.ts | 4 +--
.../typescript/src/sessionHostsGetSample.ts | 4 +--
.../typescript/src/sessionHostsListSample.ts | 4 +--
.../src/sessionHostsUpdateSample.ts | 4 +--
.../src/startMenuItemsListSample.ts | 4 +--
.../src/userSessionsDeleteSample.ts | 4 +--
.../src/userSessionsDisconnectSample.ts | 4 +--
.../typescript/src/userSessionsGetSample.ts | 4 +--
.../src/userSessionsListByHostPoolSample.ts | 4 +--
.../typescript/src/userSessionsListSample.ts | 4 +--
.../src/userSessionsSendMessageSample.ts | 4 +--
.../src/workspacesCreateOrUpdateSample.ts | 4 +--
.../typescript/src/workspacesDeleteSample.ts | 4 +--
.../v1/typescript/src/workspacesGetSample.ts | 4 +--
.../workspacesListByResourceGroupSample.ts | 4 +--
.../src/workspacesListBySubscriptionSample.ts | 4 +--
.../typescript/src/workspacesUpdateSample.ts | 4 +--
.../src/desktopVirtualizationAPIClient.ts | 6 ++--
.../arm-desktopvirtualization/src/index.ts | 8 ++---
.../src/models/parameters.ts | 2 +-
.../src/operations/appAttachPackageInfo.ts | 12 +++----
.../operations/appAttachPackageOperations.ts | 12 +++----
.../src/operations/applicationGroups.ts | 12 +++----
.../src/operations/applications.ts | 12 +++----
.../src/operations/desktops.ts | 12 +++----
.../src/operations/hostPools.ts | 12 +++----
.../src/operations/index.ts | 36 +++++++++----------
.../src/operations/msixImages.ts | 12 +++----
.../src/operations/msixPackages.ts | 12 +++----
.../src/operations/operations.ts | 12 +++----
.../operations/privateEndpointConnections.ts | 12 +++----
.../src/operations/privateLinkResources.ts | 12 +++----
.../scalingPlanPersonalSchedules.ts | 12 +++----
.../operations/scalingPlanPooledSchedules.ts | 12 +++----
.../src/operations/scalingPlans.ts | 12 +++----
.../src/operations/sessionHosts.ts | 12 +++----
.../src/operations/startMenuItems.ts | 12 +++----
.../src/operations/userSessions.ts | 12 +++----
.../src/operations/workspaces.ts | 12 +++----
.../appAttachPackageInfo.ts | 2 +-
.../appAttachPackageOperations.ts | 2 +-
.../operationsInterfaces/applicationGroups.ts | 2 +-
.../src/operationsInterfaces/applications.ts | 2 +-
.../src/operationsInterfaces/desktops.ts | 2 +-
.../src/operationsInterfaces/hostPools.ts | 2 +-
.../src/operationsInterfaces/index.ts | 36 +++++++++----------
.../src/operationsInterfaces/msixImages.ts | 2 +-
.../src/operationsInterfaces/msixPackages.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../privateEndpointConnections.ts | 2 +-
.../privateLinkResources.ts | 2 +-
.../scalingPlanPersonalSchedules.ts | 2 +-
.../scalingPlanPooledSchedules.ts | 2 +-
.../src/operationsInterfaces/scalingPlans.ts | 2 +-
.../src/operationsInterfaces/sessionHosts.ts | 2 +-
.../operationsInterfaces/startMenuItems.ts | 2 +-
.../src/operationsInterfaces/userSessions.ts | 2 +-
.../src/operationsInterfaces/workspaces.ts | 2 +-
...ktopvirtualization_operations_test.spec.ts | 8 ++---
202 files changed, 333 insertions(+), 655 deletions(-)
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
index a8e4aac46c40..9ad1343ac4d2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an App Attach package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
index f55c3d7dde1c..66317de738a5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an App Attach Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
index a5b29e0b2777..4802af0f0060 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an app attach package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
index 416a764bad03..e267c34344b4 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information from a package given the path to the package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
index febaaf8351ba..0c53841e9c19 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List App Attach packages in resource group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
index 97ae9428ad50..5050cb86f88d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List App Attach packages in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
index 592c0bfe37da..c54928989296 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an App Attach Package
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
index 7d5cf66ad583..faab278f0e42 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
index 44ebb368c807..a09f7d32fab2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
index f379d612aa7c..fd06604e6a10 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an application group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
index 1a15c82fb572..46350e8c5a64 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applicationGroups.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
index 75f7e6221229..a4c7745a872a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applicationGroups in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
index 28b8730d693a..b51799e7b361 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
index ed1a9b4ed43e..348258bf17b5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
index 818319e7914b..cbe552756c03 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
index 165587fd480c..d79561ddcd97 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
index 71032c31f53b..25716071cf02 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applications.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
index c4050b826a5a..061c77042ed8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
index bf414f16b3d9..694817a18c24 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a desktop.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
index 6c40baaa3adc..44f2ba986192 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List desktops.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
index 21c271aae1f2..e0dc02bccebe 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a desktop.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
index 975a8510013f..8b370ab2dadf 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
index b3d85b275e69..2059c2fd3c90 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
index 26dbf084f5e5..13df980cbb8d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
index e8a59cc2a685..0ac20c885236 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List hostPools.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
index 113d64177272..c3144c712597 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to list the RegistrationTokens associated with the HostPool
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
index 8741205ec0c9..4bf990f4a0bd 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List hostPools in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
index 3961aee0aa96..842cc99c70e7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Registration token of the host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
index 13893d32c76a..ee7dcb695176 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
index 67ed0a2bf3d3..df3a47fe67f2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Expands and Lists MSIX packages in an Image, given the Image Path.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
index 06e32f05c23a..73b40de3fe92 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a MSIX package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
index f5f963a67476..39616e7d06bf 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an MSIX Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
index cdac2a5f9ca5..e3e5eb9ac258 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a msixpackage.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
index 87ff9475fd8d..f4cbc1176e8a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List MSIX packages in hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
index 35193a0c4124..c55b89ceec6d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an MSIX Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
index a90ffa4ce616..e12114db11e7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all of the available operations the Desktop Virtualization resource provider supports.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
index 3f9d5b6396d8..c1b5d7e5bf4c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
index 93d9b2ca4bf7..93a968c911e1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
index 77f3c56d791f..32b3c4e21855 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
index f84aa5ff4aa3..d9b6a74d23e0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
index 62a28fb5d250..0a996187b0ca 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections associated with hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
index ad5b679d04af..3b33e20e4ec3 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
index 3283a126fab9..bbb360025135 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Approve or reject a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
index 0de59f1876ba..7c4fd8bcc7f0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Approve or reject a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
index dbfd5fa3753a..4d88a933da49 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the private link resources available for this hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
index 5998aff57b10..27e85d3a28f9 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the private link resources available for this workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
index bc3eff7868c1..48049e4f490f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
index 2f1135db7361..3005148537ec 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
index 7655768c1841..c6fb7d3d3eeb 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
index 4c75c5fddd40..aa89c88e7151 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List ScalingPlanPersonalSchedules.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
index 762be5c8cda8..76e96100349d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
index b59b66adc6a2..ef4c94fdc63c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
index 3e8706d60c95..99e4c1595f93 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
index 8fe6f180018a..c133d396d0b6 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
index 71d6b18877d0..1c2979804d13 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List ScalingPlanPooledSchedules.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
index 1c6327bb1e84..00e6c1f13267 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
index 2e124b835433..6a6c18ae81d5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
index 991181cafa24..0c52567fa008 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
index d074264665c2..7bddb275f160 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
index ae92261f6d20..a8b6093fed7c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plan associated with hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
index 763d1df47d71..265b60ee0665 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plans.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
index 2899e9898875..93cae6e0bded 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plans in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
index 79bda66489e6..243d3c382017 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
index 18690c6fd6f0..ada382b27367 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a SessionHost.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
index 1d10a1030dcf..1bd8ae0b980c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a session host.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
index ccb357782d79..a08f1e4ae8ee 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List sessionHosts.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
index af3adb35fcb3..2f129c21dca4 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a session host.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
index ca70540f1f20..3be064d4cc72 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List start menu items in the given application group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
index fba48886b361..b450ee006a99 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
index 4e042bb96af9..f1c9a313d60c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disconnect a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
index 222c623d1b69..45ebfe5c7b7f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
index 6789050fcd35..dcc6df995d1d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List userSessions.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
index aa67041c0b0e..9942455744cb 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List userSessions.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
index 1675b74c2d24..ca1d3ccffa71 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Send a message to a user.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
index f35ad13de66c..9955640d2964 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
index 35a65aa408d9..35f2ed28b831 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
index 01cc880fe1c8..b6747fca022f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
index bb6ebbb0e7fb..f50050e50c0a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List workspaces.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
index fe882094b402..efb8f4dfd2f8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List workspaces in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
index 54fe60a92b6b..c1cd6c52a90e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageCreateOrUpdateSample.ts
index a8e4aac46c40..9ad1343ac4d2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an App Attach package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageDeleteSample.ts
index f55c3d7dde1c..66317de738a5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an App Attach Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageGetSample.ts
index a5b29e0b2777..4802af0f0060 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an app attach package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageInfoImportSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageInfoImportSample.ts
index 416a764bad03..e267c34344b4 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageInfoImportSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageInfoImportSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information from a package given the path to the package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListByResourceGroupSample.ts
index febaaf8351ba..0c53841e9c19 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List App Attach packages in resource group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListBySubscriptionSample.ts
index 97ae9428ad50..5050cb86f88d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List App Attach packages in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageUpdateSample.ts
index 592c0bfe37da..c54928989296 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/appAttachPackageUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an App Attach Package
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsCreateOrUpdateSample.ts
index 7d5cf66ad583..faab278f0e42 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsDeleteSample.ts
index 44ebb368c807..a09f7d32fab2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsGetSample.ts
index f379d612aa7c..fd06604e6a10 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an application group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListByResourceGroupSample.ts
index 1a15c82fb572..46350e8c5a64 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applicationGroups.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListBySubscriptionSample.ts
index 75f7e6221229..a4c7745a872a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applicationGroups in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsUpdateSample.ts
index 28b8730d693a..b51799e7b361 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationGroupsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an applicationGroup.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsCreateOrUpdateSample.ts
index ed1a9b4ed43e..348258bf17b5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsDeleteSample.ts
index 818319e7914b..cbe552756c03 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsGetSample.ts
index 165587fd480c..d79561ddcd97 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsListSample.ts
index 71032c31f53b..25716071cf02 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List applications.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsUpdateSample.ts
index c4050b826a5a..061c77042ed8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/applicationsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an application.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsGetSample.ts
index bf414f16b3d9..694817a18c24 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a desktop.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsListSample.ts
index 6c40baaa3adc..44f2ba986192 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List desktops.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsUpdateSample.ts
index 21c271aae1f2..e0dc02bccebe 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/desktopsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a desktop.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsCreateOrUpdateSample.ts
index 975a8510013f..8b370ab2dadf 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsDeleteSample.ts
index b3d85b275e69..2059c2fd3c90 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsGetSample.ts
index 26dbf084f5e5..13df980cbb8d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListByResourceGroupSample.ts
index e8a59cc2a685..0ac20c885236 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List hostPools.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListRegistrationTokensSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListRegistrationTokensSample.ts
index 113d64177272..c3144c712597 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListRegistrationTokensSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListRegistrationTokensSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to list the RegistrationTokens associated with the HostPool
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListSample.ts
index 8741205ec0c9..4bf990f4a0bd 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List hostPools in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsRetrieveRegistrationTokenSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsRetrieveRegistrationTokenSample.ts
index 3961aee0aa96..842cc99c70e7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsRetrieveRegistrationTokenSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsRetrieveRegistrationTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Registration token of the host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsUpdateSample.ts
index 13893d32c76a..ee7dcb695176 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/hostPoolsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a host pool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixImagesExpandSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixImagesExpandSample.ts
index 67ed0a2bf3d3..df3a47fe67f2 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixImagesExpandSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixImagesExpandSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Expands and Lists MSIX packages in an Image, given the Image Path.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesCreateOrUpdateSample.ts
index 06e32f05c23a..73b40de3fe92 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a MSIX package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesDeleteSample.ts
index f5f963a67476..39616e7d06bf 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove an MSIX Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesGetSample.ts
index cdac2a5f9ca5..e3e5eb9ac258 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a msixpackage.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesListSample.ts
index 87ff9475fd8d..f4cbc1176e8a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List MSIX packages in hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesUpdateSample.ts
index 35193a0c4124..c55b89ceec6d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/msixPackagesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an MSIX Package.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/operationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/operationsListSample.ts
index a90ffa4ce616..e12114db11e7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/operationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all of the available operations the Desktop Virtualization resource provider supports.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByHostPoolSample.ts
index 3f9d5b6396d8..c1b5d7e5bf4c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByWorkspaceSample.ts
index 93d9b2ca4bf7..93a968c911e1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsDeleteByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByHostPoolSample.ts
index 77f3c56d791f..32b3c4e21855 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByWorkspaceSample.ts
index f84aa5ff4aa3..d9b6a74d23e0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsGetByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByHostPoolSample.ts
index 62a28fb5d250..0a996187b0ca 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections associated with hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByWorkspaceSample.ts
index ad5b679d04af..3b33e20e4ec3 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByHostPoolSample.ts
index 3283a126fab9..bbb360025135 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Approve or reject a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByWorkspaceSample.ts
index 0de59f1876ba..7c4fd8bcc7f0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateEndpointConnectionsUpdateByWorkspaceSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Approve or reject a private endpoint connection.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByHostPoolSample.ts
index dbfd5fa3753a..4d88a933da49 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByHostPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the private link resources available for this hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByWorkspaceSample.ts
index 5998aff57b10..27e85d3a28f9 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/privateLinkResourcesListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the private link resources available for this workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesCreateSample.ts
index bc3eff7868c1..48049e4f490f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesDeleteSample.ts
index 2f1135db7361..3005148537ec 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesGetSample.ts
index 7655768c1841..c6fb7d3d3eeb 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesListSample.ts
index 4c75c5fddd40..aa89c88e7151 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List ScalingPlanPersonalSchedules.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesUpdateSample.ts
index 762be5c8cda8..76e96100349d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPersonalSchedulesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a ScalingPlanPersonalSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesCreateSample.ts
index b59b66adc6a2..ef4c94fdc63c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesDeleteSample.ts
index 3e8706d60c95..99e4c1595f93 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesGetSample.ts
index 8fe6f180018a..c133d396d0b6 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesListSample.ts
index 71d6b18877d0..1c2979804d13 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List ScalingPlanPooledSchedules.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesUpdateSample.ts
index 1c6327bb1e84..00e6c1f13267 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlanPooledSchedulesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a ScalingPlanPooledSchedule.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansCreateSample.ts
index 2e124b835433..6a6c18ae81d5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansCreateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansDeleteSample.ts
index 991181cafa24..0c52567fa008 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansGetSample.ts
index d074264665c2..7bddb275f160 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByHostPoolSample.ts
index ae92261f6d20..a8b6093fed7c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plan associated with hostpool.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByResourceGroupSample.ts
index 763d1df47d71..265b60ee0665 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plans.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListBySubscriptionSample.ts
index 2899e9898875..93cae6e0bded 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansListBySubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List scaling plans in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansUpdateSample.ts
index 79bda66489e6..243d3c382017 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/scalingPlansUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a scaling plan.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsDeleteSample.ts
index 18690c6fd6f0..ada382b27367 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a SessionHost.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsGetSample.ts
index 1d10a1030dcf..1bd8ae0b980c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a session host.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsListSample.ts
index ccb357782d79..a08f1e4ae8ee 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List sessionHosts.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsUpdateSample.ts
index af3adb35fcb3..2f129c21dca4 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/sessionHostsUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a session host.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/startMenuItemsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/startMenuItemsListSample.ts
index ca70540f1f20..3be064d4cc72 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/startMenuItemsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/startMenuItemsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List start menu items in the given application group.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDeleteSample.ts
index fba48886b361..b450ee006a99 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDisconnectSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDisconnectSample.ts
index 4e042bb96af9..f1c9a313d60c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDisconnectSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsDisconnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disconnect a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsGetSample.ts
index 222c623d1b69..45ebfe5c7b7f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a userSession.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListByHostPoolSample.ts
index 6789050fcd35..dcc6df995d1d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListByHostPoolSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List userSessions.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListSample.ts
index aa67041c0b0e..9942455744cb 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsListSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List userSessions.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsSendMessageSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsSendMessageSample.ts
index 1675b74c2d24..ca1d3ccffa71 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsSendMessageSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/userSessionsSendMessageSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Send a message to a user.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesCreateOrUpdateSample.ts
index f35ad13de66c..9955640d2964 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesDeleteSample.ts
index 35a65aa408d9..35f2ed28b831 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Remove a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesGetSample.ts
index 01cc880fe1c8..b6747fca022f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts
index bb6ebbb0e7fb..f50050e50c0a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List workspaces.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts
index fe882094b402..efb8f4dfd2f8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DesktopVirtualizationAPIClient } from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List workspaces in subscription.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesUpdateSample.ts
index 54fe60a92b6b..c1cd6c52a90e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples/v1/typescript/src/workspacesUpdateSample.ts
@@ -14,9 +14,7 @@ import {
DesktopVirtualizationAPIClient,
} from "@azure/arm-desktopvirtualization";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a workspace.
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts
index 3e9509098277..86395e2ab21f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/desktopVirtualizationAPIClient.ts
@@ -33,7 +33,7 @@ import {
AppAttachPackageInfoImpl,
MsixImagesImpl,
AppAttachPackageOperationsImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
Operations,
Workspaces,
@@ -53,8 +53,8 @@ import {
AppAttachPackageInfo,
MsixImages,
AppAttachPackageOperations,
-} from "./operationsInterfaces";
-import { DesktopVirtualizationAPIClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { DesktopVirtualizationAPIClientOptionalParams } from "./models/index.js";
export class DesktopVirtualizationAPIClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/index.ts
index b701146984a8..b9d2b217d793 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/index.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DesktopVirtualizationAPIClient } from "./desktopVirtualizationAPIClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DesktopVirtualizationAPIClient } from "./desktopVirtualizationAPIClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts
index 1d7f21fb29de..ced50244a6b7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/models/parameters.ts
@@ -36,7 +36,7 @@ import {
MsixImageURI as MsixImageURIMapper,
AppAttachPackage as AppAttachPackageMapper,
AppAttachPackagePatch as AppAttachPackagePatchMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageInfo.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageInfo.ts
index d27fd063b320..58f8ca590da3 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageInfo.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageInfo.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AppAttachPackageInfo } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AppAttachPackageInfo } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
AppAttachPackage,
ImportPackageInfoRequest,
@@ -20,7 +20,7 @@ import {
AppAttachPackageInfoImportOptionalParams,
AppAttachPackageInfoImportResponse,
AppAttachPackageInfoImportNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AppAttachPackageInfo operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageOperations.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageOperations.ts
index a4c6fcee4edb..1004dfab8bc5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageOperations.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/appAttachPackageOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AppAttachPackageOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AppAttachPackageOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
AppAttachPackage,
AppAttachPackageListByResourceGroupNextOptionalParams,
@@ -30,7 +30,7 @@ import {
AppAttachPackageUpdateResponse,
AppAttachPackageListByResourceGroupNextResponse,
AppAttachPackageListBySubscriptionNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AppAttachPackageOperations operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts
index 3b18a0085d0b..cfa098e7e56e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applicationGroups.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApplicationGroups } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApplicationGroups } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ApplicationGroup,
ApplicationGroupsListByResourceGroupNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ApplicationGroupsUpdateResponse,
ApplicationGroupsListByResourceGroupNextResponse,
ApplicationGroupsListBySubscriptionNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApplicationGroups operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts
index 0bc14dca22e2..025cf9762179 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/applications.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Applications } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Applications } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
Application,
ApplicationsListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
ApplicationsUpdateOptionalParams,
ApplicationsUpdateResponse,
ApplicationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Applications operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts
index efa475785e48..fb90819e3baa 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/desktops.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Desktops } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Desktops } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
Desktop,
DesktopsListNextOptionalParams,
@@ -23,7 +23,7 @@ import {
DesktopsUpdateOptionalParams,
DesktopsUpdateResponse,
DesktopsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Desktops operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts
index c3029ebfdd06..978de5f48349 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/hostPools.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { HostPools } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { HostPools } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
HostPool,
HostPoolsListByResourceGroupNextOptionalParams,
@@ -34,7 +34,7 @@ import {
HostPoolsListRegistrationTokensResponse,
HostPoolsListByResourceGroupNextResponse,
HostPoolsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing HostPools operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts
index a34bae2d819a..75b1da058c0a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/index.ts
@@ -6,21 +6,21 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./workspaces";
-export * from "./privateEndpointConnections";
-export * from "./privateLinkResources";
-export * from "./scalingPlans";
-export * from "./scalingPlanPooledSchedules";
-export * from "./scalingPlanPersonalSchedules";
-export * from "./applicationGroups";
-export * from "./startMenuItems";
-export * from "./applications";
-export * from "./desktops";
-export * from "./hostPools";
-export * from "./userSessions";
-export * from "./sessionHosts";
-export * from "./msixPackages";
-export * from "./appAttachPackageInfo";
-export * from "./msixImages";
-export * from "./appAttachPackageOperations";
+export * from "./operations.js";
+export * from "./workspaces.js";
+export * from "./privateEndpointConnections.js";
+export * from "./privateLinkResources.js";
+export * from "./scalingPlans.js";
+export * from "./scalingPlanPooledSchedules.js";
+export * from "./scalingPlanPersonalSchedules.js";
+export * from "./applicationGroups.js";
+export * from "./startMenuItems.js";
+export * from "./applications.js";
+export * from "./desktops.js";
+export * from "./hostPools.js";
+export * from "./userSessions.js";
+export * from "./sessionHosts.js";
+export * from "./msixPackages.js";
+export * from "./appAttachPackageInfo.js";
+export * from "./msixImages.js";
+export * from "./appAttachPackageOperations.js";
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts
index 6d81e9a51820..f95f720ac746 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixImages.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { MsixImages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { MsixImages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ExpandMsixImage,
MsixImageURI,
@@ -20,7 +20,7 @@ import {
MsixImagesExpandOptionalParams,
MsixImagesExpandResponse,
MsixImagesExpandNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing MsixImages operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts
index df6f69362ba1..cb72d63a280a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/msixPackages.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { MsixPackages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { MsixPackages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
MsixPackage,
MsixPackagesListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
MsixPackagesUpdateOptionalParams,
MsixPackagesUpdateResponse,
MsixPackagesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing MsixPackages operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts
index 6a0f9cccfaaa..0d1f7b1b775c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/operations.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Operations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ResourceProviderOperation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts
index a73dc146a1f8..052ebc5dbf7b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateEndpointConnections.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PrivateEndpointConnections } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
PrivateEndpointConnectionWithSystemData,
PrivateEndpointConnectionsListByWorkspaceNextOptionalParams,
@@ -34,7 +34,7 @@ import {
PrivateEndpointConnectionsUpdateByHostPoolResponse,
PrivateEndpointConnectionsListByWorkspaceNextResponse,
PrivateEndpointConnectionsListByHostPoolNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateEndpointConnections operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts
index 1086efc7cfea..b42da62b3b85 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/privateLinkResources.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PrivateLinkResources } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PrivateLinkResources } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
PrivateLinkResource,
PrivateLinkResourcesListByWorkspaceNextOptionalParams,
@@ -23,7 +23,7 @@ import {
PrivateLinkResourcesListByHostPoolResponse,
PrivateLinkResourcesListByWorkspaceNextResponse,
PrivateLinkResourcesListByHostPoolNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateLinkResources operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPersonalSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPersonalSchedules.ts
index 712276bb1f36..f647e2f88c09 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPersonalSchedules.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPersonalSchedules.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ScalingPlanPersonalSchedules } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ScalingPlanPersonalSchedules } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ScalingPlanPersonalSchedule,
ScalingPlanPersonalSchedulesListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
ScalingPlanPersonalSchedulesUpdateOptionalParams,
ScalingPlanPersonalSchedulesUpdateResponse,
ScalingPlanPersonalSchedulesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ScalingPlanPersonalSchedules operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts
index 69dbf78d8ec7..e0913c09756e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlanPooledSchedules.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ScalingPlanPooledSchedules } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ScalingPlanPooledSchedules } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ScalingPlanPooledSchedule,
ScalingPlanPooledSchedulesListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
ScalingPlanPooledSchedulesUpdateOptionalParams,
ScalingPlanPooledSchedulesUpdateResponse,
ScalingPlanPooledSchedulesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ScalingPlanPooledSchedules operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts
index 8e26bece8b40..6888baab34bd 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/scalingPlans.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ScalingPlans } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ScalingPlans } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
ScalingPlan,
ScalingPlansListByResourceGroupNextOptionalParams,
@@ -34,7 +34,7 @@ import {
ScalingPlansListByResourceGroupNextResponse,
ScalingPlansListBySubscriptionNextResponse,
ScalingPlansListByHostPoolNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ScalingPlans operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts
index e35a3384f562..fa6bc26f0fd3 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/sessionHosts.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { SessionHosts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { SessionHosts } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
SessionHost,
SessionHostsListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
SessionHostsUpdateOptionalParams,
SessionHostsUpdateResponse,
SessionHostsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing SessionHosts operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts
index 74eb1e7a572f..48ca4a86e649 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/startMenuItems.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { StartMenuItems } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { StartMenuItems } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
StartMenuItem,
StartMenuItemsListNextOptionalParams,
StartMenuItemsListOptionalParams,
StartMenuItemsListResponse,
StartMenuItemsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing StartMenuItems operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts
index 01480ea4b694..252bb4216c64 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/userSessions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { UserSessions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { UserSessions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
UserSession,
UserSessionsListByHostPoolNextOptionalParams,
@@ -28,7 +28,7 @@ import {
UserSessionsSendMessageOptionalParams,
UserSessionsListByHostPoolNextResponse,
UserSessionsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing UserSessions operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts
index 8b80cd5205f5..c3bb8f05034e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operations/workspaces.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Workspaces } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Workspaces } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DesktopVirtualizationAPIClient } from "../desktopVirtualizationAPIClient.js";
import {
Workspace,
WorkspacesListByResourceGroupNextOptionalParams,
@@ -30,7 +30,7 @@ import {
WorkspacesUpdateResponse,
WorkspacesListByResourceGroupNextResponse,
WorkspacesListBySubscriptionNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Workspaces operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageInfo.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageInfo.ts
index 65c55760a812..e85c9b8af96c 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageInfo.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageInfo.ts
@@ -11,7 +11,7 @@ import {
AppAttachPackage,
ImportPackageInfoRequest,
AppAttachPackageInfoImportOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AppAttachPackageInfo. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageOperations.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageOperations.ts
index 950fa07f225f..c34370436a5b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageOperations.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/appAttachPackageOperations.ts
@@ -18,7 +18,7 @@ import {
AppAttachPackageDeleteOptionalParams,
AppAttachPackageUpdateOptionalParams,
AppAttachPackageUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AppAttachPackageOperations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applicationGroups.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applicationGroups.ts
index bb59b098457a..180e1e4baffc 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applicationGroups.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applicationGroups.ts
@@ -18,7 +18,7 @@ import {
ApplicationGroupsDeleteOptionalParams,
ApplicationGroupsUpdateOptionalParams,
ApplicationGroupsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApplicationGroups. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applications.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applications.ts
index 9f7501a70733..e1f548c80836 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applications.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/applications.ts
@@ -17,7 +17,7 @@ import {
ApplicationsDeleteOptionalParams,
ApplicationsUpdateOptionalParams,
ApplicationsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Applications. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/desktops.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/desktops.ts
index cd21ee2f721d..ea0b7bd27bef 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/desktops.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/desktops.ts
@@ -14,7 +14,7 @@ import {
DesktopsGetResponse,
DesktopsUpdateOptionalParams,
DesktopsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Desktops. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/hostPools.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/hostPools.ts
index 73890df6781e..54ed9fcac881 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/hostPools.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/hostPools.ts
@@ -22,7 +22,7 @@ import {
HostPoolsRetrieveRegistrationTokenResponse,
HostPoolsListRegistrationTokensOptionalParams,
HostPoolsListRegistrationTokensResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a HostPools. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts
index a34bae2d819a..75b1da058c0a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/index.ts
@@ -6,21 +6,21 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./workspaces";
-export * from "./privateEndpointConnections";
-export * from "./privateLinkResources";
-export * from "./scalingPlans";
-export * from "./scalingPlanPooledSchedules";
-export * from "./scalingPlanPersonalSchedules";
-export * from "./applicationGroups";
-export * from "./startMenuItems";
-export * from "./applications";
-export * from "./desktops";
-export * from "./hostPools";
-export * from "./userSessions";
-export * from "./sessionHosts";
-export * from "./msixPackages";
-export * from "./appAttachPackageInfo";
-export * from "./msixImages";
-export * from "./appAttachPackageOperations";
+export * from "./operations.js";
+export * from "./workspaces.js";
+export * from "./privateEndpointConnections.js";
+export * from "./privateLinkResources.js";
+export * from "./scalingPlans.js";
+export * from "./scalingPlanPooledSchedules.js";
+export * from "./scalingPlanPersonalSchedules.js";
+export * from "./applicationGroups.js";
+export * from "./startMenuItems.js";
+export * from "./applications.js";
+export * from "./desktops.js";
+export * from "./hostPools.js";
+export * from "./userSessions.js";
+export * from "./sessionHosts.js";
+export * from "./msixPackages.js";
+export * from "./appAttachPackageInfo.js";
+export * from "./msixImages.js";
+export * from "./appAttachPackageOperations.js";
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixImages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixImages.ts
index 449822b54fc0..86ed576839e5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixImages.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixImages.ts
@@ -11,7 +11,7 @@ import {
ExpandMsixImage,
MsixImageURI,
MsixImagesExpandOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a MsixImages. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixPackages.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixPackages.ts
index b86fd11ff823..d852c14d9790 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixPackages.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/msixPackages.ts
@@ -17,7 +17,7 @@ import {
MsixPackagesDeleteOptionalParams,
MsixPackagesUpdateOptionalParams,
MsixPackagesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a MsixPackages. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/operations.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/operations.ts
index 724d5432a281..be1bdbc1e05b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/operations.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/operations.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ResourceProviderOperation,
OperationsListOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts
index 7feb740ec310..7f4ef74e01c3 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateEndpointConnections.ts
@@ -22,7 +22,7 @@ import {
PrivateEndpointConnectionsDeleteByHostPoolOptionalParams,
PrivateEndpointConnectionsUpdateByHostPoolOptionalParams,
PrivateEndpointConnectionsUpdateByHostPoolResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateEndpointConnections. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts
index 8f09033b5c5b..e56cb6ab038b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/privateLinkResources.ts
@@ -11,7 +11,7 @@ import {
PrivateLinkResource,
PrivateLinkResourcesListByWorkspaceOptionalParams,
PrivateLinkResourcesListByHostPoolOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateLinkResources. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPersonalSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPersonalSchedules.ts
index bb12e094fe61..349096cd7e75 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPersonalSchedules.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPersonalSchedules.ts
@@ -17,7 +17,7 @@ import {
ScalingPlanPersonalSchedulesDeleteOptionalParams,
ScalingPlanPersonalSchedulesUpdateOptionalParams,
ScalingPlanPersonalSchedulesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ScalingPlanPersonalSchedules. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts
index 517235dab9ab..82066c010127 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlanPooledSchedules.ts
@@ -17,7 +17,7 @@ import {
ScalingPlanPooledSchedulesDeleteOptionalParams,
ScalingPlanPooledSchedulesUpdateOptionalParams,
ScalingPlanPooledSchedulesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ScalingPlanPooledSchedules. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlans.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlans.ts
index f19bc9280059..2170432a6eaa 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlans.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/scalingPlans.ts
@@ -19,7 +19,7 @@ import {
ScalingPlansDeleteOptionalParams,
ScalingPlansUpdateOptionalParams,
ScalingPlansUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ScalingPlans. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/sessionHosts.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/sessionHosts.ts
index 0035eac9ce3f..3d518613d5af 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/sessionHosts.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/sessionHosts.ts
@@ -15,7 +15,7 @@ import {
SessionHostsDeleteOptionalParams,
SessionHostsUpdateOptionalParams,
SessionHostsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a SessionHosts. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/startMenuItems.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/startMenuItems.ts
index 9ae3fa4e024c..805e1c44bae6 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/startMenuItems.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/startMenuItems.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { StartMenuItem, StartMenuItemsListOptionalParams } from "../models";
+import { StartMenuItem, StartMenuItemsListOptionalParams } from "../models/index.js";
///
/** Interface representing a StartMenuItems. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/userSessions.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/userSessions.ts
index 46e9ace540d1..29895e619ba1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/userSessions.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/userSessions.ts
@@ -16,7 +16,7 @@ import {
UserSessionsDeleteOptionalParams,
UserSessionsDisconnectOptionalParams,
UserSessionsSendMessageOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a UserSessions. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/workspaces.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/workspaces.ts
index 7fa4e90ee643..e7f5b538366b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/workspaces.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/src/operationsInterfaces/workspaces.ts
@@ -18,7 +18,7 @@ import {
WorkspacesDeleteOptionalParams,
WorkspacesUpdateOptionalParams,
WorkspacesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Workspaces. */
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
index 3ea090110914..c4155373e9cf 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
@@ -10,13 +10,11 @@ import {
env,
Recorder,
RecorderStartOptions,
- delay,
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
import { assert } from "chai";
-import { Context } from "mocha";
-import { DesktopVirtualizationAPIClient } from "../src/desktopVirtualizationAPIClient";
+import { DesktopVirtualizationAPIClient } from "../src/desktopVirtualizationAPIClient.js";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -45,8 +43,8 @@ describe("DesktopVirtualization test", () => {
let resourceGroup: string;
let resourcename: string;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
subscriptionId = env.SUBSCRIPTION_ID || '';
// This is an example of how the environment variables are used
From f92e94238cb294aa0d329cfbae99194c73e6cc79 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:45 +0800
Subject: [PATCH 29/62] Migration: Apply codemod: "fixTestingImports"
---
.../test/desktopvirtualization_operations_test.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
index c4155373e9cf..59740b2d572b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
@@ -13,8 +13,8 @@ import {
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
import { DesktopVirtualizationAPIClient } from "../src/desktopVirtualizationAPIClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
From 2654986957876b5ab0b847f62c93bdee98c5d96f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:47 +0800
Subject: [PATCH 30/62] Migration: Apply codemod: "replaceAssertIsRejected"
From 72f5a1d24084d1a2d8e579f84fc8e43a47d08f84 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:48 +0800
Subject: [PATCH 31/62] Migration: Apply codemod: "replaceSinonStub"
From ff2a82730e3af3f85e27ab1a06e210c563c9827d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:49 +0800
Subject: [PATCH 32/62] Migration: Apply codemod: "addViHelper"
From 4b60a1da35aaa9f42cf719d83a6478d51b8b84b8 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:51 +0800
Subject: [PATCH 33/62] Migration: Apply codemod: "replaceSupportTracing"
From cf193caa6ea4882129c6f589c50988050d71becd Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:52 +0800
Subject: [PATCH 34/62] Migration: Apply codemod: "replaceTestUtils"
From b0de024c3ff3cb081e31080603fb10a9d8038c50 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:25:54 +0800
Subject: [PATCH 35/62] Migration: rushx format
From 69cb8755df1c1745359b555364df2925a1037a2d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:30:51 +0800
Subject: [PATCH 36/62] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
.../arm-desktopvirtualization/package.json | 29 ++++++++++++---
2 files changed, 49 insertions(+), 16 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index c968ae03e64d..8da5a6e9b621 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -288,7 +288,7 @@ importers:
version: file:projects/arm-deploymentmanager.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-desktopvirtualization':
specifier: file:./projects/arm-desktopvirtualization.tgz
- version: file:projects/arm-desktopvirtualization.tgz
+ version: file:projects/arm-desktopvirtualization.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-devcenter':
specifier: file:./projects/arm-devcenter.tgz
version: file:projects/arm-devcenter.tgz
@@ -2831,7 +2831,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-desktopvirtualization@file:projects/arm-desktopvirtualization.tgz':
- resolution: {integrity: sha512-4olKnT3/xgxuaQCpem59XW51YbXs0rlMLOGIhXE5MO5+kp6DVAQbjOSEsJLtO9A9QpUs057NE1rBuslHYB6+UQ==, tarball: file:projects/arm-desktopvirtualization.tgz}
+ resolution: {integrity: sha512-iMCmriZfgK8KBSAlKJhf/kwuf61ymQg3lB+X5Gf6tfgDN9KABblt8hXkg2T4VulE/M+YKKvKEJ0C8dEImlTIhQ==, tarball: file:projects/arm-desktopvirtualization.tgz}
version: 0.0.0
'@rush-temp/arm-devcenter@file:projects/arm-devcenter.tgz':
@@ -12531,23 +12531,35 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-desktopvirtualization@file:projects/arm-desktopvirtualization.tgz':
+ '@rush-temp/arm-desktopvirtualization@file:projects/arm-desktopvirtualization.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure-tools/test-credential': 1.3.1
- '@azure-tools/test-recorder': 3.5.2
- '@types/chai': 4.3.20
- '@types/mocha': 10.0.10
'@types/node': 18.19.70
- chai: 4.5.0
+ '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
+ '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8)
dotenv: 16.4.7
- mocha: 11.1.0
- ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.2)
+ playwright: 1.49.1
tslib: 2.8.1
typescript: 5.7.2
+ vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
+ - '@edge-runtime/vm'
+ - '@vitest/ui'
+ - bufferutil
+ - happy-dom
+ - jsdom
+ - less
+ - lightningcss
+ - msw
+ - safaridriver
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
- supports-color
+ - terser
+ - utf-8-validate
+ - vite
+ - webdriverio
'@rush-temp/arm-devcenter@file:projects/arm-devcenter.tgz':
dependencies:
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
index 22ba0017097c..e9746ead741a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/package.json
@@ -22,9 +22,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-desktopvirtualization.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
@@ -116,5 +116,26 @@
"selfLink": false
},
"browser": "./dist/browser/index.js",
- "react-native": "./dist/react-native/index.js"
+ "react-native": "./dist/react-native/index.js",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ }
}
From bcfa71575580c0ae1dc36324456dbde7199ff08b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:32:37 +0800
Subject: [PATCH 37/62] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-devcenter/api-extractor.json | 6 +-
sdk/devcenter/arm-devcenter/package.json | 59 +++++++++++--------
sdk/devcenter/arm-devcenter/tsconfig.json | 40 ++++---------
.../arm-devcenter/tsconfig.samples.json | 10 ++++
sdk/devcenter/arm-devcenter/tsconfig.src.json | 3 +
.../arm-devcenter/tsconfig.test.json | 6 ++
6 files changed, 66 insertions(+), 58 deletions(-)
create mode 100644 sdk/devcenter/arm-devcenter/tsconfig.samples.json
create mode 100644 sdk/devcenter/arm-devcenter/tsconfig.src.json
create mode 100644 sdk/devcenter/arm-devcenter/tsconfig.test.json
diff --git a/sdk/devcenter/arm-devcenter/api-extractor.json b/sdk/devcenter/arm-devcenter/api-extractor.json
index 2c6a07bf4f1a..e1489d23d237 100644
--- a/sdk/devcenter/arm-devcenter/api-extractor.json
+++ b/sdk/devcenter/arm-devcenter/api-extractor.json
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
- "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
@@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
- "publicTrimmedFilePath": "./types/arm-devcenter.d.ts"
+ "publicTrimmedFilePath": "dist/arm-devcenter.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/devcenter/arm-devcenter/package.json b/sdk/devcenter/arm-devcenter/package.json
index 74da32a93c69..6da12c599497 100644
--- a/sdk/devcenter/arm-devcenter/package.json
+++ b/sdk/devcenter/arm-devcenter/package.json
@@ -28,18 +28,18 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-devcenter.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.1.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -49,24 +49,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -78,7 +68,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -88,7 +78,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -109,5 +99,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-devcenter?view=azure-node-preview"
- }
+ },
+ "type": "module",
+ "tshy": {
+ "project": "./tsconfig.src.json",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ },
+ "dialects": [
+ "esm",
+ "commonjs"
+ ],
+ "esmDialects": [
+ "browser",
+ "react-native"
+ ],
+ "selfLink": false
+ },
+ "browser": "./dist/browser/index.js",
+ "react-native": "./dist/react-native/index.js"
}
diff --git a/sdk/devcenter/arm-devcenter/tsconfig.json b/sdk/devcenter/arm-devcenter/tsconfig.json
index 4840dfd287a6..19ceb382b521 100644
--- a/sdk/devcenter/arm-devcenter/tsconfig.json
+++ b/sdk/devcenter/arm-devcenter/tsconfig.json
@@ -1,33 +1,13 @@
{
- "compilerOptions": {
- "module": "es6",
- "moduleResolution": "node",
- "strict": true,
- "target": "es6",
- "sourceMap": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "lib": [
- "es6",
- "dom"
- ],
- "declaration": true,
- "outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-devcenter": [
- "./src/index"
- ]
+ "references": [
+ {
+ "path": "./tsconfig.src.json"
+ },
+ {
+ "path": "./tsconfig.samples.json"
+ },
+ {
+ "path": "./tsconfig.test.json"
}
- },
- "include": [
- "./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
- ],
- "exclude": [
- "node_modules"
]
-}
\ No newline at end of file
+}
diff --git a/sdk/devcenter/arm-devcenter/tsconfig.samples.json b/sdk/devcenter/arm-devcenter/tsconfig.samples.json
new file mode 100644
index 000000000000..f769164b0711
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-devcenter": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/devcenter/arm-devcenter/tsconfig.src.json b/sdk/devcenter/arm-devcenter/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/devcenter/arm-devcenter/tsconfig.test.json b/sdk/devcenter/arm-devcenter/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From 3d2dec2e7eac22fa8114f9997f59c9734724a9b8 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:32:38 +0800
Subject: [PATCH 38/62] Migration: Update test config
---
.../arm-devcenter/tsconfig.browser.config.json | 6 ++++++
.../arm-devcenter/vitest.browser.config.ts | 17 +++++++++++++++++
sdk/devcenter/arm-devcenter/vitest.config.ts | 16 ++++++++++++++++
.../arm-devcenter/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 51 insertions(+)
create mode 100644 sdk/devcenter/arm-devcenter/tsconfig.browser.config.json
create mode 100644 sdk/devcenter/arm-devcenter/vitest.browser.config.ts
create mode 100644 sdk/devcenter/arm-devcenter/vitest.config.ts
create mode 100644 sdk/devcenter/arm-devcenter/vitest.esm.config.ts
diff --git a/sdk/devcenter/arm-devcenter/tsconfig.browser.config.json b/sdk/devcenter/arm-devcenter/tsconfig.browser.config.json
new file mode 100644
index 000000000000..0c8bafa97126
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/tsconfig.browser.config.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.test.json",
+ "../../../tsconfig.browser.base.json"
+ ]
+}
diff --git a/sdk/devcenter/arm-devcenter/vitest.browser.config.ts b/sdk/devcenter/arm-devcenter/vitest.browser.config.ts
new file mode 100644
index 000000000000..182729ab5ce9
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/vitest.browser.config.ts
@@ -0,0 +1,17 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.browser.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ include: ["dist-test/browser/test/**/*.spec.js",],
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/devcenter/arm-devcenter/vitest.config.ts b/sdk/devcenter/arm-devcenter/vitest.config.ts
new file mode 100644
index 000000000000..40e031385dd8
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/vitest.config.ts
@@ -0,0 +1,16 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/devcenter/arm-devcenter/vitest.esm.config.ts b/sdk/devcenter/arm-devcenter/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/devcenter/arm-devcenter/vitest.esm.config.ts
@@ -0,0 +1,12 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { mergeConfig } from "vitest/config";
+import vitestConfig from "./vitest.config.ts";
+import vitestEsmConfig from "../../../vitest.esm.shared.config.ts";
+
+export default mergeConfig(
+ vitestConfig,
+ vitestEsmConfig
+);
From a2c2a19be850a05edfa8389556f1549f35666866 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:32:38 +0800
Subject: [PATCH 39/62] Migration: Clean up files
From e70185ef36e0057aa2b4b84740002e49993aace4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:14 +0800
Subject: [PATCH 40/62] Migration: Apply codemod: "fixSourceFile"
---
.../attachedNetworksCreateOrUpdateSample.ts | 4 +-
.../attachedNetworksDeleteSample.ts | 4 +-
.../attachedNetworksGetByDevCenterSample.ts | 4 +-
.../attachedNetworksGetByProjectSample.ts | 4 +-
.../attachedNetworksListByDevCenterSample.ts | 4 +-
.../attachedNetworksListByProjectSample.ts | 4 +-
.../samples-dev/catalogsConnectSample.ts | 4 +-
.../catalogsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/catalogsDeleteSample.ts | 4 +-
.../samples-dev/catalogsGetSample.ts | 4 +-
.../catalogsGetSyncErrorDetailsSample.ts | 4 +-
.../catalogsListByDevCenterSample.ts | 4 +-
.../samples-dev/catalogsSyncSample.ts | 4 +-
.../samples-dev/catalogsUpdateSample.ts | 4 +-
.../checkNameAvailabilityExecuteSample.ts | 4 +-
...heckScopedNameAvailabilityExecuteSample.ts | 4 +-
.../devBoxDefinitionsCreateOrUpdateSample.ts | 4 +-
.../devBoxDefinitionsDeleteSample.ts | 4 +-
.../devBoxDefinitionsGetByProjectSample.ts | 4 +-
.../samples-dev/devBoxDefinitionsGetSample.ts | 4 +-
.../devBoxDefinitionsListByDevCenterSample.ts | 4 +-
.../devBoxDefinitionsListByProjectSample.ts | 4 +-
.../devBoxDefinitionsUpdateSample.ts | 4 +-
.../devCentersCreateOrUpdateSample.ts | 4 +-
.../samples-dev/devCentersDeleteSample.ts | 4 +-
.../samples-dev/devCentersGetSample.ts | 4 +-
.../devCentersListByResourceGroupSample.ts | 4 +-
.../devCentersListBySubscriptionSample.ts | 4 +-
.../samples-dev/devCentersUpdateSample.ts | 4 +-
...entDefinitionsGetByProjectCatalogSample.ts | 4 +-
...ronmentDefinitionsGetErrorDetailsSample.ts | 4 +-
.../environmentDefinitionsGetSample.ts | 4 +-
...vironmentDefinitionsListByCatalogSample.ts | 4 +-
...ntDefinitionsListByProjectCatalogSample.ts | 4 +-
.../environmentTypesCreateOrUpdateSample.ts | 4 +-
.../environmentTypesDeleteSample.ts | 4 +-
.../samples-dev/environmentTypesGetSample.ts | 4 +-
.../environmentTypesListByDevCenterSample.ts | 4 +-
.../environmentTypesUpdateSample.ts | 4 +-
.../galleriesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/galleriesDeleteSample.ts | 4 +-
.../samples-dev/galleriesGetSample.ts | 4 +-
.../galleriesListByDevCenterSample.ts | 4 +-
.../samples-dev/imageVersionsGetSample.ts | 4 +-
.../imageVersionsListByImageSample.ts | 4 +-
.../samples-dev/imagesGetSample.ts | 4 +-
.../imagesListByDevCenterSample.ts | 4 +-
.../samples-dev/imagesListByGallerySample.ts | 4 +-
.../networkConnectionsCreateOrUpdateSample.ts | 4 +-
.../networkConnectionsDeleteSample.ts | 4 +-
...etworkConnectionsGetHealthDetailsSample.ts | 4 +-
.../networkConnectionsGetSample.ts | 4 +-
...orkConnectionsListByResourceGroupSample.ts | 4 +-
...workConnectionsListBySubscriptionSample.ts | 4 +-
...tworkConnectionsListHealthDetailsSample.ts | 4 +-
...boundNetworkDependenciesEndpointsSample.ts | 4 +-
...networkConnectionsRunHealthChecksSample.ts | 4 +-
.../networkConnectionsUpdateSample.ts | 4 +-
.../samples-dev/operationStatusesGetSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../samples-dev/poolsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/poolsDeleteSample.ts | 4 +-
.../samples-dev/poolsGetSample.ts | 4 +-
.../samples-dev/poolsListByProjectSample.ts | 4 +-
.../samples-dev/poolsRunHealthChecksSample.ts | 4 +-
.../samples-dev/poolsUpdateSample.ts | 4 +-
...projectAllowedEnvironmentTypesGetSample.ts | 4 +-
...rojectAllowedEnvironmentTypesListSample.ts | 4 +-
...ronmentDefinitionsGetErrorDetailsSample.ts | 4 +-
.../projectCatalogsConnectSample.ts | 4 +-
.../projectCatalogsCreateOrUpdateSample.ts | 4 +-
.../projectCatalogsDeleteSample.ts | 4 +-
.../samples-dev/projectCatalogsGetSample.ts | 4 +-
...rojectCatalogsGetSyncErrorDetailsSample.ts | 4 +-
.../samples-dev/projectCatalogsListSample.ts | 4 +-
.../samples-dev/projectCatalogsPatchSample.ts | 4 +-
.../samples-dev/projectCatalogsSyncSample.ts | 4 +-
...ectEnvironmentTypesCreateOrUpdateSample.ts | 4 +-
.../projectEnvironmentTypesDeleteSample.ts | 4 +-
.../projectEnvironmentTypesGetSample.ts | 4 +-
.../projectEnvironmentTypesListSample.ts | 4 +-
.../projectEnvironmentTypesUpdateSample.ts | 4 +-
.../projectsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/projectsDeleteSample.ts | 4 +-
.../samples-dev/projectsGetSample.ts | 4 +-
.../projectsListByResourceGroupSample.ts | 4 +-
.../projectsListBySubscriptionSample.ts | 4 +-
.../samples-dev/projectsUpdateSample.ts | 4 +-
.../schedulesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/schedulesDeleteSample.ts | 4 +-
.../samples-dev/schedulesGetSample.ts | 4 +-
.../samples-dev/schedulesListByPoolSample.ts | 4 +-
.../samples-dev/schedulesUpdateSample.ts | 4 +-
.../skusListBySubscriptionSample.ts | 4 +-
.../samples-dev/usagesListByLocationSample.ts | 4 +-
.../attachedNetworksCreateOrUpdateSample.ts | 4 +-
.../src/attachedNetworksDeleteSample.ts | 4 +-
.../attachedNetworksGetByDevCenterSample.ts | 4 +-
.../src/attachedNetworksGetByProjectSample.ts | 4 +-
.../attachedNetworksListByDevCenterSample.ts | 4 +-
.../attachedNetworksListByProjectSample.ts | 4 +-
.../typescript/src/catalogsConnectSample.ts | 4 +-
.../src/catalogsCreateOrUpdateSample.ts | 4 +-
.../v1/typescript/src/catalogsDeleteSample.ts | 4 +-
.../v1/typescript/src/catalogsGetSample.ts | 4 +-
.../src/catalogsGetSyncErrorDetailsSample.ts | 4 +-
.../src/catalogsListByDevCenterSample.ts | 4 +-
.../v1/typescript/src/catalogsSyncSample.ts | 4 +-
.../v1/typescript/src/catalogsUpdateSample.ts | 4 +-
.../src/checkNameAvailabilityExecuteSample.ts | 4 +-
...heckScopedNameAvailabilityExecuteSample.ts | 4 +-
.../devBoxDefinitionsCreateOrUpdateSample.ts | 4 +-
.../src/devBoxDefinitionsDeleteSample.ts | 4 +-
.../devBoxDefinitionsGetByProjectSample.ts | 4 +-
.../src/devBoxDefinitionsGetSample.ts | 4 +-
.../devBoxDefinitionsListByDevCenterSample.ts | 4 +-
.../devBoxDefinitionsListByProjectSample.ts | 4 +-
.../src/devBoxDefinitionsUpdateSample.ts | 4 +-
.../src/devCentersCreateOrUpdateSample.ts | 4 +-
.../typescript/src/devCentersDeleteSample.ts | 4 +-
.../v1/typescript/src/devCentersGetSample.ts | 4 +-
.../devCentersListByResourceGroupSample.ts | 4 +-
.../src/devCentersListBySubscriptionSample.ts | 4 +-
.../typescript/src/devCentersUpdateSample.ts | 4 +-
...entDefinitionsGetByProjectCatalogSample.ts | 4 +-
...ronmentDefinitionsGetErrorDetailsSample.ts | 4 +-
.../src/environmentDefinitionsGetSample.ts | 4 +-
...vironmentDefinitionsListByCatalogSample.ts | 4 +-
...ntDefinitionsListByProjectCatalogSample.ts | 4 +-
.../environmentTypesCreateOrUpdateSample.ts | 4 +-
.../src/environmentTypesDeleteSample.ts | 4 +-
.../src/environmentTypesGetSample.ts | 4 +-
.../environmentTypesListByDevCenterSample.ts | 4 +-
.../src/environmentTypesUpdateSample.ts | 4 +-
.../src/galleriesCreateOrUpdateSample.ts | 4 +-
.../typescript/src/galleriesDeleteSample.ts | 4 +-
.../v1/typescript/src/galleriesGetSample.ts | 4 +-
.../src/galleriesListByDevCenterSample.ts | 4 +-
.../typescript/src/imageVersionsGetSample.ts | 4 +-
.../src/imageVersionsListByImageSample.ts | 4 +-
.../v1/typescript/src/imagesGetSample.ts | 4 +-
.../src/imagesListByDevCenterSample.ts | 4 +-
.../src/imagesListByGallerySample.ts | 4 +-
.../networkConnectionsCreateOrUpdateSample.ts | 4 +-
.../src/networkConnectionsDeleteSample.ts | 4 +-
...etworkConnectionsGetHealthDetailsSample.ts | 4 +-
.../src/networkConnectionsGetSample.ts | 4 +-
...orkConnectionsListByResourceGroupSample.ts | 4 +-
...workConnectionsListBySubscriptionSample.ts | 4 +-
...tworkConnectionsListHealthDetailsSample.ts | 4 +-
...boundNetworkDependenciesEndpointsSample.ts | 4 +-
...networkConnectionsRunHealthChecksSample.ts | 4 +-
.../src/networkConnectionsUpdateSample.ts | 4 +-
.../src/operationStatusesGetSample.ts | 4 +-
.../v1/typescript/src/operationsListSample.ts | 4 +-
.../src/poolsCreateOrUpdateSample.ts | 4 +-
.../v1/typescript/src/poolsDeleteSample.ts | 4 +-
.../v1/typescript/src/poolsGetSample.ts | 4 +-
.../src/poolsListByProjectSample.ts | 4 +-
.../src/poolsRunHealthChecksSample.ts | 4 +-
.../v1/typescript/src/poolsUpdateSample.ts | 4 +-
...projectAllowedEnvironmentTypesGetSample.ts | 4 +-
...rojectAllowedEnvironmentTypesListSample.ts | 4 +-
...ronmentDefinitionsGetErrorDetailsSample.ts | 4 +-
.../src/projectCatalogsConnectSample.ts | 4 +-
.../projectCatalogsCreateOrUpdateSample.ts | 4 +-
.../src/projectCatalogsDeleteSample.ts | 4 +-
.../src/projectCatalogsGetSample.ts | 4 +-
...rojectCatalogsGetSyncErrorDetailsSample.ts | 4 +-
.../src/projectCatalogsListSample.ts | 4 +-
.../src/projectCatalogsPatchSample.ts | 4 +-
.../src/projectCatalogsSyncSample.ts | 4 +-
...ectEnvironmentTypesCreateOrUpdateSample.ts | 4 +-
.../projectEnvironmentTypesDeleteSample.ts | 4 +-
.../src/projectEnvironmentTypesGetSample.ts | 4 +-
.../src/projectEnvironmentTypesListSample.ts | 4 +-
.../projectEnvironmentTypesUpdateSample.ts | 4 +-
.../src/projectsCreateOrUpdateSample.ts | 4 +-
.../v1/typescript/src/projectsDeleteSample.ts | 4 +-
.../v1/typescript/src/projectsGetSample.ts | 4 +-
.../src/projectsListByResourceGroupSample.ts | 4 +-
.../src/projectsListBySubscriptionSample.ts | 4 +-
.../v1/typescript/src/projectsUpdateSample.ts | 4 +-
.../src/schedulesCreateOrUpdateSample.ts | 4 +-
.../typescript/src/schedulesDeleteSample.ts | 4 +-
.../v1/typescript/src/schedulesGetSample.ts | 4 +-
.../src/schedulesListByPoolSample.ts | 4 +-
.../typescript/src/schedulesUpdateSample.ts | 4 +-
.../src/skusListBySubscriptionSample.ts | 4 +-
.../src/usagesListByLocationSample.ts | 4 +-
.../arm-devcenter/src/devCenterClient.ts | 6 +--
sdk/devcenter/arm-devcenter/src/index.ts | 8 ++--
.../arm-devcenter/src/models/parameters.ts | 2 +-
.../src/operations/attachedNetworks.ts | 14 +++---
.../arm-devcenter/src/operations/catalogs.ts | 14 +++---
.../src/operations/checkNameAvailability.ts | 10 ++--
.../operations/checkScopedNameAvailability.ts | 10 ++--
.../src/operations/devBoxDefinitions.ts | 14 +++---
.../src/operations/devCenters.ts | 14 +++---
.../src/operations/environmentDefinitions.ts | 12 ++---
.../src/operations/environmentTypes.ts | 12 ++---
.../arm-devcenter/src/operations/galleries.ts | 14 +++---
.../src/operations/imageVersions.ts | 12 ++---
.../arm-devcenter/src/operations/images.ts | 12 ++---
.../arm-devcenter/src/operations/index.ts | 46 +++++++++----------
.../src/operations/networkConnections.ts | 14 +++---
.../src/operations/operationStatuses.ts | 10 ++--
.../src/operations/operations.ts | 12 ++---
.../arm-devcenter/src/operations/pools.ts | 14 +++---
.../projectAllowedEnvironmentTypes.ts | 12 ++---
.../projectCatalogEnvironmentDefinitions.ts | 10 ++--
.../src/operations/projectCatalogs.ts | 14 +++---
.../src/operations/projectEnvironmentTypes.ts | 12 ++---
.../arm-devcenter/src/operations/projects.ts | 14 +++---
.../arm-devcenter/src/operations/schedules.ts | 14 +++---
.../arm-devcenter/src/operations/skus.ts | 12 ++---
.../arm-devcenter/src/operations/usages.ts | 12 ++---
.../operationsInterfaces/attachedNetworks.ts | 2 +-
.../src/operationsInterfaces/catalogs.ts | 2 +-
.../checkNameAvailability.ts | 2 +-
.../checkScopedNameAvailability.ts | 2 +-
.../operationsInterfaces/devBoxDefinitions.ts | 2 +-
.../src/operationsInterfaces/devCenters.ts | 2 +-
.../environmentDefinitions.ts | 2 +-
.../operationsInterfaces/environmentTypes.ts | 2 +-
.../src/operationsInterfaces/galleries.ts | 2 +-
.../src/operationsInterfaces/imageVersions.ts | 2 +-
.../src/operationsInterfaces/images.ts | 2 +-
.../src/operationsInterfaces/index.ts | 46 +++++++++----------
.../networkConnections.ts | 2 +-
.../operationsInterfaces/operationStatuses.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/pools.ts | 2 +-
.../projectAllowedEnvironmentTypes.ts | 2 +-
.../projectCatalogEnvironmentDefinitions.ts | 2 +-
.../operationsInterfaces/projectCatalogs.ts | 2 +-
.../projectEnvironmentTypes.ts | 2 +-
.../src/operationsInterfaces/projects.ts | 2 +-
.../src/operationsInterfaces/schedules.ts | 2 +-
.../src/operationsInterfaces/skus.ts | 2 +-
.../src/operationsInterfaces/usages.ts | 2 +-
.../test/devcenter_examples.spec.ts | 11 ++---
242 files changed, 415 insertions(+), 798 deletions(-)
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
index 740ac5cb6450..2b252af883c5 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
index 1ab206965307..713047b30cb8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Un-attach a NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
index 9677a9d92e5e..59b5d8133b3b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
index 0cca476a5eee..5f31df184a86 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
index 26de2f49e724..fe33b6fdcfbc 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the attached NetworkConnections for a DevCenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
index 04a560000490..df2d2a692075 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the attached NetworkConnections for a Project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
index 4dd17293d704..7a4082a3b5b2 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Connects a catalog to enable syncing.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
index e6422516596d..82be0e9cc3f4 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Catalog, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
index 1302d53a4a4f..982cd3cae049 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a catalog resource.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
index a6909ab302f3..4bc0973bd7ba 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a catalog
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
index 54879f404908..7b49091716f1 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets catalog synchronization error details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
index d288cc0c1f56..2d05bbe2c83b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists catalogs for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
index 287b90d18e75..30b76922639b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Syncs templates for a template source.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
index 0e5b2a865859..0fc94db1da17 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CatalogUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/checkNameAvailabilityExecuteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/checkNameAvailabilityExecuteSample.ts
index fcb479075c4a..af25f7d0e180 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/checkNameAvailabilityExecuteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/checkNameAvailabilityExecuteSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the availability of name for resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/checkScopedNameAvailabilityExecuteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/checkScopedNameAvailabilityExecuteSample.ts
index 782cfcf6dec6..27be078329f3 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/checkScopedNameAvailabilityExecuteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/checkScopedNameAvailabilityExecuteSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the availability of name for resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsCreateOrUpdateSample.ts
index 7a63501a097d..7a317cb53ef0 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevBoxDefinition, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dev Box definition.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsDeleteSample.ts
index a18249886677..57581f061c11 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Dev Box definition
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetByProjectSample.ts
index 2f0215071af7..4a69f619d2be 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a Dev Box definition configured for a project
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetSample.ts
index 59d7f9f1ba2d..12645562430a 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a Dev Box definition
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByDevCenterSample.ts
index 9c4cd99fe5a3..f14b674e160b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Dev Box definitions for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByProjectSample.ts
index 02cc3de27a18..2a6d88e6340f 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Dev Box definitions configured for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsUpdateSample.ts
index b76340b37573..80353f9a0da4 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devBoxDefinitionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevBoxDefinitionUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Dev Box definition.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersCreateOrUpdateSample.ts
index d6e5050bde0b..474320157483 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenter, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a devcenter resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersDeleteSample.ts
index f091fd6482a0..63e6358ea1e2 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a devcenter
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersGetSample.ts
index e8e2936ba2e3..a781b0e91401 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersListByResourceGroupSample.ts
index 6f9f6a35c22b..035174843d00 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all devcenters in a resource group.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersListBySubscriptionSample.ts
index c01b04318d8a..1468770f9e9a 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all devcenters in a subscription.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/devCentersUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/devCentersUpdateSample.ts
index 6034c398224a..609e85f712a4 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/devCentersUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/devCentersUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetByProjectCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetByProjectCatalogSample.ts
index 6ad679f871c6..039edc403120 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetByProjectCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetByProjectCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment definition from the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetErrorDetailsSample.ts
index c19de1b5d17f..085031fa5143 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets Environment Definition error details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetSample.ts
index 4a2bf19004b3..5236fffd72b4 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment definition from the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByCatalogSample.ts
index bc73575bca80..a54ff96d8cfd 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List environment definitions in the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByProjectCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByProjectCatalogSample.ts
index 28468f0fa013..88977649d26b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByProjectCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentDefinitionsListByProjectCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the environment definitions in this project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesCreateOrUpdateSample.ts
index 60698f64f928..86e6cae2edc1 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EnvironmentType, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesDeleteSample.ts
index 986a89ee393e..3b98c6acba06 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesGetSample.ts
index f854078013dc..c4b512191b77 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesListByDevCenterSample.ts
index a6d105103115..da319d1fdba8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists environment types for the devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesUpdateSample.ts
index 31d8a1098726..321cb6519a35 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/environmentTypesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EnvironmentTypeUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/galleriesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/galleriesCreateOrUpdateSample.ts
index ce9e070ca961..e013115b2271 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/galleriesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/galleriesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Gallery, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a gallery.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/galleriesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/galleriesDeleteSample.ts
index 8a0d0ef9f9e5..33cdb58cf37b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/galleriesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/galleriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a gallery resource.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/galleriesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/galleriesGetSample.ts
index 4f8c00be295f..ed3a7f88e091 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/galleriesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/galleriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a gallery
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/galleriesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/galleriesListByDevCenterSample.ts
index af0a185b26b5..87aa7af8f2c6 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/galleriesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/galleriesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists galleries for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsGetSample.ts
index ee26588e6e2d..3e3fd28bb885 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an image version.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsListByImageSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsListByImageSample.ts
index 2d027f404446..f0c6e9ff726b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsListByImageSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/imageVersionsListByImageSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists versions for an image.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/imagesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/imagesGetSample.ts
index f204a29738ef..aa64d3a7d3cc 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/imagesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/imagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a gallery image.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/imagesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/imagesListByDevCenterSample.ts
index 31bbb3f94ecf..626e87cf63ba 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/imagesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/imagesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists images for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/imagesListByGallerySample.ts b/sdk/devcenter/arm-devcenter/samples-dev/imagesListByGallerySample.ts
index a7972a4ca90e..fb2aee1c25b8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/imagesListByGallerySample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/imagesListByGallerySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists images for a gallery.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsCreateOrUpdateSample.ts
index edb2450b9fda..04639c3dd1d1 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { NetworkConnection, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Network Connections resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsDeleteSample.ts
index 347e308a4063..0324b1b033ea 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Network Connections resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetHealthDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetHealthDetailsSample.ts
index b77a233ebfec..a93e8e355645 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetHealthDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetHealthDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets health check status details.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetSample.ts
index 8cc7f6c8d61d..4f3d49ceb283 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a network connection resource
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListByResourceGroupSample.ts
index c506d59205ef..a2e6f6d9453c 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists network connections in a resource group
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListBySubscriptionSample.ts
index 986f788068f1..6b2c3d29a4dc 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists network connections in a subscription
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListHealthDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListHealthDetailsSample.ts
index 8fb2695823aa..179f054ad635 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListHealthDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListHealthDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists health check status details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
index a26fa6505644..ff71baba16d8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsRunHealthChecksSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsRunHealthChecksSample.ts
index ac52d5015675..5d4a452334f6 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsRunHealthChecksSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsRunHealthChecksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsUpdateSample.ts
index 02d4982de5f9..6efe3c76069b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/networkConnectionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { NetworkConnectionUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Network Connection
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/operationStatusesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/operationStatusesGetSample.ts
index 6eab8f2bca38..7096419aaf5b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/operationStatusesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/operationStatusesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the current status of an async operation.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/operationsListSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/operationsListSample.ts
index b10e0de29a02..f4d54e0b3472 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/operationsListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the available resource provider operations.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsCreateOrUpdateSample.ts
index dc20f75b231e..6bb6c03b6436 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsDeleteSample.ts
index ed9e039d4787..b0111e6a7aa0 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsGetSample.ts
index 7d85b73c6740..5997609a212b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsListByProjectSample.ts
index d3823ffd2ec5..1e3e8bcae903 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists pools for a project
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsRunHealthChecksSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsRunHealthChecksSample.ts
index a19d0d0a7f33..1deb77d22c9f 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsRunHealthChecksSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsRunHealthChecksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Triggers a refresh of the pool status.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/poolsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/poolsUpdateSample.ts
index 002606554ac2..430cf60a6c9f 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/poolsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/poolsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PoolUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesGetSample.ts
index 37c02c75338b..f440c2cc3124 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an allowed environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesListSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesListSample.ts
index e992df2bd5aa..9213c59ed24a 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectAllowedEnvironmentTypesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists allowed environment types for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
index e5acf19cae0e..029f9b6cab9b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets Environment Definition error details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsConnectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsConnectSample.ts
index 47075eec2173..5a83f6364b11 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsConnectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsConnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Connects a project catalog to enable syncing.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsCreateOrUpdateSample.ts
index 0586ddc79dbb..a6c5095e30ad 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Catalog, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsDeleteSample.ts
index 8f503ed44fd5..1184031813ea 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project catalog resource.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSample.ts
index dc68cfdaf1b1..44614f16d6ae 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an associated project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSyncErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSyncErrorDetailsSample.ts
index 97157af9c547..521593f51d2b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSyncErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsGetSyncErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets project catalog synchronization error details
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsListSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsListSample.ts
index 751d715c6fcc..f572e8e8b734 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the catalogs associated with a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsPatchSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsPatchSample.ts
index 1f6abdfd4ceb..389645836ba9 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsPatchSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsPatchSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CatalogUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsSyncSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsSyncSample.ts
index 9a03ae4ff6f7..723d1f699efd 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsSyncSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectCatalogsSyncSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Syncs templates for a template source.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.ts
index 4d049752db69..0573b13813b4 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProjectEnvironmentType, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesDeleteSample.ts
index 3b126736ff91..e14d9994bdd5 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesGetSample.ts
index 7afce53ffec7..320f548301b3 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesListSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesListSample.ts
index 07f3bb0fe43b..6b2a590c9f8d 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists environment types for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesUpdateSample.ts
index 73a3c4d0ec44..66fc01353ce3 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectEnvironmentTypesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsCreateOrUpdateSample.ts
index b4d752d035fd..57cbf933eb34 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Project, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsDeleteSample.ts
index f00869e2093c..d66f296eee17 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project resource.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsGetSample.ts
index e386ce9faa83..fc4fd6e27bd9 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a specific project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsListByResourceGroupSample.ts
index ec94fb73053e..254577083443 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all projects in the resource group.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsListBySubscriptionSample.ts
index 2e8f3357143f..2067697498c8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all projects in the subscription.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/projectsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/projectsUpdateSample.ts
index 3287e1455381..66ed8d2d7b3b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/projectsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/projectsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProjectUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/schedulesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/schedulesCreateOrUpdateSample.ts
index b928c5fc8e83..d0d5ee07f783 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/schedulesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/schedulesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Schedule, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Schedule.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/schedulesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/schedulesDeleteSample.ts
index a8333e9a19c1..fbee170abc99 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/schedulesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/schedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Scheduled.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/schedulesGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/schedulesGetSample.ts
index 4ef8008dc18e..8ac0d8af6bb5 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/schedulesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/schedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a schedule resource.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/schedulesListByPoolSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/schedulesListByPoolSample.ts
index 4bf3a5dab5e0..069cee7d6c5e 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/schedulesListByPoolSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/schedulesListByPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists schedules for a pool
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/schedulesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/schedulesUpdateSample.ts
index e119cf2f8680..17c9f53046f3 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/schedulesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/schedulesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ScheduleUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Scheduled.
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/skusListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/skusListBySubscriptionSample.ts
index 22060b91222b..f0d0f3773b94 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/skusListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/skusListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the Microsoft.DevCenter SKUs available in a subscription
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/usagesListByLocationSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/usagesListByLocationSample.ts
index aa2f40e228df..e85548c2f380 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/usagesListByLocationSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/usagesListByLocationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the current usages and limits in this location for the provided subscription.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksCreateOrUpdateSample.ts
index 740ac5cb6450..2b252af883c5 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksDeleteSample.ts
index 1ab206965307..713047b30cb8 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Un-attach a NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByDevCenterSample.ts
index 9677a9d92e5e..59b5d8133b3b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByProjectSample.ts
index 0cca476a5eee..5f31df184a86 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksGetByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an attached NetworkConnection.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByDevCenterSample.ts
index 26de2f49e724..fe33b6fdcfbc 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the attached NetworkConnections for a DevCenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByProjectSample.ts
index 04a560000490..df2d2a692075 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/attachedNetworksListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the attached NetworkConnections for a Project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsConnectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsConnectSample.ts
index 4dd17293d704..7a4082a3b5b2 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsConnectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsConnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Connects a catalog to enable syncing.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsCreateOrUpdateSample.ts
index e6422516596d..82be0e9cc3f4 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Catalog, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsDeleteSample.ts
index 1302d53a4a4f..982cd3cae049 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a catalog resource.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSample.ts
index a6909ab302f3..4bc0973bd7ba 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a catalog
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSyncErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSyncErrorDetailsSample.ts
index 54879f404908..7b49091716f1 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSyncErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsGetSyncErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets catalog synchronization error details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsListByDevCenterSample.ts
index d288cc0c1f56..2d05bbe2c83b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists catalogs for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsSyncSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsSyncSample.ts
index 287b90d18e75..30b76922639b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsSyncSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsSyncSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Syncs templates for a template source.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsUpdateSample.ts
index 0e5b2a865859..0fc94db1da17 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/catalogsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CatalogUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkNameAvailabilityExecuteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkNameAvailabilityExecuteSample.ts
index fcb479075c4a..af25f7d0e180 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkNameAvailabilityExecuteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkNameAvailabilityExecuteSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the availability of name for resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkScopedNameAvailabilityExecuteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkScopedNameAvailabilityExecuteSample.ts
index 782cfcf6dec6..27be078329f3 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkScopedNameAvailabilityExecuteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/checkScopedNameAvailabilityExecuteSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the availability of name for resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsCreateOrUpdateSample.ts
index 7a63501a097d..7a317cb53ef0 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevBoxDefinition, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dev Box definition.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsDeleteSample.ts
index a18249886677..57581f061c11 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Dev Box definition
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetByProjectSample.ts
index 2f0215071af7..4a69f619d2be 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a Dev Box definition configured for a project
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetSample.ts
index 59d7f9f1ba2d..12645562430a 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a Dev Box definition
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByDevCenterSample.ts
index 9c4cd99fe5a3..f14b674e160b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Dev Box definitions for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByProjectSample.ts
index 02cc3de27a18..2a6d88e6340f 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Dev Box definitions configured for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsUpdateSample.ts
index b76340b37573..80353f9a0da4 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devBoxDefinitionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevBoxDefinitionUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Dev Box definition.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersCreateOrUpdateSample.ts
index d6e5050bde0b..474320157483 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenter, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a devcenter resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersDeleteSample.ts
index f091fd6482a0..63e6358ea1e2 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a devcenter
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersGetSample.ts
index e8e2936ba2e3..a781b0e91401 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListByResourceGroupSample.ts
index 6f9f6a35c22b..035174843d00 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all devcenters in a resource group.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListBySubscriptionSample.ts
index c01b04318d8a..1468770f9e9a 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all devcenters in a subscription.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersUpdateSample.ts
index 6034c398224a..609e85f712a4 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/devCentersUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetByProjectCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetByProjectCatalogSample.ts
index 6ad679f871c6..039edc403120 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetByProjectCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetByProjectCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment definition from the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetErrorDetailsSample.ts
index c19de1b5d17f..085031fa5143 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets Environment Definition error details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetSample.ts
index 4a2bf19004b3..5236fffd72b4 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment definition from the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByCatalogSample.ts
index bc73575bca80..a54ff96d8cfd 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List environment definitions in the catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByProjectCatalogSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByProjectCatalogSample.ts
index 28468f0fa013..88977649d26b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByProjectCatalogSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentDefinitionsListByProjectCatalogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the environment definitions in this project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesCreateOrUpdateSample.ts
index 60698f64f928..86e6cae2edc1 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EnvironmentType, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesDeleteSample.ts
index 986a89ee393e..3b98c6acba06 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesGetSample.ts
index f854078013dc..c4b512191b77 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesListByDevCenterSample.ts
index a6d105103115..da319d1fdba8 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists environment types for the devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesUpdateSample.ts
index 31d8a1098726..321cb6519a35 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/environmentTypesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { EnvironmentTypeUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates an environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesCreateOrUpdateSample.ts
index ce9e070ca961..e013115b2271 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Gallery, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a gallery.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesDeleteSample.ts
index 8a0d0ef9f9e5..33cdb58cf37b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a gallery resource.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesGetSample.ts
index 4f8c00be295f..ed3a7f88e091 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a gallery
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesListByDevCenterSample.ts
index af0a185b26b5..87aa7af8f2c6 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/galleriesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists galleries for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsGetSample.ts
index ee26588e6e2d..3e3fd28bb885 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an image version.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsListByImageSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsListByImageSample.ts
index 2d027f404446..f0c6e9ff726b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsListByImageSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imageVersionsListByImageSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists versions for an image.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesGetSample.ts
index f204a29738ef..aa64d3a7d3cc 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a gallery image.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByDevCenterSample.ts
index 31bbb3f94ecf..626e87cf63ba 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByDevCenterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists images for a devcenter.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByGallerySample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByGallerySample.ts
index a7972a4ca90e..fb2aee1c25b8 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByGallerySample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/imagesListByGallerySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists images for a gallery.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsCreateOrUpdateSample.ts
index edb2450b9fda..04639c3dd1d1 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { NetworkConnection, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Network Connections resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsDeleteSample.ts
index 347e308a4063..0324b1b033ea 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Network Connections resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetHealthDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetHealthDetailsSample.ts
index b77a233ebfec..a93e8e355645 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetHealthDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetHealthDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets health check status details.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetSample.ts
index 8cc7f6c8d61d..4f3d49ceb283 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a network connection resource
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListByResourceGroupSample.ts
index c506d59205ef..a2e6f6d9453c 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists network connections in a resource group
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListBySubscriptionSample.ts
index 986f788068f1..6b2c3d29a4dc 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists network connections in a subscription
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListHealthDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListHealthDetailsSample.ts
index 8fb2695823aa..179f054ad635 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListHealthDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListHealthDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists health check status details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
index a26fa6505644..ff71baba16d8 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsListOutboundNetworkDependenciesEndpointsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed for outbound access in order for the Dev Box service to function.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsRunHealthChecksSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsRunHealthChecksSample.ts
index ac52d5015675..5d4a452334f6 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsRunHealthChecksSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsRunHealthChecksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Triggers a new health check run. The execution and health check result can be tracked via the network Connection health check details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsUpdateSample.ts
index 02d4982de5f9..6efe3c76069b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/networkConnectionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { NetworkConnectionUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Network Connection
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationStatusesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationStatusesGetSample.ts
index 6eab8f2bca38..7096419aaf5b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationStatusesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationStatusesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the current status of an async operation.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationsListSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationsListSample.ts
index b10e0de29a02..f4d54e0b3472 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationsListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the available resource provider operations.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts
index dc20f75b231e..6bb6c03b6436 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsDeleteSample.ts
index ed9e039d4787..b0111e6a7aa0 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsGetSample.ts
index 7d85b73c6740..5997609a212b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsListByProjectSample.ts
index d3823ffd2ec5..1e3e8bcae903 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsListByProjectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists pools for a project
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsRunHealthChecksSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsRunHealthChecksSample.ts
index a19d0d0a7f33..1deb77d22c9f 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsRunHealthChecksSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsRunHealthChecksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Triggers a refresh of the pool status.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsUpdateSample.ts
index 002606554ac2..430cf60a6c9f 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/poolsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PoolUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a machine pool
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesGetSample.ts
index 37c02c75338b..f440c2cc3124 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an allowed environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesListSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesListSample.ts
index e992df2bd5aa..9213c59ed24a 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectAllowedEnvironmentTypesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists allowed environment types for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
index e5acf19cae0e..029f9b6cab9b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets Environment Definition error details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsConnectSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsConnectSample.ts
index 47075eec2173..5a83f6364b11 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsConnectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsConnectSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Connects a project catalog to enable syncing.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsCreateOrUpdateSample.ts
index 0586ddc79dbb..a6c5095e30ad 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Catalog, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsDeleteSample.ts
index 8f503ed44fd5..1184031813ea 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project catalog resource.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSample.ts
index dc68cfdaf1b1..44614f16d6ae 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an associated project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSyncErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSyncErrorDetailsSample.ts
index 97157af9c547..521593f51d2b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSyncErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsGetSyncErrorDetailsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets project catalog synchronization error details
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsListSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsListSample.ts
index 751d715c6fcc..f572e8e8b734 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the catalogs associated with a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsPatchSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsPatchSample.ts
index 1f6abdfd4ceb..389645836ba9 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsPatchSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsPatchSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CatalogUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project catalog.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsSyncSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsSyncSample.ts
index 9a03ae4ff6f7..723d1f699efd 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsSyncSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectCatalogsSyncSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Syncs templates for a template source.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesCreateOrUpdateSample.ts
index 4d049752db69..0573b13813b4 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProjectEnvironmentType, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesDeleteSample.ts
index 3b126736ff91..e14d9994bdd5 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesGetSample.ts
index 7afce53ffec7..320f548301b3 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesListSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesListSample.ts
index 07f3bb0fe43b..6b2a590c9f8d 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesListSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists environment types for a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesUpdateSample.ts
index 73a3c4d0ec44..66fc01353ce3 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectEnvironmentTypesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
DevCenterClient,
} from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project environment type.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsCreateOrUpdateSample.ts
index b4d752d035fd..57cbf933eb34 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Project, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsDeleteSample.ts
index f00869e2093c..d66f296eee17 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a project resource.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsGetSample.ts
index e386ce9faa83..fc4fd6e27bd9 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a specific project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListByResourceGroupSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListByResourceGroupSample.ts
index ec94fb73053e..254577083443 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListByResourceGroupSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all projects in the resource group.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListBySubscriptionSample.ts
index 2e8f3357143f..2067697498c8 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all projects in the subscription.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsUpdateSample.ts
index 3287e1455381..66ed8d2d7b3b 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/projectsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProjectUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a project.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesCreateOrUpdateSample.ts
index b928c5fc8e83..d0d5ee07f783 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Schedule, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Schedule.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesDeleteSample.ts
index a8333e9a19c1..fbee170abc99 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Scheduled.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesGetSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesGetSample.ts
index 4ef8008dc18e..8ac0d8af6bb5 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a schedule resource.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesListByPoolSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesListByPoolSample.ts
index 4bf3a5dab5e0..069cee7d6c5e 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesListByPoolSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesListByPoolSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists schedules for a pool
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesUpdateSample.ts
index e119cf2f8680..17c9f53046f3 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/schedulesUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ScheduleUpdate, DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Partially updates a Scheduled.
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/skusListBySubscriptionSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/skusListBySubscriptionSample.ts
index 22060b91222b..f0d0f3773b94 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/skusListBySubscriptionSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/skusListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the Microsoft.DevCenter SKUs available in a subscription
diff --git a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/usagesListByLocationSample.ts b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/usagesListByLocationSample.ts
index aa2f40e228df..e85548c2f380 100644
--- a/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/usagesListByLocationSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples/v1/typescript/src/usagesListByLocationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DevCenterClient } from "@azure/arm-devcenter";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the current usages and limits in this location for the provided subscription.
diff --git a/sdk/devcenter/arm-devcenter/src/devCenterClient.ts b/sdk/devcenter/arm-devcenter/src/devCenterClient.ts
index 616914dd0ce4..f23eada08334 100644
--- a/sdk/devcenter/arm-devcenter/src/devCenterClient.ts
+++ b/sdk/devcenter/arm-devcenter/src/devCenterClient.ts
@@ -38,7 +38,7 @@ import {
PoolsImpl,
SchedulesImpl,
NetworkConnectionsImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
DevCenters,
Projects,
@@ -63,8 +63,8 @@ import {
Pools,
Schedules,
NetworkConnections,
-} from "./operationsInterfaces";
-import { DevCenterClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { DevCenterClientOptionalParams } from "./models/index.js";
export class DevCenterClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/devcenter/arm-devcenter/src/index.ts b/sdk/devcenter/arm-devcenter/src/index.ts
index d3255e8a71c6..c817db3a95b4 100644
--- a/sdk/devcenter/arm-devcenter/src/index.ts
+++ b/sdk/devcenter/arm-devcenter/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DevCenterClient } from "./devCenterClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DevCenterClient } from "./devCenterClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/devcenter/arm-devcenter/src/models/parameters.ts b/sdk/devcenter/arm-devcenter/src/models/parameters.ts
index 488d5d0e693f..360d28482211 100644
--- a/sdk/devcenter/arm-devcenter/src/models/parameters.ts
+++ b/sdk/devcenter/arm-devcenter/src/models/parameters.ts
@@ -34,7 +34,7 @@ import {
ScheduleUpdate as ScheduleUpdateMapper,
NetworkConnection as NetworkConnectionMapper,
NetworkConnectionUpdate as NetworkConnectionUpdateMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/devcenter/arm-devcenter/src/operations/attachedNetworks.ts b/sdk/devcenter/arm-devcenter/src/operations/attachedNetworks.ts
index 87bbfc81a468..5ebd501b8e71 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/attachedNetworks.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/attachedNetworks.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AttachedNetworks } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AttachedNetworks } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
AttachedNetworkConnection,
AttachedNetworksListByProjectNextOptionalParams,
@@ -37,7 +37,7 @@ import {
AttachedNetworksDeleteResponse,
AttachedNetworksListByProjectNextResponse,
AttachedNetworksListByDevCenterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AttachedNetworks operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/catalogs.ts b/sdk/devcenter/arm-devcenter/src/operations/catalogs.ts
index 6a8aeecf0bde..225db475689f 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/catalogs.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/catalogs.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Catalogs } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Catalogs } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Catalog,
CatalogsListByDevCenterNextOptionalParams,
@@ -40,7 +40,7 @@ import {
CatalogsConnectOptionalParams,
CatalogsConnectResponse,
CatalogsListByDevCenterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Catalogs operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/checkNameAvailability.ts b/sdk/devcenter/arm-devcenter/src/operations/checkNameAvailability.ts
index f9ae45bb3278..ea4ed848ed20 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/checkNameAvailability.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/checkNameAvailability.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CheckNameAvailability } from "../operationsInterfaces";
+import { CheckNameAvailability } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
CheckNameAvailabilityRequest,
CheckNameAvailabilityExecuteOptionalParams,
CheckNameAvailabilityExecuteResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing CheckNameAvailability operations. */
export class CheckNameAvailabilityImpl implements CheckNameAvailability {
diff --git a/sdk/devcenter/arm-devcenter/src/operations/checkScopedNameAvailability.ts b/sdk/devcenter/arm-devcenter/src/operations/checkScopedNameAvailability.ts
index 7aea505f936c..bfd9f313149d 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/checkScopedNameAvailability.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/checkScopedNameAvailability.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CheckScopedNameAvailability } from "../operationsInterfaces";
+import { CheckScopedNameAvailability } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
CheckScopedNameAvailabilityRequest,
CheckScopedNameAvailabilityExecuteOptionalParams,
CheckScopedNameAvailabilityExecuteResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing CheckScopedNameAvailability operations. */
export class CheckScopedNameAvailabilityImpl
diff --git a/sdk/devcenter/arm-devcenter/src/operations/devBoxDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operations/devBoxDefinitions.ts
index 5c06fd3a37e0..5727cdf26138 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/devBoxDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/devBoxDefinitions.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DevBoxDefinitions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DevBoxDefinitions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DevBoxDefinition,
DevBoxDefinitionsListByDevCenterNextOptionalParams,
@@ -40,7 +40,7 @@ import {
DevBoxDefinitionsGetByProjectResponse,
DevBoxDefinitionsListByDevCenterNextResponse,
DevBoxDefinitionsListByProjectNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DevBoxDefinitions operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/devCenters.ts b/sdk/devcenter/arm-devcenter/src/operations/devCenters.ts
index b12182a386aa..87a2fd5f350c 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/devCenters.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/devCenters.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DevCenters } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DevCenters } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DevCenter,
DevCentersListBySubscriptionNextOptionalParams,
@@ -38,7 +38,7 @@ import {
DevCentersDeleteResponse,
DevCentersListBySubscriptionNextResponse,
DevCentersListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DevCenters operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/environmentDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operations/environmentDefinitions.ts
index f2f35ba685d0..745fc1e27be7 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/environmentDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/environmentDefinitions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { EnvironmentDefinitions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { EnvironmentDefinitions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
EnvironmentDefinition,
EnvironmentDefinitionsListByProjectCatalogNextOptionalParams,
@@ -29,7 +29,7 @@ import {
EnvironmentDefinitionsGetErrorDetailsResponse,
EnvironmentDefinitionsListByProjectCatalogNextResponse,
EnvironmentDefinitionsListByCatalogNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing EnvironmentDefinitions operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/environmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operations/environmentTypes.ts
index 4aeac6b99fcf..d612d3f3adf9 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/environmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/environmentTypes.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { EnvironmentTypes } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { EnvironmentTypes } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
EnvironmentType,
EnvironmentTypesListByDevCenterNextOptionalParams,
@@ -27,7 +27,7 @@ import {
EnvironmentTypesUpdateResponse,
EnvironmentTypesDeleteOptionalParams,
EnvironmentTypesListByDevCenterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing EnvironmentTypes operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/galleries.ts b/sdk/devcenter/arm-devcenter/src/operations/galleries.ts
index a2395b4f54e0..6e97b2124bf0 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/galleries.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/galleries.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Galleries } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Galleries } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Gallery,
GalleriesListByDevCenterNextOptionalParams,
@@ -31,7 +31,7 @@ import {
GalleriesDeleteOptionalParams,
GalleriesDeleteResponse,
GalleriesListByDevCenterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Galleries operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/imageVersions.ts b/sdk/devcenter/arm-devcenter/src/operations/imageVersions.ts
index 21674a0419fa..6de8df57914e 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/imageVersions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/imageVersions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ImageVersions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ImageVersions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
ImageVersion,
ImageVersionsListByImageNextOptionalParams,
@@ -21,7 +21,7 @@ import {
ImageVersionsGetOptionalParams,
ImageVersionsGetResponse,
ImageVersionsListByImageNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ImageVersions operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/images.ts b/sdk/devcenter/arm-devcenter/src/operations/images.ts
index b0c2a05e5f45..f87991dca681 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/images.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/images.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Images } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Images } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
Image,
ImagesListByDevCenterNextOptionalParams,
@@ -25,7 +25,7 @@ import {
ImagesGetResponse,
ImagesListByDevCenterNextResponse,
ImagesListByGalleryNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Images operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/index.ts b/sdk/devcenter/arm-devcenter/src/operations/index.ts
index 6585bd0653ad..014f1b214091 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/index.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/index.ts
@@ -6,26 +6,26 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./devCenters";
-export * from "./projects";
-export * from "./attachedNetworks";
-export * from "./projectCatalogs";
-export * from "./environmentDefinitions";
-export * from "./projectCatalogEnvironmentDefinitions";
-export * from "./galleries";
-export * from "./images";
-export * from "./imageVersions";
-export * from "./catalogs";
-export * from "./environmentTypes";
-export * from "./projectAllowedEnvironmentTypes";
-export * from "./projectEnvironmentTypes";
-export * from "./devBoxDefinitions";
-export * from "./operations";
-export * from "./operationStatuses";
-export * from "./usages";
-export * from "./checkNameAvailability";
-export * from "./checkScopedNameAvailability";
-export * from "./skus";
-export * from "./pools";
-export * from "./schedules";
-export * from "./networkConnections";
+export * from "./devCenters.js";
+export * from "./projects.js";
+export * from "./attachedNetworks.js";
+export * from "./projectCatalogs.js";
+export * from "./environmentDefinitions.js";
+export * from "./projectCatalogEnvironmentDefinitions.js";
+export * from "./galleries.js";
+export * from "./images.js";
+export * from "./imageVersions.js";
+export * from "./catalogs.js";
+export * from "./environmentTypes.js";
+export * from "./projectAllowedEnvironmentTypes.js";
+export * from "./projectEnvironmentTypes.js";
+export * from "./devBoxDefinitions.js";
+export * from "./operations.js";
+export * from "./operationStatuses.js";
+export * from "./usages.js";
+export * from "./checkNameAvailability.js";
+export * from "./checkScopedNameAvailability.js";
+export * from "./skus.js";
+export * from "./pools.js";
+export * from "./schedules.js";
+export * from "./networkConnections.js";
diff --git a/sdk/devcenter/arm-devcenter/src/operations/networkConnections.ts b/sdk/devcenter/arm-devcenter/src/operations/networkConnections.ts
index af59007a80b2..0f9cdbb4805b 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/networkConnections.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/networkConnections.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { NetworkConnections } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { NetworkConnections } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
NetworkConnection,
NetworkConnectionsListBySubscriptionNextOptionalParams,
@@ -50,7 +50,7 @@ import {
NetworkConnectionsListBySubscriptionNextResponse,
NetworkConnectionsListByResourceGroupNextResponse,
NetworkConnectionsListOutboundNetworkDependenciesEndpointsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing NetworkConnections operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/operationStatuses.ts b/sdk/devcenter/arm-devcenter/src/operations/operationStatuses.ts
index 4eb23cb8f977..622e776bff29 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/operationStatuses.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/operationStatuses.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { OperationStatuses } from "../operationsInterfaces";
+import { OperationStatuses } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
OperationStatusesGetOptionalParams,
OperationStatusesGetResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing OperationStatuses operations. */
export class OperationStatusesImpl implements OperationStatuses {
diff --git a/sdk/devcenter/arm-devcenter/src/operations/operations.ts b/sdk/devcenter/arm-devcenter/src/operations/operations.ts
index 0d6fc9e782b6..47efd5723d22 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/operations.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/operations.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Operations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/pools.ts b/sdk/devcenter/arm-devcenter/src/operations/pools.ts
index 02528eff68bb..85928dfd1bf8 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/pools.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/pools.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Pools } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Pools } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Pool,
PoolsListByProjectNextOptionalParams,
@@ -36,7 +36,7 @@ import {
PoolsRunHealthChecksOptionalParams,
PoolsRunHealthChecksResponse,
PoolsListByProjectNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Pools operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/projectAllowedEnvironmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operations/projectAllowedEnvironmentTypes.ts
index 7dac680036a0..dec3f7da83cb 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/projectAllowedEnvironmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/projectAllowedEnvironmentTypes.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ProjectAllowedEnvironmentTypes } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ProjectAllowedEnvironmentTypes } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
AllowedEnvironmentType,
ProjectAllowedEnvironmentTypesListNextOptionalParams,
@@ -21,7 +21,7 @@ import {
ProjectAllowedEnvironmentTypesGetOptionalParams,
ProjectAllowedEnvironmentTypesGetResponse,
ProjectAllowedEnvironmentTypesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ProjectAllowedEnvironmentTypes operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/projectCatalogEnvironmentDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operations/projectCatalogEnvironmentDefinitions.ts
index cc81f312c77e..834b32aa32a0 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/projectCatalogEnvironmentDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/projectCatalogEnvironmentDefinitions.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ProjectCatalogEnvironmentDefinitions } from "../operationsInterfaces";
+import { ProjectCatalogEnvironmentDefinitions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
ProjectCatalogEnvironmentDefinitionsGetErrorDetailsOptionalParams,
ProjectCatalogEnvironmentDefinitionsGetErrorDetailsResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ProjectCatalogEnvironmentDefinitions operations. */
export class ProjectCatalogEnvironmentDefinitionsImpl
diff --git a/sdk/devcenter/arm-devcenter/src/operations/projectCatalogs.ts b/sdk/devcenter/arm-devcenter/src/operations/projectCatalogs.ts
index 63cbda9fe2ce..40d0e82a976f 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/projectCatalogs.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/projectCatalogs.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ProjectCatalogs } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ProjectCatalogs } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Catalog,
ProjectCatalogsListNextOptionalParams,
@@ -40,7 +40,7 @@ import {
ProjectCatalogsConnectOptionalParams,
ProjectCatalogsConnectResponse,
ProjectCatalogsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ProjectCatalogs operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/projectEnvironmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operations/projectEnvironmentTypes.ts
index 2a810218412f..7d0806be722a 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/projectEnvironmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/projectEnvironmentTypes.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ProjectEnvironmentTypes } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ProjectEnvironmentTypes } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
ProjectEnvironmentType,
ProjectEnvironmentTypesListNextOptionalParams,
@@ -27,7 +27,7 @@ import {
ProjectEnvironmentTypesUpdateResponse,
ProjectEnvironmentTypesDeleteOptionalParams,
ProjectEnvironmentTypesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ProjectEnvironmentTypes operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/projects.ts b/sdk/devcenter/arm-devcenter/src/operations/projects.ts
index bac3d6f0ff51..4613b2962893 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/projects.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/projects.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Projects } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Projects } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Project,
ProjectsListBySubscriptionNextOptionalParams,
@@ -38,7 +38,7 @@ import {
ProjectsDeleteResponse,
ProjectsListBySubscriptionNextResponse,
ProjectsListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Projects operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/schedules.ts b/sdk/devcenter/arm-devcenter/src/operations/schedules.ts
index c020c45aa92a..6b15fa5f7a9e 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/schedules.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/schedules.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Schedules } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Schedules } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Schedule,
SchedulesListByPoolNextOptionalParams,
@@ -34,7 +34,7 @@ import {
SchedulesDeleteOptionalParams,
SchedulesDeleteResponse,
SchedulesListByPoolNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Schedules operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/skus.ts b/sdk/devcenter/arm-devcenter/src/operations/skus.ts
index 863a68457f25..7ddf0154e3f6 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/skus.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/skus.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Skus } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Skus } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
DevCenterSku,
SkusListBySubscriptionNextOptionalParams,
SkusListBySubscriptionOptionalParams,
SkusListBySubscriptionResponse,
SkusListBySubscriptionNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Skus operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operations/usages.ts b/sdk/devcenter/arm-devcenter/src/operations/usages.ts
index 9e6bbe246168..0ae1b4fe2732 100644
--- a/sdk/devcenter/arm-devcenter/src/operations/usages.ts
+++ b/sdk/devcenter/arm-devcenter/src/operations/usages.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Usages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Usages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DevCenterClient } from "../devCenterClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DevCenterClient } from "../devCenterClient.js";
import {
Usage,
UsagesListByLocationNextOptionalParams,
UsagesListByLocationOptionalParams,
UsagesListByLocationResponse,
UsagesListByLocationNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Usages operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/attachedNetworks.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/attachedNetworks.ts
index e7b6be5af1aa..31bccceb24e8 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/attachedNetworks.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/attachedNetworks.ts
@@ -20,7 +20,7 @@ import {
AttachedNetworksCreateOrUpdateResponse,
AttachedNetworksDeleteOptionalParams,
AttachedNetworksDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AttachedNetworks. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/catalogs.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/catalogs.ts
index 228cbe53500b..0d09b717cb5f 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/catalogs.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/catalogs.ts
@@ -26,7 +26,7 @@ import {
CatalogsSyncResponse,
CatalogsConnectOptionalParams,
CatalogsConnectResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Catalogs. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkNameAvailability.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkNameAvailability.ts
index fa56bdc5c6b2..dc4d1ed63924 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkNameAvailability.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkNameAvailability.ts
@@ -10,7 +10,7 @@ import {
CheckNameAvailabilityRequest,
CheckNameAvailabilityExecuteOptionalParams,
CheckNameAvailabilityExecuteResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a CheckNameAvailability. */
export interface CheckNameAvailability {
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkScopedNameAvailability.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkScopedNameAvailability.ts
index 99a483009f49..02261daf4552 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkScopedNameAvailability.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/checkScopedNameAvailability.ts
@@ -10,7 +10,7 @@ import {
CheckScopedNameAvailabilityRequest,
CheckScopedNameAvailabilityExecuteOptionalParams,
CheckScopedNameAvailabilityExecuteResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a CheckScopedNameAvailability. */
export interface CheckScopedNameAvailability {
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devBoxDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devBoxDefinitions.ts
index 871e383ba5d5..5da33ddd80a5 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devBoxDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devBoxDefinitions.ts
@@ -23,7 +23,7 @@ import {
DevBoxDefinitionsDeleteResponse,
DevBoxDefinitionsGetByProjectOptionalParams,
DevBoxDefinitionsGetByProjectResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DevBoxDefinitions. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devCenters.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devCenters.ts
index 3f07e81f708b..14b3f779c121 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devCenters.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/devCenters.ts
@@ -21,7 +21,7 @@ import {
DevCentersUpdateResponse,
DevCentersDeleteOptionalParams,
DevCentersDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DevCenters. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentDefinitions.ts
index ac8cbcc3fb07..ac76ac330521 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentDefinitions.ts
@@ -17,7 +17,7 @@ import {
EnvironmentDefinitionsGetResponse,
EnvironmentDefinitionsGetErrorDetailsOptionalParams,
EnvironmentDefinitionsGetErrorDetailsResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a EnvironmentDefinitions. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentTypes.ts
index 2b0af5057e42..7fb41c18bda8 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/environmentTypes.ts
@@ -18,7 +18,7 @@ import {
EnvironmentTypesUpdateOptionalParams,
EnvironmentTypesUpdateResponse,
EnvironmentTypesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a EnvironmentTypes. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/galleries.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/galleries.ts
index ae2ea5b92cf8..e77ef043cfca 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/galleries.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/galleries.ts
@@ -17,7 +17,7 @@ import {
GalleriesCreateOrUpdateResponse,
GalleriesDeleteOptionalParams,
GalleriesDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Galleries. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/imageVersions.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/imageVersions.ts
index 90866a250587..29662379cecb 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/imageVersions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/imageVersions.ts
@@ -12,7 +12,7 @@ import {
ImageVersionsListByImageOptionalParams,
ImageVersionsGetOptionalParams,
ImageVersionsGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ImageVersions. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/images.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/images.ts
index 50b3347200e5..a29e8d3b2861 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/images.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/images.ts
@@ -13,7 +13,7 @@ import {
ImagesListByGalleryOptionalParams,
ImagesGetOptionalParams,
ImagesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Images. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/index.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/index.ts
index 6585bd0653ad..014f1b214091 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/index.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/index.ts
@@ -6,26 +6,26 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./devCenters";
-export * from "./projects";
-export * from "./attachedNetworks";
-export * from "./projectCatalogs";
-export * from "./environmentDefinitions";
-export * from "./projectCatalogEnvironmentDefinitions";
-export * from "./galleries";
-export * from "./images";
-export * from "./imageVersions";
-export * from "./catalogs";
-export * from "./environmentTypes";
-export * from "./projectAllowedEnvironmentTypes";
-export * from "./projectEnvironmentTypes";
-export * from "./devBoxDefinitions";
-export * from "./operations";
-export * from "./operationStatuses";
-export * from "./usages";
-export * from "./checkNameAvailability";
-export * from "./checkScopedNameAvailability";
-export * from "./skus";
-export * from "./pools";
-export * from "./schedules";
-export * from "./networkConnections";
+export * from "./devCenters.js";
+export * from "./projects.js";
+export * from "./attachedNetworks.js";
+export * from "./projectCatalogs.js";
+export * from "./environmentDefinitions.js";
+export * from "./projectCatalogEnvironmentDefinitions.js";
+export * from "./galleries.js";
+export * from "./images.js";
+export * from "./imageVersions.js";
+export * from "./catalogs.js";
+export * from "./environmentTypes.js";
+export * from "./projectAllowedEnvironmentTypes.js";
+export * from "./projectEnvironmentTypes.js";
+export * from "./devBoxDefinitions.js";
+export * from "./operations.js";
+export * from "./operationStatuses.js";
+export * from "./usages.js";
+export * from "./checkNameAvailability.js";
+export * from "./checkScopedNameAvailability.js";
+export * from "./skus.js";
+export * from "./pools.js";
+export * from "./schedules.js";
+export * from "./networkConnections.js";
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/networkConnections.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/networkConnections.ts
index c1044970c0cf..0abddc2a0653 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/networkConnections.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/networkConnections.ts
@@ -29,7 +29,7 @@ import {
NetworkConnectionsGetHealthDetailsResponse,
NetworkConnectionsRunHealthChecksOptionalParams,
NetworkConnectionsRunHealthChecksResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a NetworkConnections. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operationStatuses.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operationStatuses.ts
index 190d5e6f003c..a175bf49e3b1 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operationStatuses.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operationStatuses.ts
@@ -9,7 +9,7 @@
import {
OperationStatusesGetOptionalParams,
OperationStatusesGetResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a OperationStatuses. */
export interface OperationStatuses {
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operations.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operations.ts
index 82c671cc87f8..bc43aef3dfb3 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operations.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/operations.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Operation, OperationsListOptionalParams } from "../models";
+import { Operation, OperationsListOptionalParams } from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/pools.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/pools.ts
index 4125e3d6d1ae..9ed1f27b574c 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/pools.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/pools.ts
@@ -22,7 +22,7 @@ import {
PoolsDeleteResponse,
PoolsRunHealthChecksOptionalParams,
PoolsRunHealthChecksResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Pools. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts
index a91c097fc4c3..db4da2a10411 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectAllowedEnvironmentTypes.ts
@@ -12,7 +12,7 @@ import {
ProjectAllowedEnvironmentTypesListOptionalParams,
ProjectAllowedEnvironmentTypesGetOptionalParams,
ProjectAllowedEnvironmentTypesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ProjectAllowedEnvironmentTypes. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogEnvironmentDefinitions.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogEnvironmentDefinitions.ts
index 4579611da4d5..14195eba6a10 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogEnvironmentDefinitions.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogEnvironmentDefinitions.ts
@@ -9,7 +9,7 @@
import {
ProjectCatalogEnvironmentDefinitionsGetErrorDetailsOptionalParams,
ProjectCatalogEnvironmentDefinitionsGetErrorDetailsResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ProjectCatalogEnvironmentDefinitions. */
export interface ProjectCatalogEnvironmentDefinitions {
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogs.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogs.ts
index d6c436af4184..c60cedde0375 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogs.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectCatalogs.ts
@@ -26,7 +26,7 @@ import {
ProjectCatalogsSyncResponse,
ProjectCatalogsConnectOptionalParams,
ProjectCatalogsConnectResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ProjectCatalogs. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectEnvironmentTypes.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectEnvironmentTypes.ts
index 84c456e80190..80abcba27176 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectEnvironmentTypes.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projectEnvironmentTypes.ts
@@ -18,7 +18,7 @@ import {
ProjectEnvironmentTypesUpdateOptionalParams,
ProjectEnvironmentTypesUpdateResponse,
ProjectEnvironmentTypesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ProjectEnvironmentTypes. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projects.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projects.ts
index 31faf9e98d9e..276c28ec50a7 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projects.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/projects.ts
@@ -21,7 +21,7 @@ import {
ProjectsUpdateResponse,
ProjectsDeleteOptionalParams,
ProjectsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Projects. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/schedules.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/schedules.ts
index 9dfab221c078..0ff9ebe008c3 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/schedules.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/schedules.ts
@@ -20,7 +20,7 @@ import {
SchedulesUpdateResponse,
SchedulesDeleteOptionalParams,
SchedulesDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Schedules. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/skus.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/skus.ts
index 514663c280cd..ba5454d2547f 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/skus.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/skus.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { DevCenterSku, SkusListBySubscriptionOptionalParams } from "../models";
+import { DevCenterSku, SkusListBySubscriptionOptionalParams } from "../models/index.js";
///
/** Interface representing a Skus. */
diff --git a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/usages.ts b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/usages.ts
index 7d1a0a878290..f3c48aea0304 100644
--- a/sdk/devcenter/arm-devcenter/src/operationsInterfaces/usages.ts
+++ b/sdk/devcenter/arm-devcenter/src/operationsInterfaces/usages.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Usage, UsagesListByLocationOptionalParams } from "../models";
+import { Usage, UsagesListByLocationOptionalParams } from "../models/index.js";
///
/** Interface representing a Usages. */
diff --git a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
index 5d655f0bb9f3..43cf3db8f633 100644
--- a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
+++ b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
@@ -10,14 +10,12 @@ import {
env,
Recorder,
RecorderStartOptions,
- delay,
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
import { assert } from "chai";
-import { Context } from "mocha";
-import { DevCenterClient } from "../src/devCenterClient";
-import { DevCenter } from "../src/models";
+import { DevCenterClient } from "../src/devCenterClient.js";
+import { DevCenter } from "../src/models/index.js";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
@@ -44,8 +42,8 @@ describe("devcenter test", () => {
let body: DevCenter;
let devCenterName: string;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
subscriptionId = env.SUBSCRIPTION_ID || '';
// This is an example of how the environment variables are used
@@ -88,7 +86,6 @@ describe("devcenter test", () => {
it("devcenters delete test", async function () {
const resArray = new Array();
- const res = await client.devCenters.beginDeleteAndWait(resourceGroup, devCenterName, testPollingOptions)
for await (let item of client.devCenters.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
From ef754bd7bc0a1ee02e515fb460d95bde7f23163f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:16 +0800
Subject: [PATCH 41/62] Migration: Apply codemod: "fixTestingImports"
---
sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
index 43cf3db8f633..35d56b061655 100644
--- a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
+++ b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
@@ -13,9 +13,9 @@ import {
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
import { DevCenterClient } from "../src/devCenterClient.js";
import { DevCenter } from "../src/models/index.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
From 6cab2c5f950a8f09404801fbeb9e1770436bd8e3 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:18 +0800
Subject: [PATCH 42/62] Migration: Apply codemod: "replaceAssertIsRejected"
From f93bf0bca3e66b84bd8a46bf9230841c7b64393e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:19 +0800
Subject: [PATCH 43/62] Migration: Apply codemod: "replaceSinonStub"
From 705d528d645d4d6bfbaa6a66237081c63b416d18 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:20 +0800
Subject: [PATCH 44/62] Migration: Apply codemod: "addViHelper"
From 15ca200557a1df2528805a622430d5df1072b0c4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:22 +0800
Subject: [PATCH 45/62] Migration: Apply codemod: "replaceSupportTracing"
From a4a0d2229aede7cf8fd1289d4a5da34ad36c9bbe Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:23 +0800
Subject: [PATCH 46/62] Migration: Apply codemod: "replaceTestUtils"
From 9df246e39b9d4515528eb5137e5375d2e3954ee6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:33:25 +0800
Subject: [PATCH 47/62] Migration: rushx format
From 618b40adb3f90530d1a0f269ef9472a7267e386e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:39:29 +0800
Subject: [PATCH 48/62] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++++++--------
sdk/devcenter/arm-devcenter/package.json | 29 ++++++++++++++++---
2 files changed, 49 insertions(+), 16 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 8da5a6e9b621..bfc486b98dca 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -291,7 +291,7 @@ importers:
version: file:projects/arm-desktopvirtualization.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-devcenter':
specifier: file:./projects/arm-devcenter.tgz
- version: file:projects/arm-devcenter.tgz
+ version: file:projects/arm-devcenter.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-devhub':
specifier: file:./projects/arm-devhub.tgz
version: file:projects/arm-devhub.tgz
@@ -2835,7 +2835,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-devcenter@file:projects/arm-devcenter.tgz':
- resolution: {integrity: sha512-iMaC3yvDbW9YOPcXSEXoK6ahbpxzperM+VMUxD7pNEzWpJjJVUqfJMn/rj/eb14RPpEZWz3OJHcDhxoGLNhW4w==, tarball: file:projects/arm-devcenter.tgz}
+ resolution: {integrity: sha512-KegAubVGJuT7CSErg6x8NVg4BBjsY32Ko0iUdD/d0ZA1HyjV2ZPBMVncJFIz3MCWrok09+6No2rOPO/8ljlB/g==, tarball: file:projects/arm-devcenter.tgz}
version: 0.0.0
'@rush-temp/arm-devhub@file:projects/arm-devhub.tgz':
@@ -12561,25 +12561,37 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-devcenter@file:projects/arm-devcenter.tgz':
+ '@rush-temp/arm-devcenter@file:projects/arm-devcenter.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure-tools/test-credential': 1.3.1
- '@azure-tools/test-recorder': 3.5.2
'@azure/abort-controller': 1.1.0
'@azure/core-lro': 2.7.2
- '@types/chai': 4.3.20
- '@types/mocha': 10.0.10
'@types/node': 18.19.70
- chai: 4.5.0
+ '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
+ '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8)
dotenv: 16.4.7
- mocha: 11.1.0
- ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.2)
+ playwright: 1.49.1
tslib: 2.8.1
typescript: 5.7.2
+ vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
+ - '@edge-runtime/vm'
+ - '@vitest/ui'
+ - bufferutil
+ - happy-dom
+ - jsdom
+ - less
+ - lightningcss
+ - msw
+ - safaridriver
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
- supports-color
+ - terser
+ - utf-8-validate
+ - vite
+ - webdriverio
'@rush-temp/arm-devhub@file:projects/arm-devhub.tgz':
dependencies:
diff --git a/sdk/devcenter/arm-devcenter/package.json b/sdk/devcenter/arm-devcenter/package.json
index 6da12c599497..7db5d3d980ad 100644
--- a/sdk/devcenter/arm-devcenter/package.json
+++ b/sdk/devcenter/arm-devcenter/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-devcenter.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
@@ -118,5 +118,26 @@
"selfLink": false
},
"browser": "./dist/browser/index.js",
- "react-native": "./dist/react-native/index.js"
+ "react-native": "./dist/react-native/index.js",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ }
}
From 901ae089c12969d38e8ea009ec890542690fa2a2 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:31 +0800
Subject: [PATCH 49/62] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
sdk/devhub/arm-devhub/api-extractor.json | 6 +--
sdk/devhub/arm-devhub/package.json | 59 ++++++++++++---------
sdk/devhub/arm-devhub/tsconfig.json | 40 ++++----------
sdk/devhub/arm-devhub/tsconfig.samples.json | 10 ++++
sdk/devhub/arm-devhub/tsconfig.src.json | 3 ++
sdk/devhub/arm-devhub/tsconfig.test.json | 6 +++
6 files changed, 66 insertions(+), 58 deletions(-)
create mode 100644 sdk/devhub/arm-devhub/tsconfig.samples.json
create mode 100644 sdk/devhub/arm-devhub/tsconfig.src.json
create mode 100644 sdk/devhub/arm-devhub/tsconfig.test.json
diff --git a/sdk/devhub/arm-devhub/api-extractor.json b/sdk/devhub/arm-devhub/api-extractor.json
index 9f847aba6396..8836b73a7e5d 100644
--- a/sdk/devhub/arm-devhub/api-extractor.json
+++ b/sdk/devhub/arm-devhub/api-extractor.json
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
- "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
@@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
- "publicTrimmedFilePath": "./types/arm-devhub.d.ts"
+ "publicTrimmedFilePath": "dist/arm-devhub.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/devhub/arm-devhub/package.json b/sdk/devhub/arm-devhub/package.json
index a9d09c72a297..8faa0d2a48d4 100644
--- a/sdk/devhub/arm-devhub/package.json
+++ b/sdk/devhub/arm-devhub/package.json
@@ -26,18 +26,18 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-devhub.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.0.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -47,24 +47,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -76,7 +66,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -86,7 +76,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -107,5 +97,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-devhub?view=azure-node-preview"
- }
+ },
+ "type": "module",
+ "tshy": {
+ "project": "./tsconfig.src.json",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ },
+ "dialects": [
+ "esm",
+ "commonjs"
+ ],
+ "esmDialects": [
+ "browser",
+ "react-native"
+ ],
+ "selfLink": false
+ },
+ "browser": "./dist/browser/index.js",
+ "react-native": "./dist/react-native/index.js"
}
diff --git a/sdk/devhub/arm-devhub/tsconfig.json b/sdk/devhub/arm-devhub/tsconfig.json
index 30881a69d030..19ceb382b521 100644
--- a/sdk/devhub/arm-devhub/tsconfig.json
+++ b/sdk/devhub/arm-devhub/tsconfig.json
@@ -1,33 +1,13 @@
{
- "compilerOptions": {
- "module": "es6",
- "moduleResolution": "node",
- "strict": true,
- "target": "es6",
- "sourceMap": true,
- "declarationMap": true,
- "esModuleInterop": true,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "lib": [
- "es6",
- "dom"
- ],
- "declaration": true,
- "outDir": "./dist-esm",
- "importHelpers": true,
- "paths": {
- "@azure/arm-devhub": [
- "./src/index"
- ]
+ "references": [
+ {
+ "path": "./tsconfig.src.json"
+ },
+ {
+ "path": "./tsconfig.samples.json"
+ },
+ {
+ "path": "./tsconfig.test.json"
}
- },
- "include": [
- "./src/**/*.ts",
- "./test/**/*.ts",
- "samples-dev/**/*.ts"
- ],
- "exclude": [
- "node_modules"
]
-}
\ No newline at end of file
+}
diff --git a/sdk/devhub/arm-devhub/tsconfig.samples.json b/sdk/devhub/arm-devhub/tsconfig.samples.json
new file mode 100644
index 000000000000..b481ef153c42
--- /dev/null
+++ b/sdk/devhub/arm-devhub/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-devhub": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/devhub/arm-devhub/tsconfig.src.json b/sdk/devhub/arm-devhub/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/devhub/arm-devhub/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/devhub/arm-devhub/tsconfig.test.json b/sdk/devhub/arm-devhub/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/devhub/arm-devhub/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From fdd89b1b3a1632a0af061f8f4fbfa66c4df02f7c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:31 +0800
Subject: [PATCH 50/62] Migration: Update test config
---
.../arm-devhub/tsconfig.browser.config.json | 6 ++++++
sdk/devhub/arm-devhub/vitest.browser.config.ts | 17 +++++++++++++++++
sdk/devhub/arm-devhub/vitest.config.ts | 16 ++++++++++++++++
sdk/devhub/arm-devhub/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 51 insertions(+)
create mode 100644 sdk/devhub/arm-devhub/tsconfig.browser.config.json
create mode 100644 sdk/devhub/arm-devhub/vitest.browser.config.ts
create mode 100644 sdk/devhub/arm-devhub/vitest.config.ts
create mode 100644 sdk/devhub/arm-devhub/vitest.esm.config.ts
diff --git a/sdk/devhub/arm-devhub/tsconfig.browser.config.json b/sdk/devhub/arm-devhub/tsconfig.browser.config.json
new file mode 100644
index 000000000000..0c8bafa97126
--- /dev/null
+++ b/sdk/devhub/arm-devhub/tsconfig.browser.config.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.test.json",
+ "../../../tsconfig.browser.base.json"
+ ]
+}
diff --git a/sdk/devhub/arm-devhub/vitest.browser.config.ts b/sdk/devhub/arm-devhub/vitest.browser.config.ts
new file mode 100644
index 000000000000..182729ab5ce9
--- /dev/null
+++ b/sdk/devhub/arm-devhub/vitest.browser.config.ts
@@ -0,0 +1,17 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.browser.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ include: ["dist-test/browser/test/**/*.spec.js",],
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/devhub/arm-devhub/vitest.config.ts b/sdk/devhub/arm-devhub/vitest.config.ts
new file mode 100644
index 000000000000..40e031385dd8
--- /dev/null
+++ b/sdk/devhub/arm-devhub/vitest.config.ts
@@ -0,0 +1,16 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { defineConfig, mergeConfig } from "vitest/config";
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ testTimeout: 1200000,
+ hookTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/devhub/arm-devhub/vitest.esm.config.ts b/sdk/devhub/arm-devhub/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/devhub/arm-devhub/vitest.esm.config.ts
@@ -0,0 +1,12 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import { mergeConfig } from "vitest/config";
+import vitestConfig from "./vitest.config.ts";
+import vitestEsmConfig from "../../../vitest.esm.shared.config.ts";
+
+export default mergeConfig(
+ vitestConfig,
+ vitestEsmConfig
+);
From bc10eea189050dabcf64cc92fc842ccbf164cdb7 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:31 +0800
Subject: [PATCH 51/62] Migration: Clean up files
From 74bee5755042d19ab09d8fecfa82755a1f01d2b7 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:46 +0800
Subject: [PATCH 52/62] Migration: Apply codemod: "fixSourceFile"
---
.../samples-dev/generatePreviewArtifactsSample.ts | 4 +---
.../samples-dev/gitHubOAuthCallbackSample.ts | 4 +---
.../arm-devhub/samples-dev/gitHubOAuthSample.ts | 4 +---
.../arm-devhub/samples-dev/listGitHubOAuthSample.ts | 4 +---
.../arm-devhub/samples-dev/operationsListSample.ts | 4 +---
.../samples-dev/workflowCreateOrUpdateSample.ts | 4 +---
.../arm-devhub/samples-dev/workflowDeleteSample.ts | 4 +---
.../arm-devhub/samples-dev/workflowGetSample.ts | 4 +---
.../samples-dev/workflowListByResourceGroupSample.ts | 4 +---
.../arm-devhub/samples-dev/workflowListSample.ts | 4 +---
.../samples-dev/workflowUpdateTagsSample.ts | 4 +---
.../typescript/src/generatePreviewArtifactsSample.ts | 4 +---
.../typescript/src/gitHubOAuthCallbackSample.ts | 4 +---
.../v1-beta/typescript/src/gitHubOAuthSample.ts | 4 +---
.../v1-beta/typescript/src/listGitHubOAuthSample.ts | 4 +---
.../v1-beta/typescript/src/operationsListSample.ts | 4 +---
.../typescript/src/workflowCreateOrUpdateSample.ts | 4 +---
.../v1-beta/typescript/src/workflowDeleteSample.ts | 4 +---
.../v1-beta/typescript/src/workflowGetSample.ts | 4 +---
.../src/workflowListByResourceGroupSample.ts | 4 +---
.../v1-beta/typescript/src/workflowListSample.ts | 4 +---
.../typescript/src/workflowUpdateTagsSample.ts | 4 +---
.../arm-devhub/src/developerHubServiceClient.ts | 10 +++++-----
sdk/devhub/arm-devhub/src/index.ts | 8 ++++----
sdk/devhub/arm-devhub/src/models/parameters.ts | 2 +-
sdk/devhub/arm-devhub/src/operations/index.ts | 4 ++--
sdk/devhub/arm-devhub/src/operations/operations.ts | 10 +++++-----
.../arm-devhub/src/operations/workflowOperations.ts | 12 ++++++------
.../arm-devhub/src/operationsInterfaces/index.ts | 4 ++--
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/workflowOperations.ts | 2 +-
sdk/devhub/arm-devhub/test/devhub_examples.spec.ts | 9 +++------
32 files changed, 52 insertions(+), 99 deletions(-)
diff --git a/sdk/devhub/arm-devhub/samples-dev/generatePreviewArtifactsSample.ts b/sdk/devhub/arm-devhub/samples-dev/generatePreviewArtifactsSample.ts
index 3540f0c87c1f..c2a343674a25 100644
--- a/sdk/devhub/arm-devhub/samples-dev/generatePreviewArtifactsSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/generatePreviewArtifactsSample.ts
@@ -13,9 +13,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate preview dockerfile and manifests.
diff --git a/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthCallbackSample.ts b/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthCallbackSample.ts
index 70ee81f55093..a94af2061e54 100644
--- a/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthCallbackSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthCallbackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
diff --git a/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthSample.ts b/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthSample.ts
index 7518d5f6c1fb..95f88cadfffa 100644
--- a/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/gitHubOAuthSample.ts
@@ -14,9 +14,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
diff --git a/sdk/devhub/arm-devhub/samples-dev/listGitHubOAuthSample.ts b/sdk/devhub/arm-devhub/samples-dev/listGitHubOAuthSample.ts
index 1b592d65b7f9..122fcf511664 100644
--- a/sdk/devhub/arm-devhub/samples-dev/listGitHubOAuthSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/listGitHubOAuthSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
diff --git a/sdk/devhub/arm-devhub/samples-dev/operationsListSample.ts b/sdk/devhub/arm-devhub/samples-dev/operationsListSample.ts
index 4e672a1b54cd..c74abd0779a2 100644
--- a/sdk/devhub/arm-devhub/samples-dev/operationsListSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns list of operations.
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowCreateOrUpdateSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowCreateOrUpdateSample.ts
index 3eeb0f2f7747..e2af09b79e82 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowCreateOrUpdateSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Workflow, DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a workflow
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowDeleteSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowDeleteSample.ts
index 440c6ca338b6..e01186621f13 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowDeleteSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a workflow
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowGetSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowGetSample.ts
index ea4cfec79fe1..fff0da12d271 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowGetSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a workflow.
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowListByResourceGroupSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowListByResourceGroupSample.ts
index ac8431da8f24..9975fd0e2669 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowListByResourceGroupSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of workflows within a resource group.
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowListSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowListSample.ts
index d491b8e181a7..6fd3cd8e87ed 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowListSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of workflows associated with the specified subscription.
diff --git a/sdk/devhub/arm-devhub/samples-dev/workflowUpdateTagsSample.ts b/sdk/devhub/arm-devhub/samples-dev/workflowUpdateTagsSample.ts
index 3cade8b0c14d..9a62cb67e711 100644
--- a/sdk/devhub/arm-devhub/samples-dev/workflowUpdateTagsSample.ts
+++ b/sdk/devhub/arm-devhub/samples-dev/workflowUpdateTagsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { TagsObject, DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates tags on a workflow.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/generatePreviewArtifactsSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/generatePreviewArtifactsSample.ts
index 3540f0c87c1f..c2a343674a25 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/generatePreviewArtifactsSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/generatePreviewArtifactsSample.ts
@@ -13,9 +13,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate preview dockerfile and manifests.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthCallbackSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthCallbackSample.ts
index 70ee81f55093..a94af2061e54 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthCallbackSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthCallbackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthSample.ts
index 7518d5f6c1fb..95f88cadfffa 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/gitHubOAuthSample.ts
@@ -14,9 +14,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/listGitHubOAuthSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/listGitHubOAuthSample.ts
index 1b592d65b7f9..122fcf511664 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/listGitHubOAuthSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/listGitHubOAuthSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/operationsListSample.ts
index 4e672a1b54cd..c74abd0779a2 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/operationsListSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns list of operations.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowCreateOrUpdateSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowCreateOrUpdateSample.ts
index 3eeb0f2f7747..e2af09b79e82 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowCreateOrUpdateSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Workflow, DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a workflow
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowDeleteSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowDeleteSample.ts
index 440c6ca338b6..e01186621f13 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowDeleteSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a workflow
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowGetSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowGetSample.ts
index ea4cfec79fe1..fff0da12d271 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowGetSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a workflow.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListByResourceGroupSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListByResourceGroupSample.ts
index ac8431da8f24..9975fd0e2669 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListByResourceGroupSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
DeveloperHubServiceClient
} from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of workflows within a resource group.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListSample.ts
index d491b8e181a7..6fd3cd8e87ed 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of workflows associated with the specified subscription.
diff --git a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowUpdateTagsSample.ts b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowUpdateTagsSample.ts
index 3cade8b0c14d..9a62cb67e711 100644
--- a/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowUpdateTagsSample.ts
+++ b/sdk/devhub/arm-devhub/samples/v1-beta/typescript/src/workflowUpdateTagsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { TagsObject, DeveloperHubServiceClient } from "@azure/arm-devhub";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates tags on a workflow.
diff --git a/sdk/devhub/arm-devhub/src/developerHubServiceClient.ts b/sdk/devhub/arm-devhub/src/developerHubServiceClient.ts
index cc1dca59a197..b7cfe304090d 100644
--- a/sdk/devhub/arm-devhub/src/developerHubServiceClient.ts
+++ b/sdk/devhub/arm-devhub/src/developerHubServiceClient.ts
@@ -14,10 +14,10 @@ import {
SendRequest
} from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
-import { OperationsImpl, WorkflowOperationsImpl } from "./operations";
-import { Operations, WorkflowOperations } from "./operationsInterfaces";
-import * as Parameters from "./models/parameters";
-import * as Mappers from "./models/mappers";
+import { OperationsImpl, WorkflowOperationsImpl } from "./operations/index.js";
+import { Operations, WorkflowOperations } from "./operationsInterfaces/index.js";
+import * as Parameters from "./models/parameters.js";
+import * as Mappers from "./models/mappers.js";
import {
DeveloperHubServiceClientOptionalParams,
GitHubOAuthOptionalParams,
@@ -29,7 +29,7 @@ import {
ArtifactGenerationProperties,
GeneratePreviewArtifactsOptionalParams,
GeneratePreviewArtifactsResponse
-} from "./models";
+} from "./models/index.js";
export class DeveloperHubServiceClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/devhub/arm-devhub/src/index.ts b/sdk/devhub/arm-devhub/src/index.ts
index 6d1ff3560145..3c6935109dd9 100644
--- a/sdk/devhub/arm-devhub/src/index.ts
+++ b/sdk/devhub/arm-devhub/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DeveloperHubServiceClient } from "./developerHubServiceClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DeveloperHubServiceClient } from "./developerHubServiceClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/devhub/arm-devhub/src/models/parameters.ts b/sdk/devhub/arm-devhub/src/models/parameters.ts
index e70be20d8749..8be7fec24112 100644
--- a/sdk/devhub/arm-devhub/src/models/parameters.ts
+++ b/sdk/devhub/arm-devhub/src/models/parameters.ts
@@ -16,7 +16,7 @@ import {
ArtifactGenerationProperties as ArtifactGenerationPropertiesMapper,
Workflow as WorkflowMapper,
TagsObject as TagsObjectMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/devhub/arm-devhub/src/operations/index.ts b/sdk/devhub/arm-devhub/src/operations/index.ts
index 11fd3b56b25b..b635cc2beb81 100644
--- a/sdk/devhub/arm-devhub/src/operations/index.ts
+++ b/sdk/devhub/arm-devhub/src/operations/index.ts
@@ -6,5 +6,5 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./workflowOperations";
+export * from "./operations.js";
+export * from "./workflowOperations.js";
diff --git a/sdk/devhub/arm-devhub/src/operations/operations.ts b/sdk/devhub/arm-devhub/src/operations/operations.ts
index ba910c88aceb..05fb109654d4 100644
--- a/sdk/devhub/arm-devhub/src/operations/operations.ts
+++ b/sdk/devhub/arm-devhub/src/operations/operations.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Operations } from "../operationsInterfaces";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DeveloperHubServiceClient } from "../developerHubServiceClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DeveloperHubServiceClient } from "../developerHubServiceClient.js";
import {
OperationsListOptionalParams,
OperationsListResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing Operations operations. */
export class OperationsImpl implements Operations {
diff --git a/sdk/devhub/arm-devhub/src/operations/workflowOperations.ts b/sdk/devhub/arm-devhub/src/operations/workflowOperations.ts
index a0d943abc114..8c9d0203f7a8 100644
--- a/sdk/devhub/arm-devhub/src/operations/workflowOperations.ts
+++ b/sdk/devhub/arm-devhub/src/operations/workflowOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { WorkflowOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { WorkflowOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DeveloperHubServiceClient } from "../developerHubServiceClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DeveloperHubServiceClient } from "../developerHubServiceClient.js";
import {
Workflow,
WorkflowListNextOptionalParams,
@@ -32,7 +32,7 @@ import {
WorkflowUpdateTagsResponse,
WorkflowListNextResponse,
WorkflowListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing WorkflowOperations operations. */
diff --git a/sdk/devhub/arm-devhub/src/operationsInterfaces/index.ts b/sdk/devhub/arm-devhub/src/operationsInterfaces/index.ts
index 11fd3b56b25b..b635cc2beb81 100644
--- a/sdk/devhub/arm-devhub/src/operationsInterfaces/index.ts
+++ b/sdk/devhub/arm-devhub/src/operationsInterfaces/index.ts
@@ -6,5 +6,5 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./workflowOperations";
+export * from "./operations.js";
+export * from "./workflowOperations.js";
diff --git a/sdk/devhub/arm-devhub/src/operationsInterfaces/operations.ts b/sdk/devhub/arm-devhub/src/operationsInterfaces/operations.ts
index 21d0ce0caa70..a8223238aae8 100644
--- a/sdk/devhub/arm-devhub/src/operationsInterfaces/operations.ts
+++ b/sdk/devhub/arm-devhub/src/operationsInterfaces/operations.ts
@@ -9,7 +9,7 @@
import {
OperationsListOptionalParams,
OperationsListResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Operations. */
export interface Operations {
diff --git a/sdk/devhub/arm-devhub/src/operationsInterfaces/workflowOperations.ts b/sdk/devhub/arm-devhub/src/operationsInterfaces/workflowOperations.ts
index 9f1eccf4de8a..1559f9e77e80 100644
--- a/sdk/devhub/arm-devhub/src/operationsInterfaces/workflowOperations.ts
+++ b/sdk/devhub/arm-devhub/src/operationsInterfaces/workflowOperations.ts
@@ -20,7 +20,7 @@ import {
TagsObject,
WorkflowUpdateTagsOptionalParams,
WorkflowUpdateTagsResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a WorkflowOperations. */
diff --git a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
index b77c7c524008..2cb32b439751 100644
--- a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
+++ b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
@@ -10,13 +10,10 @@ import {
env,
Recorder,
RecorderStartOptions,
- delay,
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
-import { Context } from "mocha";
-import { DeveloperHubServiceClient } from "../src/developerHubServiceClient";
+import { DeveloperHubServiceClient } from "../src/developerHubServiceClient.js";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -44,8 +41,8 @@ describe("devhub test", () => {
let location: string;
let resourceGroup: string;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
subscriptionId = env.SUBSCRIPTION_ID || '';
// This is an example of how the environment variables are used
From d8c5cfa0d4d176566284c5a544d6ddb10b08f887 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:47 +0800
Subject: [PATCH 53/62] Migration: Apply codemod: "fixTestingImports"
---
sdk/devhub/arm-devhub/test/devhub_examples.spec.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
index 2cb32b439751..f8ccc5649f94 100644
--- a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
+++ b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
@@ -14,6 +14,7 @@ import {
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
import { DeveloperHubServiceClient } from "../src/developerHubServiceClient.js";
+import { describe, it, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
From 8e39c934b38ef55ab103306a12a9602bbd3bcc80 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:48 +0800
Subject: [PATCH 54/62] Migration: Apply codemod: "replaceAssertIsRejected"
From 2afe8503a948da8d6712054f93dba7b48f41d161 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:48 +0800
Subject: [PATCH 55/62] Migration: Apply codemod: "replaceSinonStub"
From 2e4f166f3588f38965fda12bc5d2d9a04b614a70 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:49 +0800
Subject: [PATCH 56/62] Migration: Apply codemod: "addViHelper"
From 805ba84a52faf12c2d2519e54197b73593dc62d3 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:50 +0800
Subject: [PATCH 57/62] Migration: Apply codemod: "replaceSupportTracing"
From d8ecd0da981d585ee0fa180f5fbdd330401edcb9 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:40:50 +0800
Subject: [PATCH 58/62] Migration: Apply codemod: "replaceTestUtils"
From 5118889f2516ac78eb6b57455cdb03331b42b5b0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:41:06 +0800
Subject: [PATCH 59/62] Migration: rushx format
From 46093b2bbe6ddb78e0b579211bff948517eb69c5 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 14 Jan 2025 16:46:54 +0800
Subject: [PATCH 60/62] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
...ktopvirtualization_operations_test.spec.ts | 7 ----
.../test/devcenter_examples.spec.ts | 1 +
sdk/devhub/arm-devhub/package.json | 29 ++++++++++++---
.../arm-devhub/test/devhub_examples.spec.ts | 2 --
5 files changed, 50 insertions(+), 25 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index bfc486b98dca..5a5902bd7044 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -294,7 +294,7 @@ importers:
version: file:projects/arm-devcenter.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-devhub':
specifier: file:./projects/arm-devhub.tgz
- version: file:projects/arm-devhub.tgz
+ version: file:projects/arm-devhub.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))
'@rush-temp/arm-deviceprovisioningservices':
specifier: file:./projects/arm-deviceprovisioningservices.tgz
version: file:projects/arm-deviceprovisioningservices.tgz
@@ -2839,7 +2839,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-devhub@file:projects/arm-devhub.tgz':
- resolution: {integrity: sha512-QjyPnOwFP5mPT/FrQ0m6sLZAedWSzOPU69uQtGGbEZhfX2TqwK321KHgaONjFEsf2yH/JXVpGHvqFp8RpGxhaQ==, tarball: file:projects/arm-devhub.tgz}
+ resolution: {integrity: sha512-ZzvQ8YPJVZvs6FadlLpYBOc8uQYf2ifaIs295VvcnSqP7GeouagN/RtiqmTkq/Ka4Vq4zgcOAEXkmiRZpnFb8w==, tarball: file:projects/arm-devhub.tgz}
version: 0.0.0
'@rush-temp/arm-deviceprovisioningservices@file:projects/arm-deviceprovisioningservices.tgz':
@@ -12593,23 +12593,35 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-devhub@file:projects/arm-devhub.tgz':
+ '@rush-temp/arm-devhub@file:projects/arm-devhub.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
- '@azure-tools/test-credential': 1.3.1
- '@azure-tools/test-recorder': 3.5.2
- '@types/chai': 4.3.20
- '@types/mocha': 10.0.10
'@types/node': 18.19.70
- chai: 4.5.0
+ '@vitest/browser': 2.1.8(@types/node@18.19.70)(playwright@1.49.1)(typescript@5.7.2)(vite@5.4.11(@types/node@22.7.9))(vitest@2.1.8)
+ '@vitest/coverage-istanbul': 2.1.8(vitest@2.1.8)
dotenv: 16.4.7
- mocha: 11.1.0
- ts-node: 10.9.2(@types/node@18.19.70)(typescript@5.7.2)
+ playwright: 1.49.1
tslib: 2.8.1
typescript: 5.7.2
+ vitest: 2.1.8(@types/node@18.19.70)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.3))
transitivePeerDependencies:
- - '@swc/core'
- - '@swc/wasm'
+ - '@edge-runtime/vm'
+ - '@vitest/ui'
+ - bufferutil
+ - happy-dom
+ - jsdom
+ - less
+ - lightningcss
+ - msw
+ - safaridriver
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
- supports-color
+ - terser
+ - utf-8-validate
+ - vite
+ - webdriverio
'@rush-temp/arm-deviceprovisioningservices@file:projects/arm-deviceprovisioningservices.tgz':
dependencies:
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
index 59740b2d572b..d00b0b0a00ef 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/test/desktopvirtualization_operations_test.spec.ts
@@ -39,9 +39,6 @@ describe("DesktopVirtualization test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: DesktopVirtualizationAPIClient;
- let location: string;
- let resourceGroup: string;
- let resourcename: string;
beforeEach(async function (ctx) {
recorder = new Recorder(ctx);
@@ -50,10 +47,6 @@ describe("DesktopVirtualization test", () => {
// This is an example of how the environment variables are used
const credential = createTestCredential();
client = new DesktopVirtualizationAPIClient(credential, subscriptionId, recorder.configureClientOptions({}));
- location = "eastus";
- resourceGroup = "myjstest";
- resourcename = "resourcetest";
-
});
afterEach(async function () {
diff --git a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
index 35d56b061655..f8c81b5c86e2 100644
--- a/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
+++ b/sdk/devcenter/arm-devcenter/test/devcenter_examples.spec.ts
@@ -86,6 +86,7 @@ describe("devcenter test", () => {
it("devcenters delete test", async function () {
const resArray = new Array();
+ await client.devCenters.beginDeleteAndWait(resourceGroup, devCenterName, testPollingOptions)
for await (let item of client.devCenters.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
diff --git a/sdk/devhub/arm-devhub/package.json b/sdk/devhub/arm-devhub/package.json
index 8faa0d2a48d4..3536abd2d3c8 100644
--- a/sdk/devhub/arm-devhub/package.json
+++ b/sdk/devhub/arm-devhub/package.json
@@ -22,9 +22,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-devhub.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
@@ -116,5 +116,26 @@
"selfLink": false
},
"browser": "./dist/browser/index.js",
- "react-native": "./dist/react-native/index.js"
+ "react-native": "./dist/react-native/index.js",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ }
}
diff --git a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
index f8ccc5649f94..9e9e5ed4eb3a 100644
--- a/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
+++ b/sdk/devhub/arm-devhub/test/devhub_examples.spec.ts
@@ -39,7 +39,6 @@ describe("devhub test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: DeveloperHubServiceClient;
- let location: string;
let resourceGroup: string;
beforeEach(async function (ctx) {
@@ -49,7 +48,6 @@ describe("devhub test", () => {
// This is an example of how the environment variables are used
const credential = createTestCredential();
client = new DeveloperHubServiceClient(credential, subscriptionId, recorder.configureClientOptions({}));
- location = "eastus";
resourceGroup = "myjstest";
});
From aa4ffe08448573b89600e98ced4558ca47f4f633 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Wed, 15 Jan 2025 10:05:32 +0800
Subject: [PATCH 61/62] update
---
.../test/{sampleTest.ts => sampleTest.spec.ts} | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
rename sdk/deploymentmanager/arm-deploymentmanager/test/{sampleTest.ts => sampleTest.spec.ts} (73%)
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts b/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.spec.ts
similarity index 73%
rename from sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts
rename to sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.spec.ts
index f0d6ea6885e4..86a13f7a74a4 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/test/sampleTest.spec.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import {
- Recorder,
- RecorderStartOptions} from "@azure-tools/test-recorder";
+import type { RecorderStartOptions } from "@azure-tools/test-recorder";
+import { Recorder } from "@azure-tools/test-recorder";
+import { afterEach, beforeEach, describe, it, assert } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
- SUBSCRIPTION_ID: "azure_subscription_id"
+ SUBSCRIPTION_ID: "azure_subscription_id",
};
const recorderOptions: RecorderStartOptions = {
@@ -28,16 +28,16 @@ const recorderOptions: RecorderStartOptions = {
describe("My test", () => {
let recorder: Recorder;
- beforeEach(async function (ctx) {
+ beforeEach(async (ctx) => {
recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
});
- afterEach(async function () {
+ afterEach(async () => {
await recorder.stop();
});
- it("sample test", async function () {
- console.log("Hi, I'm a test!");
+ it("sample test", async () => {
+ assert(true);
});
});
From 25a76873ea8b2f0c340c926c1966525eaeb46b75 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Wed, 15 Jan 2025 16:02:02 +0800
Subject: [PATCH 62/62] update
---
.../samples-dev/labelsCreateAndUpdateSample.ts | 4 ++--
.../arm-defendereasm/samples-dev/labelsDeleteSample.ts | 4 ++--
.../samples-dev/labelsGetByWorkspaceSample.ts | 4 ++--
.../samples-dev/labelsListByWorkspaceSample.ts | 4 ++--
.../arm-defendereasm/samples-dev/labelsUpdateSample.ts | 4 ++--
.../arm-defendereasm/samples-dev/operationsListSample.ts | 4 ++--
.../samples-dev/tasksGetByWorkspaceSample.ts | 4 ++--
.../samples-dev/workspacesCreateAndUpdateSample.ts | 4 ++--
.../samples-dev/workspacesDeleteSample.ts | 4 ++--
.../arm-defendereasm/samples-dev/workspacesGetSample.ts | 4 ++--
.../samples-dev/workspacesListByResourceGroupSample.ts | 4 ++--
.../samples-dev/workspacesListBySubscriptionSample.ts | 4 ++--
.../samples-dev/workspacesUpdateSample.ts | 4 ++--
.../samples-dev/artifactSourcesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/artifactSourcesDeleteSample.ts | 2 +-
.../samples-dev/artifactSourcesGetSample.ts | 2 +-
.../samples-dev/artifactSourcesListSample.ts | 2 +-
.../samples-dev/operationsListSample.ts | 2 +-
.../samples-dev/rolloutsCancelSample.ts | 2 +-
.../samples-dev/rolloutsCreateOrUpdateSample.ts | 2 +-
.../samples-dev/rolloutsDeleteSample.ts | 2 +-
.../samples-dev/rolloutsGetSample.ts | 2 +-
.../samples-dev/rolloutsListSample.ts | 2 +-
.../samples-dev/rolloutsRestartSample.ts | 2 +-
.../samples-dev/serviceTopologiesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/serviceTopologiesDeleteSample.ts | 2 +-
.../samples-dev/serviceTopologiesGetSample.ts | 2 +-
.../samples-dev/serviceTopologiesListSample.ts | 2 +-
.../samples-dev/serviceUnitsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/serviceUnitsDeleteSample.ts | 2 +-
.../samples-dev/serviceUnitsGetSample.ts | 2 +-
.../samples-dev/serviceUnitsListSample.ts | 2 +-
.../samples-dev/servicesCreateOrUpdateSample.ts | 2 +-
.../samples-dev/servicesDeleteSample.ts | 2 +-
.../samples-dev/servicesGetSample.ts | 2 +-
.../samples-dev/servicesListSample.ts | 2 +-
.../samples-dev/stepsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/stepsDeleteSample.ts | 2 +-
.../arm-deploymentmanager/samples-dev/stepsGetSample.ts | 2 +-
.../arm-deploymentmanager/samples-dev/stepsListSample.ts | 2 +-
.../samples-dev/appAttachPackageCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/appAttachPackageDeleteSample.ts | 4 ++--
.../samples-dev/appAttachPackageGetSample.ts | 4 ++--
.../samples-dev/appAttachPackageInfoImportSample.ts | 4 ++--
.../appAttachPackageListByResourceGroupSample.ts | 4 ++--
.../appAttachPackageListBySubscriptionSample.ts | 4 ++--
.../samples-dev/appAttachPackageUpdateSample.ts | 4 ++--
.../samples-dev/applicationGroupsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/applicationGroupsDeleteSample.ts | 4 ++--
.../samples-dev/applicationGroupsGetSample.ts | 4 ++--
.../applicationGroupsListByResourceGroupSample.ts | 4 ++--
.../applicationGroupsListBySubscriptionSample.ts | 4 ++--
.../samples-dev/applicationGroupsUpdateSample.ts | 4 ++--
.../samples-dev/applicationsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/applicationsDeleteSample.ts | 4 ++--
.../samples-dev/applicationsGetSample.ts | 4 ++--
.../samples-dev/applicationsListSample.ts | 4 ++--
.../samples-dev/applicationsUpdateSample.ts | 4 ++--
.../samples-dev/desktopsGetSample.ts | 4 ++--
.../samples-dev/desktopsListSample.ts | 4 ++--
.../samples-dev/desktopsUpdateSample.ts | 4 ++--
.../samples-dev/hostPoolsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/hostPoolsDeleteSample.ts | 4 ++--
.../samples-dev/hostPoolsGetSample.ts | 4 ++--
.../samples-dev/hostPoolsListByResourceGroupSample.ts | 4 ++--
.../samples-dev/hostPoolsListRegistrationTokensSample.ts | 4 ++--
.../samples-dev/hostPoolsListSample.ts | 4 ++--
.../hostPoolsRetrieveRegistrationTokenSample.ts | 4 ++--
.../samples-dev/hostPoolsUpdateSample.ts | 4 ++--
.../samples-dev/msixImagesExpandSample.ts | 4 ++--
.../samples-dev/msixPackagesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/msixPackagesDeleteSample.ts | 4 ++--
.../samples-dev/msixPackagesGetSample.ts | 4 ++--
.../samples-dev/msixPackagesListSample.ts | 4 ++--
.../samples-dev/msixPackagesUpdateSample.ts | 4 ++--
.../samples-dev/operationsListSample.ts | 4 ++--
.../privateEndpointConnectionsDeleteByHostPoolSample.ts | 4 ++--
.../privateEndpointConnectionsDeleteByWorkspaceSample.ts | 4 ++--
.../privateEndpointConnectionsGetByHostPoolSample.ts | 4 ++--
.../privateEndpointConnectionsGetByWorkspaceSample.ts | 4 ++--
.../privateEndpointConnectionsListByHostPoolSample.ts | 4 ++--
.../privateEndpointConnectionsListByWorkspaceSample.ts | 4 ++--
.../privateEndpointConnectionsUpdateByHostPoolSample.ts | 4 ++--
.../privateEndpointConnectionsUpdateByWorkspaceSample.ts | 4 ++--
.../privateLinkResourcesListByHostPoolSample.ts | 4 ++--
.../privateLinkResourcesListByWorkspaceSample.ts | 4 ++--
.../scalingPlanPersonalSchedulesCreateSample.ts | 4 ++--
.../scalingPlanPersonalSchedulesDeleteSample.ts | 4 ++--
.../samples-dev/scalingPlanPersonalSchedulesGetSample.ts | 4 ++--
.../samples-dev/scalingPlanPersonalSchedulesListSample.ts | 4 ++--
.../scalingPlanPersonalSchedulesUpdateSample.ts | 4 ++--
.../samples-dev/scalingPlanPooledSchedulesCreateSample.ts | 4 ++--
.../samples-dev/scalingPlanPooledSchedulesDeleteSample.ts | 4 ++--
.../samples-dev/scalingPlanPooledSchedulesGetSample.ts | 4 ++--
.../samples-dev/scalingPlanPooledSchedulesListSample.ts | 4 ++--
.../samples-dev/scalingPlanPooledSchedulesUpdateSample.ts | 4 ++--
.../samples-dev/scalingPlansCreateSample.ts | 4 ++--
.../samples-dev/scalingPlansDeleteSample.ts | 4 ++--
.../samples-dev/scalingPlansGetSample.ts | 4 ++--
.../samples-dev/scalingPlansListByHostPoolSample.ts | 4 ++--
.../samples-dev/scalingPlansListByResourceGroupSample.ts | 4 ++--
.../samples-dev/scalingPlansListBySubscriptionSample.ts | 4 ++--
.../samples-dev/scalingPlansUpdateSample.ts | 4 ++--
.../samples-dev/sessionHostsDeleteSample.ts | 4 ++--
.../samples-dev/sessionHostsGetSample.ts | 4 ++--
.../samples-dev/sessionHostsListSample.ts | 4 ++--
.../samples-dev/sessionHostsUpdateSample.ts | 4 ++--
.../samples-dev/startMenuItemsListSample.ts | 4 ++--
.../samples-dev/userSessionsDeleteSample.ts | 4 ++--
.../samples-dev/userSessionsDisconnectSample.ts | 4 ++--
.../samples-dev/userSessionsGetSample.ts | 4 ++--
.../samples-dev/userSessionsListByHostPoolSample.ts | 4 ++--
.../samples-dev/userSessionsListSample.ts | 4 ++--
.../samples-dev/userSessionsSendMessageSample.ts | 4 ++--
.../samples-dev/workspacesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/workspacesDeleteSample.ts | 4 ++--
.../samples-dev/workspacesGetSample.ts | 4 ++--
.../samples-dev/workspacesListByResourceGroupSample.ts | 4 ++--
.../samples-dev/workspacesListBySubscriptionSample.ts | 4 ++--
.../samples-dev/workspacesUpdateSample.ts | 4 ++--
.../samples-dev/attachedNetworksCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/attachedNetworksDeleteSample.ts | 4 ++--
.../samples-dev/attachedNetworksGetByDevCenterSample.ts | 4 ++--
.../samples-dev/attachedNetworksGetByProjectSample.ts | 4 ++--
.../samples-dev/attachedNetworksListByDevCenterSample.ts | 4 ++--
.../samples-dev/attachedNetworksListByProjectSample.ts | 4 ++--
.../arm-devcenter/samples-dev/catalogsConnectSample.ts | 4 ++--
.../samples-dev/catalogsCreateOrUpdateSample.ts | 6 +++---
.../arm-devcenter/samples-dev/catalogsDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/catalogsGetSample.ts | 4 ++--
.../samples-dev/catalogsGetSyncErrorDetailsSample.ts | 4 ++--
.../samples-dev/catalogsListByDevCenterSample.ts | 4 ++--
.../arm-devcenter/samples-dev/catalogsSyncSample.ts | 4 ++--
.../arm-devcenter/samples-dev/catalogsUpdateSample.ts | 4 ++--
.../samples-dev/checkNameAvailabilityExecuteSample.ts | 4 ++--
.../checkScopedNameAvailabilityExecuteSample.ts | 6 +++---
.../samples-dev/devBoxDefinitionsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsDeleteSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsGetByProjectSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsGetSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsListByDevCenterSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsListByProjectSample.ts | 4 ++--
.../samples-dev/devBoxDefinitionsUpdateSample.ts | 4 ++--
.../samples-dev/devCentersCreateOrUpdateSample.ts | 8 ++++----
.../arm-devcenter/samples-dev/devCentersDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/devCentersGetSample.ts | 4 ++--
.../samples-dev/devCentersListByResourceGroupSample.ts | 4 ++--
.../samples-dev/devCentersListBySubscriptionSample.ts | 4 ++--
.../arm-devcenter/samples-dev/devCentersUpdateSample.ts | 4 ++--
.../environmentDefinitionsGetByProjectCatalogSample.ts | 4 ++--
.../environmentDefinitionsGetErrorDetailsSample.ts | 4 ++--
.../samples-dev/environmentDefinitionsGetSample.ts | 4 ++--
.../environmentDefinitionsListByCatalogSample.ts | 4 ++--
.../environmentDefinitionsListByProjectCatalogSample.ts | 4 ++--
.../samples-dev/environmentTypesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/environmentTypesDeleteSample.ts | 4 ++--
.../samples-dev/environmentTypesGetSample.ts | 4 ++--
.../samples-dev/environmentTypesListByDevCenterSample.ts | 4 ++--
.../samples-dev/environmentTypesUpdateSample.ts | 4 ++--
.../samples-dev/galleriesCreateOrUpdateSample.ts | 4 ++--
.../arm-devcenter/samples-dev/galleriesDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/galleriesGetSample.ts | 4 ++--
.../samples-dev/galleriesListByDevCenterSample.ts | 4 ++--
.../arm-devcenter/samples-dev/imageVersionsGetSample.ts | 4 ++--
.../samples-dev/imageVersionsListByImageSample.ts | 4 ++--
.../arm-devcenter/samples-dev/imagesGetSample.ts | 4 ++--
.../samples-dev/imagesListByDevCenterSample.ts | 4 ++--
.../samples-dev/imagesListByGallerySample.ts | 4 ++--
.../samples-dev/networkConnectionsCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/networkConnectionsDeleteSample.ts | 4 ++--
.../networkConnectionsGetHealthDetailsSample.ts | 4 ++--
.../samples-dev/networkConnectionsGetSample.ts | 4 ++--
.../networkConnectionsListByResourceGroupSample.ts | 4 ++--
.../networkConnectionsListBySubscriptionSample.ts | 4 ++--
.../networkConnectionsListHealthDetailsSample.ts | 4 ++--
...tionsListOutboundNetworkDependenciesEndpointsSample.ts | 4 ++--
.../networkConnectionsRunHealthChecksSample.ts | 4 ++--
.../samples-dev/networkConnectionsUpdateSample.ts | 4 ++--
.../samples-dev/operationStatusesGetSample.ts | 4 ++--
.../arm-devcenter/samples-dev/operationsListSample.ts | 4 ++--
.../samples-dev/poolsCreateOrUpdateSample.ts | 6 +++---
.../arm-devcenter/samples-dev/poolsDeleteSample.ts | 4 ++--
sdk/devcenter/arm-devcenter/samples-dev/poolsGetSample.ts | 6 +++---
.../arm-devcenter/samples-dev/poolsListByProjectSample.ts | 4 ++--
.../samples-dev/poolsRunHealthChecksSample.ts | 4 ++--
.../arm-devcenter/samples-dev/poolsUpdateSample.ts | 4 ++--
.../projectAllowedEnvironmentTypesGetSample.ts | 4 ++--
.../projectAllowedEnvironmentTypesListSample.ts | 4 ++--
...tCatalogEnvironmentDefinitionsGetErrorDetailsSample.ts | 4 ++--
.../samples-dev/projectCatalogsConnectSample.ts | 4 ++--
.../samples-dev/projectCatalogsCreateOrUpdateSample.ts | 6 +++---
.../samples-dev/projectCatalogsDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/projectCatalogsGetSample.ts | 4 ++--
.../projectCatalogsGetSyncErrorDetailsSample.ts | 4 ++--
.../samples-dev/projectCatalogsListSample.ts | 4 ++--
.../samples-dev/projectCatalogsPatchSample.ts | 4 ++--
.../samples-dev/projectCatalogsSyncSample.ts | 4 ++--
.../projectEnvironmentTypesCreateOrUpdateSample.ts | 4 ++--
.../samples-dev/projectEnvironmentTypesDeleteSample.ts | 4 ++--
.../samples-dev/projectEnvironmentTypesGetSample.ts | 4 ++--
.../samples-dev/projectEnvironmentTypesListSample.ts | 4 ++--
.../samples-dev/projectEnvironmentTypesUpdateSample.ts | 4 ++--
.../samples-dev/projectsCreateOrUpdateSample.ts | 6 +++---
.../arm-devcenter/samples-dev/projectsDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/projectsGetSample.ts | 4 ++--
.../samples-dev/projectsListByResourceGroupSample.ts | 4 ++--
.../samples-dev/projectsListBySubscriptionSample.ts | 4 ++--
.../arm-devcenter/samples-dev/projectsUpdateSample.ts | 4 ++--
.../samples-dev/schedulesCreateOrUpdateSample.ts | 4 ++--
.../arm-devcenter/samples-dev/schedulesDeleteSample.ts | 4 ++--
.../arm-devcenter/samples-dev/schedulesGetSample.ts | 4 ++--
.../samples-dev/schedulesListByPoolSample.ts | 4 ++--
.../arm-devcenter/samples-dev/schedulesUpdateSample.ts | 4 ++--
.../samples-dev/skusListBySubscriptionSample.ts | 4 ++--
.../samples-dev/usagesListByLocationSample.ts | 4 ++--
.../samples-dev/generatePreviewArtifactsSample.ts | 4 ++--
.../arm-devhub/samples-dev/gitHubOAuthCallbackSample.ts | 4 ++--
sdk/devhub/arm-devhub/samples-dev/gitHubOAuthSample.ts | 4 ++--
.../arm-devhub/samples-dev/listGitHubOAuthSample.ts | 4 ++--
sdk/devhub/arm-devhub/samples-dev/operationsListSample.ts | 4 ++--
.../samples-dev/workflowCreateOrUpdateSample.ts | 6 +++---
sdk/devhub/arm-devhub/samples-dev/workflowDeleteSample.ts | 4 ++--
sdk/devhub/arm-devhub/samples-dev/workflowGetSample.ts | 4 ++--
.../samples-dev/workflowListByResourceGroupSample.ts | 4 ++--
sdk/devhub/arm-devhub/samples-dev/workflowListSample.ts | 4 ++--
.../arm-devhub/samples-dev/workflowUpdateTagsSample.ts | 4 ++--
226 files changed, 438 insertions(+), 438 deletions(-)
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
index b41dedba950c..c1f6eecca733 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsCreateAndUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Create or update a Label.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Labels_CreateAndUpdate.json
*/
-async function labels() {
+async function labels(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -36,7 +36,7 @@ async function labels() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
labels();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
index 116cd995708d..69610d8c5502 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Delete a Label.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Labels_Delete.json
*/
-async function labels() {
+async function labels(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -36,7 +36,7 @@ async function labels() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
labels();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
index f48dc2fa904f..dd4ee48fcd7d 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsGetByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a label in the given workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Labels_GetByWorkspace.json
*/
-async function labels() {
+async function labels(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -36,7 +36,7 @@ async function labels() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
labels();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
index 9ccf3079dfc0..ac1f6e9a3aa7 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsListByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a list of labels in the given workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Labels_ListByWorkspace.json
*/
-async function labels() {
+async function labels(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -37,7 +37,7 @@ async function labels() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
labels();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
index 24185619408d..3fc7d12791ae 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/labelsUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Update a Label.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Labels_Update.json
*/
-async function labels() {
+async function labels(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -36,7 +36,7 @@ async function labels() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
labels();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
index b82f7edb9819..100b85d4fdbd 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/operationsListSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns list of operations.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Operations_List.json
*/
-async function operations() {
+async function operations(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -31,7 +31,7 @@ async function operations() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
operations();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
index fe60b63a6e0c..ea6f8dfedf42 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/tasksGetByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a task in the given workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Tasks_GetByWorkspace.json
*/
-async function tasks() {
+async function tasks(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -36,7 +36,7 @@ async function tasks() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
tasks();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
index c9598e026cf5..9ec27fb2f9e8 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesCreateAndUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Create or update a Workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_CreateAndUpdate.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -43,7 +43,7 @@ async function workspaces() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
index 86ded5fb828c..bc3ea4e837b8 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Delete a Workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_Delete.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -34,7 +34,7 @@ async function workspaces() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
index ab3e0372f85d..7fa32cf98818 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a workspace with the given name.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_Get.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -31,7 +31,7 @@ async function workspaces() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
index a91e5b6cd172..a1c9df782a6e 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListByResourceGroupSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a list of workspaces in the given resource group.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_ListByResourceGroup.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -35,7 +35,7 @@ async function workspaces() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
index d07d902e60b1..c3219688792f 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesListBySubscriptionSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Returns a list of workspaces under the given subscription.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_ListBySubscription.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -31,7 +31,7 @@ async function workspaces() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
index c637e6a90030..8805902314dd 100644
--- a/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
+++ b/sdk/defendereasm/arm-defendereasm/samples-dev/workspacesUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Update a Workspace.
* x-ms-original-file: specification/riskiq/resource-manager/Microsoft.Easm/preview/2023-04-01-preview/examples/Workspaces_Update.json
*/
-async function workspaces() {
+async function workspaces(): Promise {
const subscriptionId =
process.env["DEFENDEREASM_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -34,7 +34,7 @@ async function workspaces() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaces();
}
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesCreateOrUpdateSample.ts
index 1d86881c943d..53306ad2421b 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Synchronously creates a new artifact source or updates an existing artifact source.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_createorupdate.json
*/
-async function createArtifactSource() {
+async function createArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const artifactSourceName = "myArtifactSource";
@@ -56,7 +56,7 @@ createArtifactSource().catch(console.error);
* @summary Synchronously creates a new artifact source or updates an existing artifact source.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_createorupdate_artifactroot.json
*/
-async function createArtifactSourceWithArtifactRootAnOffsetIntoTheStorageContainer() {
+async function createArtifactSourceWithArtifactRootAnOffsetIntoTheStorageContainer(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const artifactSourceName = "myArtifactSource";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesDeleteSample.ts
index 1d7639a302b7..37f8f074cefa 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Deletes an artifact source.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_delete.json
*/
-async function deleteArtifactSource() {
+async function deleteArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const artifactSourceName = "myArtifactSource";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesGetSample.ts
index 86cec067fe1d..49d1e33492ce 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets an artifact source.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsource_get.json
*/
-async function getArtifactSource() {
+async function getArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const artifactSourceName = "myArtifactSource";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesListSample.ts
index 3cbf400a46e6..392e6fcfbb66 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/artifactSourcesListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the artifact sources in a resource group.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/artifactsources_list.json
*/
-async function listSteps() {
+async function listSteps(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const credential = new DefaultAzureCredential();
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/operationsListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/operationsListSample.ts
index 84ac3c3aa379..b1f8a0d39a58 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/operationsListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/operationsListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the supported operations.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/operations_list.json
*/
-async function getOperations() {
+async function getOperations(): Promise {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new DefaultAzureCredential();
const client = new AzureDeploymentManager(credential, subscriptionId);
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCancelSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCancelSample.ts
index bb76762c1c7b..9fd86a08c7dc 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCancelSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCancelSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Only running rollouts can be canceled.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_post_cancel.json
*/
-async function cancelRollout() {
+async function cancelRollout(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const rolloutName = "myRollout";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCreateOrUpdateSample.ts
index 1ea5248ec569..f9cc36ed0a70 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary This is an asynchronous operation and can be polled to completion using the location header returned by this operation.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_createorupdate.json
*/
-async function createOrUpdateRollout() {
+async function createOrUpdateRollout(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const rolloutName = "myRollout";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsDeleteSample.ts
index a80c656f63f4..0a0fc6cbe223 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Only rollouts in terminal state can be deleted.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_delete.json
*/
-async function deleteRollout() {
+async function deleteRollout(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const rolloutName = "myRollout";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsGetSample.ts
index 03eb5efc6135..60a145285214 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets detailed information of a rollout.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_get.json
*/
-async function getRollout() {
+async function getRollout(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const rolloutName = "myRollout";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsListSample.ts
index 0773f7db3a4d..d09696056838 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the rollouts in a resource group.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollouts_list.json
*/
-async function listRolloutsByResourceGroup() {
+async function listRolloutsByResourceGroup(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const credential = new DefaultAzureCredential();
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsRestartSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsRestartSample.ts
index d59bbb85530c..1a034236060d 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsRestartSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/rolloutsRestartSample.ts
@@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Only failed rollouts can be restarted.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/rollout_post_restart.json
*/
-async function restartRollout() {
+async function restartRollout(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const rolloutName = "myRollout";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesCreateOrUpdateSample.ts
index 9c754c280861..7b18e0ce7aef 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesCreateOrUpdateSample.ts
@@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Synchronously creates a new service topology or updates an existing service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_createorupdate.json
*/
-async function createATopologyWithArtifactSource() {
+async function createATopologyWithArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
@@ -48,7 +48,7 @@ createATopologyWithArtifactSource().catch(console.error);
* @summary Synchronously creates a new service topology or updates an existing service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_createorupdate_noartifactsource.json
*/
-async function createATopologyWithoutArtifactSource() {
+async function createATopologyWithoutArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesDeleteSample.ts
index 3802c776a4f9..82b8067c9292 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Deletes the service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_delete.json
*/
-async function deleteTopology() {
+async function deleteTopology(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesGetSample.ts
index c6517b5718a5..696e7aff9b15 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets the service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopology_get.json
*/
-async function getTopology() {
+async function getTopology(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesListSample.ts
index 6b734e2a2aa8..3d1ecaf2fec9 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceTopologiesListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the service topologies in the resource group.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/servicetopologies_list.json
*/
-async function listTopologies() {
+async function listTopologies(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const credential = new DefaultAzureCredential();
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsCreateOrUpdateSample.ts
index 81b256b95b11..2d7c8a34f575 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsCreateOrUpdateSample.ts
@@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_createorupdate_noartifactsource.json
*/
-async function createServiceUnitUsingSasUrIs() {
+async function createServiceUnitUsingSasUrIs(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
@@ -58,7 +58,7 @@ createServiceUnitUsingSasUrIs().catch(console.error);
* @summary This is an asynchronous operation and can be polled to completion using the operation resource returned by this operation.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_createorupdate.json
*/
-async function createServiceUnitUsingRelativePathsIntoTheArtifactSource() {
+async function createServiceUnitUsingRelativePathsIntoTheArtifactSource(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsDeleteSample.ts
index 0b857d234c4e..1067e1db3e8d 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Deletes the service unit.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_delete.json
*/
-async function deleteServiceUnit() {
+async function deleteServiceUnit(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsGetSample.ts
index 2f95cf5f92d3..31ff9ba8bb69 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets the service unit.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunit_get.json
*/
-async function getServiceUnit() {
+async function getServiceUnit(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsListSample.ts
index 5716ac3fc068..1df2ef707cc7 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/serviceUnitsListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the service units under a service in the service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/serviceunits_list.json
*/
-async function listServiceUnits() {
+async function listServiceUnits(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesCreateOrUpdateSample.ts
index 23de9ca2df58..13e5f079e3f2 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesCreateOrUpdateSample.ts
@@ -20,7 +20,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Synchronously creates a new service or updates an existing service.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_createorupdate.json
*/
-async function createService() {
+async function createService(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesDeleteSample.ts
index 6f790defad44..d5c53b883e48 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Deletes the service.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_delete.json
*/
-async function deleteService() {
+async function deleteService(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesGetSample.ts
index b1255a81a583..6c2dae37b379 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets the service.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/service_get.json
*/
-async function getService() {
+async function getService(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesListSample.ts
index 88975d798a0d..bdf9316bdcea 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/servicesListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the services in the service topology.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/services_list.json
*/
-async function listServices() {
+async function listServices(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const serviceTopologyName = "myTopology";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsCreateOrUpdateSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsCreateOrUpdateSample.ts
index 0bcaf901d043..d1f27eb84e13 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsCreateOrUpdateSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Synchronously creates a new step or updates an existing step.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_health_check_createorupdate.json
*/
-async function createHealthCheckStep() {
+async function createHealthCheckStep(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const stepName = "healthCheckStep";
@@ -108,7 +108,7 @@ createHealthCheckStep().catch(console.error);
* @summary Synchronously creates a new step or updates an existing step.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_wait_createorupdate.json
*/
-async function createWaitStep() {
+async function createWaitStep(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const stepName = "waitStep";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsDeleteSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsDeleteSample.ts
index f8d86fa93290..6d3ef9004a34 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsDeleteSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsDeleteSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Deletes the step.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_delete.json
*/
-async function deleteDeploymentStep() {
+async function deleteDeploymentStep(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const stepName = "deploymentStep1";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsGetSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsGetSample.ts
index b1c141111b85..189b0ab76c5c 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsGetSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsGetSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Gets the step.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/step_get.json
*/
-async function getDeploymentStep() {
+async function getDeploymentStep(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const stepName = "waitStep";
diff --git a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsListSample.ts b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsListSample.ts
index 04aaa5f5a9df..d07230d1eb01 100644
--- a/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsListSample.ts
+++ b/sdk/deploymentmanager/arm-deploymentmanager/samples-dev/stepsListSample.ts
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
* @summary Lists the steps in a resource group.
* x-ms-original-file: specification/deploymentmanager/resource-manager/Microsoft.DeploymentManager/preview/2019-11-01-preview/examples/steps_list.json
*/
-async function listSteps() {
+async function listSteps(): Promise {
const subscriptionId = "caac1590-e859-444f-a9e0-62091c0f5929";
const resourceGroupName = "myResourceGroup";
const credential = new DefaultAzureCredential();
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
index 9ad1343ac4d2..dcca54d535cc 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update an App Attach package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Create.json
*/
-async function appAttachPackageCreate() {
+async function appAttachPackageCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -79,7 +79,7 @@ async function appAttachPackageCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
appAttachPackageCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
index 66317de738a5..42b263660ff5 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove an App Attach Package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Delete.json
*/
-async function appAttachPackageDelete() {
+async function appAttachPackageDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function appAttachPackageDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
appAttachPackageDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
index 4802af0f0060..a6ca8a937581 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get an app attach package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json
*/
-async function appAttachPackageGet() {
+async function appAttachPackageGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function appAttachPackageGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
appAttachPackageGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
index e267c34344b4..d94e83dbc4f6 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageInfoImportSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Gets information from a package given the path to the package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackageInfo_Import_Post.json
*/
-async function appAttachPackageInfoImport() {
+async function appAttachPackageInfoImport(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -45,7 +45,7 @@ async function appAttachPackageInfoImport() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
appAttachPackageInfoImport();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
index 0c53841e9c19..f5e1dd2af8fc 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListByResourceGroupSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List App Attach packages in resource group.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListByResourceGroup.json
*/
-async function appAttachPackageListByResourceGroup() {
+async function appAttachPackageListByResourceGroup(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -41,7 +41,7 @@ async function appAttachPackageListByResourceGroup() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
appAttachPackageListByResourceGroup();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
index 5050cb86f88d..48c0b564186a 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageListBySubscriptionSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List App Attach packages in subscription.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListBySubscription.json
*/
-async function appAttachPackageListBySubscription() {
+async function appAttachPackageListBySubscription(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -38,7 +38,7 @@ async function appAttachPackageListBySubscription() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
appAttachPackageListBySubscription();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
index c54928989296..b889aa79f916 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/appAttachPackageUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Update an App Attach Package
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Update.json
*/
-async function appAttachPackageUpdate() {
+async function appAttachPackageUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function appAttachPackageUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
appAttachPackageUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
index faab278f0e42..33dbc1276422 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update an applicationGroup.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Create.json
*/
-async function applicationGroupCreate() {
+async function applicationGroupCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -48,7 +48,7 @@ async function applicationGroupCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationGroupCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
index a09f7d32fab2..79632aeb6935 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove an applicationGroup.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Delete.json
*/
-async function applicationGroupDelete() {
+async function applicationGroupDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function applicationGroupDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationGroupDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
index fd06604e6a10..1f590ca9151e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get an application group.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json
*/
-async function applicationGroupGet() {
+async function applicationGroupGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function applicationGroupGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationGroupGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
index 46350e8c5a64..c60411798ac0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListByResourceGroupSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List applicationGroups.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListByResourceGroup.json
*/
-async function applicationGroupListByResourceGroup() {
+async function applicationGroupListByResourceGroup(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function applicationGroupListByResourceGroup() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
applicationGroupListByResourceGroup();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
index a4c7745a872a..d10dbd200f57 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsListBySubscriptionSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List applicationGroups in subscription.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListBySubscription.json
*/
-async function applicationGroupList() {
+async function applicationGroupList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function applicationGroupList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
applicationGroupList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
index b51799e7b361..221063937e99 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationGroupsUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update an applicationGroup.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Update.json
*/
-async function applicationGroupsUpdate() {
+async function applicationGroupsUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -46,7 +46,7 @@ async function applicationGroupsUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationGroupsUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
index 348258bf17b5..251d2288eb40 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update an application.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Create.json
*/
-async function applicationCreate() {
+async function applicationCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -50,7 +50,7 @@ async function applicationCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
index cbe552756c03..9deaf57d46d7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove an application.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Delete.json
*/
-async function applicationDelete() {
+async function applicationDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function applicationDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
index d79561ddcd97..f5dddfe41326 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get an application.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json
*/
-async function applicationGet() {
+async function applicationGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function applicationGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
index 25716071cf02..88ca2223911d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List applications.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_List.json
*/
-async function applicationsList() {
+async function applicationsList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function applicationsList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
applicationsList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
index 061c77042ed8..219abde324a8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/applicationsUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update an application.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Update.json
*/
-async function applicationUpdate() {
+async function applicationUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -55,7 +55,7 @@ async function applicationUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
applicationUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
index 694817a18c24..2fda00994c09 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a desktop.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json
*/
-async function desktopGet() {
+async function desktopGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function desktopGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
desktopGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
index 44f2ba986192..ae80b130e584 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List desktops.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_List.json
*/
-async function desktopList() {
+async function desktopList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function desktopList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
desktopList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
index e0dc02bccebe..5196784e60c1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/desktopsUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a desktop.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Update.json
*/
-async function desktopUpdate() {
+async function desktopUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -46,7 +46,7 @@ async function desktopUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
desktopUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
index 8b370ab2dadf..325c48db86ca 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a host pool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Create.json
*/
-async function hostPoolCreate() {
+async function hostPoolCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -69,7 +69,7 @@ async function hostPoolCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
index 2059c2fd3c90..eab11b3cb67f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsDeleteSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Remove a host pool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Delete.json
*/
-async function hostPoolDelete() {
+async function hostPoolDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -40,7 +40,7 @@ async function hostPoolDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
index 13df980cbb8d..07d7e2b9a458 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a host pool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json
*/
-async function hostPoolGet() {
+async function hostPoolGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -31,7 +31,7 @@ async function hostPoolGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
index 0ac20c885236..00b8a2a80c25 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListByResourceGroupSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List hostPools.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_ListByResourceGroup.json
*/
-async function hostPoolListByResourceGroup() {
+async function hostPoolListByResourceGroup(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -47,7 +47,7 @@ async function hostPoolListByResourceGroup() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
hostPoolListByResourceGroup();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
index c3144c712597..116464c7e92d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListRegistrationTokensSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Operation to list the RegistrationTokens associated with the HostPool
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPools_ListRegistrationToken_Post.json
*/
-async function hostPoolsListRegistrationTokenPost() {
+async function hostPoolsListRegistrationTokenPost(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function hostPoolsListRegistrationTokenPost() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolsListRegistrationTokenPost();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
index 4bf990f4a0bd..d1aa361e3f82 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List hostPools in subscription.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_List.json
*/
-async function hostPoolList() {
+async function hostPoolList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -42,7 +42,7 @@ async function hostPoolList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
hostPoolList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
index 842cc99c70e7..f401d695cfa0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsRetrieveRegistrationTokenSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Registration token of the host pool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPools_RetrieveRegistrationToken_Post.json
*/
-async function hostPoolsRetrieveRegistrationTokenPost() {
+async function hostPoolsRetrieveRegistrationTokenPost(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function hostPoolsRetrieveRegistrationTokenPost() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolsRetrieveRegistrationTokenPost();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
index ee7dcb695176..9fb16525e0c1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/hostPoolsUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a host pool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Update.json
*/
-async function hostPoolUpdate() {
+async function hostPoolUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -68,7 +68,7 @@ async function hostPoolUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
hostPoolUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
index df3a47fe67f2..a1fc0574ff1e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixImagesExpandSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Expands and Lists MSIX packages in an Image, given the Image Path.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixImage_Expand_Post.json
*/
-async function msixImageExpand() {
+async function msixImageExpand(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -42,7 +42,7 @@ async function msixImageExpand() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
msixImageExpand();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
index 73b40de3fe92..80769cc1c12f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a MSIX package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Create.json
*/
-async function msixPackageCreate() {
+async function msixPackageCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -69,7 +69,7 @@ async function msixPackageCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
msixPackageCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
index 39616e7d06bf..cb7e5f8eca1f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove an MSIX Package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Delete.json
*/
-async function msixPackageDelete() {
+async function msixPackageDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function msixPackageDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
msixPackageDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
index e3e5eb9ac258..171ac7da8655 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a msixpackage.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json
*/
-async function msixPackageGet() {
+async function msixPackageGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function msixPackageGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
msixPackageGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
index f4cbc1176e8a..cca5413bd242 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List MSIX packages in hostpool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_List.json
*/
-async function msixPackageList() {
+async function msixPackageList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function msixPackageList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
msixPackageList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
index c55b89ceec6d..b51476b60afe 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/msixPackagesUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update an MSIX Package.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Update.json
*/
-async function msixPackageUpdate() {
+async function msixPackageUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -47,7 +47,7 @@ async function msixPackageUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
msixPackageUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
index e12114db11e7..71c02362be10 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/operationsListSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List all of the available operations the Desktop Virtualization resource provider supports.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/OperationDescription_List.json
*/
-async function operationDescriptionList() {
+async function operationDescriptionList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"00000000-0000-0000-0000-000000000000";
@@ -31,7 +31,7 @@ async function operationDescriptionList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
operationDescriptionList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
index c1b5d7e5bf4c..f75a263cb869 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByHostPoolSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByHostPool.json
*/
-async function privateEndpointConnectionDeleteByHostPool() {
+async function privateEndpointConnectionDeleteByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionDeleteByHostPool() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionDeleteByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
index 93a968c911e1..85f7d79b6329 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsDeleteByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByWorkspace.json
*/
-async function privateEndpointConnectionDeleteByWorkspace() {
+async function privateEndpointConnectionDeleteByWorkspace(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionDeleteByWorkspace() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionDeleteByWorkspace();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
index 32b3c4e21855..0a27ba2ed194 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByHostPoolSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a private endpoint connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json
*/
-async function privateEndpointConnectionGetByHostPool() {
+async function privateEndpointConnectionGetByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionGetByHostPool() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionGetByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
index d9b6a74d23e0..21424b901089 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsGetByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a private endpoint connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json
*/
-async function privateEndpointConnectionGetByWorkspace() {
+async function privateEndpointConnectionGetByWorkspace(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionGetByWorkspace() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionGetByWorkspace();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
index 0a996187b0ca..6e2afe33df65 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByHostPoolSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List private endpoint connections associated with hostpool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByHostPool.json
*/
-async function privateEndpointConnectionListByHostPool() {
+async function privateEndpointConnectionListByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionListByHostPool() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionListByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
index 3b33e20e4ec3..8b21444bb3be 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsListByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List private endpoint connections.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByWorkspace.json
*/
-async function privateEndpointConnectionListByWorkspace() {
+async function privateEndpointConnectionListByWorkspace(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateEndpointConnectionListByWorkspace() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionListByWorkspace();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
index bbb360025135..7da76d52ab54 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByHostPoolSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Approve or reject a private endpoint connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByHostPool.json
*/
-async function privateEndpointConnectionUpdateByHostPool() {
+async function privateEndpointConnectionUpdateByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -48,7 +48,7 @@ async function privateEndpointConnectionUpdateByHostPool() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionUpdateByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
index 7c4fd8bcc7f0..5d37226e2ecc 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateEndpointConnectionsUpdateByWorkspaceSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Approve or reject a private endpoint connection.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByWorkspace.json
*/
-async function privateEndpointConnectionUpdateByWorkspace() {
+async function privateEndpointConnectionUpdateByWorkspace(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -48,7 +48,7 @@ async function privateEndpointConnectionUpdateByWorkspace() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
privateEndpointConnectionUpdateByWorkspace();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
index 4d88a933da49..7b669bdd73fe 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByHostPoolSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List the private link resources available for this hostpool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByHostPool.json
*/
-async function privateLinkResourcesListByHostPool() {
+async function privateLinkResourcesListByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateLinkResourcesListByHostPool() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
privateLinkResourcesListByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
index 27e85d3a28f9..1bfdff855cb4 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/privateLinkResourcesListByWorkspaceSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List the private link resources available for this workspace.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByWorkspace.json
*/
-async function privateLinkResourcesListByWorkspace() {
+async function privateLinkResourcesListByWorkspace(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function privateLinkResourcesListByWorkspace() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
privateLinkResourcesListByWorkspace();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
index 48049e4f490f..0900706bf2c0 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesCreateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a ScalingPlanPersonalSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Create.json
*/
-async function scalingPlanPersonalSchedulesCreate() {
+async function scalingPlanPersonalSchedulesCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -68,7 +68,7 @@ async function scalingPlanPersonalSchedulesCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPersonalSchedulesCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
index 3005148537ec..5d436a5f4bab 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a ScalingPlanPersonalSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Delete.json
*/
-async function scalingPlanPersonalSchedulesDelete() {
+async function scalingPlanPersonalSchedulesDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function scalingPlanPersonalSchedulesDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPersonalSchedulesDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
index c6fb7d3d3eeb..64ab21745a05 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a ScalingPlanPersonalSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json
*/
-async function scalingPlanPersonalSchedulesGet() {
+async function scalingPlanPersonalSchedulesGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function scalingPlanPersonalSchedulesGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPersonalSchedulesGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
index aa89c88e7151..1d78da7d013b 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List ScalingPlanPersonalSchedules.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_List.json
*/
-async function scalingPlanPersonalSchedulesList() {
+async function scalingPlanPersonalSchedulesList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function scalingPlanPersonalSchedulesList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
scalingPlanPersonalSchedulesList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
index 76e96100349d..009825786efe 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPersonalSchedulesUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a ScalingPlanPersonalSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Update.json
*/
-async function scalingPlanPersonalSchedulesUpdate() {
+async function scalingPlanPersonalSchedulesUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -62,7 +62,7 @@ async function scalingPlanPersonalSchedulesUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPersonalSchedulesUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
index ef4c94fdc63c..37f61490f9d8 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesCreateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a ScalingPlanPooledSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Create.json
*/
-async function scalingPlanPooledSchedulesCreate() {
+async function scalingPlanPooledSchedulesCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -58,7 +58,7 @@ async function scalingPlanPooledSchedulesCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPooledSchedulesCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
index 99e4c1595f93..26053faaff25 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a ScalingPlanPooledSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Delete.json
*/
-async function scalingPlanPooledSchedulesDelete() {
+async function scalingPlanPooledSchedulesDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function scalingPlanPooledSchedulesDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPooledSchedulesDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
index c133d396d0b6..7dd21d4d8059 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a ScalingPlanPooledSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json
*/
-async function scalingPlanPooledSchedulesGet() {
+async function scalingPlanPooledSchedulesGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function scalingPlanPooledSchedulesGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPooledSchedulesGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
index 1c2979804d13..b8e26a80ebec 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List ScalingPlanPooledSchedules.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_List.json
*/
-async function scalingPlanPooledSchedulesList() {
+async function scalingPlanPooledSchedulesList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function scalingPlanPooledSchedulesList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
scalingPlanPooledSchedulesList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
index 00e6c1f13267..04132beb2da9 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlanPooledSchedulesUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a ScalingPlanPooledSchedule.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Update.json
*/
-async function scalingPlanPooledSchedulesUpdate() {
+async function scalingPlanPooledSchedulesUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -53,7 +53,7 @@ async function scalingPlanPooledSchedulesUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlanPooledSchedulesUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
index 6a6c18ae81d5..1df551cc4bd6 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansCreateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a scaling plan.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Create.json
*/
-async function scalingPlansCreate() {
+async function scalingPlansCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -75,7 +75,7 @@ async function scalingPlansCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlansCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
index 0c52567fa008..695e0bd753b7 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a scaling plan.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Delete.json
*/
-async function scalingPlansDelete() {
+async function scalingPlansDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function scalingPlansDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlansDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
index 7bddb275f160..a51f0fa42c85 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a scaling plan.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json
*/
-async function scalingPlansGet() {
+async function scalingPlansGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function scalingPlansGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlansGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
index a8b6093fed7c..1cd25846ee9d 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByHostPoolSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List scaling plan associated with hostpool.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByHostPool.json
*/
-async function scalingPlanListByHostPool() {
+async function scalingPlanListByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function scalingPlanListByHostPool() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
scalingPlanListByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
index 265b60ee0665..55f07cb39d58 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListByResourceGroupSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List scaling plans.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByResourceGroup.json
*/
-async function scalingPlansListByResourceGroup() {
+async function scalingPlansListByResourceGroup(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -47,7 +47,7 @@ async function scalingPlansListByResourceGroup() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
scalingPlansListByResourceGroup();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
index 93cae6e0bded..5551baa53865 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansListBySubscriptionSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List scaling plans in subscription.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListBySubscription.json
*/
-async function scalingPlansListBySubscription() {
+async function scalingPlansListBySubscription(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -42,7 +42,7 @@ async function scalingPlansListBySubscription() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
scalingPlansListBySubscription();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
index 243d3c382017..543717083b7f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/scalingPlansUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Update a scaling plan.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Update.json
*/
-async function scalingPlansUpdate() {
+async function scalingPlansUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function scalingPlansUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
scalingPlansUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
index ada382b27367..70ea72393580 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsDeleteSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Remove a SessionHost.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Delete.json
*/
-async function sessionHostDelete() {
+async function sessionHostDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -42,7 +42,7 @@ async function sessionHostDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
sessionHostDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
index 1bd8ae0b980c..fddc41eaed70 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a session host.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json
*/
-async function sessionHostGet() {
+async function sessionHostGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -36,7 +36,7 @@ async function sessionHostGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
sessionHostGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
index a08f1e4ae8ee..5e9cc649f663 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List sessionHosts.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_List.json
*/
-async function sessionHostList() {
+async function sessionHostList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -49,7 +49,7 @@ async function sessionHostList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
sessionHostList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
index 2f129c21dca4..2273cb624e1f 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/sessionHostsUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a session host.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Update.json
*/
-async function sessionHostUpdate() {
+async function sessionHostUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -48,7 +48,7 @@ async function sessionHostUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
sessionHostUpdate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
index 3be064d4cc72..ed6261bfba47 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/startMenuItemsListSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List start menu items in the given application group.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/StartMenuItem_List.json
*/
-async function startMenuItemList() {
+async function startMenuItemList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -37,7 +37,7 @@ async function startMenuItemList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
startMenuItemList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
index b450ee006a99..ce133ca88109 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDeleteSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Remove a userSession.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Delete.json
*/
-async function userSessionDelete() {
+async function userSessionDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -44,7 +44,7 @@ async function userSessionDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
userSessionDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
index f1c9a313d60c..fe51193608aa 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsDisconnectSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Disconnect a userSession.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Disconnect_Post.json
*/
-async function userSessionDisconnectPost() {
+async function userSessionDisconnectPost(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -38,7 +38,7 @@ async function userSessionDisconnectPost() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
userSessionDisconnectPost();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
index 45ebfe5c7b7f..c1e8f304a156 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a userSession.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json
*/
-async function userSessionGet() {
+async function userSessionGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -38,7 +38,7 @@ async function userSessionGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
userSessionGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
index dcc6df995d1d..bb8ef03ec327 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListByHostPoolSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List userSessions.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_ListByHostPool.json
*/
-async function userSessionListByHostPool() {
+async function userSessionListByHostPool(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -52,7 +52,7 @@ async function userSessionListByHostPool() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
userSessionListByHostPool();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
index 9942455744cb..5e1c95c78f3e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsListSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List userSessions.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_List.json
*/
-async function userSessionList() {
+async function userSessionList(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -51,7 +51,7 @@ async function userSessionList() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
userSessionList();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
index ca1d3ccffa71..69b49c6dab80 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/userSessionsSendMessageSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Send a message to a user.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_SendMessage_Post.json
*/
-async function userSessionSendMessagePost() {
+async function userSessionSendMessagePost(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -48,7 +48,7 @@ async function userSessionSendMessagePost() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
userSessionSendMessagePost();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
index 9955640d2964..d1ad4e7f7d1e 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Create or update a workspace.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Create.json
*/
-async function workspaceCreate() {
+async function workspaceCreate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -44,7 +44,7 @@ async function workspaceCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaceCreate();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
index 35f2ed28b831..1545d36c7231 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Remove a workspace.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Delete.json
*/
-async function workspaceDelete() {
+async function workspaceDelete(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -34,7 +34,7 @@ async function workspaceDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaceDelete();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
index b6747fca022f..1dd065892022 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Get a workspace.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json
*/
-async function workspaceGet() {
+async function workspaceGet(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -31,7 +31,7 @@ async function workspaceGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaceGet();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
index f50050e50c0a..544fe95a2440 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListByResourceGroupSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary List workspaces.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListByResourceGroup.json
*/
-async function workspaceListByResourceGroup() {
+async function workspaceListByResourceGroup(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -47,7 +47,7 @@ async function workspaceListByResourceGroup() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
workspaceListByResourceGroup();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
index efb8f4dfd2f8..17fa52287111 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesListBySubscriptionSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary List workspaces in subscription.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListBySubscription.json
*/
-async function workspaceListBySubscription() {
+async function workspaceListBySubscription(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -31,7 +31,7 @@ async function workspaceListBySubscription() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
workspaceListBySubscription();
}
diff --git a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
index c1cd6c52a90e..ae579b50cfb1 100644
--- a/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
+++ b/sdk/desktopvirtualization/arm-desktopvirtualization/samples-dev/workspacesUpdateSample.ts
@@ -22,7 +22,7 @@ import "dotenv/config";
* @summary Update a workspace.
* x-ms-original-file: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Update.json
*/
-async function workspaceUpdate() {
+async function workspaceUpdate(): Promise {
const subscriptionId =
process.env["DESKTOPVIRTUALIZATION_SUBSCRIPTION_ID"] ||
"daefabc0-95b4-48b3-b645-8a753a63c4fa";
@@ -45,7 +45,7 @@ async function workspaceUpdate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
workspaceUpdate();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
index 2b252af883c5..3d6d685f8e27 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksCreateOrUpdateSample.ts
@@ -21,7 +21,7 @@ import "dotenv/config";
* @summary Creates or updates an attached NetworkConnection.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_Create.json
*/
-async function attachedNetworksCreate() {
+async function attachedNetworksCreate(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -43,7 +43,7 @@ async function attachedNetworksCreate() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
attachedNetworksCreate();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
index 713047b30cb8..ef858c631589 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Un-attach a NetworkConnection.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_Delete.json
*/
-async function attachedNetworksDelete() {
+async function attachedNetworksDelete(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function attachedNetworksDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
attachedNetworksDelete();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
index 59b5d8133b3b..5fd06d54fcd2 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByDevCenterSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Gets an attached NetworkConnection.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_GetByDevCenter.json
*/
-async function attachedNetworksGetByDevCenter() {
+async function attachedNetworksGetByDevCenter(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function attachedNetworksGetByDevCenter() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
attachedNetworksGetByDevCenter();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
index 5f31df184a86..348b83adfc30 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksGetByProjectSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Gets an attached NetworkConnection.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_GetByProject.json
*/
-async function attachedNetworksGetByProject() {
+async function attachedNetworksGetByProject(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function attachedNetworksGetByProject() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
attachedNetworksGetByProject();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
index fe33b6fdcfbc..57521319b130 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByDevCenterSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Lists the attached NetworkConnections for a DevCenter.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_ListByDevCenter.json
*/
-async function attachedNetworksListByDevCenter() {
+async function attachedNetworksListByDevCenter(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -36,7 +36,7 @@ async function attachedNetworksListByDevCenter() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
attachedNetworksListByDevCenter();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
index df2d2a692075..4893a736120a 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/attachedNetworksListByProjectSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Lists the attached NetworkConnections for a Project.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/AttachedNetworks_ListByProject.json
*/
-async function attachedNetworksListByProject() {
+async function attachedNetworksListByProject(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -36,7 +36,7 @@ async function attachedNetworksListByProject() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
attachedNetworksListByProject();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
index 7a4082a3b5b2..e6133faf729d 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsConnectSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Connects a catalog to enable syncing.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_Connect.json
*/
-async function catalogsConnect() {
+async function catalogsConnect(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function catalogsConnect() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsConnect();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
index 82be0e9cc3f4..fe851ea0bc0b 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsCreateOrUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Creates or updates a catalog.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_CreateAdo.json
*/
-async function catalogsCreateOrUpdateAdo() {
+async function catalogsCreateOrUpdateAdo(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -52,7 +52,7 @@ async function catalogsCreateOrUpdateAdo() {
* @summary Creates or updates a catalog.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_CreateGitHub.json
*/
-async function catalogsCreateOrUpdateGitHub() {
+async function catalogsCreateOrUpdateGitHub(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -80,7 +80,7 @@ async function catalogsCreateOrUpdateGitHub() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsCreateOrUpdateAdo();
catalogsCreateOrUpdateGitHub();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
index 982cd3cae049..b665363a7dec 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsDeleteSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Deletes a catalog resource.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_Delete.json
*/
-async function catalogsDelete() {
+async function catalogsDelete(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function catalogsDelete() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsDelete();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
index 4bc0973bd7ba..d49e3400a990 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Gets a catalog
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_Get.json
*/
-async function catalogsGet() {
+async function catalogsGet(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function catalogsGet() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsGet();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
index 7b49091716f1..c63d1bce48e8 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsGetSyncErrorDetailsSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Gets catalog synchronization error details
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_GetSyncErrorDetails.json
*/
-async function catalogsGetSyncErrorDetails() {
+async function catalogsGetSyncErrorDetails(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function catalogsGetSyncErrorDetails() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsGetSyncErrorDetails();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
index 2d05bbe2c83b..ff00218a3c33 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsListByDevCenterSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Lists catalogs for a devcenter.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_List.json
*/
-async function catalogsListByDevCenter() {
+async function catalogsListByDevCenter(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -36,7 +36,7 @@ async function catalogsListByDevCenter() {
console.log(resArray);
}
-async function main() {
+async function main(): Promise {
catalogsListByDevCenter();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
index 30b76922639b..7f97c2a6f6e2 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsSyncSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Syncs templates for a template source.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_Sync.json
*/
-async function catalogsSync() {
+async function catalogsSync(): Promise {
const subscriptionId =
process.env["DEVCENTER_SUBSCRIPTION_ID"] ||
"0ac520ee-14c0-480f-b6c9-0a90c58ffff";
@@ -35,7 +35,7 @@ async function catalogsSync() {
console.log(result);
}
-async function main() {
+async function main(): Promise {
catalogsSync();
}
diff --git a/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts b/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
index 0fc94db1da17..c92b00d6a616 100644
--- a/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
+++ b/sdk/devcenter/arm-devcenter/samples-dev/catalogsUpdateSample.ts
@@ -18,7 +18,7 @@ import "dotenv/config";
* @summary Partially updates a catalog.
* x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2024-02-01/examples/Catalogs_Patch.json
*/
-async function catalogsUpdate() {
+async function catalogsUpdate(): Promise