From b999c32e465744ce0d5f3bbef30c5a6a3027a627 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:23 +0800
Subject: [PATCH 01/61] Migration: Update package.json, tsconfig.json, and
 api-extractor.json

---
 sdk/databox/arm-databox/api-extractor.json    |  6 +-
 sdk/databox/arm-databox/package.json          | 61 +++++++++++--------
 sdk/databox/arm-databox/tsconfig.json         | 40 +++---------
 sdk/databox/arm-databox/tsconfig.samples.json | 10 +++
 sdk/databox/arm-databox/tsconfig.src.json     |  3 +
 sdk/databox/arm-databox/tsconfig.test.json    |  6 ++
 6 files changed, 67 insertions(+), 59 deletions(-)
 create mode 100644 sdk/databox/arm-databox/tsconfig.samples.json
 create mode 100644 sdk/databox/arm-databox/tsconfig.src.json
 create mode 100644 sdk/databox/arm-databox/tsconfig.test.json

diff --git a/sdk/databox/arm-databox/api-extractor.json b/sdk/databox/arm-databox/api-extractor.json
index 258560af2273..6b2a1d081309 100644
--- a/sdk/databox/arm-databox/api-extractor.json
+++ b/sdk/databox/arm-databox/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-databox.d.ts"
+    "publicTrimmedFilePath": "dist/arm-databox.d.ts"
   },
   "messages": {
     "tsdocMessageReporting": {
@@ -28,4 +28,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/sdk/databox/arm-databox/package.json b/sdk/databox/arm-databox/package.json
index 255e8d8209af..190c96781ebe 100644
--- a/sdk/databox/arm-databox/package.json
+++ b/sdk/databox/arm-databox/package.json
@@ -28,18 +28,18 @@
   "module": "./dist-esm/src/index.js",
   "types": "./types/arm-databox.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",
@@ -87,8 +77,8 @@
     "test:browser": "echo skipped",
     "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+    "unit-test:node": "dev-tool run test:vitest",
     "update-snippets": "echo skipped"
   },
   "sideEffects": false,
@@ -109,5 +99,24 @@
     ],
     "disableDocsMs": true,
     "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-databox?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/databox/arm-databox/tsconfig.json b/sdk/databox/arm-databox/tsconfig.json
index 7f0a11d9ac11..19ceb382b521 100644
--- a/sdk/databox/arm-databox/tsconfig.json
+++ b/sdk/databox/arm-databox/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-databox": [
-        "./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/databox/arm-databox/tsconfig.samples.json b/sdk/databox/arm-databox/tsconfig.samples.json
new file mode 100644
index 000000000000..132281a0213f
--- /dev/null
+++ b/sdk/databox/arm-databox/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+  "extends": "../../../tsconfig.samples.base.json",
+  "compilerOptions": {
+    "paths": {
+      "@azure/arm-databox": [
+        "./dist/esm"
+      ]
+    }
+  }
+}
diff --git a/sdk/databox/arm-databox/tsconfig.src.json b/sdk/databox/arm-databox/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/databox/arm-databox/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+  "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/databox/arm-databox/tsconfig.test.json b/sdk/databox/arm-databox/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/databox/arm-databox/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+  "extends": [
+    "./tsconfig.src.json",
+    "../../../tsconfig.test.base.json"
+  ]
+}

From 4f86f8c9cbdcbee77fce2d15e1884745554acb69 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:24 +0800
Subject: [PATCH 02/61] Migration: Update test config

---
 .../arm-databox/tsconfig.browser.config.json    | 17 +++++++++++++++++
 .../arm-databox/vitest.browser.config.ts        | 17 +++++++++++++++++
 sdk/databox/arm-databox/vitest.config.ts        |  7 +++++++
 sdk/databox/arm-databox/vitest.esm.config.ts    | 12 ++++++++++++
 4 files changed, 53 insertions(+)
 create mode 100644 sdk/databox/arm-databox/tsconfig.browser.config.json
 create mode 100644 sdk/databox/arm-databox/vitest.browser.config.ts
 create mode 100644 sdk/databox/arm-databox/vitest.config.ts
 create mode 100644 sdk/databox/arm-databox/vitest.esm.config.ts

diff --git a/sdk/databox/arm-databox/tsconfig.browser.config.json b/sdk/databox/arm-databox/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/databox/arm-databox/tsconfig.browser.config.json
@@ -0,0 +1,17 @@
+{
+  "extends": "./.tshy/build.json",
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.mts",
+    "./test/**/*.spec.ts",
+    "./test/**/*.mts"
+  ],
+  "exclude": [
+    "./test/**/node/**/*.ts"
+  ],
+  "compilerOptions": {
+    "outDir": "./dist-test/browser",
+    "rootDir": ".",
+    "skipLibCheck": true
+  }
+}
diff --git a/sdk/databox/arm-databox/vitest.browser.config.ts b/sdk/databox/arm-databox/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/databox/arm-databox/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",
+      ],
+    },
+  }),
+);
diff --git a/sdk/databox/arm-databox/vitest.config.ts b/sdk/databox/arm-databox/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/databox/arm-databox/vitest.config.ts
@@ -0,0 +1,7 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default viteConfig;
diff --git a/sdk/databox/arm-databox/vitest.esm.config.ts b/sdk/databox/arm-databox/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/databox/arm-databox/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 7257acaffc28284d0bd9c6fd1ab404ffbc358331 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:24 +0800
Subject: [PATCH 03/61] Migration: Clean up files


From 1c00d8301ce26a52b33816c7eca029076660d437 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:39 +0800
Subject: [PATCH 04/61] Migration: Apply codemod: "fixSourceFile"

---
 .../samples-dev/jobsBookShipmentPickUpSample.ts    |  4 +---
 .../arm-databox/samples-dev/jobsCancelSample.ts    |  4 +---
 .../arm-databox/samples-dev/jobsCreateSample.ts    |  4 +---
 .../arm-databox/samples-dev/jobsDeleteSample.ts    |  4 +---
 .../arm-databox/samples-dev/jobsGetSample.ts       |  4 +---
 .../samples-dev/jobsListByResourceGroupSample.ts   |  4 +---
 .../samples-dev/jobsListCredentialsSample.ts       |  4 +---
 .../arm-databox/samples-dev/jobsListSample.ts      |  4 +---
 .../samples-dev/jobsMarkDevicesShippedSample.ts    |  4 +---
 .../arm-databox/samples-dev/jobsUpdateSample.ts    |  4 +---
 .../arm-databox/samples-dev/mitigateSample.ts      |  4 +---
 .../samples-dev/operationsListSample.ts            |  4 +---
 ...erviceListAvailableSkusByResourceGroupSample.ts |  4 +---
 ...viceRegionConfigurationByResourceGroupSample.ts |  4 +---
 .../serviceRegionConfigurationSample.ts            |  4 +---
 .../samples-dev/serviceValidateAddressSample.ts    |  4 +---
 .../serviceValidateInputsByResourceGroupSample.ts  |  4 +---
 .../samples-dev/serviceValidateInputsSample.ts     |  4 +---
 .../typescript/src/jobsBookShipmentPickUpSample.ts |  4 +---
 .../samples/v5/typescript/src/jobsCancelSample.ts  |  4 +---
 .../samples/v5/typescript/src/jobsCreateSample.ts  |  4 +---
 .../samples/v5/typescript/src/jobsDeleteSample.ts  |  4 +---
 .../samples/v5/typescript/src/jobsGetSample.ts     |  4 +---
 .../src/jobsListByResourceGroupSample.ts           |  4 +---
 .../v5/typescript/src/jobsListCredentialsSample.ts |  4 +---
 .../samples/v5/typescript/src/jobsListSample.ts    |  4 +---
 .../typescript/src/jobsMarkDevicesShippedSample.ts |  4 +---
 .../samples/v5/typescript/src/jobsUpdateSample.ts  |  4 +---
 .../samples/v5/typescript/src/mitigateSample.ts    |  4 +---
 .../v5/typescript/src/operationsListSample.ts      |  4 +---
 ...erviceListAvailableSkusByResourceGroupSample.ts |  4 +---
 ...viceRegionConfigurationByResourceGroupSample.ts |  4 +---
 .../src/serviceRegionConfigurationSample.ts        |  4 +---
 .../typescript/src/serviceValidateAddressSample.ts |  4 +---
 .../serviceValidateInputsByResourceGroupSample.ts  |  4 +---
 .../typescript/src/serviceValidateInputsSample.ts  |  4 +---
 .../arm-databox/src/dataBoxManagementClient.ts     | 10 +++++-----
 sdk/databox/arm-databox/src/index.ts               |  8 ++++----
 sdk/databox/arm-databox/src/models/parameters.ts   |  2 +-
 sdk/databox/arm-databox/src/operations/index.ts    |  6 +++---
 sdk/databox/arm-databox/src/operations/jobs.ts     | 14 +++++++-------
 .../arm-databox/src/operations/operations.ts       | 12 ++++++------
 sdk/databox/arm-databox/src/operations/service.ts  | 12 ++++++------
 .../arm-databox/src/operationsInterfaces/index.ts  |  6 +++---
 .../arm-databox/src/operationsInterfaces/jobs.ts   |  2 +-
 .../src/operationsInterfaces/operations.ts         |  2 +-
 .../src/operationsInterfaces/service.ts            |  2 +-
 .../test/databox_operations_test.spec.ts           |  8 +++-----
 48 files changed, 77 insertions(+), 151 deletions(-)

diff --git a/sdk/databox/arm-databox/samples-dev/jobsBookShipmentPickUpSample.ts b/sdk/databox/arm-databox/samples-dev/jobsBookShipmentPickUpSample.ts
index edf39dc1e69d..5ed89bb3daaf 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsBookShipmentPickUpSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsBookShipmentPickUpSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Book shipment pick up.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsCancelSample.ts b/sdk/databox/arm-databox/samples-dev/jobsCancelSample.ts
index 46bb409535b1..748327ec3b53 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsCancelSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsCancelSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to CancelJob.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsCreateSample.ts b/sdk/databox/arm-databox/samples-dev/jobsCreateSample.ts
index 5ec45bbf39f8..01649446957f 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsCreateSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsCreateSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { JobResource, DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsDeleteSample.ts b/sdk/databox/arm-databox/samples-dev/jobsDeleteSample.ts
index dd9ac5cea851..452cf6f5f093 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsDeleteSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes a job.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsGetSample.ts b/sdk/databox/arm-databox/samples-dev/jobsGetSample.ts
index 6cc0424d9c04..832f538c9a95 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsGetSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsGetSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets information about the specified job.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsListByResourceGroupSample.ts b/sdk/databox/arm-databox/samples-dev/jobsListByResourceGroupSample.ts
index 0687f95a9cc8..a5e702fb428a 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsListByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the jobs available under the given resource group.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsListCredentialsSample.ts b/sdk/databox/arm-databox/samples-dev/jobsListCredentialsSample.ts
index eb388edef1e2..b59da6c70da4 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsListCredentialsSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsListCredentialsSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method gets the unencrypted secrets related to the job.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsListSample.ts b/sdk/databox/arm-databox/samples-dev/jobsListSample.ts
index e3f32887b357..c88a7c9b4fb6 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsListSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the jobs available under the subscription.
diff --git a/sdk/databox/arm-databox/samples-dev/jobsMarkDevicesShippedSample.ts b/sdk/databox/arm-databox/samples-dev/jobsMarkDevicesShippedSample.ts
index 139abe6b1e43..a0586a83c84d 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsMarkDevicesShippedSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsMarkDevicesShippedSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Request to mark devices for a given job as shipped
diff --git a/sdk/databox/arm-databox/samples-dev/jobsUpdateSample.ts b/sdk/databox/arm-databox/samples-dev/jobsUpdateSample.ts
index de3fe16896f9..bbfdd817cd3a 100644
--- a/sdk/databox/arm-databox/samples-dev/jobsUpdateSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/jobsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates the properties of an existing job.
diff --git a/sdk/databox/arm-databox/samples-dev/mitigateSample.ts b/sdk/databox/arm-databox/samples-dev/mitigateSample.ts
index 9fba31a1d1df..fcd43b3213a5 100644
--- a/sdk/databox/arm-databox/samples-dev/mitigateSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/mitigateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Request to mitigate for a given job
diff --git a/sdk/databox/arm-databox/samples-dev/operationsListSample.ts b/sdk/databox/arm-databox/samples-dev/operationsListSample.ts
index 8abb9403ccd4..dee464a24fd7 100644
--- a/sdk/databox/arm-databox/samples-dev/operationsListSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method gets all the operations.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceListAvailableSkusByResourceGroupSample.ts b/sdk/databox/arm-databox/samples-dev/serviceListAvailableSkusByResourceGroupSample.ts
index acb935280aba..ead05ede6c5c 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceListAvailableSkusByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceListAvailableSkusByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method provides the list of available skus for the given subscription, resource group and location.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationByResourceGroupSample.ts b/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationByResourceGroupSample.ts
index 6e7b628839e5..d4d3bb1f176c 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This API provides configuration details specific to given region/location at Resource group level.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationSample.ts b/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationSample.ts
index f157a8bca4fc..f7bb4c576320 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceRegionConfigurationSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This API provides configuration details specific to given region/location at Subscription level.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceValidateAddressSample.ts b/sdk/databox/arm-databox/samples-dev/serviceValidateAddressSample.ts
index 75d64bb7c2dc..47f61cf7c29b 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceValidateAddressSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceValidateAddressSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { ValidateAddress, DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and provide alternate addresses if any.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceValidateInputsByResourceGroupSample.ts b/sdk/databox/arm-databox/samples-dev/serviceValidateInputsByResourceGroupSample.ts
index 7cd114078ca8..68ca4f8e0c15 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceValidateInputsByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceValidateInputsByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method does all necessary pre-job creation validation under resource group.
diff --git a/sdk/databox/arm-databox/samples-dev/serviceValidateInputsSample.ts b/sdk/databox/arm-databox/samples-dev/serviceValidateInputsSample.ts
index 917fe8a38a5d..5aea89c04f4f 100644
--- a/sdk/databox/arm-databox/samples-dev/serviceValidateInputsSample.ts
+++ b/sdk/databox/arm-databox/samples-dev/serviceValidateInputsSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method does all necessary pre-job creation validation under subscription.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsBookShipmentPickUpSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsBookShipmentPickUpSample.ts
index edf39dc1e69d..5ed89bb3daaf 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsBookShipmentPickUpSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsBookShipmentPickUpSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Book shipment pick up.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCancelSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCancelSample.ts
index 46bb409535b1..748327ec3b53 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCancelSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCancelSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to CancelJob.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCreateSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCreateSample.ts
index 5ec45bbf39f8..01649446957f 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCreateSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsCreateSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { JobResource, DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsDeleteSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsDeleteSample.ts
index dd9ac5cea851..452cf6f5f093 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsDeleteSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes a job.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsGetSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsGetSample.ts
index 6cc0424d9c04..832f538c9a95 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsGetSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsGetSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets information about the specified job.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListByResourceGroupSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListByResourceGroupSample.ts
index 0687f95a9cc8..a5e702fb428a 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the jobs available under the given resource group.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListCredentialsSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListCredentialsSample.ts
index eb388edef1e2..b59da6c70da4 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListCredentialsSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListCredentialsSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method gets the unencrypted secrets related to the job.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListSample.ts
index e3f32887b357..c88a7c9b4fb6 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the jobs available under the subscription.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsMarkDevicesShippedSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsMarkDevicesShippedSample.ts
index 139abe6b1e43..a0586a83c84d 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsMarkDevicesShippedSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsMarkDevicesShippedSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Request to mark devices for a given job as shipped
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsUpdateSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsUpdateSample.ts
index de3fe16896f9..bbfdd817cd3a 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/jobsUpdateSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/jobsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates the properties of an existing job.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/mitigateSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/mitigateSample.ts
index 9fba31a1d1df..fcd43b3213a5 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/mitigateSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/mitigateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Request to mitigate for a given job
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/operationsListSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/operationsListSample.ts
index 8abb9403ccd4..dee464a24fd7 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/operationsListSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method gets all the operations.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceListAvailableSkusByResourceGroupSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceListAvailableSkusByResourceGroupSample.ts
index acb935280aba..ead05ede6c5c 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceListAvailableSkusByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceListAvailableSkusByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method provides the list of available skus for the given subscription, resource group and location.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationByResourceGroupSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationByResourceGroupSample.ts
index 6e7b628839e5..d4d3bb1f176c 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This API provides configuration details specific to given region/location at Resource group level.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationSample.ts
index f157a8bca4fc..f7bb4c576320 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceRegionConfigurationSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This API provides configuration details specific to given region/location at Subscription level.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateAddressSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateAddressSample.ts
index 75d64bb7c2dc..47f61cf7c29b 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateAddressSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateAddressSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { ValidateAddress, DataBoxManagementClient } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to [DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and provide alternate addresses if any.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsByResourceGroupSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsByResourceGroupSample.ts
index 7cd114078ca8..68ca4f8e0c15 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsByResourceGroupSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsByResourceGroupSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method does all necessary pre-job creation validation under resource group.
diff --git a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsSample.ts b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsSample.ts
index 917fe8a38a5d..5aea89c04f4f 100644
--- a/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsSample.ts
+++ b/sdk/databox/arm-databox/samples/v5/typescript/src/serviceValidateInputsSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxManagementClient
 } from "@azure/arm-databox";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to This method does all necessary pre-job creation validation under subscription.
diff --git a/sdk/databox/arm-databox/src/dataBoxManagementClient.ts b/sdk/databox/arm-databox/src/dataBoxManagementClient.ts
index dbff2cc246b4..aba32b9dc764 100644
--- a/sdk/databox/arm-databox/src/dataBoxManagementClient.ts
+++ b/sdk/databox/arm-databox/src/dataBoxManagementClient.ts
@@ -14,15 +14,15 @@ import {
   SendRequest
 } from "@azure/core-rest-pipeline";
 import * as coreAuth from "@azure/core-auth";
-import { OperationsImpl, JobsImpl, ServiceImpl } from "./operations";
-import { Operations, Jobs, Service } from "./operationsInterfaces";
-import * as Parameters from "./models/parameters";
-import * as Mappers from "./models/mappers";
+import { OperationsImpl, JobsImpl, ServiceImpl } from "./operations/index.js";
+import { Operations, Jobs, Service } from "./operationsInterfaces/index.js";
+import * as Parameters from "./models/parameters.js";
+import * as Mappers from "./models/mappers.js";
 import {
   DataBoxManagementClientOptionalParams,
   MitigateJobRequest,
   MitigateOptionalParams
-} from "./models";
+} from "./models/index.js";
 
 export class DataBoxManagementClient extends coreClient.ServiceClient {
   $host: string;
diff --git a/sdk/databox/arm-databox/src/index.ts b/sdk/databox/arm-databox/src/index.ts
index c295f4d5eacc..4b504971be8d 100644
--- a/sdk/databox/arm-databox/src/index.ts
+++ b/sdk/databox/arm-databox/src/index.ts
@@ -7,7 +7,7 @@
  */
 
 /// <reference lib="esnext.asynciterable" />
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DataBoxManagementClient } from "./dataBoxManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DataBoxManagementClient } from "./dataBoxManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/databox/arm-databox/src/models/parameters.ts b/sdk/databox/arm-databox/src/models/parameters.ts
index f940ff30b05c..e1ba0f855b9e 100644
--- a/sdk/databox/arm-databox/src/models/parameters.ts
+++ b/sdk/databox/arm-databox/src/models/parameters.ts
@@ -22,7 +22,7 @@ import {
   ValidateAddress as ValidateAddressMapper,
   ValidationRequest as ValidationRequestMapper,
   RegionConfigurationRequest as RegionConfigurationRequestMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
 
 export const accept: OperationParameter = {
   parameterPath: "accept",
diff --git a/sdk/databox/arm-databox/src/operations/index.ts b/sdk/databox/arm-databox/src/operations/index.ts
index 954ec72f6d68..11029f700d1c 100644
--- a/sdk/databox/arm-databox/src/operations/index.ts
+++ b/sdk/databox/arm-databox/src/operations/index.ts
@@ -6,6 +6,6 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./jobs";
-export * from "./service";
+export * from "./operations.js";
+export * from "./jobs.js";
+export * from "./service.js";
diff --git a/sdk/databox/arm-databox/src/operations/jobs.ts b/sdk/databox/arm-databox/src/operations/jobs.ts
index 58663dec0f5b..619a06f08b1e 100644
--- a/sdk/databox/arm-databox/src/operations/jobs.ts
+++ b/sdk/databox/arm-databox/src/operations/jobs.ts
@@ -7,18 +7,18 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Jobs } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Jobs } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxManagementClient } from "../dataBoxManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxManagementClient } from "../dataBoxManagementClient.js";
 import {
   SimplePollerLike,
   OperationState,
   createHttpPoller
 } from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
 import {
   JobResource,
   JobsListNextOptionalParams,
@@ -47,7 +47,7 @@ import {
   JobsCancelOptionalParams,
   JobsListNextResponse,
   JobsListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Jobs operations. */
diff --git a/sdk/databox/arm-databox/src/operations/operations.ts b/sdk/databox/arm-databox/src/operations/operations.ts
index 4ccc75f11328..4ec11e1616d1 100644
--- a/sdk/databox/arm-databox/src/operations/operations.ts
+++ b/sdk/databox/arm-databox/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 { DataBoxManagementClient } from "../dataBoxManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxManagementClient } from "../dataBoxManagementClient.js";
 import {
   Operation,
   OperationsListNextOptionalParams,
   OperationsListOptionalParams,
   OperationsListResponse,
   OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Operations operations. */
diff --git a/sdk/databox/arm-databox/src/operations/service.ts b/sdk/databox/arm-databox/src/operations/service.ts
index 904afb6a2a4e..96ac41cef23d 100644
--- a/sdk/databox/arm-databox/src/operations/service.ts
+++ b/sdk/databox/arm-databox/src/operations/service.ts
@@ -7,12 +7,12 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Service } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Service } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxManagementClient } from "../dataBoxManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxManagementClient } from "../dataBoxManagementClient.js";
 import {
   SkuInformation,
   AvailableSkuRequest,
@@ -33,7 +33,7 @@ import {
   ServiceRegionConfigurationByResourceGroupOptionalParams,
   ServiceRegionConfigurationByResourceGroupResponse,
   ServiceListAvailableSkusByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Service operations. */
diff --git a/sdk/databox/arm-databox/src/operationsInterfaces/index.ts b/sdk/databox/arm-databox/src/operationsInterfaces/index.ts
index 954ec72f6d68..11029f700d1c 100644
--- a/sdk/databox/arm-databox/src/operationsInterfaces/index.ts
+++ b/sdk/databox/arm-databox/src/operationsInterfaces/index.ts
@@ -6,6 +6,6 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./jobs";
-export * from "./service";
+export * from "./operations.js";
+export * from "./jobs.js";
+export * from "./service.js";
diff --git a/sdk/databox/arm-databox/src/operationsInterfaces/jobs.ts b/sdk/databox/arm-databox/src/operationsInterfaces/jobs.ts
index 4d9f851711f1..3974e7fbd8ce 100644
--- a/sdk/databox/arm-databox/src/operationsInterfaces/jobs.ts
+++ b/sdk/databox/arm-databox/src/operationsInterfaces/jobs.ts
@@ -29,7 +29,7 @@ import {
   JobsBookShipmentPickUpResponse,
   CancellationReason,
   JobsCancelOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Jobs. */
diff --git a/sdk/databox/arm-databox/src/operationsInterfaces/operations.ts b/sdk/databox/arm-databox/src/operationsInterfaces/operations.ts
index e6bd69e113f7..b4f3fdf52057 100644
--- a/sdk/databox/arm-databox/src/operationsInterfaces/operations.ts
+++ b/sdk/databox/arm-databox/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";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Operations. */
diff --git a/sdk/databox/arm-databox/src/operationsInterfaces/service.ts b/sdk/databox/arm-databox/src/operationsInterfaces/service.ts
index 69b30a23e1d2..4ebe5ece8245 100644
--- a/sdk/databox/arm-databox/src/operationsInterfaces/service.ts
+++ b/sdk/databox/arm-databox/src/operationsInterfaces/service.ts
@@ -24,7 +24,7 @@ import {
   ServiceRegionConfigurationResponse,
   ServiceRegionConfigurationByResourceGroupOptionalParams,
   ServiceRegionConfigurationByResourceGroupResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Service. */
diff --git a/sdk/databox/arm-databox/test/databox_operations_test.spec.ts b/sdk/databox/arm-databox/test/databox_operations_test.spec.ts
index c4432497e0e9..cf5a44517b10 100644
--- a/sdk/databox/arm-databox/test/databox_operations_test.spec.ts
+++ b/sdk/databox/arm-databox/test/databox_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 { DataBoxManagementClient } from "../src/dataBoxManagementClient";
+import { DataBoxManagementClient } from "../src/dataBoxManagementClient.js";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",
@@ -45,8 +43,8 @@ describe("DataBox 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 4fafd7f4de4f66976768c9ad667bc8d1be549475 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:41 +0800
Subject: [PATCH 05/61] Migration: Apply codemod: "fixTestingImports"

---
 sdk/databox/arm-databox/test/databox_operations_test.spec.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/databox/arm-databox/test/databox_operations_test.spec.ts b/sdk/databox/arm-databox/test/databox_operations_test.spec.ts
index cf5a44517b10..0a7921a54df6 100644
--- a/sdk/databox/arm-databox/test/databox_operations_test.spec.ts
+++ b/sdk/databox/arm-databox/test/databox_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 { DataBoxManagementClient } from "../src/dataBoxManagementClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",

From 55ff0598db9eeaccbc1dc99233db9889a61b2e09 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:42 +0800
Subject: [PATCH 06/61] Migration: Apply codemod: "replaceAssertIsRejected"


From 675cb21132896e82a6c8fe361bc68b6af590a978 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:42 +0800
Subject: [PATCH 07/61] Migration: Apply codemod: "replaceSinonStub"


From 546b92903a1516171e150fb596b36831f4384589 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:43 +0800
Subject: [PATCH 08/61] Migration: Apply codemod: "addViHelper"


From e1babb52f0ef9e299eee20a3ac5e80af1a7364ab Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:44 +0800
Subject: [PATCH 09/61] Migration: Apply codemod: "replaceSupportTracing"


From 4dae84338617d703dc9b16dadb8df455be94fda1 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:44 +0800
Subject: [PATCH 10/61] Migration: Apply codemod: "replaceTestUtils"


From f53fff11e3bd80cf50e808f8a44d6ee18cd0d27f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:14:57 +0800
Subject: [PATCH 11/61] Migration: rushx format


From 30f4ed498cb53448f829fc03bd28487ae69f0396 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:20:00 +0800
Subject: [PATCH 12/61] update

---
 common/config/rush/pnpm-lock.yaml    | 36 ++++++++++++++++++----------
 sdk/databox/arm-databox/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 78970280806a..37859059f130 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -252,7 +252,7 @@ importers:
         version: file:projects/arm-databoundaries.tgz
       '@rush-temp/arm-databox':
         specifier: file:./projects/arm-databox.tgz
-        version: file:projects/arm-databox.tgz
+        version: file:projects/arm-databox.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databoxedge':
         specifier: file:./projects/arm-databoxedge.tgz
         version: file:projects/arm-databoxedge.tgz
@@ -2807,7 +2807,7 @@ packages:
     version: 0.0.0
 
   '@rush-temp/arm-databox@file:projects/arm-databox.tgz':
-    resolution: {integrity: sha512-wVKbtR3SHxgiUwabg+4FQ26p+aa5z8ul7bzeuPNdMJ7DjSd5qod4eSR4vtQryJjkI5p4RPS2vQItlwJkJRWvbA==, tarball: file:projects/arm-databox.tgz}
+    resolution: {integrity: sha512-zWIW0Be7/AWNdAV6FVMqzwvEDpWnVoHmTgdLpJplUttmQ7aDFMOUog4SvJpOM6KY4W7LDStegs/q/X11qBz1eA==, tarball: file:projects/arm-databox.tgz}
     version: 0.0.0
 
   '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid@file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz':
@@ -11758,25 +11758,37 @@ snapshots:
       - '@swc/wasm'
       - supports-color
 
-  '@rush-temp/arm-databox@file:projects/arm-databox.tgz':
+  '@rush-temp/arm-databox@file:projects/arm-databox.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68
-      chai: 4.5.0
+      '@vitest/browser': 2.1.8(@types/node@18.19.68)(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.0.2
-      ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
+      playwright: 1.49.1
       tslib: 2.8.1
       typescript: 5.7.2
+      vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
     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-databoxedge-profile-2020-09-01-hybrid@file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz':
     dependencies:
diff --git a/sdk/databox/arm-databox/package.json b/sdk/databox/arm-databox/package.json
index 190c96781ebe..66398d00a8d2 100644
--- a/sdk/databox/arm-databox/package.json
+++ b/sdk/databox/arm-databox/package.json
@@ -24,9 +24,9 @@
     "isomorphic"
   ],
   "license": "MIT",
-  "main": "./dist/index.js",
-  "module": "./dist-esm/src/index.js",
-  "types": "./types/arm-databox.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 7604e2d8818c72d752e4738cda155c3842d1d788 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:23:37 +0800
Subject: [PATCH 13/61] Migration: Update package.json, tsconfig.json, and
 api-extractor.json

---
 .../arm-databoxedge/api-extractor.json        |  6 +-
 sdk/databoxedge/arm-databoxedge/package.json  | 61 +++++++++++--------
 .../{sampleTest.ts => sampleTest.spec.ts}     |  0
 sdk/databoxedge/arm-databoxedge/tsconfig.json | 40 +++---------
 .../arm-databoxedge/tsconfig.samples.json     | 10 +++
 .../arm-databoxedge/tsconfig.src.json         |  3 +
 .../arm-databoxedge/tsconfig.test.json        |  6 ++
 7 files changed, 67 insertions(+), 59 deletions(-)
 rename sdk/databoxedge/arm-databoxedge/test/{sampleTest.ts => sampleTest.spec.ts} (100%)
 create mode 100644 sdk/databoxedge/arm-databoxedge/tsconfig.samples.json
 create mode 100644 sdk/databoxedge/arm-databoxedge/tsconfig.src.json
 create mode 100644 sdk/databoxedge/arm-databoxedge/tsconfig.test.json

diff --git a/sdk/databoxedge/arm-databoxedge/api-extractor.json b/sdk/databoxedge/arm-databoxedge/api-extractor.json
index 41b72a230c60..23723ca3de34 100644
--- a/sdk/databoxedge/arm-databoxedge/api-extractor.json
+++ b/sdk/databoxedge/arm-databoxedge/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-databoxedge.d.ts"
+    "publicTrimmedFilePath": "dist/arm-databoxedge.d.ts"
   },
   "messages": {
     "tsdocMessageReporting": {
@@ -28,4 +28,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/sdk/databoxedge/arm-databoxedge/package.json b/sdk/databoxedge/arm-databoxedge/package.json
index f36b46e638e9..ad5fb3a98da9 100644
--- a/sdk/databoxedge/arm-databoxedge/package.json
+++ b/sdk/databoxedge/arm-databoxedge/package.json
@@ -28,17 +28,17 @@
   "module": "./dist-esm/src/index.js",
   "types": "./types/arm-databoxedge.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/databoxedge/arm-databoxedge",
   "repository": {
@@ -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",
@@ -87,8 +77,8 @@
     "test:browser": "echo skipped",
     "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+    "unit-test:node": "dev-tool run test:vitest",
     "update-snippets": "echo skipped"
   },
   "sideEffects": false,
@@ -108,5 +98,24 @@
     ],
     "disableDocsMs": true,
     "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge?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/databoxedge/arm-databoxedge/test/sampleTest.ts b/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
similarity index 100%
rename from sdk/databoxedge/arm-databoxedge/test/sampleTest.ts
rename to sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
diff --git a/sdk/databoxedge/arm-databoxedge/tsconfig.json b/sdk/databoxedge/arm-databoxedge/tsconfig.json
index c30ba030b1d5..19ceb382b521 100644
--- a/sdk/databoxedge/arm-databoxedge/tsconfig.json
+++ b/sdk/databoxedge/arm-databoxedge/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-databoxedge": [
-        "./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/databoxedge/arm-databoxedge/tsconfig.samples.json b/sdk/databoxedge/arm-databoxedge/tsconfig.samples.json
new file mode 100644
index 000000000000..57f741f92222
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+  "extends": "../../../tsconfig.samples.base.json",
+  "compilerOptions": {
+    "paths": {
+      "@azure/arm-databoxedge": [
+        "./dist/esm"
+      ]
+    }
+  }
+}
diff --git a/sdk/databoxedge/arm-databoxedge/tsconfig.src.json b/sdk/databoxedge/arm-databoxedge/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+  "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/databoxedge/arm-databoxedge/tsconfig.test.json b/sdk/databoxedge/arm-databoxedge/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+  "extends": [
+    "./tsconfig.src.json",
+    "../../../tsconfig.test.base.json"
+  ]
+}

From 7f14655b922e3c1803f9327a492bd6e6816872b1 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:23:37 +0800
Subject: [PATCH 14/61] Migration: Update test config

---
 .../tsconfig.browser.config.json                | 17 +++++++++++++++++
 .../arm-databoxedge/vitest.browser.config.ts    | 17 +++++++++++++++++
 .../arm-databoxedge/vitest.config.ts            |  7 +++++++
 .../arm-databoxedge/vitest.esm.config.ts        | 12 ++++++++++++
 4 files changed, 53 insertions(+)
 create mode 100644 sdk/databoxedge/arm-databoxedge/tsconfig.browser.config.json
 create mode 100644 sdk/databoxedge/arm-databoxedge/vitest.browser.config.ts
 create mode 100644 sdk/databoxedge/arm-databoxedge/vitest.config.ts
 create mode 100644 sdk/databoxedge/arm-databoxedge/vitest.esm.config.ts

diff --git a/sdk/databoxedge/arm-databoxedge/tsconfig.browser.config.json b/sdk/databoxedge/arm-databoxedge/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/tsconfig.browser.config.json
@@ -0,0 +1,17 @@
+{
+  "extends": "./.tshy/build.json",
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.mts",
+    "./test/**/*.spec.ts",
+    "./test/**/*.mts"
+  ],
+  "exclude": [
+    "./test/**/node/**/*.ts"
+  ],
+  "compilerOptions": {
+    "outDir": "./dist-test/browser",
+    "rootDir": ".",
+    "skipLibCheck": true
+  }
+}
diff --git a/sdk/databoxedge/arm-databoxedge/vitest.browser.config.ts b/sdk/databoxedge/arm-databoxedge/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/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",
+      ],
+    },
+  }),
+);
diff --git a/sdk/databoxedge/arm-databoxedge/vitest.config.ts b/sdk/databoxedge/arm-databoxedge/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/vitest.config.ts
@@ -0,0 +1,7 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default viteConfig;
diff --git a/sdk/databoxedge/arm-databoxedge/vitest.esm.config.ts b/sdk/databoxedge/arm-databoxedge/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge/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 6d15b6ded7f1ba4b89e85d26ccc8fce58c6e9a2c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:23:38 +0800
Subject: [PATCH 15/61] Migration: Clean up files


From 934748209b2612b9beb5c09664c53f4766df2acc Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:23:59 +0800
Subject: [PATCH 16/61] Migration: Apply codemod: "fixSourceFile"

---
 .../src/dataBoxEdgeManagementClient.ts        |  6 +--
 sdk/databoxedge/arm-databoxedge/src/index.ts  |  8 ++--
 .../arm-databoxedge/src/models/parameters.ts  |  2 +-
 .../arm-databoxedge/src/operations/addons.ts  | 14 +++----
 .../arm-databoxedge/src/operations/alerts.ts  | 12 +++---
 .../src/operations/availableSkus.ts           | 12 +++---
 .../src/operations/bandwidthSchedules.ts      | 14 +++----
 .../src/operations/containers.ts              | 14 +++----
 .../arm-databoxedge/src/operations/devices.ts | 14 +++----
 .../src/operations/diagnosticSettings.ts      | 12 +++---
 .../arm-databoxedge/src/operations/index.ts   | 40 +++++++++----------
 .../arm-databoxedge/src/operations/jobs.ts    | 10 ++---
 .../src/operations/monitoringConfig.ts        | 14 +++----
 .../arm-databoxedge/src/operations/nodes.ts   | 12 +++---
 .../src/operations/operations.ts              | 12 +++---
 .../src/operations/operationsStatus.ts        | 10 ++---
 .../arm-databoxedge/src/operations/orders.ts  | 14 +++----
 .../arm-databoxedge/src/operations/roles.ts   | 14 +++----
 .../arm-databoxedge/src/operations/shares.ts  | 14 +++----
 .../operations/storageAccountCredentials.ts   | 14 +++----
 .../src/operations/storageAccounts.ts         | 14 +++----
 .../src/operations/supportPackages.ts         | 12 +++---
 .../src/operations/triggers.ts                | 14 +++----
 .../arm-databoxedge/src/operations/users.ts   | 14 +++----
 .../src/operationsInterfaces/addons.ts        |  2 +-
 .../src/operationsInterfaces/alerts.ts        |  2 +-
 .../src/operationsInterfaces/availableSkus.ts |  2 +-
 .../bandwidthSchedules.ts                     |  2 +-
 .../src/operationsInterfaces/containers.ts    |  2 +-
 .../src/operationsInterfaces/devices.ts       |  2 +-
 .../diagnosticSettings.ts                     |  2 +-
 .../src/operationsInterfaces/index.ts         | 40 +++++++++----------
 .../src/operationsInterfaces/jobs.ts          |  2 +-
 .../operationsInterfaces/monitoringConfig.ts  |  2 +-
 .../src/operationsInterfaces/nodes.ts         |  2 +-
 .../src/operationsInterfaces/operations.ts    |  2 +-
 .../operationsInterfaces/operationsStatus.ts  |  2 +-
 .../src/operationsInterfaces/orders.ts        |  2 +-
 .../src/operationsInterfaces/roles.ts         |  2 +-
 .../src/operationsInterfaces/shares.ts        |  2 +-
 .../storageAccountCredentials.ts              |  2 +-
 .../operationsInterfaces/storageAccounts.ts   |  2 +-
 .../operationsInterfaces/supportPackages.ts   |  2 +-
 .../src/operationsInterfaces/triggers.ts      |  2 +-
 .../src/operationsInterfaces/users.ts         |  2 +-
 .../arm-databoxedge/test/sampleTest.spec.ts   | 10 ++---
 46 files changed, 201 insertions(+), 205 deletions(-)

diff --git a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts
index 351cd5fd80f5..1e8da6195278 100644
--- a/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/dataBoxEdgeManagementClient.ts
@@ -35,7 +35,7 @@ import {
   TriggersImpl,
   SupportPackagesImpl,
   UsersImpl
-} from "./operations";
+} from "./operations/index.js";
 import {
   Operations,
   AvailableSkus,
@@ -57,8 +57,8 @@ import {
   Triggers,
   SupportPackages,
   Users
-} from "./operationsInterfaces";
-import { DataBoxEdgeManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { DataBoxEdgeManagementClientOptionalParams } from "./models/index.js";
 
 export class DataBoxEdgeManagementClient extends coreClient.ServiceClient {
   $host: string;
diff --git a/sdk/databoxedge/arm-databoxedge/src/index.ts b/sdk/databoxedge/arm-databoxedge/src/index.ts
index 7190233374e0..1d74d4de9910 100644
--- a/sdk/databoxedge/arm-databoxedge/src/index.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/index.ts
@@ -7,7 +7,7 @@
  */
 
 /// <reference lib="esnext.asynciterable" />
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DataBoxEdgeManagementClient } from "./dataBoxEdgeManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DataBoxEdgeManagementClient } from "./dataBoxEdgeManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts b/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts
index 582cea88c71f..48da439288a0 100644
--- a/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/models/parameters.ts
@@ -31,7 +31,7 @@ import {
   Trigger as TriggerMapper,
   TriggerSupportPackageRequest as TriggerSupportPackageRequestMapper,
   User as UserMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
 
 export const accept: OperationParameter = {
   parameterPath: "accept",
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts b/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts
index acce95bf2df3..a4273ccd8657 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/addons.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Addons } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Addons } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   AddonUnion,
   AddonsListByRoleNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   AddonsCreateOrUpdateResponse,
   AddonsDeleteOptionalParams,
   AddonsListByRoleNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Addons operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts b/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts
index 3220412a10cc..b2106a1d79d7 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/alerts.ts
@@ -7,12 +7,12 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Alerts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Alerts } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Alert,
   AlertsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -21,7 +21,7 @@ import {
   AlertsGetOptionalParams,
   AlertsGetResponse,
   AlertsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Alerts operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts b/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts
index f6b6bb37e508..1f1f066dd384 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/availableSkus.ts
@@ -7,19 +7,19 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AvailableSkus } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AvailableSkus } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   DataBoxEdgeSku,
   AvailableSkusListNextOptionalParams,
   AvailableSkusListOptionalParams,
   AvailableSkusListResponse,
   AvailableSkusListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing AvailableSkus operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts b/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts
index 9ade5066d544..70ddb0d5c21c 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/bandwidthSchedules.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BandwidthSchedules } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BandwidthSchedules } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   BandwidthSchedule,
   BandwidthSchedulesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   BandwidthSchedulesCreateOrUpdateResponse,
   BandwidthSchedulesDeleteOptionalParams,
   BandwidthSchedulesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing BandwidthSchedules operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts b/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts
index e5ad715ca2a4..56749b14a111 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/containers.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Containers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Containers } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Container,
   ContainersListByStorageAccountNextOptionalParams,
@@ -27,7 +27,7 @@ import {
   ContainersDeleteOptionalParams,
   ContainersRefreshOptionalParams,
   ContainersListByStorageAccountNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Containers operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts b/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts
index 11f943602d1d..af39b60b98b9 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/devices.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Devices } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Devices } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   DataBoxEdgeDevice,
   DevicesListBySubscriptionNextOptionalParams,
@@ -52,7 +52,7 @@ import {
   DevicesUploadCertificateResponse,
   DevicesListBySubscriptionNextResponse,
   DevicesListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Devices operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts b/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts
index b38d2254c88c..3b93f1bde571 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/diagnosticSettings.ts
@@ -6,13 +6,13 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { DiagnosticSettings } from "../operationsInterfaces";
+import { DiagnosticSettings } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   DiagnosticSettingsGetDiagnosticProactiveLogCollectionSettingsOptionalParams,
   DiagnosticSettingsGetDiagnosticProactiveLogCollectionSettingsResponse,
@@ -24,7 +24,7 @@ import {
   DiagnosticRemoteSupportSettings,
   DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsOptionalParams,
   DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing DiagnosticSettings operations. */
 export class DiagnosticSettingsImpl implements DiagnosticSettings {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/index.ts b/sdk/databoxedge/arm-databoxedge/src/operations/index.ts
index 1d8cf8228116..1a078406da97 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/index.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/index.ts
@@ -6,23 +6,23 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./availableSkus";
-export * from "./devices";
-export * from "./alerts";
-export * from "./bandwidthSchedules";
-export * from "./diagnosticSettings";
-export * from "./jobs";
-export * from "./nodes";
-export * from "./operationsStatus";
-export * from "./orders";
-export * from "./roles";
-export * from "./addons";
-export * from "./monitoringConfig";
-export * from "./shares";
-export * from "./storageAccountCredentials";
-export * from "./storageAccounts";
-export * from "./containers";
-export * from "./triggers";
-export * from "./supportPackages";
-export * from "./users";
+export * from "./operations.js";
+export * from "./availableSkus.js";
+export * from "./devices.js";
+export * from "./alerts.js";
+export * from "./bandwidthSchedules.js";
+export * from "./diagnosticSettings.js";
+export * from "./jobs.js";
+export * from "./nodes.js";
+export * from "./operationsStatus.js";
+export * from "./orders.js";
+export * from "./roles.js";
+export * from "./addons.js";
+export * from "./monitoringConfig.js";
+export * from "./shares.js";
+export * from "./storageAccountCredentials.js";
+export * from "./storageAccounts.js";
+export * from "./containers.js";
+export * from "./triggers.js";
+export * from "./supportPackages.js";
+export * from "./users.js";
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts b/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts
index 391994d335ca..ec7bc243a9c3 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/jobs.ts
@@ -6,12 +6,12 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { Jobs } from "../operationsInterfaces";
+import { Jobs } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
-import { JobsGetOptionalParams, JobsGetResponse } from "../models";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
+import { JobsGetOptionalParams, JobsGetResponse } from "../models/index.js";
 
 /** Class containing Jobs operations. */
 export class JobsImpl implements Jobs {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts b/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts
index 5f73fcdfda20..1a826767bf39 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/monitoringConfig.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { MonitoringConfig } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { MonitoringConfig } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   MonitoringMetricConfiguration,
   MonitoringConfigListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   MonitoringConfigCreateOrUpdateResponse,
   MonitoringConfigDeleteOptionalParams,
   MonitoringConfigListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing MonitoringConfig operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts b/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts
index 4f5c422d6cec..574148e7dfef 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/nodes.ts
@@ -7,19 +7,19 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Nodes } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Nodes } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Node,
   NodesListByDataBoxEdgeDeviceNextOptionalParams,
   NodesListByDataBoxEdgeDeviceOptionalParams,
   NodesListByDataBoxEdgeDeviceResponse,
   NodesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Nodes operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts b/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts
index 8421a409318e..11d57a1492dc 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/operations.ts
+++ b/sdk/databoxedge/arm-databoxedge/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 { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Operation,
   OperationsListNextOptionalParams,
   OperationsListOptionalParams,
   OperationsListResponse,
   OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Operations operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts b/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts
index 6dcfbc331216..447c1e09b081 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/operationsStatus.ts
@@ -6,15 +6,15 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { OperationsStatus } from "../operationsInterfaces";
+import { OperationsStatus } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   OperationsStatusGetOptionalParams,
   OperationsStatusGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing OperationsStatus operations. */
 export class OperationsStatusImpl implements OperationsStatus {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts b/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts
index 87af0ff6440e..5352fad38028 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/orders.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Orders } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Orders } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Order,
   OrdersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -28,7 +28,7 @@ import {
   OrdersListDCAccessCodeOptionalParams,
   OrdersListDCAccessCodeResponse,
   OrdersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Orders operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts b/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts
index bd180e177029..3069a10fc28f 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/roles.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Roles } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Roles } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   RoleUnion,
   RolesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   RolesCreateOrUpdateResponse,
   RolesDeleteOptionalParams,
   RolesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Roles operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts b/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts
index a19c5a2b1cda..d3b857b93617 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/shares.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Shares } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Shares } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Share,
   SharesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -27,7 +27,7 @@ import {
   SharesDeleteOptionalParams,
   SharesRefreshOptionalParams,
   SharesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Shares operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts
index 560f3777d10e..e33311e7e65e 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccountCredentials.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { StorageAccountCredentials } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { StorageAccountCredentials } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   StorageAccountCredential,
   StorageAccountCredentialsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   StorageAccountCredentialsCreateOrUpdateResponse,
   StorageAccountCredentialsDeleteOptionalParams,
   StorageAccountCredentialsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing StorageAccountCredentials operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts
index d188833e47b7..fab416571923 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/storageAccounts.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { StorageAccounts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { StorageAccounts } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   StorageAccount,
   StorageAccountsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   StorageAccountsCreateOrUpdateResponse,
   StorageAccountsDeleteOptionalParams,
   StorageAccountsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing StorageAccounts operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts b/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts
index ddaba62d8fe7..436c470aea67 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/supportPackages.ts
@@ -6,17 +6,17 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { SupportPackages } from "../operationsInterfaces";
+import { SupportPackages } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   TriggerSupportPackageRequest,
   SupportPackagesTriggerSupportPackageOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing SupportPackages operations. */
 export class SupportPackagesImpl implements SupportPackages {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts b/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts
index e5ba529eaee7..c8cab63883ec 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/triggers.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Triggers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Triggers } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   TriggerUnion,
   TriggersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   TriggersCreateOrUpdateResponse,
   TriggersDeleteOptionalParams,
   TriggersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Triggers operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operations/users.ts b/sdk/databoxedge/arm-databoxedge/src/operations/users.ts
index 2f1257bbaef2..4048614a00b2 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operations/users.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operations/users.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Users } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Users } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   User,
   UsersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   UsersCreateOrUpdateResponse,
   UsersDeleteOptionalParams,
   UsersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Users operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/addons.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/addons.ts
index fa13c29bc96d..4108e885a033 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/addons.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/addons.ts
@@ -16,7 +16,7 @@ import {
   AddonsCreateOrUpdateOptionalParams,
   AddonsCreateOrUpdateResponse,
   AddonsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Addons. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/alerts.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/alerts.ts
index d63bfbecb25c..0727fdbe17cd 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/alerts.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/alerts.ts
@@ -12,7 +12,7 @@ import {
   AlertsListByDataBoxEdgeDeviceOptionalParams,
   AlertsGetOptionalParams,
   AlertsGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Alerts. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/availableSkus.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/availableSkus.ts
index 9d7e9125758b..00affe3f1a8c 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/availableSkus.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/availableSkus.ts
@@ -7,7 +7,7 @@
  */
 
 import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { DataBoxEdgeSku, AvailableSkusListOptionalParams } from "../models";
+import { DataBoxEdgeSku, AvailableSkusListOptionalParams } from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a AvailableSkus. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/bandwidthSchedules.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/bandwidthSchedules.ts
index 3af876d0745a..9d5047b41f11 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/bandwidthSchedules.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/bandwidthSchedules.ts
@@ -16,7 +16,7 @@ import {
   BandwidthSchedulesCreateOrUpdateOptionalParams,
   BandwidthSchedulesCreateOrUpdateResponse,
   BandwidthSchedulesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a BandwidthSchedules. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/containers.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/containers.ts
index 44b012cd9bbe..1337630f4fb7 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/containers.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/containers.ts
@@ -17,7 +17,7 @@ import {
   ContainersCreateOrUpdateResponse,
   ContainersDeleteOptionalParams,
   ContainersRefreshOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Containers. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/devices.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/devices.ts
index 776da5a8a6b1..18f913e28729 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/devices.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/devices.ts
@@ -39,7 +39,7 @@ import {
   UploadCertificateRequest,
   DevicesUploadCertificateOptionalParams,
   DevicesUploadCertificateResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Devices. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/diagnosticSettings.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/diagnosticSettings.ts
index 6337680f9d5a..cd228a74d4fa 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/diagnosticSettings.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/diagnosticSettings.ts
@@ -18,7 +18,7 @@ import {
   DiagnosticRemoteSupportSettings,
   DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsOptionalParams,
   DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a DiagnosticSettings. */
 export interface DiagnosticSettings {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/index.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/index.ts
index 1d8cf8228116..1a078406da97 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/index.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/index.ts
@@ -6,23 +6,23 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./availableSkus";
-export * from "./devices";
-export * from "./alerts";
-export * from "./bandwidthSchedules";
-export * from "./diagnosticSettings";
-export * from "./jobs";
-export * from "./nodes";
-export * from "./operationsStatus";
-export * from "./orders";
-export * from "./roles";
-export * from "./addons";
-export * from "./monitoringConfig";
-export * from "./shares";
-export * from "./storageAccountCredentials";
-export * from "./storageAccounts";
-export * from "./containers";
-export * from "./triggers";
-export * from "./supportPackages";
-export * from "./users";
+export * from "./operations.js";
+export * from "./availableSkus.js";
+export * from "./devices.js";
+export * from "./alerts.js";
+export * from "./bandwidthSchedules.js";
+export * from "./diagnosticSettings.js";
+export * from "./jobs.js";
+export * from "./nodes.js";
+export * from "./operationsStatus.js";
+export * from "./orders.js";
+export * from "./roles.js";
+export * from "./addons.js";
+export * from "./monitoringConfig.js";
+export * from "./shares.js";
+export * from "./storageAccountCredentials.js";
+export * from "./storageAccounts.js";
+export * from "./containers.js";
+export * from "./triggers.js";
+export * from "./supportPackages.js";
+export * from "./users.js";
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/jobs.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/jobs.ts
index c10701318380..c9efe6162eac 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/jobs.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/jobs.ts
@@ -6,7 +6,7 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { JobsGetOptionalParams, JobsGetResponse } from "../models";
+import { JobsGetOptionalParams, JobsGetResponse } from "../models/index.js";
 
 /** Interface representing a Jobs. */
 export interface Jobs {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/monitoringConfig.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/monitoringConfig.ts
index f18c2b99fda6..98b6b8e821e9 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/monitoringConfig.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/monitoringConfig.ts
@@ -16,7 +16,7 @@ import {
   MonitoringConfigCreateOrUpdateOptionalParams,
   MonitoringConfigCreateOrUpdateResponse,
   MonitoringConfigDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a MonitoringConfig. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/nodes.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/nodes.ts
index cfa552ffeed8..03a86d797242 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/nodes.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/nodes.ts
@@ -7,7 +7,7 @@
  */
 
 import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Node, NodesListByDataBoxEdgeDeviceOptionalParams } from "../models";
+import { Node, NodesListByDataBoxEdgeDeviceOptionalParams } from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Nodes. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operations.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operations.ts
index f528bd71d702..a0d85631da4b 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operations.ts
+++ b/sdk/databoxedge/arm-databoxedge/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";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Operations. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operationsStatus.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operationsStatus.ts
index 001e719a50a3..efffe58f49ef 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operationsStatus.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/operationsStatus.ts
@@ -9,7 +9,7 @@
 import {
   OperationsStatusGetOptionalParams,
   OperationsStatusGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a OperationsStatus. */
 export interface OperationsStatus {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/orders.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/orders.ts
index eff6276ab14d..00b3dc3624d9 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/orders.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/orders.ts
@@ -18,7 +18,7 @@ import {
   OrdersDeleteOptionalParams,
   OrdersListDCAccessCodeOptionalParams,
   OrdersListDCAccessCodeResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Orders. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/roles.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/roles.ts
index 71a4698e81f9..03f1e04f7b7b 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/roles.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/roles.ts
@@ -16,7 +16,7 @@ import {
   RolesCreateOrUpdateOptionalParams,
   RolesCreateOrUpdateResponse,
   RolesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Roles. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/shares.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/shares.ts
index da6ff331ebc6..b8e29d2d6305 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/shares.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/shares.ts
@@ -17,7 +17,7 @@ import {
   SharesCreateOrUpdateResponse,
   SharesDeleteOptionalParams,
   SharesRefreshOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Shares. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccountCredentials.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccountCredentials.ts
index c5705ff6bc6a..81dfc6f0df23 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccountCredentials.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccountCredentials.ts
@@ -16,7 +16,7 @@ import {
   StorageAccountCredentialsCreateOrUpdateOptionalParams,
   StorageAccountCredentialsCreateOrUpdateResponse,
   StorageAccountCredentialsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a StorageAccountCredentials. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccounts.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccounts.ts
index 1ad5ec26c4ec..6e82e4a11171 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccounts.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/storageAccounts.ts
@@ -16,7 +16,7 @@ import {
   StorageAccountsCreateOrUpdateOptionalParams,
   StorageAccountsCreateOrUpdateResponse,
   StorageAccountsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a StorageAccounts. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/supportPackages.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/supportPackages.ts
index 5a7b1911d316..c3be65eceff6 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/supportPackages.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/supportPackages.ts
@@ -10,7 +10,7 @@ import { PollerLike, PollOperationState } from "@azure/core-lro";
 import {
   TriggerSupportPackageRequest,
   SupportPackagesTriggerSupportPackageOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a SupportPackages. */
 export interface SupportPackages {
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/triggers.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/triggers.ts
index b7c138aabc8a..581b1aa18602 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/triggers.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/triggers.ts
@@ -16,7 +16,7 @@ import {
   TriggersCreateOrUpdateOptionalParams,
   TriggersCreateOrUpdateResponse,
   TriggersDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Triggers. */
diff --git a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/users.ts b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/users.ts
index 648d6e49d850..1cd31eb87ab5 100644
--- a/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/users.ts
+++ b/sdk/databoxedge/arm-databoxedge/src/operationsInterfaces/users.ts
@@ -16,7 +16,7 @@ import {
   UsersCreateOrUpdateOptionalParams,
   UsersCreateOrUpdateResponse,
   UsersDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Users. */
diff --git a/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts b/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
index 8ff7deb0acbe..f0d6ea6885e4 100644
--- a/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
+++ b/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.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<string, string> = {
   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 4463f5eebfefe5e32dad10b57f56c82780493fd6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:00 +0800
Subject: [PATCH 17/61] Migration: Apply codemod: "fixTestingImports"

---
 sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts b/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
index f0d6ea6885e4..2a396bab6996 100644
--- a/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
+++ b/sdk/databoxedge/arm-databoxedge/test/sampleTest.spec.ts
@@ -9,6 +9,7 @@
 import {
   Recorder,
   RecorderStartOptions} from "@azure-tools/test-recorder";
+import { describe, it, beforeEach, afterEach } from "vitest";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",

From ed5ee76a3e264185c2a53ab5ced216aacbd9601c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:01 +0800
Subject: [PATCH 18/61] Migration: Apply codemod: "replaceAssertIsRejected"


From 7a2dbc77dbeb1a245b9810fed69df4769a11113b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:02 +0800
Subject: [PATCH 19/61] Migration: Apply codemod: "replaceSinonStub"


From 34ff16125a7fb560b8d713fc787b57d2cd5901eb Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:04 +0800
Subject: [PATCH 20/61] Migration: Apply codemod: "addViHelper"


From 5db4b619445610668a646eac97a92c19d5887c4e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:05 +0800
Subject: [PATCH 21/61] Migration: Apply codemod: "replaceSupportTracing"


From 6199a81d65182ec23cc57c4e33ae7f0561635886 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:05 +0800
Subject: [PATCH 22/61] Migration: Apply codemod: "replaceTestUtils"


From 05f66898bb61a0d88d115bffbbc0199fedf56019 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:24:17 +0800
Subject: [PATCH 23/61] Migration: rushx format


From e939de2aa07bd119b3a87450bc985dbb766ea89e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:28:16 +0800
Subject: [PATCH 24/61] update

---
 common/config/rush/pnpm-lock.yaml            | 36 +++++++++++++-------
 sdk/databoxedge/arm-databoxedge/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 37859059f130..01fc34df22ea 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -255,7 +255,7 @@ importers:
         version: file:projects/arm-databox.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databoxedge':
         specifier: file:./projects/arm-databoxedge.tgz
-        version: file:projects/arm-databoxedge.tgz
+        version: file:projects/arm-databoxedge.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid':
         specifier: file:./projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz
         version: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz
@@ -2815,7 +2815,7 @@ packages:
     version: 0.0.0
 
   '@rush-temp/arm-databoxedge@file:projects/arm-databoxedge.tgz':
-    resolution: {integrity: sha512-B61mUbBbqOEorjzLSn+L1dkIlHb0X9eI9FE/XCaFCPQga1G7KtCbQ0P1MWJi7UFy4Jju0lJAkz2uDnwzGSdvxg==, tarball: file:projects/arm-databoxedge.tgz}
+    resolution: {integrity: sha512-E3BsoJ4IuKuKA7ChN6uY1I6g4OxMJWKKfhb6ZdqUN+1Geh6lkGDfccHJI4QdcwPUt2xPNGPdz0aMeKAtKPYf6A==, tarball: file:projects/arm-databoxedge.tgz}
     version: 0.0.0
 
   '@rush-temp/arm-databricks@file:projects/arm-databricks.tgz':
@@ -11810,24 +11810,36 @@ snapshots:
       - '@swc/wasm'
       - supports-color
 
-  '@rush-temp/arm-databoxedge@file:projects/arm-databoxedge.tgz':
+  '@rush-temp/arm-databoxedge@file:projects/arm-databoxedge.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68
-      chai: 4.5.0
-      mocha: 11.0.2
-      ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
+      '@vitest/browser': 2.1.8(@types/node@18.19.68)(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.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
     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-databricks@file:projects/arm-databricks.tgz':
     dependencies:
diff --git a/sdk/databoxedge/arm-databoxedge/package.json b/sdk/databoxedge/arm-databoxedge/package.json
index ad5fb3a98da9..dc77b145e052 100644
--- a/sdk/databoxedge/arm-databoxedge/package.json
+++ b/sdk/databoxedge/arm-databoxedge/package.json
@@ -24,9 +24,9 @@
     "isomorphic"
   ],
   "license": "MIT",
-  "main": "./dist/index.js",
-  "module": "./dist-esm/src/index.js",
-  "types": "./types/arm-databoxedge.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",
@@ -117,5 +117,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 4ede8b8731cb35b50e07ce7dc8d60cd2f1ae64db Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:29:51 +0800
Subject: [PATCH 25/61] Migration: Update package.json, tsconfig.json, and
 api-extractor.json

---
 .../api-extractor.json                        |  6 +-
 .../package.json                              | 61 +++++++++++--------
 .../{sampleTest.ts => sampleTest.spec.ts}     |  0
 .../tsconfig.json                             | 40 +++---------
 .../tsconfig.samples.json                     | 10 +++
 .../tsconfig.src.json                         |  3 +
 .../tsconfig.test.json                        |  6 ++
 7 files changed, 67 insertions(+), 59 deletions(-)
 rename sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/{sampleTest.ts => sampleTest.spec.ts} (100%)
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.samples.json
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.src.json
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.test.json

diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/api-extractor.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/api-extractor.json
index c1c32dd2ba98..25bd9201987a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/api-extractor.json
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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-databoxedge-profile-2020-09-01-hybrid.d.ts"
+    "publicTrimmedFilePath": "dist/arm-databoxedge-profile-2020-09-01-hybrid.d.ts"
   },
   "messages": {
     "tsdocMessageReporting": {
@@ -28,4 +28,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
index cffafc6c4a25..a7660a8a25d7 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
@@ -28,18 +28,18 @@
   "module": "./dist-esm/src/index.js",
   "types": "./types/arm-databoxedge-profile-2020-09-01-hybrid.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",
@@ -87,8 +77,8 @@
     "test:browser": "echo skipped",
     "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+    "unit-test:node": "dev-tool run test:vitest",
     "update-snippets": "echo skipped"
   },
   "sideEffects": false,
@@ -109,5 +99,24 @@
     ],
     "disableDocsMs": true,
     "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge-profile-2020-09-01-hybrid?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/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
similarity index 100%
rename from sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.ts
rename to sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.json
index ac137587ad69..19ceb382b521 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.json
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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-databoxedge-profile-2020-09-01-hybrid": [
-        "./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/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.samples.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.samples.json
new file mode 100644
index 000000000000..bc4d30170fdf
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+  "extends": "../../../tsconfig.samples.base.json",
+  "compilerOptions": {
+    "paths": {
+      "@azure/arm-databoxedge-profile-2020-09-01-hybrid": [
+        "./dist/esm"
+      ]
+    }
+  }
+}
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.src.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+  "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.test.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+  "extends": [
+    "./tsconfig.src.json",
+    "../../../tsconfig.test.base.json"
+  ]
+}

From 9174acab6a38ff11a63edca6363e5d9cb82c33b2 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:29:52 +0800
Subject: [PATCH 26/61] Migration: Update test config

---
 .../tsconfig.browser.config.json                | 17 +++++++++++++++++
 .../vitest.browser.config.ts                    | 17 +++++++++++++++++
 .../vitest.config.ts                            |  7 +++++++
 .../vitest.esm.config.ts                        | 12 ++++++++++++
 4 files changed, 53 insertions(+)
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.browser.config.json
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.browser.config.ts
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
 create mode 100644 sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.esm.config.ts

diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.browser.config.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/tsconfig.browser.config.json
@@ -0,0 +1,17 @@
+{
+  "extends": "./.tshy/build.json",
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.mts",
+    "./test/**/*.spec.ts",
+    "./test/**/*.mts"
+  ],
+  "exclude": [
+    "./test/**/node/**/*.ts"
+  ],
+  "compilerOptions": {
+    "outDir": "./dist-test/browser",
+    "rootDir": ".",
+    "skipLibCheck": true
+  }
+}
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.browser.config.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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",
+      ],
+    },
+  }),
+);
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
@@ -0,0 +1,7 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default viteConfig;
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.esm.config.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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 2b05bb278fba729eb6484b0af321743353dec71b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:29:52 +0800
Subject: [PATCH 27/61] Migration: Clean up files


From 951fb32e16a9ae3ccdeebb3697357b6d58ca85d4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:16 +0800
Subject: [PATCH 28/61] Migration: Apply codemod: "fixSourceFile"

---
 .../samples-dev/alertsGetSample.ts            |  4 +--
 .../alertsListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../bandwidthSchedulesCreateOrUpdateSample.ts |  4 +--
 .../bandwidthSchedulesDeleteSample.ts         |  4 +--
 .../bandwidthSchedulesGetSample.ts            |  4 +--
 ...hSchedulesListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../containersCreateOrUpdateSample.ts         |  4 +--
 .../samples-dev/containersDeleteSample.ts     |  4 +--
 .../samples-dev/containersGetSample.ts        |  4 +--
 .../containersListByStorageAccountSample.ts   |  4 +--
 .../samples-dev/containersRefreshSample.ts    |  4 +--
 .../devicesCreateOrUpdateSample.ts            |  4 +--
 ...cesCreateOrUpdateSecuritySettingsSample.ts |  4 +--
 .../samples-dev/devicesDeleteSample.ts        |  4 +--
 .../devicesDownloadUpdatesSample.ts           |  4 +--
 .../devicesGetExtendedInformationSample.ts    |  4 +--
 .../devicesGetNetworkSettingsSample.ts        |  4 +--
 .../samples-dev/devicesGetSample.ts           |  4 +--
 .../devicesGetUpdateSummarySample.ts          |  4 +--
 .../devicesInstallUpdatesSample.ts            |  4 +--
 .../devicesListByResourceGroupSample.ts       |  4 +--
 .../devicesListBySubscriptionSample.ts        |  4 +--
 .../devicesScanForUpdatesSample.ts            |  4 +--
 .../samples-dev/devicesUpdateSample.ts        |  4 +--
 .../devicesUploadCertificateSample.ts         |  4 +--
 .../samples-dev/jobsGetSample.ts              |  4 +--
 .../nodesListByDataBoxEdgeDeviceSample.ts     |  4 +--
 .../samples-dev/operationsListSample.ts       |  4 +--
 .../samples-dev/operationsStatusGetSample.ts  |  4 +--
 .../samples-dev/ordersCreateOrUpdateSample.ts |  4 +--
 .../samples-dev/ordersDeleteSample.ts         |  4 +--
 .../samples-dev/ordersGetSample.ts            |  4 +--
 .../ordersListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../samples-dev/rolesCreateOrUpdateSample.ts  |  4 +--
 .../samples-dev/rolesDeleteSample.ts          |  4 +--
 .../samples-dev/rolesGetSample.ts             |  4 +--
 .../rolesListByDataBoxEdgeDeviceSample.ts     |  4 +--
 .../samples-dev/sharesCreateOrUpdateSample.ts |  4 +--
 .../samples-dev/sharesDeleteSample.ts         |  4 +--
 .../samples-dev/sharesGetSample.ts            |  4 +--
 .../sharesListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../samples-dev/sharesRefreshSample.ts        |  4 +--
 .../samples-dev/skusListSample.ts             |  4 +--
 ...eAccountCredentialsCreateOrUpdateSample.ts |  4 +--
 .../storageAccountCredentialsDeleteSample.ts  |  4 +--
 .../storageAccountCredentialsGetSample.ts     |  4 +--
 ...redentialsListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../storageAccountsCreateOrUpdateSample.ts    |  4 +--
 .../storageAccountsDeleteSample.ts            |  4 +--
 .../samples-dev/storageAccountsGetSample.ts   |  4 +--
 ...geAccountsListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../triggersCreateOrUpdateSample.ts           |  4 +--
 .../samples-dev/triggersDeleteSample.ts       |  4 +--
 .../samples-dev/triggersGetSample.ts          |  4 +--
 .../triggersListByDataBoxEdgeDeviceSample.ts  |  4 +--
 .../samples-dev/usersCreateOrUpdateSample.ts  |  4 +--
 .../samples-dev/usersDeleteSample.ts          |  4 +--
 .../samples-dev/usersGetSample.ts             |  4 +--
 .../usersListByDataBoxEdgeDeviceSample.ts     |  4 +--
 .../v2/typescript/src/alertsGetSample.ts      |  4 +--
 .../alertsListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../bandwidthSchedulesCreateOrUpdateSample.ts |  4 +--
 .../src/bandwidthSchedulesDeleteSample.ts     |  4 +--
 .../src/bandwidthSchedulesGetSample.ts        |  4 +--
 ...hSchedulesListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../src/containersCreateOrUpdateSample.ts     |  4 +--
 .../typescript/src/containersDeleteSample.ts  |  4 +--
 .../v2/typescript/src/containersGetSample.ts  |  4 +--
 .../containersListByStorageAccountSample.ts   |  4 +--
 .../typescript/src/containersRefreshSample.ts |  4 +--
 .../src/devicesCreateOrUpdateSample.ts        |  4 +--
 ...cesCreateOrUpdateSecuritySettingsSample.ts |  4 +--
 .../v2/typescript/src/devicesDeleteSample.ts  |  4 +--
 .../src/devicesDownloadUpdatesSample.ts       |  4 +--
 .../devicesGetExtendedInformationSample.ts    |  4 +--
 .../src/devicesGetNetworkSettingsSample.ts    |  4 +--
 .../v2/typescript/src/devicesGetSample.ts     |  4 +--
 .../src/devicesGetUpdateSummarySample.ts      |  4 +--
 .../src/devicesInstallUpdatesSample.ts        |  4 +--
 .../src/devicesListByResourceGroupSample.ts   |  4 +--
 .../src/devicesListBySubscriptionSample.ts    |  4 +--
 .../src/devicesScanForUpdatesSample.ts        |  4 +--
 .../v2/typescript/src/devicesUpdateSample.ts  |  4 +--
 .../src/devicesUploadCertificateSample.ts     |  4 +--
 .../v2/typescript/src/jobsGetSample.ts        |  4 +--
 .../src/nodesListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../v2/typescript/src/operationsListSample.ts |  4 +--
 .../src/operationsStatusGetSample.ts          |  4 +--
 .../src/ordersCreateOrUpdateSample.ts         |  4 +--
 .../v2/typescript/src/ordersDeleteSample.ts   |  4 +--
 .../v2/typescript/src/ordersGetSample.ts      |  4 +--
 .../ordersListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../src/rolesCreateOrUpdateSample.ts          |  4 +--
 .../v2/typescript/src/rolesDeleteSample.ts    |  4 +--
 .../v2/typescript/src/rolesGetSample.ts       |  4 +--
 .../src/rolesListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../src/sharesCreateOrUpdateSample.ts         |  4 +--
 .../v2/typescript/src/sharesDeleteSample.ts   |  4 +--
 .../v2/typescript/src/sharesGetSample.ts      |  4 +--
 .../sharesListByDataBoxEdgeDeviceSample.ts    |  4 +--
 .../v2/typescript/src/sharesRefreshSample.ts  |  4 +--
 .../v2/typescript/src/skusListSample.ts       |  4 +--
 ...eAccountCredentialsCreateOrUpdateSample.ts |  4 +--
 .../storageAccountCredentialsDeleteSample.ts  |  4 +--
 .../src/storageAccountCredentialsGetSample.ts |  4 +--
 ...redentialsListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../storageAccountsCreateOrUpdateSample.ts    |  4 +--
 .../src/storageAccountsDeleteSample.ts        |  4 +--
 .../src/storageAccountsGetSample.ts           |  4 +--
 ...geAccountsListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../src/triggersCreateOrUpdateSample.ts       |  4 +--
 .../v2/typescript/src/triggersDeleteSample.ts |  4 +--
 .../v2/typescript/src/triggersGetSample.ts    |  4 +--
 .../triggersListByDataBoxEdgeDeviceSample.ts  |  4 +--
 .../src/usersCreateOrUpdateSample.ts          |  4 +--
 .../v2/typescript/src/usersDeleteSample.ts    |  4 +--
 .../v2/typescript/src/usersGetSample.ts       |  4 +--
 .../src/usersListByDataBoxEdgeDeviceSample.ts |  4 +--
 .../src/dataBoxEdgeManagementClient.ts        |  6 ++--
 .../src/index.ts                              |  8 ++---
 .../src/models/parameters.ts                  |  2 +-
 .../src/operations/alerts.ts                  | 12 +++----
 .../src/operations/bandwidthSchedules.ts      | 14 ++++----
 .../src/operations/containers.ts              | 14 ++++----
 .../src/operations/devices.ts                 | 14 ++++----
 .../src/operations/index.ts                   | 32 +++++++++----------
 .../src/operations/jobs.ts                    | 10 +++---
 .../src/operations/nodes.ts                   | 10 +++---
 .../src/operations/operations.ts              | 12 +++----
 .../src/operations/operationsStatus.ts        | 10 +++---
 .../src/operations/orders.ts                  | 14 ++++----
 .../src/operations/roles.ts                   | 14 ++++----
 .../src/operations/shares.ts                  | 14 ++++----
 .../src/operations/skus.ts                    | 10 +++---
 .../operations/storageAccountCredentials.ts   | 14 ++++----
 .../src/operations/storageAccounts.ts         | 14 ++++----
 .../src/operations/triggers.ts                | 14 ++++----
 .../src/operations/users.ts                   | 14 ++++----
 .../src/operationsInterfaces/alerts.ts        |  2 +-
 .../bandwidthSchedules.ts                     |  2 +-
 .../src/operationsInterfaces/containers.ts    |  2 +-
 .../src/operationsInterfaces/devices.ts       |  2 +-
 .../src/operationsInterfaces/index.ts         | 32 +++++++++----------
 .../src/operationsInterfaces/jobs.ts          |  2 +-
 .../src/operationsInterfaces/nodes.ts         |  2 +-
 .../src/operationsInterfaces/operations.ts    |  2 +-
 .../operationsInterfaces/operationsStatus.ts  |  2 +-
 .../src/operationsInterfaces/orders.ts        |  2 +-
 .../src/operationsInterfaces/roles.ts         |  2 +-
 .../src/operationsInterfaces/shares.ts        |  2 +-
 .../src/operationsInterfaces/skus.ts          |  2 +-
 .../storageAccountCredentials.ts              |  2 +-
 .../operationsInterfaces/storageAccounts.ts   |  2 +-
 .../src/operationsInterfaces/triggers.ts      |  2 +-
 .../src/operationsInterfaces/users.ts         |  2 +-
 .../test/sampleTest.spec.ts                   | 10 ++----
 156 files changed, 279 insertions(+), 519 deletions(-)

diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsGetSample.ts
index 4b326d6b5ccd..bf3d26edff49 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets an alert by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsListByDataBoxEdgeDeviceSample.ts
index 98720935a085..a4e319ef1726 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/alertsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the alerts for a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesCreateOrUpdateSample.ts
index 0307ae506790..93a7c9035da2 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesDeleteSample.ts
index ec86c261b041..1ea75497b015 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the specified bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesGetSample.ts
index ba01453439a5..e1a2f6f92710 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
index 28fcee21a31b..ed8467d5d8a9 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the bandwidth schedules for a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersCreateOrUpdateSample.ts
index be610643782c..7216bccb928d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new container or updates an existing container on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersDeleteSample.ts
index da7f90c0b954..6b226c4ff49e 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the container on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersGetSample.ts
index d412b1f4fd9f..6cf1dfaf68fb 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a container by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersListByStorageAccountSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersListByStorageAccountSample.ts
index 00f9a0802e8a..43c8dc5a984b 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersListByStorageAccountSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersListByStorageAccountSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersRefreshSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersRefreshSample.ts
index 94512a50c319..a2575be58f9c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersRefreshSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/containersRefreshSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Refreshes the container metadata with the data from the cloud.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSample.ts
index 63b29a5c4a81..b40e55e48623 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a Data Box Edge/Data Box Gateway resource.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSecuritySettingsSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSecuritySettingsSample.ts
index 31aa154914e5..4a58e8325bb8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSecuritySettingsSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesCreateOrUpdateSecuritySettingsSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates the security settings on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDeleteSample.ts
index 3d41ec83e939..dda0cdd97c15 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDownloadUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDownloadUpdatesSample.ts
index dcf4ed25e02c..386d64a2946f 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDownloadUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesDownloadUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Downloads the updates on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetExtendedInformationSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetExtendedInformationSample.ts
index 8d1601677a36..81cc2262bcb1 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetExtendedInformationSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetExtendedInformationSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets additional information for the specified Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetNetworkSettingsSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetNetworkSettingsSample.ts
index eb22c8247e89..317ea56ef907 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetNetworkSettingsSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetNetworkSettingsSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the network settings of the specified Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetSample.ts
index 20da8574a13e..4e5d8f0bd480 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetUpdateSummarySample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetUpdateSummarySample.ts
index 0e9b86e1a549..ef87649f62db 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetUpdateSummarySample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesGetUpdateSummarySample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesInstallUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesInstallUpdatesSample.ts
index 8ccfc2737c4a..f21fb3315b3e 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesInstallUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesInstallUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Installs the updates on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListByResourceGroupSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListByResourceGroupSample.ts
index 07c3aba2e099..db3be746dedc 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListByResourceGroupSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the Data Box Edge/Data Box Gateway devices in a resource group.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListBySubscriptionSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListBySubscriptionSample.ts
index 569c71f22cb3..17f5a905a5a1 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListBySubscriptionSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the Data Box Edge/Data Box Gateway devices in a subscription.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesScanForUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesScanForUpdatesSample.ts
index 890a433df3ba..5c0901f1f7ec 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesScanForUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesScanForUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Scans for updates on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUpdateSample.ts
index d203a99968a4..6c7d8aaec279 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Modifies a Data Box Edge/Data Box Gateway resource.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUploadCertificateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUploadCertificateSample.ts
index 3f4d53feac59..b82ad3e01646 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUploadCertificateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/devicesUploadCertificateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Uploads registration certificate for the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/jobsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/jobsGetSample.ts
index cb35a5453efa..59ece23b571c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/jobsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/jobsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/nodesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/nodesListByDataBoxEdgeDeviceSample.ts
index c890de2cca94..4e8b35b4e701 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/nodesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/nodesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the nodes currently configured under this Data Box Edge device
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsListSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsListSample.ts
index 1b4a9975aca8..906ff8dff3fc 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsListSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List all the supported operations.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsStatusGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsStatusGetSample.ts
index 82a89fc272e7..bd9f0e779758 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsStatusGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/operationsStatusGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersCreateOrUpdateSample.ts
index e7d73d427e66..712d0b0da113 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates an order.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersDeleteSample.ts
index 06a8d9247849..95df60218c64 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the order related to the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersGetSample.ts
index 964b1157c1d2..3fab775b26d8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a specific order by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersListByDataBoxEdgeDeviceSample.ts
index eb69d3795068..2f322e5190ed 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/ordersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the orders related to a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesCreateOrUpdateSample.ts
index e8527f7ad3ea..ecde840e2b9c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Create or update a role.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesDeleteSample.ts
index df8825e1025e..2df057edc056 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the role on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesGetSample.ts
index 9d354baa2257..93a89a402235 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a specific role by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesListByDataBoxEdgeDeviceSample.ts
index 206da7edb92a..1a08fe5b93db 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/rolesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the roles configured in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesCreateOrUpdateSample.ts
index b9be4610435f..68eb516bdd41 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new share or updates an existing share on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesDeleteSample.ts
index 9c5dbab5d94c..9e17f8443de7 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the share on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesGetSample.ts
index 2ecd6dd424d2..537e2f892a40 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a share by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesListByDataBoxEdgeDeviceSample.ts
index 0897b7ff09ab..5c5e5968b297 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the shares in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesRefreshSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesRefreshSample.ts
index 3b566e1e32dc..5eceaefc7c19 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesRefreshSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/sharesRefreshSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Refreshes the share metadata with the data from the cloud.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/skusListSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/skusListSample.ts
index 40f4c56245d4..aa3bfba2facb 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/skusListSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/skusListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List all the available Skus in the region and information related to them
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsCreateOrUpdateSample.ts
index ebe4d9d69fe7..3e18d3980a0a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates the storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsDeleteSample.ts
index cec11ed2f5ec..b636d7a94771 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsGetSample.ts
index c2c2e69daae0..e3ca35adb5bd 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
index 659a0a5e5c02..83f914dded0c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the storage account credentials in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsCreateOrUpdateSample.ts
index 26b17056faa5..88f8439ae036 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new StorageAccount or updates an existing StorageAccount on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsDeleteSample.ts
index 5e0dc604b35b..cab3764a1214 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsGetSample.ts
index cb5b2fc9eaec..24ce7e1566f8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a StorageAccount by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsListByDataBoxEdgeDeviceSample.ts
index 518c6a8f5f40..a855b2117779 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/storageAccountsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersCreateOrUpdateSample.ts
index 7cdbcc20b2b2..e1939079abe2 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a trigger.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersDeleteSample.ts
index daec18b2627c..9b587769702d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the trigger on the gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersGetSample.ts
index d942fbe929bc..d824f0456363 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Get a specific trigger by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersListByDataBoxEdgeDeviceSample.ts
index a6d673ae6f83..e3df1fd12e2a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/triggersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the triggers configured in the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersCreateOrUpdateSample.ts
index db30bac9d5f7..9c4d7ad31bb4 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new user or updates an existing user's information on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersDeleteSample.ts
index c2c403434bd0..9a1eaa060ff3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the user on a databox edge/gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersGetSample.ts
index 205a865989a9..de9ad380b33a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified user.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersListByDataBoxEdgeDeviceSample.ts
index 0999ea8e1ba8..d43ff1b1da24 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples-dev/usersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the users registered on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsGetSample.ts
index 4b326d6b5ccd..bf3d26edff49 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets an alert by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsListByDataBoxEdgeDeviceSample.ts
index 98720935a085..a4e319ef1726 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/alertsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the alerts for a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesCreateOrUpdateSample.ts
index 0307ae506790..93a7c9035da2 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesDeleteSample.ts
index ec86c261b041..1ea75497b015 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the specified bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesGetSample.ts
index ba01453439a5..e1a2f6f92710 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified bandwidth schedule.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
index 28fcee21a31b..ed8467d5d8a9 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/bandwidthSchedulesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the bandwidth schedules for a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersCreateOrUpdateSample.ts
index be610643782c..7216bccb928d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new container or updates an existing container on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersDeleteSample.ts
index da7f90c0b954..6b226c4ff49e 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the container on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersGetSample.ts
index d412b1f4fd9f..6cf1dfaf68fb 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a container by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersListByStorageAccountSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersListByStorageAccountSample.ts
index 00f9a0802e8a..43c8dc5a984b 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersListByStorageAccountSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersListByStorageAccountSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the containers of a storage Account in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersRefreshSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersRefreshSample.ts
index 94512a50c319..a2575be58f9c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersRefreshSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/containersRefreshSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Refreshes the container metadata with the data from the cloud.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSample.ts
index 63b29a5c4a81..b40e55e48623 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a Data Box Edge/Data Box Gateway resource.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSecuritySettingsSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSecuritySettingsSample.ts
index 31aa154914e5..4a58e8325bb8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSecuritySettingsSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesCreateOrUpdateSecuritySettingsSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates the security settings on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDeleteSample.ts
index 3d41ec83e939..dda0cdd97c15 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDownloadUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDownloadUpdatesSample.ts
index dcf4ed25e02c..386d64a2946f 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDownloadUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesDownloadUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Downloads the updates on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetExtendedInformationSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetExtendedInformationSample.ts
index 8d1601677a36..81cc2262bcb1 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetExtendedInformationSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetExtendedInformationSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets additional information for the specified Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetNetworkSettingsSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetNetworkSettingsSample.ts
index eb22c8247e89..317ea56ef907 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetNetworkSettingsSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetNetworkSettingsSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the network settings of the specified Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetSample.ts
index 20da8574a13e..4e5d8f0bd480 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetUpdateSummarySample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetUpdateSummarySample.ts
index 0e9b86e1a549..ef87649f62db 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetUpdateSummarySample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesGetUpdateSummarySample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets information about the availability of updates based on the last scan of the device. It also gets information about any ongoing download or install jobs on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesInstallUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesInstallUpdatesSample.ts
index 8ccfc2737c4a..f21fb3315b3e 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesInstallUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesInstallUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Installs the updates on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListByResourceGroupSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListByResourceGroupSample.ts
index 07c3aba2e099..db3be746dedc 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListByResourceGroupSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the Data Box Edge/Data Box Gateway devices in a resource group.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListBySubscriptionSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListBySubscriptionSample.ts
index 569c71f22cb3..17f5a905a5a1 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListBySubscriptionSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the Data Box Edge/Data Box Gateway devices in a subscription.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesScanForUpdatesSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesScanForUpdatesSample.ts
index 890a433df3ba..5c0901f1f7ec 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesScanForUpdatesSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesScanForUpdatesSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Scans for updates on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUpdateSample.ts
index d203a99968a4..6c7d8aaec279 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Modifies a Data Box Edge/Data Box Gateway resource.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUploadCertificateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUploadCertificateSample.ts
index 3f4d53feac59..b82ad3e01646 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUploadCertificateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/devicesUploadCertificateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Uploads registration certificate for the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/jobsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/jobsGetSample.ts
index cb35a5453efa..59ece23b571c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/jobsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/jobsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/nodesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/nodesListByDataBoxEdgeDeviceSample.ts
index c890de2cca94..4e8b35b4e701 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/nodesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/nodesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the nodes currently configured under this Data Box Edge device
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsListSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsListSample.ts
index 1b4a9975aca8..906ff8dff3fc 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsListSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List all the supported operations.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsStatusGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsStatusGetSample.ts
index 82a89fc272e7..bd9f0e779758 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsStatusGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/operationsStatusGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the details of a specified job on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersCreateOrUpdateSample.ts
index e7d73d427e66..712d0b0da113 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates an order.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersDeleteSample.ts
index 06a8d9247849..95df60218c64 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the order related to the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersGetSample.ts
index 964b1157c1d2..3fab775b26d8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a specific order by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersListByDataBoxEdgeDeviceSample.ts
index eb69d3795068..2f322e5190ed 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/ordersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the orders related to a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesCreateOrUpdateSample.ts
index e8527f7ad3ea..ecde840e2b9c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Create or update a role.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesDeleteSample.ts
index df8825e1025e..2df057edc056 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the role on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesGetSample.ts
index 9d354baa2257..93a89a402235 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a specific role by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesListByDataBoxEdgeDeviceSample.ts
index 206da7edb92a..1a08fe5b93db 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/rolesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the roles configured in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesCreateOrUpdateSample.ts
index b9be4610435f..68eb516bdd41 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new share or updates an existing share on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesDeleteSample.ts
index 9c5dbab5d94c..9e17f8443de7 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the share on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesGetSample.ts
index 2ecd6dd424d2..537e2f892a40 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a share by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesListByDataBoxEdgeDeviceSample.ts
index 0897b7ff09ab..5c5e5968b297 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the shares in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesRefreshSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesRefreshSample.ts
index 3b566e1e32dc..5eceaefc7c19 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesRefreshSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/sharesRefreshSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Refreshes the share metadata with the data from the cloud.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/skusListSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/skusListSample.ts
index 40f4c56245d4..aa3bfba2facb 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/skusListSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/skusListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List all the available Skus in the region and information related to them
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsCreateOrUpdateSample.ts
index ebe4d9d69fe7..3e18d3980a0a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates the storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsDeleteSample.ts
index cec11ed2f5ec..b636d7a94771 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsGetSample.ts
index c2c2e69daae0..e3ca35adb5bd 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified storage account credential.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
index 659a0a5e5c02..83f914dded0c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountCredentialsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the storage account credentials in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsCreateOrUpdateSample.ts
index 26b17056faa5..88f8439ae036 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new StorageAccount or updates an existing StorageAccount on the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsDeleteSample.ts
index 5e0dc604b35b..cab3764a1214 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the StorageAccount on the Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsGetSample.ts
index cb5b2fc9eaec..24ce7e1566f8 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets a StorageAccount by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsListByDataBoxEdgeDeviceSample.ts
index 518c6a8f5f40..a855b2117779 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/storageAccountsListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersCreateOrUpdateSample.ts
index 7cdbcc20b2b2..e1939079abe2 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates a trigger.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersDeleteSample.ts
index daec18b2627c..9b587769702d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the trigger on the gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersGetSample.ts
index d942fbe929bc..d824f0456363 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Get a specific trigger by name.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersListByDataBoxEdgeDeviceSample.ts
index a6d673ae6f83..e3df1fd12e2a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/triggersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists all the triggers configured in the device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersCreateOrUpdateSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersCreateOrUpdateSample.ts
index db30bac9d5f7..9c4d7ad31bb4 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersCreateOrUpdateSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   DataBoxEdgeManagementClient
 } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new user or updates an existing user's information on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersDeleteSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersDeleteSample.ts
index c2c403434bd0..9a1eaa060ff3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersDeleteSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the user on a databox edge/gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersGetSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersGetSample.ts
index 205a865989a9..de9ad380b33a 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersGetSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the properties of the specified user.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersListByDataBoxEdgeDeviceSample.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersListByDataBoxEdgeDeviceSample.ts
index 0999ea8e1ba8..d43ff1b1da24 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersListByDataBoxEdgeDeviceSample.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/samples/v2/typescript/src/usersListByDataBoxEdgeDeviceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { DataBoxEdgeManagementClient } from "@azure/arm-databoxedge-profile-2020-09-01-hybrid";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the users registered on a Data Box Edge/Data Box Gateway device.
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/dataBoxEdgeManagementClient.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/dataBoxEdgeManagementClient.ts
index 5b6f1bbc27fb..1199cb5c77f6 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/dataBoxEdgeManagementClient.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/dataBoxEdgeManagementClient.ts
@@ -31,7 +31,7 @@ import {
   TriggersImpl,
   UsersImpl,
   SkusImpl
-} from "./operations";
+} from "./operations/index.js";
 import {
   Operations,
   Devices,
@@ -49,8 +49,8 @@ import {
   Triggers,
   Users,
   Skus
-} from "./operationsInterfaces";
-import { DataBoxEdgeManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { DataBoxEdgeManagementClientOptionalParams } from "./models/index.js";
 
 export class DataBoxEdgeManagementClient extends coreClient.ServiceClient {
   $host: string;
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/index.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/index.ts
index 7190233374e0..1d74d4de9910 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/index.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/index.ts
@@ -7,7 +7,7 @@
  */
 
 /// <reference lib="esnext.asynciterable" />
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { DataBoxEdgeManagementClient } from "./dataBoxEdgeManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { DataBoxEdgeManagementClient } from "./dataBoxEdgeManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/models/parameters.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/models/parameters.ts
index 00f4d18ea446..6a17d0abe09d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/models/parameters.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/models/parameters.ts
@@ -25,7 +25,7 @@ import {
   Container as ContainerMapper,
   Trigger as TriggerMapper,
   User as UserMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
 
 export const accept: OperationParameter = {
   parameterPath: "accept",
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/alerts.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/alerts.ts
index d05a78bfad81..6ebdd5741737 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/alerts.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/alerts.ts
@@ -7,12 +7,12 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Alerts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Alerts } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Alert,
   AlertsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -21,7 +21,7 @@ import {
   AlertsGetOptionalParams,
   AlertsGetResponse,
   AlertsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Alerts operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/bandwidthSchedules.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/bandwidthSchedules.ts
index 4c53fd5ec050..025408ece670 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/bandwidthSchedules.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/bandwidthSchedules.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BandwidthSchedules } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BandwidthSchedules } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   BandwidthSchedule,
   BandwidthSchedulesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   BandwidthSchedulesCreateOrUpdateResponse,
   BandwidthSchedulesDeleteOptionalParams,
   BandwidthSchedulesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing BandwidthSchedules operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/containers.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/containers.ts
index 23bc4a171e3c..1f2e05470bbe 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/containers.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/containers.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Containers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Containers } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Container,
   ContainersListByStorageAccountNextOptionalParams,
@@ -27,7 +27,7 @@ import {
   ContainersDeleteOptionalParams,
   ContainersRefreshOptionalParams,
   ContainersListByStorageAccountNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Containers operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/devices.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/devices.ts
index 25b99107f1af..ae8fec36b15c 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/devices.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/devices.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Devices } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Devices } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   DataBoxEdgeDevice,
   DevicesListBySubscriptionNextOptionalParams,
@@ -47,7 +47,7 @@ import {
   DevicesUploadCertificateResponse,
   DevicesListBySubscriptionNextResponse,
   DevicesListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Devices operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/index.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/index.ts
index 6b621283bca4..f9b12523e3c3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/index.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/index.ts
@@ -6,19 +6,19 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./devices";
-export * from "./alerts";
-export * from "./bandwidthSchedules";
-export * from "./jobs";
-export * from "./nodes";
-export * from "./operationsStatus";
-export * from "./orders";
-export * from "./roles";
-export * from "./shares";
-export * from "./storageAccountCredentials";
-export * from "./storageAccounts";
-export * from "./containers";
-export * from "./triggers";
-export * from "./users";
-export * from "./skus";
+export * from "./operations.js";
+export * from "./devices.js";
+export * from "./alerts.js";
+export * from "./bandwidthSchedules.js";
+export * from "./jobs.js";
+export * from "./nodes.js";
+export * from "./operationsStatus.js";
+export * from "./orders.js";
+export * from "./roles.js";
+export * from "./shares.js";
+export * from "./storageAccountCredentials.js";
+export * from "./storageAccounts.js";
+export * from "./containers.js";
+export * from "./triggers.js";
+export * from "./users.js";
+export * from "./skus.js";
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/jobs.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/jobs.ts
index 391994d335ca..ec7bc243a9c3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/jobs.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/jobs.ts
@@ -6,12 +6,12 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { Jobs } from "../operationsInterfaces";
+import { Jobs } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
-import { JobsGetOptionalParams, JobsGetResponse } from "../models";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
+import { JobsGetOptionalParams, JobsGetResponse } from "../models/index.js";
 
 /** Class containing Jobs operations. */
 export class JobsImpl implements Jobs {
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/nodes.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/nodes.ts
index fb5dc3d1b50d..7cb93d7edee3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/nodes.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/nodes.ts
@@ -7,16 +7,16 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { Nodes } from "../operationsInterfaces";
+import { Nodes } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Node,
   NodesListByDataBoxEdgeDeviceOptionalParams,
   NodesListByDataBoxEdgeDeviceResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Nodes operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operations.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operations.ts
index 0e74c4ae7e2a..ee38e2501498 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operations.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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 { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   Operation,
   OperationsListNextOptionalParams,
   OperationsListOptionalParams,
   OperationsListResponse,
   OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Operations operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operationsStatus.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operationsStatus.ts
index 6dcfbc331216..447c1e09b081 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operationsStatus.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/operationsStatus.ts
@@ -6,15 +6,15 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { OperationsStatus } from "../operationsInterfaces";
+import { OperationsStatus } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   OperationsStatusGetOptionalParams,
   OperationsStatusGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing OperationsStatus operations. */
 export class OperationsStatusImpl implements OperationsStatus {
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/orders.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/orders.ts
index ef5d06d61e60..9d8e80d0b2cf 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/orders.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/orders.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Orders } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Orders } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Order,
   OrdersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   OrdersCreateOrUpdateResponse,
   OrdersDeleteOptionalParams,
   OrdersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Orders operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/roles.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/roles.ts
index 3309a4fb692b..539935418e77 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/roles.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/roles.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Roles } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Roles } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   RoleUnion,
   RolesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   RolesCreateOrUpdateResponse,
   RolesDeleteOptionalParams,
   RolesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Roles operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/shares.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/shares.ts
index de55e9c9bf1d..261a3a142d53 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/shares.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/shares.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Shares } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Shares } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   Share,
   SharesListByDataBoxEdgeDeviceNextOptionalParams,
@@ -27,7 +27,7 @@ import {
   SharesDeleteOptionalParams,
   SharesRefreshOptionalParams,
   SharesListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Shares operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/skus.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/skus.ts
index ddd3592f09eb..08514786a849 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/skus.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/skus.ts
@@ -7,16 +7,16 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { Skus } from "../operationsInterfaces";
+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 { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import {
   ResourceTypeSku,
   SkusListOptionalParams,
   SkusListResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Skus operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccountCredentials.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccountCredentials.ts
index feaf865d923e..84058404fb2d 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccountCredentials.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccountCredentials.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { StorageAccountCredentials } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { StorageAccountCredentials } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   StorageAccountCredential,
   StorageAccountCredentialsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   StorageAccountCredentialsCreateOrUpdateResponse,
   StorageAccountCredentialsDeleteOptionalParams,
   StorageAccountCredentialsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing StorageAccountCredentials operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccounts.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccounts.ts
index 7bab100e7365..ee95bde76f05 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccounts.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/storageAccounts.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { StorageAccounts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { StorageAccounts } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   StorageAccount,
   StorageAccountsListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   StorageAccountsCreateOrUpdateResponse,
   StorageAccountsDeleteOptionalParams,
   StorageAccountsListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing StorageAccounts operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/triggers.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/triggers.ts
index ea2dda795514..a1bed9907fd0 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/triggers.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/triggers.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Triggers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Triggers } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   TriggerUnion,
   TriggersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   TriggersCreateOrUpdateResponse,
   TriggersDeleteOptionalParams,
   TriggersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Triggers operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/users.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/users.ts
index b447a64de7ba..f79613a79f24 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/users.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operations/users.ts
@@ -7,14 +7,14 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Users } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Users } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataBoxEdgeManagementClient } from "../dataBoxEdgeManagementClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   User,
   UsersListByDataBoxEdgeDeviceNextOptionalParams,
@@ -26,7 +26,7 @@ import {
   UsersCreateOrUpdateResponse,
   UsersDeleteOptionalParams,
   UsersListByDataBoxEdgeDeviceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Users operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/alerts.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/alerts.ts
index d63bfbecb25c..0727fdbe17cd 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/alerts.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/alerts.ts
@@ -12,7 +12,7 @@ import {
   AlertsListByDataBoxEdgeDeviceOptionalParams,
   AlertsGetOptionalParams,
   AlertsGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Alerts. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/bandwidthSchedules.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/bandwidthSchedules.ts
index 3af876d0745a..9d5047b41f11 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/bandwidthSchedules.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/bandwidthSchedules.ts
@@ -16,7 +16,7 @@ import {
   BandwidthSchedulesCreateOrUpdateOptionalParams,
   BandwidthSchedulesCreateOrUpdateResponse,
   BandwidthSchedulesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a BandwidthSchedules. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/containers.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/containers.ts
index 44b012cd9bbe..1337630f4fb7 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/containers.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/containers.ts
@@ -17,7 +17,7 @@ import {
   ContainersCreateOrUpdateResponse,
   ContainersDeleteOptionalParams,
   ContainersRefreshOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Containers. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/devices.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/devices.ts
index 5b927c4f36c3..3eb3c1bd4e01 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/devices.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/devices.ts
@@ -34,7 +34,7 @@ import {
   UploadCertificateRequest,
   DevicesUploadCertificateOptionalParams,
   DevicesUploadCertificateResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Devices. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/index.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/index.ts
index 6b621283bca4..f9b12523e3c3 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/index.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/index.ts
@@ -6,19 +6,19 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./operations";
-export * from "./devices";
-export * from "./alerts";
-export * from "./bandwidthSchedules";
-export * from "./jobs";
-export * from "./nodes";
-export * from "./operationsStatus";
-export * from "./orders";
-export * from "./roles";
-export * from "./shares";
-export * from "./storageAccountCredentials";
-export * from "./storageAccounts";
-export * from "./containers";
-export * from "./triggers";
-export * from "./users";
-export * from "./skus";
+export * from "./operations.js";
+export * from "./devices.js";
+export * from "./alerts.js";
+export * from "./bandwidthSchedules.js";
+export * from "./jobs.js";
+export * from "./nodes.js";
+export * from "./operationsStatus.js";
+export * from "./orders.js";
+export * from "./roles.js";
+export * from "./shares.js";
+export * from "./storageAccountCredentials.js";
+export * from "./storageAccounts.js";
+export * from "./containers.js";
+export * from "./triggers.js";
+export * from "./users.js";
+export * from "./skus.js";
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/jobs.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/jobs.ts
index c10701318380..c9efe6162eac 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/jobs.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/jobs.ts
@@ -6,7 +6,7 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { JobsGetOptionalParams, JobsGetResponse } from "../models";
+import { JobsGetOptionalParams, JobsGetResponse } from "../models/index.js";
 
 /** Interface representing a Jobs. */
 export interface Jobs {
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/nodes.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/nodes.ts
index cfa552ffeed8..03a86d797242 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/nodes.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/nodes.ts
@@ -7,7 +7,7 @@
  */
 
 import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Node, NodesListByDataBoxEdgeDeviceOptionalParams } from "../models";
+import { Node, NodesListByDataBoxEdgeDeviceOptionalParams } from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Nodes. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operations.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operations.ts
index f528bd71d702..a0d85631da4b 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operations.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/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";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Operations. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operationsStatus.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operationsStatus.ts
index 001e719a50a3..efffe58f49ef 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operationsStatus.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/operationsStatus.ts
@@ -9,7 +9,7 @@
 import {
   OperationsStatusGetOptionalParams,
   OperationsStatusGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a OperationsStatus. */
 export interface OperationsStatus {
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/orders.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/orders.ts
index fc82e8811f80..620e65250124 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/orders.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/orders.ts
@@ -16,7 +16,7 @@ import {
   OrdersCreateOrUpdateOptionalParams,
   OrdersCreateOrUpdateResponse,
   OrdersDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Orders. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/roles.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/roles.ts
index 71a4698e81f9..03f1e04f7b7b 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/roles.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/roles.ts
@@ -16,7 +16,7 @@ import {
   RolesCreateOrUpdateOptionalParams,
   RolesCreateOrUpdateResponse,
   RolesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Roles. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/shares.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/shares.ts
index da6ff331ebc6..b8e29d2d6305 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/shares.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/shares.ts
@@ -17,7 +17,7 @@ import {
   SharesCreateOrUpdateResponse,
   SharesDeleteOptionalParams,
   SharesRefreshOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Shares. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/skus.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/skus.ts
index 00d1b61fb5c1..7f372ee21c95 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/skus.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/skus.ts
@@ -7,7 +7,7 @@
  */
 
 import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { ResourceTypeSku, SkusListOptionalParams } from "../models";
+import { ResourceTypeSku, SkusListOptionalParams } from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Skus. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccountCredentials.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccountCredentials.ts
index c5705ff6bc6a..81dfc6f0df23 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccountCredentials.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccountCredentials.ts
@@ -16,7 +16,7 @@ import {
   StorageAccountCredentialsCreateOrUpdateOptionalParams,
   StorageAccountCredentialsCreateOrUpdateResponse,
   StorageAccountCredentialsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a StorageAccountCredentials. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccounts.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccounts.ts
index 9c914d42cd22..71475d17afea 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccounts.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/storageAccounts.ts
@@ -16,7 +16,7 @@ import {
   StorageAccountsCreateOrUpdateOptionalParams,
   StorageAccountsCreateOrUpdateResponse,
   StorageAccountsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a StorageAccounts. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/triggers.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/triggers.ts
index b7c138aabc8a..581b1aa18602 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/triggers.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/triggers.ts
@@ -16,7 +16,7 @@ import {
   TriggersCreateOrUpdateOptionalParams,
   TriggersCreateOrUpdateResponse,
   TriggersDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Triggers. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/users.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/users.ts
index 648d6e49d850..1cd31eb87ab5 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/users.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/src/operationsInterfaces/users.ts
@@ -16,7 +16,7 @@ import {
   UsersCreateOrUpdateOptionalParams,
   UsersCreateOrUpdateResponse,
   UsersDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Users. */
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
index 8ff7deb0acbe..f0d6ea6885e4 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.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<string, string> = {
   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 e0f200a64a5b0ba6372d405d6fedc370a8f99bea Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:17 +0800
Subject: [PATCH 29/61] Migration: Apply codemod: "fixTestingImports"

---
 .../test/sampleTest.spec.ts                                      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
index f0d6ea6885e4..2a396bab6996 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/test/sampleTest.spec.ts
@@ -9,6 +9,7 @@
 import {
   Recorder,
   RecorderStartOptions} from "@azure-tools/test-recorder";
+import { describe, it, beforeEach, afterEach } from "vitest";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",

From 12c0456dbce069cd75e6f3bb07c6b4b4db8b68ed Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:18 +0800
Subject: [PATCH 30/61] Migration: Apply codemod: "replaceAssertIsRejected"


From 8fd0757b08d133fb6d260026d000d69c9aa3e0d7 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:19 +0800
Subject: [PATCH 31/61] Migration: Apply codemod: "replaceSinonStub"


From 4c0b43c19852ec5424f478234a7955a964398da0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:20 +0800
Subject: [PATCH 32/61] Migration: Apply codemod: "addViHelper"


From 80c2fa094ad8a37a9fdba9aa1f3002e6092c9532 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:21 +0800
Subject: [PATCH 33/61] Migration: Apply codemod: "replaceSupportTracing"


From fb6d5a7ec5c8ff553ff8b77129afcbacd2ce9b5b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:22 +0800
Subject: [PATCH 34/61] Migration: Apply codemod: "replaceTestUtils"


From 32b887a7b7d10689457a679431a8b77766aa35fc Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:30:24 +0800
Subject: [PATCH 35/61] Migration: rushx format


From fe21b5c66bdf9947ee6cb6ddbac8ca604af3dc93 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:33:51 +0800
Subject: [PATCH 36/61] update

---
 common/config/rush/pnpm-lock.yaml             | 36 ++++++++++++-------
 .../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 01fc34df22ea..d7fd0a4b9b30 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -258,7 +258,7 @@ importers:
         version: file:projects/arm-databoxedge.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid':
         specifier: file:./projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz
-        version: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz
+        version: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databricks':
         specifier: file:./projects/arm-databricks.tgz
         version: file:projects/arm-databricks.tgz
@@ -2811,7 +2811,7 @@ packages:
     version: 0.0.0
 
   '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid@file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz':
-    resolution: {integrity: sha512-iVPfzvH6auDBZyP+jZycwyaPgTxbIFnkaApwiABQa2eCHmO2TnI97+fyijpmD6e/RVTGUxQZ1opmJ0y7SZAB8Q==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz}
+    resolution: {integrity: sha512-8cZOWTTIvGGP92MXb7W3bvpo9OP0ZH/fz5hiuyHc6Uj+oTwz5Eh77yHxf8FikXF2WTscebw1d0Ec7BgBgxRVaQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz}
     version: 0.0.0
 
   '@rush-temp/arm-databoxedge@file:projects/arm-databoxedge.tgz':
@@ -11790,25 +11790,37 @@ snapshots:
       - vite
       - webdriverio
 
-  '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid@file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz':
+  '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid@file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68
-      chai: 4.5.0
+      '@vitest/browser': 2.1.8(@types/node@18.19.68)(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.0.2
-      ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
+      playwright: 1.49.1
       tslib: 2.8.1
       typescript: 5.7.2
+      vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
     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-databoxedge@file:projects/arm-databoxedge.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))':
     dependencies:
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
index a7660a8a25d7..d9dbfe933213 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/package.json
@@ -24,9 +24,9 @@
     "isomorphic"
   ],
   "license": "MIT",
-  "main": "./dist/index.js",
-  "module": "./dist-esm/src/index.js",
-  "types": "./types/arm-databoxedge-profile-2020-09-01-hybrid.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 e2f14c256666231ff55e9600b635379d78011f7c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:00 +0800
Subject: [PATCH 37/61] Migration: Update package.json, tsconfig.json, and
 api-extractor.json

---
 .../arm-databricks/api-extractor.json         |  6 +-
 sdk/databricks/arm-databricks/package.json    | 61 +++++++++++--------
 ...xamples.ts => databricks_examples.spec.ts} |  0
 sdk/databricks/arm-databricks/tsconfig.json   | 40 +++---------
 .../arm-databricks/tsconfig.samples.json      | 10 +++
 .../arm-databricks/tsconfig.src.json          |  3 +
 .../arm-databricks/tsconfig.test.json         |  6 ++
 7 files changed, 67 insertions(+), 59 deletions(-)
 rename sdk/databricks/arm-databricks/test/{databricks_examples.ts => databricks_examples.spec.ts} (100%)
 create mode 100644 sdk/databricks/arm-databricks/tsconfig.samples.json
 create mode 100644 sdk/databricks/arm-databricks/tsconfig.src.json
 create mode 100644 sdk/databricks/arm-databricks/tsconfig.test.json

diff --git a/sdk/databricks/arm-databricks/api-extractor.json b/sdk/databricks/arm-databricks/api-extractor.json
index 16f30e4dadf5..bc5fe4a36088 100644
--- a/sdk/databricks/arm-databricks/api-extractor.json
+++ b/sdk/databricks/arm-databricks/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-databricks.d.ts"
+    "publicTrimmedFilePath": "dist/arm-databricks.d.ts"
   },
   "messages": {
     "tsdocMessageReporting": {
@@ -28,4 +28,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/sdk/databricks/arm-databricks/package.json b/sdk/databricks/arm-databricks/package.json
index 6e9896df6a75..6ecc4696d72f 100644
--- a/sdk/databricks/arm-databricks/package.json
+++ b/sdk/databricks/arm-databricks/package.json
@@ -28,18 +28,18 @@
   "module": "./dist-esm/src/index.js",
   "types": "./types/arm-databricks.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",
@@ -87,8 +77,8 @@
     "test:browser": "echo skipped",
     "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+    "unit-test:node": "dev-tool run test:vitest",
     "update-snippets": "echo skipped"
   },
   "sideEffects": false,
@@ -109,5 +99,24 @@
     ],
     "disableDocsMs": true,
     "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-databricks?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/databricks/arm-databricks/test/databricks_examples.ts b/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
similarity index 100%
rename from sdk/databricks/arm-databricks/test/databricks_examples.ts
rename to sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
diff --git a/sdk/databricks/arm-databricks/tsconfig.json b/sdk/databricks/arm-databricks/tsconfig.json
index 5fd6e776dd67..19ceb382b521 100644
--- a/sdk/databricks/arm-databricks/tsconfig.json
+++ b/sdk/databricks/arm-databricks/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-databricks": [
-        "./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/databricks/arm-databricks/tsconfig.samples.json b/sdk/databricks/arm-databricks/tsconfig.samples.json
new file mode 100644
index 000000000000..133f388df8eb
--- /dev/null
+++ b/sdk/databricks/arm-databricks/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+  "extends": "../../../tsconfig.samples.base.json",
+  "compilerOptions": {
+    "paths": {
+      "@azure/arm-databricks": [
+        "./dist/esm"
+      ]
+    }
+  }
+}
diff --git a/sdk/databricks/arm-databricks/tsconfig.src.json b/sdk/databricks/arm-databricks/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/databricks/arm-databricks/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+  "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/databricks/arm-databricks/tsconfig.test.json b/sdk/databricks/arm-databricks/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/databricks/arm-databricks/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+  "extends": [
+    "./tsconfig.src.json",
+    "../../../tsconfig.test.base.json"
+  ]
+}

From 4575515a859b0477f4ce860d203500b56bb899cb Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:00 +0800
Subject: [PATCH 38/61] Migration: Update test config

---
 .../arm-databricks/tsconfig.browser.config.json | 17 +++++++++++++++++
 .../arm-databricks/vitest.browser.config.ts     | 17 +++++++++++++++++
 sdk/databricks/arm-databricks/vitest.config.ts  |  7 +++++++
 .../arm-databricks/vitest.esm.config.ts         | 12 ++++++++++++
 4 files changed, 53 insertions(+)
 create mode 100644 sdk/databricks/arm-databricks/tsconfig.browser.config.json
 create mode 100644 sdk/databricks/arm-databricks/vitest.browser.config.ts
 create mode 100644 sdk/databricks/arm-databricks/vitest.config.ts
 create mode 100644 sdk/databricks/arm-databricks/vitest.esm.config.ts

diff --git a/sdk/databricks/arm-databricks/tsconfig.browser.config.json b/sdk/databricks/arm-databricks/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/databricks/arm-databricks/tsconfig.browser.config.json
@@ -0,0 +1,17 @@
+{
+  "extends": "./.tshy/build.json",
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.mts",
+    "./test/**/*.spec.ts",
+    "./test/**/*.mts"
+  ],
+  "exclude": [
+    "./test/**/node/**/*.ts"
+  ],
+  "compilerOptions": {
+    "outDir": "./dist-test/browser",
+    "rootDir": ".",
+    "skipLibCheck": true
+  }
+}
diff --git a/sdk/databricks/arm-databricks/vitest.browser.config.ts b/sdk/databricks/arm-databricks/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/databricks/arm-databricks/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",
+      ],
+    },
+  }),
+);
diff --git a/sdk/databricks/arm-databricks/vitest.config.ts b/sdk/databricks/arm-databricks/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/databricks/arm-databricks/vitest.config.ts
@@ -0,0 +1,7 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default viteConfig;
diff --git a/sdk/databricks/arm-databricks/vitest.esm.config.ts b/sdk/databricks/arm-databricks/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/databricks/arm-databricks/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 3ccc2730c9821f5a20008a9b12952b1557a80954 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:01 +0800
Subject: [PATCH 39/61] Migration: Clean up files


From ae6fc72d323fa75d32cd33497ace0e60d06d657f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:16 +0800
Subject: [PATCH 40/61] Migration: Apply codemod: "fixSourceFile"

---
 .../accessConnectorsCreateOrUpdateSample.ts        |  4 +---
 .../samples-dev/accessConnectorsDeleteSample.ts    |  4 +---
 .../samples-dev/accessConnectorsGetSample.ts       |  4 +---
 .../accessConnectorsListByResourceGroupSample.ts   |  4 +---
 .../accessConnectorsListBySubscriptionSample.ts    |  4 +---
 .../samples-dev/accessConnectorsUpdateSample.ts    |  4 +---
 .../samples-dev/operationsListSample.ts            |  4 +---
 ...tboundNetworkDependenciesEndpointsListSample.ts |  4 +---
 .../privateEndpointConnectionsCreateSample.ts      |  4 +---
 .../privateEndpointConnectionsDeleteSample.ts      |  4 +---
 .../privateEndpointConnectionsGetSample.ts         |  4 +---
 .../privateEndpointConnectionsListSample.ts        |  4 +---
 .../samples-dev/privateLinkResourcesGetSample.ts   |  4 +---
 .../samples-dev/privateLinkResourcesListSample.ts  |  4 +---
 .../samples-dev/vNetPeeringCreateOrUpdateSample.ts |  4 +---
 .../samples-dev/vNetPeeringDeleteSample.ts         |  4 +---
 .../samples-dev/vNetPeeringGetSample.ts            |  4 +---
 .../vNetPeeringListByWorkspaceSample.ts            |  4 +---
 .../samples-dev/workspacesCreateOrUpdateSample.ts  |  4 +---
 .../samples-dev/workspacesDeleteSample.ts          |  4 +---
 .../samples-dev/workspacesGetSample.ts             |  4 +---
 .../workspacesListByResourceGroupSample.ts         |  4 +---
 .../workspacesListBySubscriptionSample.ts          |  4 +---
 .../samples-dev/workspacesUpdateSample.ts          |  4 +---
 .../src/accessConnectorsCreateOrUpdateSample.ts    |  4 +---
 .../typescript/src/accessConnectorsDeleteSample.ts |  4 +---
 .../v3/typescript/src/accessConnectorsGetSample.ts |  4 +---
 .../accessConnectorsListByResourceGroupSample.ts   |  4 +---
 .../accessConnectorsListBySubscriptionSample.ts    |  4 +---
 .../typescript/src/accessConnectorsUpdateSample.ts |  4 +---
 .../v3/typescript/src/operationsListSample.ts      |  4 +---
 ...tboundNetworkDependenciesEndpointsListSample.ts |  4 +---
 .../src/privateEndpointConnectionsCreateSample.ts  |  4 +---
 .../src/privateEndpointConnectionsDeleteSample.ts  |  4 +---
 .../src/privateEndpointConnectionsGetSample.ts     |  4 +---
 .../src/privateEndpointConnectionsListSample.ts    |  4 +---
 .../src/privateLinkResourcesGetSample.ts           |  4 +---
 .../src/privateLinkResourcesListSample.ts          |  4 +---
 .../src/vNetPeeringCreateOrUpdateSample.ts         |  4 +---
 .../v3/typescript/src/vNetPeeringDeleteSample.ts   |  4 +---
 .../v3/typescript/src/vNetPeeringGetSample.ts      |  4 +---
 .../src/vNetPeeringListByWorkspaceSample.ts        |  4 +---
 .../src/workspacesCreateOrUpdateSample.ts          |  4 +---
 .../v3/typescript/src/workspacesDeleteSample.ts    |  4 +---
 .../v3/typescript/src/workspacesGetSample.ts       |  4 +---
 .../src/workspacesListByResourceGroupSample.ts     |  4 +---
 .../src/workspacesListBySubscriptionSample.ts      |  4 +---
 .../v3/typescript/src/workspacesUpdateSample.ts    |  4 +---
 .../src/azureDatabricksManagementClient.ts         |  6 +++---
 sdk/databricks/arm-databricks/src/index.ts         |  8 ++++----
 .../arm-databricks/src/models/parameters.ts        |  2 +-
 .../src/operations/accessConnectors.ts             | 14 +++++++-------
 .../arm-databricks/src/operations/index.ts         | 14 +++++++-------
 .../arm-databricks/src/operations/operations.ts    | 12 ++++++------
 .../outboundNetworkDependenciesEndpoints.ts        | 10 +++++-----
 .../src/operations/privateEndpointConnections.ts   | 14 +++++++-------
 .../src/operations/privateLinkResources.ts         | 12 ++++++------
 .../arm-databricks/src/operations/vNetPeering.ts   | 14 +++++++-------
 .../arm-databricks/src/operations/workspaces.ts    | 14 +++++++-------
 .../src/operationsInterfaces/accessConnectors.ts   |  2 +-
 .../src/operationsInterfaces/index.ts              | 14 +++++++-------
 .../src/operationsInterfaces/operations.ts         |  2 +-
 .../outboundNetworkDependenciesEndpoints.ts        |  2 +-
 .../privateEndpointConnections.ts                  |  2 +-
 .../operationsInterfaces/privateLinkResources.ts   |  2 +-
 .../src/operationsInterfaces/vNetPeering.ts        |  2 +-
 .../src/operationsInterfaces/workspaces.ts         |  2 +-
 .../test/databricks_examples.spec.ts               |  9 +++------
 68 files changed, 125 insertions(+), 224 deletions(-)

diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsCreateOrUpdateSample.ts
index 3978d52f2dd5..a4e101ba981f 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsDeleteSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsDeleteSample.ts
index 379732b55e39..178eb36d9c23 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsGetSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsGetSample.ts
index b60032c6a225..14c77ad7be34 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets an azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListByResourceGroupSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListByResourceGroupSample.ts
index 8db387e5f032..7040e608cf42 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListByResourceGroupSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the azure databricks accessConnectors within a resource group.
diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListBySubscriptionSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListBySubscriptionSample.ts
index e29da3de2f34..9a64e06a39f9 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListBySubscriptionSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the azure databricks accessConnectors within a subscription.
diff --git a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsUpdateSample.ts b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsUpdateSample.ts
index 0127b667f179..8cda99c1a702 100644
--- a/sdk/databricks/arm-databricks/samples-dev/accessConnectorsUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/accessConnectorsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates an azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples-dev/operationsListSample.ts b/sdk/databricks/arm-databricks/samples-dev/operationsListSample.ts
index ae718023f2b9..2508046d5619 100644
--- a/sdk/databricks/arm-databricks/samples-dev/operationsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 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 RP operations.
diff --git a/sdk/databricks/arm-databricks/samples-dev/outboundNetworkDependenciesEndpointsListSample.ts b/sdk/databricks/arm-databricks/samples-dev/outboundNetworkDependenciesEndpointsListSample.ts
index a1bebee04dd6..cde4d56fa2c0 100644
--- a/sdk/databricks/arm-databricks/samples-dev/outboundNetworkDependenciesEndpointsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/outboundNetworkDependenciesEndpointsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You must configure outbound access with these endpoints. For more information, see https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsCreateSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsCreateSample.ts
index 46bf6a29b162..7e9e3c0fc467 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsCreateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsCreateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Update the status of a private endpoint connection with the specified name
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsDeleteSample.ts
index 55e1be162aae..47fb0293469b 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Remove private endpoint connection with the specified name
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsGetSample.ts
index df3496a0bd82..1f48a19a2b68 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 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 properties for a workspace
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsListSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsListSample.ts
index d3ff9d5c8986..8b3e0986f701 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateEndpointConnectionsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List private endpoint connections of the workspace
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesGetSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesGetSample.ts
index 4152adf74813..53cc3bfa18d3 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Get the specified private link resource for the given group id (sub-resource)
diff --git a/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesListSample.ts b/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesListSample.ts
index 82c8d9079308..69bdbdf90f52 100644
--- a/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesListSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/privateLinkResourcesListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List private link resources for a given workspace
diff --git a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringCreateOrUpdateSample.ts
index 152304af28b9..e31a7e5c6ef2 100644
--- a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates vNet Peering for workspace.
diff --git a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringDeleteSample.ts b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringDeleteSample.ts
index bf633e59481d..c3c6c82d2a84 100644
--- a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the workspace vNetPeering.
diff --git a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringGetSample.ts b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringGetSample.ts
index 366acf057f9b..bd2db87064fa 100644
--- a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the workspace vNet Peering.
diff --git a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringListByWorkspaceSample.ts b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringListByWorkspaceSample.ts
index 647a5e2f768d..5ff7add93361 100644
--- a/sdk/databricks/arm-databricks/samples-dev/vNetPeeringListByWorkspaceSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/vNetPeeringListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists the workspace vNet Peerings.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesCreateOrUpdateSample.ts
index ba8ae394cd35..ef899b126145 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new workspace.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesDeleteSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesDeleteSample.ts
index e1d92045e2d9..5a6afad43d3e 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the workspace.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesGetSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesGetSample.ts
index 6e155e086e5a..b23436e3fd33 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the workspace.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesListByResourceGroupSample.ts
index cdf31440851b..7ad7d94fd166 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesListByResourceGroupSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the workspaces within a resource group.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesListBySubscriptionSample.ts
index e7a5bde723f4..c6ab3ff9b57e 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesListBySubscriptionSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the workspaces within a subscription.
diff --git a/sdk/databricks/arm-databricks/samples-dev/workspacesUpdateSample.ts b/sdk/databricks/arm-databricks/samples-dev/workspacesUpdateSample.ts
index 683f19f70615..d9f2f32be8af 100644
--- a/sdk/databricks/arm-databricks/samples-dev/workspacesUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples-dev/workspacesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates a workspace.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsCreateOrUpdateSample.ts
index 3978d52f2dd5..a4e101ba981f 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates or updates azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsDeleteSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsDeleteSample.ts
index 379732b55e39..178eb36d9c23 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsGetSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsGetSample.ts
index b60032c6a225..14c77ad7be34 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets an azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListByResourceGroupSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListByResourceGroupSample.ts
index 8db387e5f032..7040e608cf42 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListByResourceGroupSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the azure databricks accessConnectors within a resource group.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListBySubscriptionSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListBySubscriptionSample.ts
index e29da3de2f34..9a64e06a39f9 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListBySubscriptionSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the azure databricks accessConnectors within a subscription.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsUpdateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsUpdateSample.ts
index 0127b667f179..8cda99c1a702 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/accessConnectorsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates an azure databricks accessConnector.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/operationsListSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/operationsListSample.ts
index ae718023f2b9..2508046d5619 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/operationsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 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 RP operations.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/outboundNetworkDependenciesEndpointsListSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/outboundNetworkDependenciesEndpointsListSample.ts
index a1bebee04dd6..cde4d56fa2c0 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/outboundNetworkDependenciesEndpointsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/outboundNetworkDependenciesEndpointsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the list of endpoints that VNET Injected Workspace calls Azure Databricks Control Plane. You must configure outbound access with these endpoints. For more information, see https://docs.microsoft.com/azure/databricks/administration-guide/cloud-configurations/azure/udr
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsCreateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsCreateSample.ts
index 46bf6a29b162..7e9e3c0fc467 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsCreateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsCreateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Update the status of a private endpoint connection with the specified name
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts
index 55e1be162aae..47fb0293469b 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Remove private endpoint connection with the specified name
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts
index df3496a0bd82..1f48a19a2b68 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 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 properties for a workspace
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts
index d3ff9d5c8986..8b3e0986f701 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateEndpointConnectionsListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List private endpoint connections of the workspace
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesGetSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesGetSample.ts
index 4152adf74813..53cc3bfa18d3 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Get the specified private link resource for the given group id (sub-resource)
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesListSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesListSample.ts
index 82c8d9079308..69bdbdf90f52 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesListSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/privateLinkResourcesListSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to List private link resources for a given workspace
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringCreateOrUpdateSample.ts
index 152304af28b9..e31a7e5c6ef2 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates vNet Peering for workspace.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringDeleteSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringDeleteSample.ts
index bf633e59481d..c3c6c82d2a84 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the workspace vNetPeering.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringGetSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringGetSample.ts
index 366acf057f9b..bd2db87064fa 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the workspace vNet Peering.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringListByWorkspaceSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringListByWorkspaceSample.ts
index 647a5e2f768d..5ff7add93361 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringListByWorkspaceSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/vNetPeeringListByWorkspaceSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Lists the workspace vNet Peerings.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts
index ba8ae394cd35..ef899b126145 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Creates a new workspace.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesDeleteSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesDeleteSample.ts
index e1d92045e2d9..5a6afad43d3e 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesDeleteSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesDeleteSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Deletes the workspace.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesGetSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesGetSample.ts
index 6e155e086e5a..b23436e3fd33 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesGetSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesGetSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets the workspace.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts
index cdf31440851b..7ad7d94fd166 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the workspaces within a resource group.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts
index e7a5bde723f4..c6ab3ff9b57e 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
 // Licensed under the MIT License.
 import { AzureDatabricksManagementClient } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Gets all the workspaces within a subscription.
diff --git a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesUpdateSample.ts b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesUpdateSample.ts
index 683f19f70615..d9f2f32be8af 100644
--- a/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesUpdateSample.ts
+++ b/sdk/databricks/arm-databricks/samples/v3/typescript/src/workspacesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
   AzureDatabricksManagementClient
 } from "@azure/arm-databricks";
 import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
 
 /**
  * This sample demonstrates how to Updates a workspace.
diff --git a/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts
index 4b99646a76d4..f55452672fcf 100644
--- a/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts
+++ b/sdk/databricks/arm-databricks/src/azureDatabricksManagementClient.ts
@@ -17,7 +17,7 @@ import {
   OutboundNetworkDependenciesEndpointsImpl,
   VNetPeeringImpl,
   AccessConnectorsImpl
-} from "./operations";
+} from "./operations/index.js";
 import {
   Workspaces,
   Operations,
@@ -26,8 +26,8 @@ import {
   OutboundNetworkDependenciesEndpoints,
   VNetPeering,
   AccessConnectors
-} from "./operationsInterfaces";
-import { AzureDatabricksManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AzureDatabricksManagementClientOptionalParams } from "./models/index.js";
 
 export class AzureDatabricksManagementClient extends coreClient.ServiceClient {
   $host: string;
diff --git a/sdk/databricks/arm-databricks/src/index.ts b/sdk/databricks/arm-databricks/src/index.ts
index 874fc88fd039..600114b4054a 100644
--- a/sdk/databricks/arm-databricks/src/index.ts
+++ b/sdk/databricks/arm-databricks/src/index.ts
@@ -7,7 +7,7 @@
  */
 
 /// <reference lib="esnext.asynciterable" />
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AzureDatabricksManagementClient } from "./azureDatabricksManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AzureDatabricksManagementClient } from "./azureDatabricksManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/databricks/arm-databricks/src/models/parameters.ts b/sdk/databricks/arm-databricks/src/models/parameters.ts
index ae2b9f37381f..52aa04e76a7d 100644
--- a/sdk/databricks/arm-databricks/src/models/parameters.ts
+++ b/sdk/databricks/arm-databricks/src/models/parameters.ts
@@ -18,7 +18,7 @@ import {
   VirtualNetworkPeering as VirtualNetworkPeeringMapper,
   AccessConnector as AccessConnectorMapper,
   AccessConnectorUpdate as AccessConnectorUpdateMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
 
 export const accept: OperationParameter = {
   parameterPath: "accept",
diff --git a/sdk/databricks/arm-databricks/src/operations/accessConnectors.ts b/sdk/databricks/arm-databricks/src/operations/accessConnectors.ts
index 319c692438a3..ece102523927 100644
--- a/sdk/databricks/arm-databricks/src/operations/accessConnectors.ts
+++ b/sdk/databricks/arm-databricks/src/operations/accessConnectors.ts
@@ -7,18 +7,18 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AccessConnectors } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AccessConnectors } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   SimplePollerLike,
   OperationState,
   createHttpPoller
 } from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
 import {
   AccessConnector,
   AccessConnectorsListByResourceGroupNextOptionalParams,
@@ -37,7 +37,7 @@ import {
   AccessConnectorsUpdateResponse,
   AccessConnectorsListByResourceGroupNextResponse,
   AccessConnectorsListBySubscriptionNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing AccessConnectors operations. */
diff --git a/sdk/databricks/arm-databricks/src/operations/index.ts b/sdk/databricks/arm-databricks/src/operations/index.ts
index e39d4223a898..c8fece30737b 100644
--- a/sdk/databricks/arm-databricks/src/operations/index.ts
+++ b/sdk/databricks/arm-databricks/src/operations/index.ts
@@ -6,10 +6,10 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./workspaces";
-export * from "./operations";
-export * from "./privateLinkResources";
-export * from "./privateEndpointConnections";
-export * from "./outboundNetworkDependenciesEndpoints";
-export * from "./vNetPeering";
-export * from "./accessConnectors";
+export * from "./workspaces.js";
+export * from "./operations.js";
+export * from "./privateLinkResources.js";
+export * from "./privateEndpointConnections.js";
+export * from "./outboundNetworkDependenciesEndpoints.js";
+export * from "./vNetPeering.js";
+export * from "./accessConnectors.js";
diff --git a/sdk/databricks/arm-databricks/src/operations/operations.ts b/sdk/databricks/arm-databricks/src/operations/operations.ts
index cf34015163c0..58d88d923221 100644
--- a/sdk/databricks/arm-databricks/src/operations/operations.ts
+++ b/sdk/databricks/arm-databricks/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 { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   Operation,
   OperationsListNextOptionalParams,
   OperationsListOptionalParams,
   OperationsListResponse,
   OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Operations operations. */
diff --git a/sdk/databricks/arm-databricks/src/operations/outboundNetworkDependenciesEndpoints.ts b/sdk/databricks/arm-databricks/src/operations/outboundNetworkDependenciesEndpoints.ts
index 3a67adec5252..0cad7356c397 100644
--- a/sdk/databricks/arm-databricks/src/operations/outboundNetworkDependenciesEndpoints.ts
+++ b/sdk/databricks/arm-databricks/src/operations/outboundNetworkDependenciesEndpoints.ts
@@ -6,15 +6,15 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { OutboundNetworkDependenciesEndpoints } from "../operationsInterfaces";
+import { OutboundNetworkDependenciesEndpoints } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   OutboundNetworkDependenciesEndpointsListOptionalParams,
   OutboundNetworkDependenciesEndpointsListResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing OutboundNetworkDependenciesEndpoints operations. */
 export class OutboundNetworkDependenciesEndpointsImpl
diff --git a/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts b/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts
index 40d6be52b45f..5d65fcdcc89e 100644
--- a/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts
+++ b/sdk/databricks/arm-databricks/src/operations/privateEndpointConnections.ts
@@ -7,18 +7,18 @@
  */
 
 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 { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   SimplePollerLike,
   OperationState,
   createHttpPoller
 } from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
 import {
   PrivateEndpointConnection,
   PrivateEndpointConnectionsListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
   PrivateEndpointConnectionsCreateResponse,
   PrivateEndpointConnectionsDeleteOptionalParams,
   PrivateEndpointConnectionsListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing PrivateEndpointConnections operations. */
diff --git a/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts b/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts
index a5bb1e3019ae..c1ce041d03e0 100644
--- a/sdk/databricks/arm-databricks/src/operations/privateLinkResources.ts
+++ b/sdk/databricks/arm-databricks/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 { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   GroupIdInformation,
   PrivateLinkResourcesListNextOptionalParams,
@@ -21,7 +21,7 @@ import {
   PrivateLinkResourcesGetOptionalParams,
   PrivateLinkResourcesGetResponse,
   PrivateLinkResourcesListNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing PrivateLinkResources operations. */
diff --git a/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts b/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts
index f70b4236d6f7..f0760110c7cf 100644
--- a/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts
+++ b/sdk/databricks/arm-databricks/src/operations/vNetPeering.ts
@@ -7,18 +7,18 @@
  */
 
 import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { VNetPeering } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { VNetPeering } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   SimplePollerLike,
   OperationState,
   createHttpPoller
 } from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
 import {
   VirtualNetworkPeering,
   VNetPeeringListByWorkspaceNextOptionalParams,
@@ -30,7 +30,7 @@ import {
   VNetPeeringCreateOrUpdateOptionalParams,
   VNetPeeringCreateOrUpdateResponse,
   VNetPeeringListByWorkspaceNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing VNetPeering operations. */
diff --git a/sdk/databricks/arm-databricks/src/operations/workspaces.ts b/sdk/databricks/arm-databricks/src/operations/workspaces.ts
index cef0344cf644..f2b52fa5ea99 100644
--- a/sdk/databricks/arm-databricks/src/operations/workspaces.ts
+++ b/sdk/databricks/arm-databricks/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 { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureDatabricksManagementClient } from "../azureDatabricksManagementClient.js";
 import {
   SimplePollerLike,
   OperationState,
   createHttpPoller
 } from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
 import {
   Workspace,
   WorkspacesListByResourceGroupNextOptionalParams,
@@ -37,7 +37,7 @@ import {
   WorkspacesUpdateResponse,
   WorkspacesListByResourceGroupNextResponse,
   WorkspacesListBySubscriptionNextResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Class containing Workspaces operations. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/accessConnectors.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/accessConnectors.ts
index 97a719b4dba0..237dd252d2cd 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/accessConnectors.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/accessConnectors.ts
@@ -20,7 +20,7 @@ import {
   AccessConnectorUpdate,
   AccessConnectorsUpdateOptionalParams,
   AccessConnectorsUpdateResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a AccessConnectors. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/index.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/index.ts
index e39d4223a898..c8fece30737b 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/index.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/index.ts
@@ -6,10 +6,10 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./workspaces";
-export * from "./operations";
-export * from "./privateLinkResources";
-export * from "./privateEndpointConnections";
-export * from "./outboundNetworkDependenciesEndpoints";
-export * from "./vNetPeering";
-export * from "./accessConnectors";
+export * from "./workspaces.js";
+export * from "./operations.js";
+export * from "./privateLinkResources.js";
+export * from "./privateEndpointConnections.js";
+export * from "./outboundNetworkDependenciesEndpoints.js";
+export * from "./vNetPeering.js";
+export * from "./accessConnectors.js";
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/operations.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/operations.ts
index 98b9e7f3541c..61da52cb5db1 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/operations.ts
+++ b/sdk/databricks/arm-databricks/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";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Operations. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts
index feb11cc09dd1..e169ae28c3f9 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts
@@ -9,7 +9,7 @@
 import {
   OutboundNetworkDependenciesEndpointsListOptionalParams,
   OutboundNetworkDependenciesEndpointsListResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a OutboundNetworkDependenciesEndpoints. */
 export interface OutboundNetworkDependenciesEndpoints {
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/privateEndpointConnections.ts
index 8cebe94f5555..b75c6521dcba 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/privateEndpointConnections.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/privateEndpointConnections.ts
@@ -16,7 +16,7 @@ import {
   PrivateEndpointConnectionsCreateOptionalParams,
   PrivateEndpointConnectionsCreateResponse,
   PrivateEndpointConnectionsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a PrivateEndpointConnections. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/privateLinkResources.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/privateLinkResources.ts
index deeb9ba985a4..c0a6fa06ce49 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/privateLinkResources.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/privateLinkResources.ts
@@ -12,7 +12,7 @@ import {
   PrivateLinkResourcesListOptionalParams,
   PrivateLinkResourcesGetOptionalParams,
   PrivateLinkResourcesGetResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a PrivateLinkResources. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/vNetPeering.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/vNetPeering.ts
index fdecd5ce1d86..06f059057043 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/vNetPeering.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/vNetPeering.ts
@@ -16,7 +16,7 @@ import {
   VNetPeeringDeleteOptionalParams,
   VNetPeeringCreateOrUpdateOptionalParams,
   VNetPeeringCreateOrUpdateResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a VNetPeering. */
diff --git a/sdk/databricks/arm-databricks/src/operationsInterfaces/workspaces.ts b/sdk/databricks/arm-databricks/src/operationsInterfaces/workspaces.ts
index 4ea9a9904a6d..3fa29e994cd8 100644
--- a/sdk/databricks/arm-databricks/src/operationsInterfaces/workspaces.ts
+++ b/sdk/databricks/arm-databricks/src/operationsInterfaces/workspaces.ts
@@ -20,7 +20,7 @@ import {
   WorkspaceUpdate,
   WorkspacesUpdateOptionalParams,
   WorkspacesUpdateResponse
-} from "../models";
+} from "../models/index.js";
 
 /// <reference lib="esnext.asynciterable" />
 /** Interface representing a Workspaces. */
diff --git a/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts b/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
index 018824170a64..fd021895c028 100644
--- a/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
+++ b/sdk/databricks/arm-databricks/test/databricks_examples.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 { AzureDatabricksManagementClient } from "../src/azureDatabricksManagementClient";
+import { AzureDatabricksManagementClient } from "../src/azureDatabricksManagementClient.js";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",
@@ -46,8 +44,8 @@ describe("Databricks test", () => {
   let resourceGroup2: string;
   let workSpaceName: 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
@@ -92,6 +90,5 @@ describe("Databricks test", () => {
   });
 
   it("workspaces delete test", async function () {
-    const res = await client.workspaces.beginDeleteAndWait(resourceGroup, workSpaceName, testPollingOptions);
   });
 });

From 3db5ffecf463836936aed72ba714be253ff89696 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:17 +0800
Subject: [PATCH 41/61] Migration: Apply codemod: "fixTestingImports"

---
 sdk/databricks/arm-databricks/test/databricks_examples.spec.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts b/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
index fd021895c028..9d0180cecb3c 100644
--- a/sdk/databricks/arm-databricks/test/databricks_examples.spec.ts
+++ b/sdk/databricks/arm-databricks/test/databricks_examples.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 { AzureDatabricksManagementClient } from "../src/azureDatabricksManagementClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",

From bfe066f3f2ebd9a0930d8b92327c3ee0a8e29ba8 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:18 +0800
Subject: [PATCH 42/61] Migration: Apply codemod: "replaceAssertIsRejected"


From 12ba5a4e60042aa8fcac6cf4817004769df29e89 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:19 +0800
Subject: [PATCH 43/61] Migration: Apply codemod: "replaceSinonStub"


From 8eac3d1ef98969e3222bcb3e5349af526905152b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:20 +0800
Subject: [PATCH 44/61] Migration: Apply codemod: "addViHelper"


From 1701e796aefc8ecc80c15bb3c80486b5a0845e2b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:20 +0800
Subject: [PATCH 45/61] Migration: Apply codemod: "replaceSupportTracing"


From 677aab292a54a7eb808af7a94dc6a4998def016e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:30 +0800
Subject: [PATCH 46/61] Migration: Apply codemod: "replaceTestUtils"


From 0de792b926534a4ef0995e5d53cd9797e1ad25bc Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 17:35:32 +0800
Subject: [PATCH 47/61] Migration: rushx format


From 1f1b07668290e8fcf329325380c925b771908eed Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 09:58:17 +0800
Subject: [PATCH 48/61] update

---
 common/config/rush/pnpm-lock.yaml          | 36 ++++++++++++++--------
 sdk/databricks/arm-databricks/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 d7fd0a4b9b30..21506739d18e 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -261,7 +261,7 @@ importers:
         version: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-databricks':
         specifier: file:./projects/arm-databricks.tgz
-        version: file:projects/arm-databricks.tgz
+        version: file:projects/arm-databricks.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-datacatalog':
         specifier: file:./projects/arm-datacatalog.tgz
         version: file:projects/arm-datacatalog.tgz
@@ -2819,7 +2819,7 @@ packages:
     version: 0.0.0
 
   '@rush-temp/arm-databricks@file:projects/arm-databricks.tgz':
-    resolution: {integrity: sha512-HhWOdm8xW1q4F6oOggt6lhvGYPAj/V3wKX/UZv+6an1Tp00SEMSUOCeQaeyvV4Cy7mXVXrFcM8waGIS1JI8M+g==, tarball: file:projects/arm-databricks.tgz}
+    resolution: {integrity: sha512-ds9ILNw1JcrHAGifAyOHZ3p24vdYFqLp+kjdTxvfZPedSat3QGIfC/VRidrF7g5CEwcUAZ5yvGKhOP74kT1m2w==, tarball: file:projects/arm-databricks.tgz}
     version: 0.0.0
 
   '@rush-temp/arm-datacatalog@file:projects/arm-datacatalog.tgz':
@@ -11853,25 +11853,37 @@ snapshots:
       - vite
       - webdriverio
 
-  '@rush-temp/arm-databricks@file:projects/arm-databricks.tgz':
+  '@rush-temp/arm-databricks@file:projects/arm-databricks.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68
-      chai: 4.5.0
+      '@vitest/browser': 2.1.8(@types/node@18.19.68)(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.0.2
-      ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
+      playwright: 1.49.1
       tslib: 2.8.1
       typescript: 5.7.2
+      vitest: 2.1.8(@types/node@18.19.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
     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-datacatalog@file:projects/arm-datacatalog.tgz':
     dependencies:
diff --git a/sdk/databricks/arm-databricks/package.json b/sdk/databricks/arm-databricks/package.json
index 6ecc4696d72f..dd9019c44bed 100644
--- a/sdk/databricks/arm-databricks/package.json
+++ b/sdk/databricks/arm-databricks/package.json
@@ -24,9 +24,9 @@
     "isomorphic"
   ],
   "license": "MIT",
-  "main": "./dist/index.js",
-  "module": "./dist-esm/src/index.js",
-  "types": "./types/arm-databricks.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 065b3928b8e68b2ec9037ff8927153d4aee4411f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:04:51 +0800
Subject: [PATCH 49/61] Migration: Update package.json, tsconfig.json, and
 api-extractor.json

---
 .../arm-datacatalog/api-extractor.json        |  6 +-
 sdk/datacatalog/arm-datacatalog/package.json  | 61 +++++++++++--------
 .../{sampleTest.ts => sampleTest.spec.ts}     |  0
 sdk/datacatalog/arm-datacatalog/tsconfig.json | 40 +++---------
 .../arm-datacatalog/tsconfig.samples.json     | 10 +++
 .../arm-datacatalog/tsconfig.src.json         |  3 +
 .../arm-datacatalog/tsconfig.test.json        |  6 ++
 7 files changed, 67 insertions(+), 59 deletions(-)
 rename sdk/datacatalog/arm-datacatalog/test/{sampleTest.ts => sampleTest.spec.ts} (100%)
 create mode 100644 sdk/datacatalog/arm-datacatalog/tsconfig.samples.json
 create mode 100644 sdk/datacatalog/arm-datacatalog/tsconfig.src.json
 create mode 100644 sdk/datacatalog/arm-datacatalog/tsconfig.test.json

diff --git a/sdk/datacatalog/arm-datacatalog/api-extractor.json b/sdk/datacatalog/arm-datacatalog/api-extractor.json
index 3ed60df8265c..a75454951cae 100644
--- a/sdk/datacatalog/arm-datacatalog/api-extractor.json
+++ b/sdk/datacatalog/arm-datacatalog/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-datacatalog.d.ts"
+    "publicTrimmedFilePath": "dist/arm-datacatalog.d.ts"
   },
   "messages": {
     "tsdocMessageReporting": {
@@ -28,4 +28,4 @@
       }
     }
   }
-}
\ No newline at end of file
+}
diff --git a/sdk/datacatalog/arm-datacatalog/package.json b/sdk/datacatalog/arm-datacatalog/package.json
index 17d583fef7b2..c4a75b9bf8d5 100644
--- a/sdk/datacatalog/arm-datacatalog/package.json
+++ b/sdk/datacatalog/arm-datacatalog/package.json
@@ -27,17 +27,17 @@
   "module": "./dist-esm/src/index.js",
   "types": "./types/arm-datacatalog.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/datacatalog/arm-datacatalog",
   "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",
@@ -86,8 +76,8 @@
     "test:browser": "echo skipped",
     "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:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+    "unit-test:node": "dev-tool run test:vitest",
     "update-snippets": "echo skipped"
   },
   "sideEffects": false,
@@ -107,5 +97,24 @@
     ],
     "disableDocsMs": true,
     "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datacatalog?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/datacatalog/arm-datacatalog/test/sampleTest.ts b/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
similarity index 100%
rename from sdk/datacatalog/arm-datacatalog/test/sampleTest.ts
rename to sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.json b/sdk/datacatalog/arm-datacatalog/tsconfig.json
index 6d4dac2e241e..19ceb382b521 100644
--- a/sdk/datacatalog/arm-datacatalog/tsconfig.json
+++ b/sdk/datacatalog/arm-datacatalog/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-datacatalog": [
-        "./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/datacatalog/arm-datacatalog/tsconfig.samples.json b/sdk/datacatalog/arm-datacatalog/tsconfig.samples.json
new file mode 100644
index 000000000000..6535a62744dc
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+  "extends": "../../../tsconfig.samples.base.json",
+  "compilerOptions": {
+    "paths": {
+      "@azure/arm-datacatalog": [
+        "./dist/esm"
+      ]
+    }
+  }
+}
diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.src.json b/sdk/datacatalog/arm-datacatalog/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+  "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.test.json b/sdk/datacatalog/arm-datacatalog/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+  "extends": [
+    "./tsconfig.src.json",
+    "../../../tsconfig.test.base.json"
+  ]
+}

From 7c4866560f8e43783714b134dd48028ab937db5d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:04:52 +0800
Subject: [PATCH 50/61] Migration: Update test config

---
 .../tsconfig.browser.config.json                | 17 +++++++++++++++++
 .../arm-datacatalog/vitest.browser.config.ts    | 17 +++++++++++++++++
 .../arm-datacatalog/vitest.config.ts            |  7 +++++++
 .../arm-datacatalog/vitest.esm.config.ts        | 12 ++++++++++++
 4 files changed, 53 insertions(+)
 create mode 100644 sdk/datacatalog/arm-datacatalog/tsconfig.browser.config.json
 create mode 100644 sdk/datacatalog/arm-datacatalog/vitest.browser.config.ts
 create mode 100644 sdk/datacatalog/arm-datacatalog/vitest.config.ts
 create mode 100644 sdk/datacatalog/arm-datacatalog/vitest.esm.config.ts

diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.browser.config.json b/sdk/datacatalog/arm-datacatalog/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/tsconfig.browser.config.json
@@ -0,0 +1,17 @@
+{
+  "extends": "./.tshy/build.json",
+  "include": [
+    "./src/**/*.ts",
+    "./src/**/*.mts",
+    "./test/**/*.spec.ts",
+    "./test/**/*.mts"
+  ],
+  "exclude": [
+    "./test/**/node/**/*.ts"
+  ],
+  "compilerOptions": {
+    "outDir": "./dist-test/browser",
+    "rootDir": ".",
+    "skipLibCheck": true
+  }
+}
diff --git a/sdk/datacatalog/arm-datacatalog/vitest.browser.config.ts b/sdk/datacatalog/arm-datacatalog/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/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",
+      ],
+    },
+  }),
+);
diff --git a/sdk/datacatalog/arm-datacatalog/vitest.config.ts b/sdk/datacatalog/arm-datacatalog/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/vitest.config.ts
@@ -0,0 +1,7 @@
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+
+import viteConfig from "../../../vitest.shared.config.ts";
+
+export default viteConfig;
diff --git a/sdk/datacatalog/arm-datacatalog/vitest.esm.config.ts b/sdk/datacatalog/arm-datacatalog/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/datacatalog/arm-datacatalog/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 86ef361ba94ba2f7ee0885812248a816771f7e70 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:04:52 +0800
Subject: [PATCH 51/61] Migration: Clean up files


From 15261494196da50ee34425dfdf9ab0804dbbcd28 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:05 +0800
Subject: [PATCH 52/61] Migration: Apply codemod: "fixSourceFile"

---
 .../arm-datacatalog/src/dataCatalogRestClient.ts     |  6 +++---
 sdk/datacatalog/arm-datacatalog/src/index.ts         |  6 +++---
 .../arm-datacatalog/src/models/parameters.ts         |  2 +-
 .../arm-datacatalog/src/operations/aDCCatalogs.ts    | 12 ++++++------
 .../arm-datacatalog/src/operations/aDCOperations.ts  | 10 +++++-----
 .../arm-datacatalog/src/operations/index.ts          |  4 ++--
 .../src/operationsInterfaces/aDCCatalogs.ts          |  2 +-
 .../src/operationsInterfaces/aDCOperations.ts        |  2 +-
 .../src/operationsInterfaces/index.ts                |  4 ++--
 .../arm-datacatalog/test/sampleTest.spec.ts          | 10 +++-------
 10 files changed, 27 insertions(+), 31 deletions(-)

diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
index 94b5ef8889ad..adbf6b595c90 100644
--- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts
@@ -14,9 +14,9 @@ import {
   SendRequest
 } from "@azure/core-rest-pipeline";
 import * as coreAuth from "@azure/core-auth";
-import { ADCOperationsImpl, ADCCatalogsImpl } from "./operations";
-import { ADCOperations, ADCCatalogs } from "./operationsInterfaces";
-import { DataCatalogRestClientOptionalParams } from "./models";
+import { ADCOperationsImpl, ADCCatalogsImpl } from "./operations/index.js";
+import { ADCOperations, ADCCatalogs } from "./operationsInterfaces/index.js";
+import { DataCatalogRestClientOptionalParams } from "./models/index.js";
 
 export class DataCatalogRestClient extends coreClient.ServiceClient {
   $host: string;
diff --git a/sdk/datacatalog/arm-datacatalog/src/index.ts b/sdk/datacatalog/arm-datacatalog/src/index.ts
index 4c15fd0740bc..5952c4e9b999 100644
--- a/sdk/datacatalog/arm-datacatalog/src/index.ts
+++ b/sdk/datacatalog/arm-datacatalog/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 { DataCatalogRestClient } from "./dataCatalogRestClient";
-export * from "./operationsInterfaces";
+export * from "./models/index.js";
+export { DataCatalogRestClient } from "./dataCatalogRestClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
index 95865dc52feb..ab5411909bfb 100644
--- a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts
@@ -11,7 +11,7 @@ import {
   OperationURLParameter,
   OperationQueryParameter
 } from "@azure/core-client";
-import { ADCCatalog as ADCCatalogMapper } from "../models/mappers";
+import { ADCCatalog as ADCCatalogMapper } from "../models/mappers.js";
 
 export const accept: OperationParameter = {
   parameterPath: "accept",
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
index 4acd1726576b..573c3e6cbec0 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts
@@ -6,13 +6,13 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { ADCCatalogs } from "../operationsInterfaces";
+import { ADCCatalogs } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataCatalogRestClient } from "../dataCatalogRestClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataCatalogRestClient } from "../dataCatalogRestClient.js";
 import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
-import { LroImpl } from "../lroImpl";
+import { LroImpl } from "../lroImpl.js";
 import {
   ADCCatalogsListtByResourceGroupOptionalParams,
   ADCCatalogsListtByResourceGroupResponse,
@@ -24,7 +24,7 @@ import {
   ADCCatalogsDeleteOptionalParams,
   ADCCatalogsUpdateOptionalParams,
   ADCCatalogsUpdateResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing ADCCatalogs operations. */
 export class ADCCatalogsImpl implements ADCCatalogs {
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
index d27ea783852f..4dd0407fd044 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts
@@ -6,15 +6,15 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-import { ADCOperations } from "../operationsInterfaces";
+import { ADCOperations } from "../operationsInterfaces/index.js";
 import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { DataCatalogRestClient } from "../dataCatalogRestClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { DataCatalogRestClient } from "../dataCatalogRestClient.js";
 import {
   ADCOperationsListOptionalParams,
   ADCOperationsListResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Class containing ADCOperations operations. */
 export class ADCOperationsImpl implements ADCOperations {
diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
index c26173e68dce..6e22d62b3695 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts
@@ -6,5 +6,5 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./aDCOperations";
-export * from "./aDCCatalogs";
+export * from "./aDCOperations.js";
+export * from "./aDCCatalogs.js";
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts
index fa14c60997eb..fb6c13c0e81a 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCCatalogs.ts
@@ -18,7 +18,7 @@ import {
   ADCCatalogsDeleteOptionalParams,
   ADCCatalogsUpdateOptionalParams,
   ADCCatalogsUpdateResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a ADCCatalogs. */
 export interface ADCCatalogs {
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts
index b33fb99f97a0..dd812292e3be 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/aDCOperations.ts
@@ -9,7 +9,7 @@
 import {
   ADCOperationsListOptionalParams,
   ADCOperationsListResponse
-} from "../models";
+} from "../models/index.js";
 
 /** Interface representing a ADCOperations. */
 export interface ADCOperations {
diff --git a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts
index c26173e68dce..6e22d62b3695 100644
--- a/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts
+++ b/sdk/datacatalog/arm-datacatalog/src/operationsInterfaces/index.ts
@@ -6,5 +6,5 @@
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
  */
 
-export * from "./aDCOperations";
-export * from "./aDCCatalogs";
+export * from "./aDCOperations.js";
+export * from "./aDCCatalogs.js";
diff --git a/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts b/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
index 8ff7deb0acbe..f0d6ea6885e4 100644
--- a/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
+++ b/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.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<string, string> = {
   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 f1c48f440ed36e6848235e540d7589ccb7a5c693 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:06 +0800
Subject: [PATCH 53/61] Migration: Apply codemod: "fixTestingImports"

---
 sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts b/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
index f0d6ea6885e4..2a396bab6996 100644
--- a/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
+++ b/sdk/datacatalog/arm-datacatalog/test/sampleTest.spec.ts
@@ -9,6 +9,7 @@
 import {
   Recorder,
   RecorderStartOptions} from "@azure-tools/test-recorder";
+import { describe, it, beforeEach, afterEach } from "vitest";
 
 const replaceableVariables: Record<string, string> = {
   AZURE_CLIENT_ID: "azure_client_id",

From 0ec93a2cfadb66db94c40139ef3e08a920e29bf6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:06 +0800
Subject: [PATCH 54/61] Migration: Apply codemod: "replaceAssertIsRejected"


From 68cb68b4beb93afd88d6f4180f0e181fd4acc80d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:07 +0800
Subject: [PATCH 55/61] Migration: Apply codemod: "replaceSinonStub"


From 129b472362efac463c3aeb05aae6ed1eb59b151f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:08 +0800
Subject: [PATCH 56/61] Migration: Apply codemod: "addViHelper"


From 1b848b134e6ea34c424cf4a30e0ad5d9f7ebde03 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:08 +0800
Subject: [PATCH 57/61] Migration: Apply codemod: "replaceSupportTracing"


From c1e7b5738a80b8c37a84a57d5a5e208386a18a7c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:09 +0800
Subject: [PATCH 58/61] Migration: Apply codemod: "replaceTestUtils"


From cc46f2f5ffad491e2614135f55c102f01ebbc291 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:05:26 +0800
Subject: [PATCH 59/61] Migration: rushx format


From ee7ecf6c9bb65d2865fd570cc629b30a1a5b3a51 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 10:11:16 +0800
Subject: [PATCH 60/61] update

---
 common/config/rush/pnpm-lock.yaml            | 36 +++++++++++++-------
 sdk/datacatalog/arm-datacatalog/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 21506739d18e..578f3967c8d8 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -264,7 +264,7 @@ importers:
         version: file:projects/arm-databricks.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-datacatalog':
         specifier: file:./projects/arm-datacatalog.tgz
-        version: file:projects/arm-datacatalog.tgz
+        version: file:projects/arm-datacatalog.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
       '@rush-temp/arm-datadog':
         specifier: file:./projects/arm-datadog.tgz
         version: file:projects/arm-datadog.tgz
@@ -2823,7 +2823,7 @@ packages:
     version: 0.0.0
 
   '@rush-temp/arm-datacatalog@file:projects/arm-datacatalog.tgz':
-    resolution: {integrity: sha512-tGav2Xm8/R49XTbNsRkLaduXpbfKCWc2yELrEhhCZgc75arSx3oFezTWMrCHAj/vedqpOuVUcAL2qUG+dOdWbQ==, tarball: file:projects/arm-datacatalog.tgz}
+    resolution: {integrity: sha512-Juyy8wCOH/ngnnRHyTkVYLOqacGU+4QMGagzY4Z3CJzeurLaMhi+5INIhdQrZN0R7ybgwrGRY559EXkBTzmqOw==, tarball: file:projects/arm-datacatalog.tgz}
     version: 0.0.0
 
   '@rush-temp/arm-datadog@file:projects/arm-datadog.tgz':
@@ -11885,24 +11885,36 @@ snapshots:
       - vite
       - webdriverio
 
-  '@rush-temp/arm-datacatalog@file:projects/arm-datacatalog.tgz':
+  '@rush-temp/arm-datacatalog@file:projects/arm-datacatalog.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(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.68
-      chai: 4.5.0
-      mocha: 11.0.2
-      ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
+      '@vitest/browser': 2.1.8(@types/node@18.19.68)(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.68)(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
     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-datadog@file:projects/arm-datadog.tgz':
     dependencies:
diff --git a/sdk/datacatalog/arm-datacatalog/package.json b/sdk/datacatalog/arm-datacatalog/package.json
index c4a75b9bf8d5..d9af9fab253e 100644
--- a/sdk/datacatalog/arm-datacatalog/package.json
+++ b/sdk/datacatalog/arm-datacatalog/package.json
@@ -23,9 +23,9 @@
     "isomorphic"
   ],
   "license": "MIT",
-  "main": "./dist/index.js",
-  "module": "./dist-esm/src/index.js",
-  "types": "./types/arm-datacatalog.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 0bcbed41e2a117621ed184b5462d35499ad529f6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 16:39:01 +0800
Subject: [PATCH 61/61] update

---
 sdk/databox/arm-databox/vitest.config.ts             | 12 ++++++++++--
 .../vitest.config.ts                                 | 12 ++++++++++--
 sdk/databoxedge/arm-databoxedge/vitest.config.ts     | 12 ++++++++++--
 sdk/databricks/arm-databricks/vitest.config.ts       | 12 ++++++++++--
 sdk/datacatalog/arm-datacatalog/vitest.config.ts     | 12 ++++++++++--
 5 files changed, 50 insertions(+), 10 deletions(-)

diff --git a/sdk/databox/arm-databox/vitest.config.ts b/sdk/databox/arm-databox/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/databox/arm-databox/vitest.config.ts
+++ b/sdk/databox/arm-databox/vitest.config.ts
@@ -1,7 +1,15 @@
-
 // Copyright (c) Microsoft Corporation.
 // Licensed under the MIT License.
 
+import { defineConfig, mergeConfig } from "vitest/config";
 import viteConfig from "../../../vitest.shared.config.ts";
 
-export default viteConfig;
+export default mergeConfig(
+  viteConfig,
+  defineConfig({
+    test: {
+      hookTimeout: 1200000,
+      testTimeout: 1200000,
+    },
+  }),
+);
diff --git a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
+++ b/sdk/databoxedge/arm-databoxedge-profile-2020-09-01-hybrid/vitest.config.ts
@@ -1,7 +1,15 @@
-
 // Copyright (c) Microsoft Corporation.
 // Licensed under the MIT License.
 
+import { defineConfig, mergeConfig } from "vitest/config";
 import viteConfig from "../../../vitest.shared.config.ts";
 
-export default viteConfig;
+export default mergeConfig(
+  viteConfig,
+  defineConfig({
+    test: {
+      hookTimeout: 1200000,
+      testTimeout: 1200000,
+    },
+  }),
+);
diff --git a/sdk/databoxedge/arm-databoxedge/vitest.config.ts b/sdk/databoxedge/arm-databoxedge/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/databoxedge/arm-databoxedge/vitest.config.ts
+++ b/sdk/databoxedge/arm-databoxedge/vitest.config.ts
@@ -1,7 +1,15 @@
-
 // Copyright (c) Microsoft Corporation.
 // Licensed under the MIT License.
 
+import { defineConfig, mergeConfig } from "vitest/config";
 import viteConfig from "../../../vitest.shared.config.ts";
 
-export default viteConfig;
+export default mergeConfig(
+  viteConfig,
+  defineConfig({
+    test: {
+      hookTimeout: 1200000,
+      testTimeout: 1200000,
+    },
+  }),
+);
diff --git a/sdk/databricks/arm-databricks/vitest.config.ts b/sdk/databricks/arm-databricks/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/databricks/arm-databricks/vitest.config.ts
+++ b/sdk/databricks/arm-databricks/vitest.config.ts
@@ -1,7 +1,15 @@
-
 // Copyright (c) Microsoft Corporation.
 // Licensed under the MIT License.
 
+import { defineConfig, mergeConfig } from "vitest/config";
 import viteConfig from "../../../vitest.shared.config.ts";
 
-export default viteConfig;
+export default mergeConfig(
+  viteConfig,
+  defineConfig({
+    test: {
+      hookTimeout: 1200000,
+      testTimeout: 1200000,
+    },
+  }),
+);
diff --git a/sdk/datacatalog/arm-datacatalog/vitest.config.ts b/sdk/datacatalog/arm-datacatalog/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/datacatalog/arm-datacatalog/vitest.config.ts
+++ b/sdk/datacatalog/arm-datacatalog/vitest.config.ts
@@ -1,7 +1,15 @@
-
 // Copyright (c) Microsoft Corporation.
 // Licensed under the MIT License.
 
+import { defineConfig, mergeConfig } from "vitest/config";
 import viteConfig from "../../../vitest.shared.config.ts";
 
-export default viteConfig;
+export default mergeConfig(
+  viteConfig,
+  defineConfig({
+    test: {
+      hookTimeout: 1200000,
+      testTimeout: 1200000,
+    },
+  }),
+);