From 25f9fb4d0865c0ee60d4b16835e9f80be9f4eb69 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:14:42 +0800
Subject: [PATCH 01/68] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../api-extractor.json | 6 +-
.../arm-appcomplianceautomation/package.json | 61 +++++++++++--------
.../arm-appcomplianceautomation/tsconfig.json | 40 +++---------
.../tsconfig.samples.json | 10 +++
.../tsconfig.src.json | 3 +
.../tsconfig.test.json | 6 ++
6 files changed, 67 insertions(+), 59 deletions(-)
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.samples.json
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.src.json
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.test.json
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/api-extractor.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/api-extractor.json
index 567f93f09992..bad3686a0d18 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/api-extractor.json
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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-appcomplianceautomation.d.ts"
+ "publicTrimmedFilePath": "dist/arm-appcomplianceautomation.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
index 7ffe34901a92..013de64dea6a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
@@ -28,19 +28,19 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-appcomplianceautomation.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.1.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
+ "playwright": "^1.49.1",
"tsx": "^4.7.1",
- "typescript": "~5.7.2"
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -50,24 +50,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.",
@@ -79,7 +69,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -88,8 +78,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,
@@ -110,5 +100,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appcomplianceautomation?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/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.json
index 1795f632f0eb..19ceb382b521 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.json
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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-appcomplianceautomation": [
- "./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/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.samples.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.samples.json
new file mode 100644
index 000000000000..3e3c494dfdb3
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-appcomplianceautomation": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.src.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.test.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From 6dd3d9fa09b04a9ec196905ee5c1f0c257612a77 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:14:43 +0800
Subject: [PATCH 02/68] 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/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.browser.config.json
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.browser.config.ts
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts
create mode 100644 sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.esm.config.ts
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.browser.config.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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/appcomplianceautomation/arm-appcomplianceautomation/vitest.browser.config.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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/appcomplianceautomation/arm-appcomplianceautomation/vitest.esm.config.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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 5e67e83311421fe38868bd6643380155018f9420 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:14:43 +0800
Subject: [PATCH 03/68] Migration: Clean up files
From fbbdb6ea10660cf3e6de5242d5d4831981749ebd Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:16 +0800
Subject: [PATCH 04/68] Migration: Apply codemod: "fixSourceFile"
---
.../samples-dev/evidenceCreateOrUpdateSample.ts | 4 +---
.../samples-dev/evidenceDeleteSample.ts | 4 +---
.../samples-dev/evidenceDownloadSample.ts | 4 +---
.../samples-dev/evidenceGetSample.ts | 4 +---
.../samples-dev/evidenceListByReportSample.ts | 4 +---
.../samples-dev/operationsListSample.ts | 4 +---
.../providerActionsCheckNameAvailabilitySample.ts | 4 +---
.../providerActionsGetCollectionCountSample.ts | 4 +---
.../providerActionsGetOverviewStatusSample.ts | 4 +---
...roviderActionsListInUseStorageAccountsSample.ts | 4 +---
.../samples-dev/providerActionsOnboardSample.ts | 4 +---
.../providerActionsTriggerEvaluationSample.ts | 4 +---
.../samples-dev/reportCreateOrUpdateSample.ts | 4 +---
.../samples-dev/reportDeleteSample.ts | 4 +---
.../samples-dev/reportFixSample.ts | 4 +---
.../samples-dev/reportGetSample.ts | 4 +---
.../samples-dev/reportGetScopingQuestionsSample.ts | 4 +---
.../samples-dev/reportListSample.ts | 4 +---
...ortNestedResourceCheckNameAvailabilitySample.ts | 4 +---
.../samples-dev/reportSyncCertRecordSample.ts | 4 +---
.../samples-dev/reportUpdateSample.ts | 4 +---
.../samples-dev/reportVerifySample.ts | 4 +---
.../scopingConfigurationCreateOrUpdateSample.ts | 4 +---
.../scopingConfigurationDeleteSample.ts | 4 +---
.../samples-dev/scopingConfigurationGetSample.ts | 4 +---
.../samples-dev/scopingConfigurationListSample.ts | 4 +---
.../samples-dev/snapshotDownloadSample.ts | 4 +---
.../samples-dev/snapshotGetSample.ts | 4 +---
.../samples-dev/snapshotListSample.ts | 4 +---
.../samples-dev/webhookCreateOrUpdateSample.ts | 4 +---
.../samples-dev/webhookDeleteSample.ts | 4 +---
.../samples-dev/webhookGetSample.ts | 4 +---
.../samples-dev/webhookListSample.ts | 4 +---
.../samples-dev/webhookUpdateSample.ts | 4 +---
.../typescript/src/evidenceCreateOrUpdateSample.ts | 4 +---
.../v1/typescript/src/evidenceDeleteSample.ts | 4 +---
.../v1/typescript/src/evidenceDownloadSample.ts | 4 +---
.../samples/v1/typescript/src/evidenceGetSample.ts | 4 +---
.../typescript/src/evidenceListByReportSample.ts | 4 +---
.../v1/typescript/src/operationsListSample.ts | 4 +---
.../providerActionsCheckNameAvailabilitySample.ts | 4 +---
.../src/providerActionsGetCollectionCountSample.ts | 4 +---
.../src/providerActionsGetOverviewStatusSample.ts | 4 +---
...roviderActionsListInUseStorageAccountsSample.ts | 4 +---
.../typescript/src/providerActionsOnboardSample.ts | 4 +---
.../src/providerActionsTriggerEvaluationSample.ts | 4 +---
.../typescript/src/reportCreateOrUpdateSample.ts | 4 +---
.../v1/typescript/src/reportDeleteSample.ts | 4 +---
.../samples/v1/typescript/src/reportFixSample.ts | 4 +---
.../samples/v1/typescript/src/reportGetSample.ts | 4 +---
.../src/reportGetScopingQuestionsSample.ts | 4 +---
.../samples/v1/typescript/src/reportListSample.ts | 4 +---
...ortNestedResourceCheckNameAvailabilitySample.ts | 4 +---
.../typescript/src/reportSyncCertRecordSample.ts | 4 +---
.../v1/typescript/src/reportUpdateSample.ts | 4 +---
.../v1/typescript/src/reportVerifySample.ts | 4 +---
.../scopingConfigurationCreateOrUpdateSample.ts | 4 +---
.../src/scopingConfigurationDeleteSample.ts | 4 +---
.../src/scopingConfigurationGetSample.ts | 4 +---
.../src/scopingConfigurationListSample.ts | 4 +---
.../v1/typescript/src/snapshotDownloadSample.ts | 4 +---
.../samples/v1/typescript/src/snapshotGetSample.ts | 4 +---
.../v1/typescript/src/snapshotListSample.ts | 4 +---
.../typescript/src/webhookCreateOrUpdateSample.ts | 4 +---
.../v1/typescript/src/webhookDeleteSample.ts | 4 +---
.../samples/v1/typescript/src/webhookGetSample.ts | 4 +---
.../samples/v1/typescript/src/webhookListSample.ts | 4 +---
.../v1/typescript/src/webhookUpdateSample.ts | 4 +---
.../appComplianceAutomationToolForMicrosoft365.ts | 6 +++---
.../arm-appcomplianceautomation/src/index.ts | 8 ++++----
.../src/models/parameters.ts | 2 +-
.../src/operations/evidence.ts | 12 ++++++------
.../src/operations/index.ts | 14 +++++++-------
.../src/operations/operations.ts | 12 ++++++------
.../src/operations/providerActions.ts | 12 ++++++------
.../src/operations/report.ts | 14 +++++++-------
.../src/operations/scopingConfiguration.ts | 12 ++++++------
.../src/operations/snapshot.ts | 14 +++++++-------
.../src/operations/webhook.ts | 12 ++++++------
.../src/operationsInterfaces/evidence.ts | 2 +-
.../src/operationsInterfaces/index.ts | 14 +++++++-------
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/providerActions.ts | 2 +-
.../src/operationsInterfaces/report.ts | 2 +-
.../operationsInterfaces/scopingConfiguration.ts | 2 +-
.../src/operationsInterfaces/snapshot.ts | 2 +-
.../src/operationsInterfaces/webhook.ts | 2 +-
...appcomplianceautomation_operations_test.spec.ts | 8 +++-----
88 files changed, 144 insertions(+), 282 deletions(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceCreateOrUpdateSample.ts
index c034a37c8ec8..0f4b39f7a36f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update an evidence a specified report
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDeleteSample.ts
index 2769fce413c6..02884a02c3c9 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an existent evidence from a specified report
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDownloadSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDownloadSample.ts
index 25732dd5fffa..4826497b9ac6 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDownloadSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceDownloadSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Download evidence file.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceGetSample.ts
index 90dc70c4484d..398affd317ee 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the evidence metadata
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceListByReportSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceListByReportSample.ts
index 71077ba55a79..45d9cf9855c1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceListByReportSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/evidenceListByReportSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a paginated list of evidences for a specified report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/operationsListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/operationsListSample.ts
index 5b309da24bcd..ef21efc78952 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/operationsListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the operations for the provider
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsCheckNameAvailabilitySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsCheckNameAvailabilitySample.ts
index 7821e01e824b..81e8bc788009 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsCheckNameAvailabilitySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsCheckNameAvailabilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the given name is available for a report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetCollectionCountSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetCollectionCountSample.ts
index 8e93fb0798e6..46422a53753b 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetCollectionCountSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetCollectionCountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the count of reports.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetOverviewStatusSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetOverviewStatusSample.ts
index 35b13c7f3bee..07ecb25b11fd 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetOverviewStatusSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsGetOverviewStatusSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the resource overview status.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsListInUseStorageAccountsSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsListInUseStorageAccountsSample.ts
index aebcd2ae5e4f..0f827ac0d80b 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsListInUseStorageAccountsSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsListInUseStorageAccountsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the storage accounts which are in use by related reports
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsOnboardSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsOnboardSample.ts
index cfc00499469f..624b9878a59a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsOnboardSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsOnboardSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Onboard given subscriptions to Microsoft.AppComplianceAutomation provider.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsTriggerEvaluationSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsTriggerEvaluationSample.ts
index e4d9da9871d6..dc2eb29acfce 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsTriggerEvaluationSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/providerActionsTriggerEvaluationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Trigger quick evaluation for the given subscriptions.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportCreateOrUpdateSample.ts
index ce3816bf1ecb..6dd2086cc9f6 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportDeleteSample.ts
index 6ab60d2310b3..6382e756eaae 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportFixSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportFixSample.ts
index e5f46e06b5d3..b610bac79d3d 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportFixSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportFixSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered, automation removed.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetSample.ts
index b3cc566ba5f7..da22a2c6cb48 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation report and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetScopingQuestionsSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetScopingQuestionsSample.ts
index 2ec8c684088a..a974c194cc0a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetScopingQuestionsSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportGetScopingQuestionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered, automation removed.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportListSample.ts
index 079613e219cf..304bbc4594a1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation report list for the tenant.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportNestedResourceCheckNameAvailabilitySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportNestedResourceCheckNameAvailabilitySample.ts
index cf2d8d84534d..84e421a56167 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportNestedResourceCheckNameAvailabilitySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportNestedResourceCheckNameAvailabilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportSyncCertRecordSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportSyncCertRecordSample.ts
index d739e7d3d27f..095db6372a3f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportSyncCertRecordSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportSyncCertRecordSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Synchronize attestation record from app compliance.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportUpdateSample.ts
index ae66f20c643e..c05616b57921 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an exiting AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportVerifySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportVerifySample.ts
index 1f41092b0e4a..533b7260e926 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportVerifySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/reportVerifySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Verify the AppComplianceAutomation report health status.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationCreateOrUpdateSample.ts
index e98f0724b67e..cd51083f9747 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationDeleteSample.ts
index f631b4d652b3..9f74d2973b0f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Clean the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationGetSample.ts
index 1048fda7d9c0..db2118d18052 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationListSample.ts
index 7b40433551fd..204809f82c1a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/scopingConfigurationListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list format of the singleton scopingConfiguration for a specified report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotDownloadSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotDownloadSample.ts
index 0bd838baf9d7..1dbf1aa64686 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotDownloadSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotDownloadSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Download compliance needs from snapshot, like: Compliance Report, Resource List.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotGetSample.ts
index 9e7c4a5ab48a..1a422cce211e 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation snapshot and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotListSample.ts
index aead6cd8070f..9229416980c4 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/snapshotListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation snapshot list.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookCreateOrUpdateSample.ts
index 4b244ff95861..114944caa1ef 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookDeleteSample.ts
index 8ee74e288ed8..0ff591f5db6a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookGetSample.ts
index 8120f301e857..02ece9e6ff79 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation webhook and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookListSample.ts
index bcda540f859e..a780e6c05684 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation webhook list.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookUpdateSample.ts
index d6a808f2f69e..3ec22c89d731 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples-dev/webhookUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an exiting AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceCreateOrUpdateSample.ts
index c034a37c8ec8..0f4b39f7a36f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update an evidence a specified report
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDeleteSample.ts
index 2769fce413c6..02884a02c3c9 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an existent evidence from a specified report
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDownloadSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDownloadSample.ts
index 25732dd5fffa..4826497b9ac6 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDownloadSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceDownloadSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Download evidence file.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceGetSample.ts
index 90dc70c4484d..398affd317ee 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the evidence metadata
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceListByReportSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceListByReportSample.ts
index 71077ba55a79..45d9cf9855c1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceListByReportSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/evidenceListByReportSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a paginated list of evidences for a specified report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/operationsListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/operationsListSample.ts
index 5b309da24bcd..ef21efc78952 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/operationsListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the operations for the provider
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsCheckNameAvailabilitySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsCheckNameAvailabilitySample.ts
index 7821e01e824b..81e8bc788009 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsCheckNameAvailabilitySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsCheckNameAvailabilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the given name is available for a report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetCollectionCountSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetCollectionCountSample.ts
index 8e93fb0798e6..46422a53753b 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetCollectionCountSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetCollectionCountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the count of reports.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetOverviewStatusSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetOverviewStatusSample.ts
index 35b13c7f3bee..07ecb25b11fd 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetOverviewStatusSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsGetOverviewStatusSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the resource overview status.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsListInUseStorageAccountsSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsListInUseStorageAccountsSample.ts
index aebcd2ae5e4f..0f827ac0d80b 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsListInUseStorageAccountsSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsListInUseStorageAccountsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the storage accounts which are in use by related reports
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsOnboardSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsOnboardSample.ts
index cfc00499469f..624b9878a59a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsOnboardSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsOnboardSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Onboard given subscriptions to Microsoft.AppComplianceAutomation provider.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsTriggerEvaluationSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsTriggerEvaluationSample.ts
index e4d9da9871d6..dc2eb29acfce 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsTriggerEvaluationSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/providerActionsTriggerEvaluationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Trigger quick evaluation for the given subscriptions.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportCreateOrUpdateSample.ts
index ce3816bf1ecb..6dd2086cc9f6 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new AppComplianceAutomation report or update an exiting AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportDeleteSample.ts
index 6ab60d2310b3..6382e756eaae 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportFixSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportFixSample.ts
index e5f46e06b5d3..b610bac79d3d 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportFixSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportFixSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered, automation removed.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetSample.ts
index b3cc566ba5f7..da22a2c6cb48 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation report and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetScopingQuestionsSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetScopingQuestionsSample.ts
index 2ec8c684088a..a974c194cc0a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetScopingQuestionsSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportGetScopingQuestionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Fix the AppComplianceAutomation report error. e.g: App Compliance Automation Tool service unregistered, automation removed.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportListSample.ts
index 079613e219cf..304bbc4594a1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation report list for the tenant.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportNestedResourceCheckNameAvailabilitySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportNestedResourceCheckNameAvailabilitySample.ts
index cf2d8d84534d..84e421a56167 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportNestedResourceCheckNameAvailabilitySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportNestedResourceCheckNameAvailabilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks the report's nested resource name availability, e.g: Webhooks, Evidences, Snapshots.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportSyncCertRecordSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportSyncCertRecordSample.ts
index d739e7d3d27f..095db6372a3f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportSyncCertRecordSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportSyncCertRecordSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Synchronize attestation record from app compliance.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportUpdateSample.ts
index ae66f20c643e..c05616b57921 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an exiting AppComplianceAutomation report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportVerifySample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportVerifySample.ts
index 1f41092b0e4a..533b7260e926 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportVerifySample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/reportVerifySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Verify the AppComplianceAutomation report health status.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationCreateOrUpdateSample.ts
index e98f0724b67e..cd51083f9747 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationDeleteSample.ts
index f631b4d652b3..9f74d2973b0f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Clean the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationGetSample.ts
index 1048fda7d9c0..db2118d18052 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation scoping configuration of the specific report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationListSample.ts
index 7b40433551fd..204809f82c1a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/scopingConfigurationListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list format of the singleton scopingConfiguration for a specified report.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotDownloadSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotDownloadSample.ts
index 0bd838baf9d7..1dbf1aa64686 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotDownloadSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotDownloadSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Download compliance needs from snapshot, like: Compliance Report, Resource List.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotGetSample.ts
index 9e7c4a5ab48a..1a422cce211e 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation snapshot and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotListSample.ts
index aead6cd8070f..9229416980c4 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/snapshotListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation snapshot list.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookCreateOrUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookCreateOrUpdateSample.ts
index 4b244ff95861..114944caa1ef 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookCreateOrUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new AppComplianceAutomation webhook or update an exiting AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookDeleteSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookDeleteSample.ts
index 8ee74e288ed8..0ff591f5db6a 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookDeleteSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookGetSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookGetSample.ts
index 8120f301e857..02ece9e6ff79 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookGetSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation webhook and its properties.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookListSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookListSample.ts
index bcda540f859e..a780e6c05684 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookListSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookListSample.ts
@@ -13,9 +13,7 @@ import {
AppComplianceAutomationToolForMicrosoft365,
} from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the AppComplianceAutomation webhook list.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookUpdateSample.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookUpdateSample.ts
index d6a808f2f69e..3ec22c89d731 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookUpdateSample.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/samples/v1/typescript/src/webhookUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppComplianceAutomationToolForMicrosoft365 } from "@azure/arm-appcomplianceautomation";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an exiting AppComplianceAutomation webhook.
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/appComplianceAutomationToolForMicrosoft365.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/appComplianceAutomationToolForMicrosoft365.ts
index c47febcb6ace..53fa5da5aeb9 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/appComplianceAutomationToolForMicrosoft365.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/appComplianceAutomationToolForMicrosoft365.ts
@@ -22,7 +22,7 @@ import {
ScopingConfigurationImpl,
SnapshotImpl,
WebhookImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
ProviderActions,
Operations,
@@ -31,8 +31,8 @@ import {
ScopingConfiguration,
Snapshot,
Webhook,
-} from "./operationsInterfaces";
-import { AppComplianceAutomationToolForMicrosoft365OptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AppComplianceAutomationToolForMicrosoft365OptionalParams } from "./models/index.js";
export class AppComplianceAutomationToolForMicrosoft365 extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/index.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/index.ts
index e6e45b675a92..ef8862d4109b 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/index.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AppComplianceAutomationToolForMicrosoft365 } from "./appComplianceAutomationToolForMicrosoft365";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AppComplianceAutomationToolForMicrosoft365 } from "./appComplianceAutomationToolForMicrosoft365.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/models/parameters.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/models/parameters.ts
index f778070504f9..e73eb2739f04 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/models/parameters.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/models/parameters.ts
@@ -27,7 +27,7 @@ import {
SnapshotDownloadRequest as SnapshotDownloadRequestMapper,
WebhookResource as WebhookResourceMapper,
WebhookResourcePatch as WebhookResourcePatchMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const contentType: OperationParameter = {
parameterPath: ["options", "contentType"],
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/evidence.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/evidence.ts
index b0f8a1885b3e..a396b6679327 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/evidence.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/evidence.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Evidence } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Evidence } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
EvidenceResource,
EvidenceListByReportNextOptionalParams,
@@ -27,7 +27,7 @@ import {
EvidenceDownloadOptionalParams,
EvidenceDownloadResponse,
EvidenceListByReportNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Evidence operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/index.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/index.ts
index 6b113b0728d3..b1d885aa21c1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/index.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./providerActions";
-export * from "./operations";
-export * from "./report";
-export * from "./evidence";
-export * from "./scopingConfiguration";
-export * from "./snapshot";
-export * from "./webhook";
+export * from "./providerActions.js";
+export * from "./operations.js";
+export * from "./report.js";
+export * from "./evidence.js";
+export * from "./scopingConfiguration.js";
+export * from "./snapshot.js";
+export * from "./webhook.js";
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/operations.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/operations.ts
index 5c381f68fa0f..acf4a814bb6f 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/operations.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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 { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/providerActions.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/providerActions.ts
index dff46b2f29d6..74b2866e168e 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/providerActions.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/providerActions.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ProviderActions } from "../operationsInterfaces";
+import { ProviderActions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
CheckNameAvailabilityRequest,
ProviderActionsCheckNameAvailabilityOptionalParams,
@@ -36,7 +36,7 @@ import {
TriggerEvaluationRequest,
ProviderActionsTriggerEvaluationOptionalParams,
ProviderActionsTriggerEvaluationResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ProviderActions operations. */
export class ProviderActionsImpl implements ProviderActions {
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/report.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/report.ts
index bdef05242d52..58fb026eccfc 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/report.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/report.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Report } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Report } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ReportResource,
ReportListNextOptionalParams,
@@ -46,7 +46,7 @@ import {
ReportVerifyOptionalParams,
ReportVerifyResponse,
ReportListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Report operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/scopingConfiguration.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/scopingConfiguration.ts
index 74df939b9d43..976abe56766c 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/scopingConfiguration.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/scopingConfiguration.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ScopingConfiguration } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ScopingConfiguration } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
ScopingConfigurationResource,
ScopingConfigurationListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
ScopingConfigurationCreateOrUpdateResponse,
ScopingConfigurationDeleteOptionalParams,
ScopingConfigurationListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ScopingConfiguration operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/snapshot.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/snapshot.ts
index 7a7f2c0c7217..9bfe9cc96ced 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/snapshot.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/snapshot.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Snapshot } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Snapshot } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SnapshotResource,
SnapshotListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
SnapshotDownloadOptionalParams,
SnapshotDownloadResponse,
SnapshotListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Snapshot operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/webhook.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/webhook.ts
index 448c51edea96..34c315aaa05c 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/webhook.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operations/webhook.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Webhook } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Webhook } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppComplianceAutomationToolForMicrosoft365 } from "../appComplianceAutomationToolForMicrosoft365.js";
import {
WebhookResource,
WebhookListNextOptionalParams,
@@ -27,7 +27,7 @@ import {
WebhookUpdateResponse,
WebhookDeleteOptionalParams,
WebhookListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Webhook operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/evidence.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/evidence.ts
index 0f76490cf501..c718eb2c51cd 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/evidence.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/evidence.ts
@@ -18,7 +18,7 @@ import {
EvidenceFileDownloadRequest,
EvidenceDownloadOptionalParams,
EvidenceDownloadResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Evidence. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/index.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/index.ts
index 6b113b0728d3..b1d885aa21c1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/index.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./providerActions";
-export * from "./operations";
-export * from "./report";
-export * from "./evidence";
-export * from "./scopingConfiguration";
-export * from "./snapshot";
-export * from "./webhook";
+export * from "./providerActions.js";
+export * from "./operations.js";
+export * from "./report.js";
+export * from "./evidence.js";
+export * from "./scopingConfiguration.js";
+export * from "./snapshot.js";
+export * from "./webhook.js";
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/operations.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/operations.ts
index 251f5f582e64..2c280c7eb723 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/operations.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/operations.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Operation, OperationsListOptionalParams } from "../models";
+import { Operation, OperationsListOptionalParams } from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/providerActions.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/providerActions.ts
index 7cd4a18ef9cb..72d9faaa43a6 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/providerActions.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/providerActions.ts
@@ -26,7 +26,7 @@ import {
TriggerEvaluationRequest,
ProviderActionsTriggerEvaluationOptionalParams,
ProviderActionsTriggerEvaluationResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ProviderActions. */
export interface ProviderActions {
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/report.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/report.ts
index ebb5553d706d..e4d4f2f7f9a1 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/report.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/report.ts
@@ -32,7 +32,7 @@ import {
ReportSyncCertRecordResponse,
ReportVerifyOptionalParams,
ReportVerifyResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Report. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/scopingConfiguration.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/scopingConfiguration.ts
index fdd770d57a54..eb4f80e527aa 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/scopingConfiguration.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/scopingConfiguration.ts
@@ -15,7 +15,7 @@ import {
ScopingConfigurationCreateOrUpdateOptionalParams,
ScopingConfigurationCreateOrUpdateResponse,
ScopingConfigurationDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ScopingConfiguration. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/snapshot.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/snapshot.ts
index 8b28ec06e3cc..93f5aa5bc046 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/snapshot.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/snapshot.ts
@@ -16,7 +16,7 @@ import {
SnapshotDownloadRequest,
SnapshotDownloadOptionalParams,
SnapshotDownloadResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Snapshot. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/webhook.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/webhook.ts
index 728da861ee26..9a84f838dd00 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/webhook.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/src/operationsInterfaces/webhook.ts
@@ -18,7 +18,7 @@ import {
WebhookUpdateOptionalParams,
WebhookUpdateResponse,
WebhookDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Webhook. */
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
index e65946e11ca7..bc427c5c4ad4 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_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 { AppComplianceAutomationToolForMicrosoft365 } from "../src/appComplianceAutomationToolForMicrosoft365"
+import { AppComplianceAutomationToolForMicrosoft365 } from "../src/appComplianceAutomationToolForMicrosoft365.js"
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
@@ -42,8 +40,8 @@ describe("appcomplianceautomation 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 fed21a3147f759f4eadd0037ff4afa71f1f97295 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:18 +0800
Subject: [PATCH 05/68] Migration: Apply codemod: "fixTestingImports"
---
.../test/appcomplianceautomation_operations_test.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
index bc427c5c4ad4..16ea1334bec5 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_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 { AppComplianceAutomationToolForMicrosoft365 } from "../src/appComplianceAutomationToolForMicrosoft365.js"
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
From e8ea03a25b57b03d1f9ad8f1462131e66e70b1fa Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:20 +0800
Subject: [PATCH 06/68] Migration: Apply codemod: "replaceAssertIsRejected"
From fb07ab41bb45a21b3449d06a53a5cfdab84b64bf Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:21 +0800
Subject: [PATCH 07/68] Migration: Apply codemod: "replaceSinonStub"
From 9c75d65860421a9e696c9fc91de9a71bdbdcbb8b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:23 +0800
Subject: [PATCH 08/68] Migration: Apply codemod: "addViHelper"
From a88b425992aee828e903a8c5e60d108ddaa4c8c3 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:24 +0800
Subject: [PATCH 09/68] Migration: Apply codemod: "replaceSupportTracing"
From f85d5390a9ea75bb7842718e6d321da89eb256a1 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:25 +0800
Subject: [PATCH 10/68] Migration: Apply codemod: "replaceTestUtils"
From 4f93fd204d2f120a5ecd867db833517fb638c0d0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:15:41 +0800
Subject: [PATCH 11/68] Migration: rushx format
From c4ccb52cb152e2758c5fe9e04b06080c309a6184 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 11:24:34 +0800
Subject: [PATCH 12/68] [mgmt] migrate mgmt package to esm
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
.../arm-appcomplianceautomation/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..68359b570204 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -90,7 +90,7 @@ importers:
version: file:projects/arm-apimanagement.tgz(@vitest/browser@2.1.8)(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))
'@rush-temp/arm-appcomplianceautomation':
specifier: file:./projects/arm-appcomplianceautomation.tgz
- version: file:projects/arm-appcomplianceautomation.tgz
+ version: file:projects/arm-appcomplianceautomation.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-appconfiguration':
specifier: file:./projects/arm-appconfiguration.tgz
version: file:projects/arm-appconfiguration.tgz
@@ -2591,7 +2591,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-appcomplianceautomation@file:projects/arm-appcomplianceautomation.tgz':
- resolution: {integrity: sha512-ylaXn0dmtRcgNdIqV73uyic7oMRzVflEXkZKSKcSu342LI42OB/8asQ2jDE1RbVYQsF+2X+8+LT6r33BeJSB9Q==, tarball: file:projects/arm-appcomplianceautomation.tgz}
+ resolution: {integrity: sha512-wVhFZffEgVUEVkJ/JXkXAw7AgsKAt9t4YdiDqhT85Os3EHVQCfs9zL2GOYo1TsJW8B94xeB1Q8NR5Gjb6tYUsA==, tarball: file:projects/arm-appcomplianceautomation.tgz}
version: 0.0.0
'@rush-temp/arm-appconfiguration@file:projects/arm-appconfiguration.tgz':
@@ -10577,26 +10577,38 @@ snapshots:
- supports-color
- terser
- '@rush-temp/arm-appcomplianceautomation@file:projects/arm-appcomplianceautomation.tgz':
+ '@rush-temp/arm-appcomplianceautomation@file:projects/arm-appcomplianceautomation.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
tsx: 4.19.2
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-appconfiguration@file:projects/arm-appconfiguration.tgz':
dependencies:
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
index 013de64dea6a..53a159a9fd39 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-appcomplianceautomation.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",
@@ -119,5 +119,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 4bf50544199ad3bf0e4e17c9a6e1e214913a6f72 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:24 +0800
Subject: [PATCH 13/68] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-appconfiguration/api-extractor.json | 6 +-
.../arm-appconfiguration/package.json | 100 ++++++++++--------
.../arm-appconfiguration/tsconfig.json | 40 ++-----
.../tsconfig.samples.json | 10 ++
.../arm-appconfiguration/tsconfig.src.json | 3 +
.../arm-appconfiguration/tsconfig.test.json | 6 ++
6 files changed, 86 insertions(+), 79 deletions(-)
create mode 100644 sdk/appconfiguration/arm-appconfiguration/tsconfig.samples.json
create mode 100644 sdk/appconfiguration/arm-appconfiguration/tsconfig.src.json
create mode 100644 sdk/appconfiguration/arm-appconfiguration/tsconfig.test.json
diff --git a/sdk/appconfiguration/arm-appconfiguration/api-extractor.json b/sdk/appconfiguration/arm-appconfiguration/api-extractor.json
index 08e68e9237c4..2edd36d3163d 100644
--- a/sdk/appconfiguration/arm-appconfiguration/api-extractor.json
+++ b/sdk/appconfiguration/arm-appconfiguration/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-appconfiguration.d.ts"
+ "publicTrimmedFilePath": "dist/arm-appconfiguration.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json
index 9961833274b8..58a6d1469fbc 100644
--- a/sdk/appconfiguration/arm-appconfiguration/package.json
+++ b/sdk/appconfiguration/arm-appconfiguration/package.json
@@ -8,11 +8,11 @@
"node": ">=18.0.0"
},
"dependencies": {
- "@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^2.1.2",
- "@azure/core-paging": "^1.2.0",
- "@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
+ "@azure/core-client": "^1.7.0",
+ "@azure/core-lro": "^2.5.4",
+ "@azure/core-paging": "^1.2.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
@@ -28,24 +28,23 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-appconfiguration.d.ts",
"devDependencies": {
+ "@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.2.1",
"@microsoft/api-extractor": "^7.31.1",
+ "@types/node": "^18.0.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
+ "cross-env": "^7.0.2",
+ "dotenv": "^16.0.0",
"mkdirp": "^3.0.1",
- "typescript": "~5.7.2",
- "uglify-js": "^3.4.9",
+ "playwright": "^1.49.1",
"rimraf": "^5.0.0",
- "dotenv": "^16.0.0",
- "@azure/dev-tool": "^1.0.0",
- "@azure/identity": "^4.2.1",
- "@azure-tools/test-recorder": "^3.0.0",
- "@azure-tools/test-credential": "^1.1.0",
- "mocha": "^11.0.2",
- "@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
- "@types/chai": "^4.2.8",
- "chai": "^4.2.0",
- "cross-env": "^7.0.2",
- "@types/node": "^18.0.0",
- "ts-node": "^10.0.0"
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -55,46 +54,36 @@
"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",
- "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
- "prepack": "npm run build",
- "pack": "npm pack 2>&1",
- "extract-api": "dev-tool run extract-api",
- "lint": "echo skipped",
- "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
- "build:node": "echo skipped",
+ "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:test": "echo skipped",
+ "build:node": "echo skipped",
"build:samples": "echo skipped.",
+ "build:test": "echo skipped",
"check-format": "echo skipped",
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
+ "extract-api": "dev-tool run extract-api",
"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: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",
+ "prepack": "npm run build",
"test": "npm run integration-test",
- "test:node": "echo skipped",
"test:browser": "echo skipped",
+ "test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
- "unit-test:browser": "echo skipped",
- "integration-test": "npm run integration-test:node && npm run integration-test:browser",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
- "integration-test:browser": "echo skipped"
+ "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"
},
"sideEffects": false,
"//metadata": {
@@ -114,5 +103,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?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/appconfiguration/arm-appconfiguration/tsconfig.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.json
index 5acec8550cbe..19ceb382b521 100644
--- a/sdk/appconfiguration/arm-appconfiguration/tsconfig.json
+++ b/sdk/appconfiguration/arm-appconfiguration/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-appconfiguration": [
- "./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/appconfiguration/arm-appconfiguration/tsconfig.samples.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.samples.json
new file mode 100644
index 000000000000..a0051dc0cde0
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-appconfiguration": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/appconfiguration/arm-appconfiguration/tsconfig.src.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/appconfiguration/arm-appconfiguration/tsconfig.test.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From 096674a984f671f055e475508f0aec93e3e61cfb Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:25 +0800
Subject: [PATCH 14/68] Migration: Update test config
---
.../tsconfig.browser.config.json | 17 +++++++++++++++++
.../vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-appconfiguration/vitest.config.ts | 7 +++++++
.../arm-appconfiguration/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 53 insertions(+)
create mode 100644 sdk/appconfiguration/arm-appconfiguration/tsconfig.browser.config.json
create mode 100644 sdk/appconfiguration/arm-appconfiguration/vitest.browser.config.ts
create mode 100644 sdk/appconfiguration/arm-appconfiguration/vitest.config.ts
create mode 100644 sdk/appconfiguration/arm-appconfiguration/vitest.esm.config.ts
diff --git a/sdk/appconfiguration/arm-appconfiguration/tsconfig.browser.config.json b/sdk/appconfiguration/arm-appconfiguration/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/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/appconfiguration/arm-appconfiguration/vitest.browser.config.ts b/sdk/appconfiguration/arm-appconfiguration/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/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/appconfiguration/arm-appconfiguration/vitest.config.ts b/sdk/appconfiguration/arm-appconfiguration/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/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/appconfiguration/arm-appconfiguration/vitest.esm.config.ts b/sdk/appconfiguration/arm-appconfiguration/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/appconfiguration/arm-appconfiguration/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 49255ed221c916c4b4ad41a598f891666e983646 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:25 +0800
Subject: [PATCH 15/68] Migration: Clean up files
From 162153e0036f19c8568f51c43384a2b1a5ac2498 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:48 +0800
Subject: [PATCH 16/68] Migration: Apply codemod: "fixSourceFile"
---
.../samples-dev/configurationStoresCreateSample.ts | 4 +---
.../samples-dev/configurationStoresDeleteSample.ts | 4 +---
.../configurationStoresGetDeletedSample.ts | 4 +---
.../samples-dev/configurationStoresGetSample.ts | 4 +---
...configurationStoresListByResourceGroupSample.ts | 4 +---
.../configurationStoresListDeletedSample.ts | 4 +---
.../configurationStoresListKeysSample.ts | 4 +---
.../samples-dev/configurationStoresListSample.ts | 4 +---
.../configurationStoresPurgeDeletedSample.ts | 4 +---
.../configurationStoresRegenerateKeySample.ts | 4 +---
.../samples-dev/configurationStoresUpdateSample.ts | 4 +---
.../samples-dev/keyValuesCreateOrUpdateSample.ts | 4 +---
.../samples-dev/keyValuesDeleteSample.ts | 4 +---
.../samples-dev/keyValuesGetSample.ts | 4 +---
.../operationsCheckNameAvailabilitySample.ts | 4 +---
.../samples-dev/operationsListSample.ts | 4 +---
...perationsRegionalCheckNameAvailabilitySample.ts | 4 +---
...ivateEndpointConnectionsCreateOrUpdateSample.ts | 4 +---
.../privateEndpointConnectionsDeleteSample.ts | 4 +---
.../privateEndpointConnectionsGetSample.ts | 4 +---
...intConnectionsListByConfigurationStoreSample.ts | 4 +---
.../samples-dev/privateLinkResourcesGetSample.ts | 4 +---
...eLinkResourcesListByConfigurationStoreSample.ts | 4 +---
.../samples-dev/replicasCreateSample.ts | 4 +---
.../samples-dev/replicasDeleteSample.ts | 4 +---
.../samples-dev/replicasGetSample.ts | 4 +---
.../replicasListByConfigurationStoreSample.ts | 4 +---
.../samples-dev/snapshotsCreateSample.ts | 4 +---
.../samples-dev/snapshotsGetSample.ts | 4 +---
.../src/configurationStoresCreateSample.ts | 4 +---
.../src/configurationStoresDeleteSample.ts | 4 +---
.../src/configurationStoresGetDeletedSample.ts | 4 +---
.../typescript/src/configurationStoresGetSample.ts | 4 +---
...configurationStoresListByResourceGroupSample.ts | 4 +---
.../src/configurationStoresListDeletedSample.ts | 4 +---
.../src/configurationStoresListKeysSample.ts | 4 +---
.../src/configurationStoresListSample.ts | 4 +---
.../src/configurationStoresPurgeDeletedSample.ts | 4 +---
.../src/configurationStoresRegenerateKeySample.ts | 4 +---
.../src/configurationStoresUpdateSample.ts | 4 +---
.../src/keyValuesCreateOrUpdateSample.ts | 4 +---
.../v4/typescript/src/keyValuesDeleteSample.ts | 4 +---
.../v4/typescript/src/keyValuesGetSample.ts | 4 +---
.../src/operationsCheckNameAvailabilitySample.ts | 4 +---
.../v4/typescript/src/operationsListSample.ts | 4 +---
...perationsRegionalCheckNameAvailabilitySample.ts | 4 +---
...ivateEndpointConnectionsCreateOrUpdateSample.ts | 4 +---
.../src/privateEndpointConnectionsDeleteSample.ts | 4 +---
.../src/privateEndpointConnectionsGetSample.ts | 4 +---
...intConnectionsListByConfigurationStoreSample.ts | 4 +---
.../src/privateLinkResourcesGetSample.ts | 4 +---
...eLinkResourcesListByConfigurationStoreSample.ts | 4 +---
.../v4/typescript/src/replicasCreateSample.ts | 4 +---
.../v4/typescript/src/replicasDeleteSample.ts | 4 +---
.../samples/v4/typescript/src/replicasGetSample.ts | 4 +---
.../src/replicasListByConfigurationStoreSample.ts | 4 +---
.../v4/typescript/src/snapshotsCreateSample.ts | 4 +---
.../v4/typescript/src/snapshotsGetSample.ts | 4 +---
.../src/appConfigurationManagementClient.ts | 6 +++---
.../arm-appconfiguration/src/index.ts | 8 ++++----
.../arm-appconfiguration/src/models/parameters.ts | 2 +-
.../src/operations/configurationStores.ts | 14 +++++++-------
.../arm-appconfiguration/src/operations/index.ts | 14 +++++++-------
.../src/operations/keyValues.ts | 12 ++++++------
.../src/operations/operations.ts | 12 ++++++------
.../src/operations/privateEndpointConnections.ts | 14 +++++++-------
.../src/operations/privateLinkResources.ts | 12 ++++++------
.../src/operations/replicas.ts | 14 +++++++-------
.../src/operations/snapshots.ts | 12 ++++++------
.../operationsInterfaces/configurationStores.ts | 2 +-
.../src/operationsInterfaces/index.ts | 14 +++++++-------
.../src/operationsInterfaces/keyValues.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../privateEndpointConnections.ts | 2 +-
.../operationsInterfaces/privateLinkResources.ts | 2 +-
.../src/operationsInterfaces/replicas.ts | 2 +-
.../src/operationsInterfaces/snapshots.ts | 2 +-
.../test/appconfiguration_operations_test.spec.ts | 10 +++-------
78 files changed, 135 insertions(+), 255 deletions(-)
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts
index b3a1734b0308..19bc8063bb29 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts
index c149af242835..d3d0e4f86343 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts
index f47f3d55a5b2..433314ec6cf6 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a deleted Azure app configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts
index b2e25845d93e..48268b4db60b 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts
index 7e1ed8740967..576301411744 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the configuration stores for a given resource group.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts
index 7f04f9733842..c2542dd20596 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts
index 65c041ac40ab..0787ecc78ff4 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the access key for the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts
index 7b2563d24b61..f211957e679b 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the configuration stores for a given subscription.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts
index f81d2b22ba4a..fdc178133aae 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresPurgeDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Permanently deletes the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts
index c568f8847e72..9e71cb60c6ff 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresRegenerateKeySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerates an access key for the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts
index 51c1e10cf17a..39c2d8bd58b7 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/configurationStoresUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates a configuration store with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts
index 6460b8be0181..cb4f395105d4 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts
index cdb66d69878e..1768abc0cedb 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts
index 394a0d1bd248..b697305b4166 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/keyValuesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts
index 42c6f45b0181..ac9ebc926b42 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the configuration store name is available for use.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts
index 7d631a2bb4ae..8d797110b9fd 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the operations available from this provider.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts
index a0a96f40939e..35ed1862bf15 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/operationsRegionalCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the configuration store name is available for use.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts
index d2abe115370b..52c08ec59f00 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts
index a2f50a1cb0a6..83658a20ad5e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a private endpoint connection.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts
index 62f7992e0b05..d3652b3ceea0 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts
index 51650449ef39..72cc0781daa3 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateEndpointConnectionsListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all private endpoint connections for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts
index 5c7df42f3028..7e78735cb874 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts
index f586f84cd287..a89a6b702b56 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/privateLinkResourcesListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts
index 97f353352261..84a28158d24d 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a replica with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts
index 59c5d763e599..b294ccfa57a8 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a replica.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts
index d616e58b169c..248994313690 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 replica.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts
index 892167ae2669..d77beb9fe97e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/replicasListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the replicas for a given configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts
index 93a7d2730ce1..8affebe4d24c 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts
index c4d463ebb11a..27a4d6a87472 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples-dev/snapshotsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts
index b3a1734b0308..19bc8063bb29 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a configuration store with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts
index c149af242835..d3d0e4f86343 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts
index f47f3d55a5b2..433314ec6cf6 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a deleted Azure app configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts
index b2e25845d93e..48268b4db60b 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts
index 7e1ed8740967..576301411744 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the configuration stores for a given resource group.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts
index 7f04f9733842..c2542dd20596 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the deleted configuration stores in a subscription.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts
index 65c041ac40ab..0787ecc78ff4 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the access key for the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts
index 7b2563d24b61..f211957e679b 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the configuration stores for a given subscription.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts
index f81d2b22ba4a..fdc178133aae 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresPurgeDeletedSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Permanently deletes the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts
index c568f8847e72..9e71cb60c6ff 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresRegenerateKeySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerates an access key for the specified configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts
index 51c1e10cf17a..39c2d8bd58b7 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/configurationStoresUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates a configuration store with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts
index 6460b8be0181..cb4f395105d4 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts
index cdb66d69878e..1768abc0cedb 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts
index 394a0d1bd248..b697305b4166 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/keyValuesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 key-value. NOTE: This operation is intended for use in ARM Template deployments. For all other scenarios involving App Configuration key-values the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts
index 42c6f45b0181..ac9ebc926b42 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the configuration store name is available for use.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts
index 7d631a2bb4ae..8d797110b9fd 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the operations available from this provider.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts
index a0a96f40939e..35ed1862bf15 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/operationsRegionalCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the configuration store name is available for use.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts
index d2abe115370b..52c08ec59f00 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the state of the specified private endpoint connection associated with the configuration store. This operation cannot be used to create a private endpoint connection. Private endpoint connections must be created with the Network resource provider.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts
index a2f50a1cb0a6..83658a20ad5e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a private endpoint connection.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts
index 62f7992e0b05..d3652b3ceea0 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the specified private endpoint connection associated with the configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts
index 51650449ef39..72cc0781daa3 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateEndpointConnectionsListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all private endpoint connections for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts
index 5c7df42f3028..7e78735cb874 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a private link resource that need to be created for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts
index f586f84cd287..a89a6b702b56 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/privateLinkResourcesListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the private link resources that need to be created for a configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts
index 97f353352261..84a28158d24d 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a replica with the specified parameters.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts
index 59c5d763e599..b294ccfa57a8 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a replica.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts
index d616e58b169c..248994313690 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 replica.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts
index 892167ae2669..d77beb9fe97e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/replicasListByConfigurationStoreSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the replicas for a given configuration store.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts
index 93a7d2730ce1..8affebe4d24c 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsCreateSample.ts
@@ -13,9 +13,7 @@ import {
AppConfigurationManagementClient,
} from "@azure/arm-appconfiguration";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts
index c4d463ebb11a..27a4d6a87472 100644
--- a/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/samples/v4/typescript/src/snapshotsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
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 snapshot. NOTE: This operation is intended for use in Azure Resource Manager (ARM) Template deployments. For all other scenarios involving App Configuration snapshots the data plane API should be used instead.
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts
index f523d9ba5cfe..5d4e93648399 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/appConfigurationManagementClient.ts
@@ -22,7 +22,7 @@ import {
KeyValuesImpl,
ReplicasImpl,
SnapshotsImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
ConfigurationStores,
Operations,
@@ -31,8 +31,8 @@ import {
KeyValues,
Replicas,
Snapshots,
-} from "./operationsInterfaces";
-import { AppConfigurationManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AppConfigurationManagementClientOptionalParams } from "./models/index.js";
export class AppConfigurationManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/index.ts
index c8442cca1a87..5b3128447eaf 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/index.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AppConfigurationManagementClient } from "./appConfigurationManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AppConfigurationManagementClient } from "./appConfigurationManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts
index c99906374dd6..b5ff977b6918 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/models/parameters.ts
@@ -20,7 +20,7 @@ import {
KeyValue as KeyValueMapper,
Replica as ReplicaMapper,
Snapshot as SnapshotMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts
index 32622a945335..a0fc87841e25 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/configurationStores.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ConfigurationStores } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ConfigurationStores } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ConfigurationStore,
ConfigurationStoresListNextOptionalParams,
@@ -53,7 +53,7 @@ import {
ConfigurationStoresListByResourceGroupNextResponse,
ConfigurationStoresListKeysNextResponse,
ConfigurationStoresListDeletedNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ConfigurationStores operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts
index 2a23425b1db3..340428141668 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./configurationStores";
-export * from "./operations";
-export * from "./privateEndpointConnections";
-export * from "./privateLinkResources";
-export * from "./keyValues";
-export * from "./replicas";
-export * from "./snapshots";
+export * from "./configurationStores.js";
+export * from "./operations.js";
+export * from "./privateEndpointConnections.js";
+export * from "./privateLinkResources.js";
+export * from "./keyValues.js";
+export * from "./replicas.js";
+export * from "./snapshots.js";
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts
index b38ebf2cfee6..99e83152c7a7 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/keyValues.ts
@@ -6,24 +6,24 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { KeyValues } from "../operationsInterfaces";
+import { KeyValues } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
KeyValuesGetOptionalParams,
KeyValuesGetResponse,
KeyValuesCreateOrUpdateOptionalParams,
KeyValuesCreateOrUpdateResponse,
KeyValuesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Class containing KeyValues operations. */
export class KeyValuesImpl implements KeyValues {
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts
index d78df4cb2e02..4c221db75a58 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/operations.ts
@@ -7,12 +7,12 @@
*/
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 { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
OperationDefinition,
OperationsListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
OperationsRegionalCheckNameAvailabilityOptionalParams,
OperationsRegionalCheckNameAvailabilityResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts
index ba758fa17257..5f99ac59418f 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateEndpointConnections.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/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 { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
PrivateEndpointConnection,
PrivateEndpointConnectionsListByConfigurationStoreNextOptionalParams,
@@ -30,7 +30,7 @@ import {
PrivateEndpointConnectionsCreateOrUpdateResponse,
PrivateEndpointConnectionsDeleteOptionalParams,
PrivateEndpointConnectionsListByConfigurationStoreNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateEndpointConnections operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts
index 947d2ecb6ba6..d276d8d6562e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/privateLinkResources.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/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 { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
PrivateLinkResource,
PrivateLinkResourcesListByConfigurationStoreNextOptionalParams,
@@ -21,7 +21,7 @@ import {
PrivateLinkResourcesGetOptionalParams,
PrivateLinkResourcesGetResponse,
PrivateLinkResourcesListByConfigurationStoreNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateLinkResources operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts
index ae631bd8f833..a12d5d4426b5 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/replicas.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Replicas } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Replicas } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Replica,
ReplicasListByConfigurationStoreNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ReplicasCreateResponse,
ReplicasDeleteOptionalParams,
ReplicasListByConfigurationStoreNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Replicas operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts b/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts
index 6c3c6de3e90a..c3481a3214fd 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operations/snapshots.ts
@@ -6,24 +6,24 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Snapshots } from "../operationsInterfaces";
+import { Snapshots } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppConfigurationManagementClient } from "../appConfigurationManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppConfigurationManagementClient } from "../appConfigurationManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SnapshotsGetOptionalParams,
SnapshotsGetResponse,
Snapshot,
SnapshotsCreateOptionalParams,
SnapshotsCreateResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Snapshots operations. */
export class SnapshotsImpl implements Snapshots {
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts
index fd7c9608ec66..58b878ad6e35 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/configurationStores.ts
@@ -30,7 +30,7 @@ import {
ConfigurationStoresGetDeletedOptionalParams,
ConfigurationStoresGetDeletedResponse,
ConfigurationStoresPurgeDeletedOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ConfigurationStores. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts
index 2a23425b1db3..340428141668 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/index.ts
@@ -6,10 +6,10 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./configurationStores";
-export * from "./operations";
-export * from "./privateEndpointConnections";
-export * from "./privateLinkResources";
-export * from "./keyValues";
-export * from "./replicas";
-export * from "./snapshots";
+export * from "./configurationStores.js";
+export * from "./operations.js";
+export * from "./privateEndpointConnections.js";
+export * from "./privateLinkResources.js";
+export * from "./keyValues.js";
+export * from "./replicas.js";
+export * from "./snapshots.js";
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts
index f3cf7fe3502e..f8bf5ebccb90 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/keyValues.ts
@@ -13,7 +13,7 @@ import {
KeyValuesCreateOrUpdateOptionalParams,
KeyValuesCreateOrUpdateResponse,
KeyValuesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a KeyValues. */
export interface KeyValues {
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts
index 867179f7f9fc..8396728f28b4 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/operations.ts
@@ -15,7 +15,7 @@ import {
OperationsCheckNameAvailabilityResponse,
OperationsRegionalCheckNameAvailabilityOptionalParams,
OperationsRegionalCheckNameAvailabilityResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts
index cab02d216e58..9493af348a4f 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateEndpointConnections.ts
@@ -16,7 +16,7 @@ import {
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
PrivateEndpointConnectionsCreateOrUpdateResponse,
PrivateEndpointConnectionsDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateEndpointConnections. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts
index fd4a8f6f04a3..e0f3ed6cacf8 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/privateLinkResources.ts
@@ -12,7 +12,7 @@ import {
PrivateLinkResourcesListByConfigurationStoreOptionalParams,
PrivateLinkResourcesGetOptionalParams,
PrivateLinkResourcesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateLinkResources. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts
index a5a2884d40b4..3aefff9a144e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/replicas.ts
@@ -16,7 +16,7 @@ import {
ReplicasCreateOptionalParams,
ReplicasCreateResponse,
ReplicasDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Replicas. */
diff --git a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts
index 1e4dc8c67abf..6aff9841f907 100644
--- a/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/src/operationsInterfaces/snapshots.ts
@@ -13,7 +13,7 @@ import {
Snapshot,
SnapshotsCreateOptionalParams,
SnapshotsCreateResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Snapshots. */
export interface Snapshots {
diff --git a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
index 1f0368d5f246..292c38e48429 100644
--- a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_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 { AppConfigurationManagementClient } from "../src/appConfigurationManagementClient";
+import { AppConfigurationManagementClient } from "../src/appConfigurationManagementClient.js";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
@@ -42,8 +40,8 @@ describe("AppConfiguration 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
@@ -102,8 +100,6 @@ describe("AppConfiguration test", () => {
it("configurationStores delete test", async function () {
const resArray = new Array();
- const res = await client.configurationStores.beginDeleteAndWait(resourceGroup, resourcename
- )
for await (let item of client.configurationStores.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
From 41683800090d07c8919d8a2164738391790ed86f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:49 +0800
Subject: [PATCH 17/68] Migration: Apply codemod: "fixTestingImports"
---
.../test/appconfiguration_operations_test.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
index 292c38e48429..1da6a4fdaa3e 100644
--- a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_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 { AppConfigurationManagementClient } from "../src/appConfigurationManagementClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
From e3bf258e67cc77eec64d90a856d54af043110cec Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:50 +0800
Subject: [PATCH 18/68] Migration: Apply codemod: "replaceAssertIsRejected"
From 9991cd9ca8e66621f6548099d5c3b1b64eefea32 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:51 +0800
Subject: [PATCH 19/68] Migration: Apply codemod: "replaceSinonStub"
From 0a0fd43a3895f857be00d02a535c100a7eded309 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:52 +0800
Subject: [PATCH 20/68] Migration: Apply codemod: "addViHelper"
From 84701cf363c85bffbdf655fca8232e2e2c1522f4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:52 +0800
Subject: [PATCH 21/68] Migration: Apply codemod: "replaceSupportTracing"
From ab1e62d4b2a52a2b47b87db1fb06b2a0fc8673f9 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:13:53 +0800
Subject: [PATCH 22/68] Migration: Apply codemod: "replaceTestUtils"
From 2fd92636eb51aebc441c43fda199cd73a59a2ae0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:14:08 +0800
Subject: [PATCH 23/68] Migration: rushx format
From e56326668b94a5b2551b4fa6d4260a6093367e27 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:21:08 +0800
Subject: [PATCH 24/68] update
---
common/config/rush/pnpm-lock.yaml | 37 ++++++++++++-------
.../arm-appconfiguration/package.json | 29 +++++++++++++--
2 files changed, 49 insertions(+), 17 deletions(-)
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 68359b570204..dd9b9bb40f6c 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -93,7 +93,7 @@ importers:
version: file:projects/arm-appcomplianceautomation.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-appconfiguration':
specifier: file:./projects/arm-appconfiguration.tgz
- version: file:projects/arm-appconfiguration.tgz
+ version: file:projects/arm-appconfiguration.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-appcontainers':
specifier: file:./projects/arm-appcontainers.tgz
version: file:projects/arm-appcontainers.tgz
@@ -2595,7 +2595,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-appconfiguration@file:projects/arm-appconfiguration.tgz':
- resolution: {integrity: sha512-/39WrxTSq10tVjRji9mmInhdSYB9JJ/fbaRuE1gnaUPOcRq8Gy+7pGPT42fxsthglOA4cpnFPQnW9BTpS2ZVOg==, tarball: file:projects/arm-appconfiguration.tgz}
+ resolution: {integrity: sha512-X9vtg38hrEXVCKUdUFtZRTnbI4l+PzBGYO9lQYuimnRTxCMiTXc6GGjbOVQTTBzUZGfKwqNh0KH8+tCc2uwlPw==, tarball: file:projects/arm-appconfiguration.tgz}
version: 0.0.0
'@rush-temp/arm-appcontainers@file:projects/arm-appcontainers.tgz':
@@ -10610,30 +10610,41 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-appconfiguration@file:projects/arm-appconfiguration.tgz':
+ '@rush-temp/arm-appconfiguration@file:projects/arm-appconfiguration.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/core-lro': 2.7.2
'@microsoft/api-extractor': 7.48.1(@types/node@18.19.68)
- '@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)
cross-env: 7.0.3
dotenv: 16.4.7
mkdirp: 3.0.1
- mocha: 11.0.2
+ playwright: 1.49.1
rimraf: 5.0.10
- ts-node: 10.9.2(@types/node@18.19.68)(typescript@5.7.2)
tslib: 2.8.1
tsx: 4.19.2
typescript: 5.7.2
- uglify-js: 3.19.3
+ 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-appcontainers@file:projects/arm-appcontainers.tgz':
dependencies:
diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json
index 58a6d1469fbc..0bbdd2554ff2 100644
--- a/sdk/appconfiguration/arm-appconfiguration/package.json
+++ b/sdk/appconfiguration/arm-appconfiguration/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-appconfiguration.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",
@@ -122,5 +122,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 2b145fa7259b5f5ce8f366e49e71a1b57e4035a5 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:22:12 +0800
Subject: [PATCH 25/68] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-appcontainers/api-extractor.json | 6 +-
.../arm-appcontainers/package.json | 93 ++++++++++---------
.../arm-appcontainers/tsconfig.json | 40 ++------
.../arm-appcontainers/tsconfig.samples.json | 10 ++
.../arm-appcontainers/tsconfig.src.json | 3 +
.../arm-appcontainers/tsconfig.test.json | 6 ++
6 files changed, 83 insertions(+), 75 deletions(-)
create mode 100644 sdk/appcontainers/arm-appcontainers/tsconfig.samples.json
create mode 100644 sdk/appcontainers/arm-appcontainers/tsconfig.src.json
create mode 100644 sdk/appcontainers/arm-appcontainers/tsconfig.test.json
diff --git a/sdk/appcontainers/arm-appcontainers/api-extractor.json b/sdk/appcontainers/arm-appcontainers/api-extractor.json
index 05e35e108750..63d7d7d4a422 100644
--- a/sdk/appcontainers/arm-appcontainers/api-extractor.json
+++ b/sdk/appcontainers/arm-appcontainers/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-appcontainers.d.ts"
+ "publicTrimmedFilePath": "dist/arm-appcontainers.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/appcontainers/arm-appcontainers/package.json b/sdk/appcontainers/arm-appcontainers/package.json
index 93b721c908d2..c2236eed6a13 100644
--- a/sdk/appcontainers/arm-appcontainers/package.json
+++ b/sdk/appcontainers/arm-appcontainers/package.json
@@ -8,11 +8,11 @@
"node": ">=18.0.0"
},
"dependencies": {
- "@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^2.1.2",
- "@azure/core-paging": "^1.2.0",
- "@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
+ "@azure/core-client": "^1.7.0",
+ "@azure/core-lro": "^2.5.4",
+ "@azure/core-paging": "^1.2.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
@@ -28,19 +28,19 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-appcontainers.d.ts",
"devDependencies": {
- "typescript": "~5.7.2",
- "dotenv": "^16.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.2.1",
- "@azure-tools/test-recorder": "^3.0.0",
- "@azure-tools/test-credential": "^1.1.0",
- "mocha": "^11.0.2",
- "@types/mocha": "^10.0.0",
- "tsx": "^4.7.1",
- "@types/chai": "^4.2.8",
- "chai": "^4.2.0",
"@types/node": "^18.0.0",
- "ts-node": "^10.0.0"
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
+ "dotenv": "^16.0.0",
+ "playwright": "^1.49.1",
+ "tsx": "^4.7.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -50,46 +50,36 @@
"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",
- "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
- "prepack": "npm run build",
- "pack": "npm pack 2>&1",
- "extract-api": "dev-tool run extract-api",
- "lint": "echo skipped",
- "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
- "build:node": "echo skipped",
+ "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:test": "echo skipped",
+ "build:node": "echo skipped",
"build:samples": "echo skipped.",
+ "build:test": "echo skipped",
"check-format": "echo skipped",
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
+ "extract-api": "dev-tool run extract-api",
"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: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",
+ "prepack": "npm run build",
"test": "npm run integration-test",
- "test:node": "echo skipped",
"test:browser": "echo skipped",
+ "test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
- "unit-test:browser": "echo skipped",
- "integration-test": "npm run integration-test:node && npm run integration-test:browser",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
- "integration-test:browser": "echo skipped"
+ "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"
},
"sideEffects": false,
"//metadata": {
@@ -109,5 +99,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appcontainers?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/appcontainers/arm-appcontainers/tsconfig.json b/sdk/appcontainers/arm-appcontainers/tsconfig.json
index 00a8ff1127f8..19ceb382b521 100644
--- a/sdk/appcontainers/arm-appcontainers/tsconfig.json
+++ b/sdk/appcontainers/arm-appcontainers/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-appcontainers": [
- "./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/appcontainers/arm-appcontainers/tsconfig.samples.json b/sdk/appcontainers/arm-appcontainers/tsconfig.samples.json
new file mode 100644
index 000000000000..3eb3740bc6c4
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-appcontainers": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/appcontainers/arm-appcontainers/tsconfig.src.json b/sdk/appcontainers/arm-appcontainers/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/appcontainers/arm-appcontainers/tsconfig.test.json b/sdk/appcontainers/arm-appcontainers/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From b32bbc2f713f0ecfdbedad1cf84283d882b02b71 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:22:12 +0800
Subject: [PATCH 26/68] Migration: Update test config
---
.../tsconfig.browser.config.json | 17 +++++++++++++++++
.../arm-appcontainers/vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-appcontainers/vitest.config.ts | 7 +++++++
.../arm-appcontainers/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 53 insertions(+)
create mode 100644 sdk/appcontainers/arm-appcontainers/tsconfig.browser.config.json
create mode 100644 sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts
create mode 100644 sdk/appcontainers/arm-appcontainers/vitest.config.ts
create mode 100644 sdk/appcontainers/arm-appcontainers/vitest.esm.config.ts
diff --git a/sdk/appcontainers/arm-appcontainers/tsconfig.browser.config.json b/sdk/appcontainers/arm-appcontainers/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/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/appcontainers/arm-appcontainers/vitest.browser.config.ts b/sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/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/appcontainers/arm-appcontainers/vitest.config.ts b/sdk/appcontainers/arm-appcontainers/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/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/appcontainers/arm-appcontainers/vitest.esm.config.ts b/sdk/appcontainers/arm-appcontainers/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/appcontainers/arm-appcontainers/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 6c9930ca13692dff9e9538e59295d6a7adb1047d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:22:12 +0800
Subject: [PATCH 27/68] Migration: Clean up files
From 8569a53eee885d6506414ea4342628c5e9f0afab Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:37 +0800
Subject: [PATCH 28/68] Migration: Apply codemod: "fixSourceFile"
---
.../appResiliencyCreateOrUpdateSample.ts | 4 +-
.../samples-dev/appResiliencyDeleteSample.ts | 4 +-
.../samples-dev/appResiliencyGetSample.ts | 4 +-
.../samples-dev/appResiliencyListSample.ts | 4 +-
.../samples-dev/appResiliencyUpdateSample.ts | 4 +-
.../availableWorkloadProfilesGetSample.ts | 4 +-
.../samples-dev/billingMetersGetSample.ts | 4 +-
.../samples-dev/buildAuthTokenListSample.ts | 4 +-
.../buildersCreateOrUpdateSample.ts | 4 +-
.../samples-dev/buildersDeleteSample.ts | 4 +-
.../samples-dev/buildersGetSample.ts | 4 +-
.../buildersListByResourceGroupSample.ts | 4 +-
.../buildersListBySubscriptionSample.ts | 4 +-
.../samples-dev/buildersUpdateSample.ts | 4 +-
.../buildsByBuilderResourceListSample.ts | 4 +-
.../samples-dev/buildsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/buildsDeleteSample.ts | 4 +-
.../samples-dev/buildsGetSample.ts | 4 +-
.../certificatesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/certificatesDeleteSample.ts | 4 +-
.../samples-dev/certificatesGetSample.ts | 4 +-
.../samples-dev/certificatesListSample.ts | 4 +-
.../samples-dev/certificatesUpdateSample.ts | 4 +-
...onmentsCertificatesCreateOrUpdateSample.ts | 4 +-
...tedEnvironmentsCertificatesDeleteSample.ts | 4 +-
...nectedEnvironmentsCertificatesGetSample.ts | 4 +-
...ectedEnvironmentsCertificatesListSample.ts | 4 +-
...tedEnvironmentsCertificatesUpdateSample.ts | 4 +-
...EnvironmentsCheckNameAvailabilitySample.ts | 4 +-
...nnectedEnvironmentsCreateOrUpdateSample.ts | 4 +-
...mentsDaprComponentsCreateOrUpdateSample.ts | 4 +-
...dEnvironmentsDaprComponentsDeleteSample.ts | 4 +-
...ctedEnvironmentsDaprComponentsGetSample.ts | 4 +-
...tedEnvironmentsDaprComponentsListSample.ts | 4 +-
...ronmentsDaprComponentsListSecretsSample.ts | 4 +-
.../connectedEnvironmentsDeleteSample.ts | 4 +-
.../connectedEnvironmentsGetSample.ts | 4 +-
...edEnvironmentsListByResourceGroupSample.ts | 4 +-
...tedEnvironmentsListBySubscriptionSample.ts | 4 +-
...nvironmentsStoragesCreateOrUpdateSample.ts | 4 +-
...nnectedEnvironmentsStoragesDeleteSample.ts | 4 +-
.../connectedEnvironmentsStoragesGetSample.ts | 4 +-
...connectedEnvironmentsStoragesListSample.ts | 4 +-
.../connectedEnvironmentsUpdateSample.ts | 4 +-
...inerAppsAuthConfigsCreateOrUpdateSample.ts | 4 +-
.../containerAppsAuthConfigsDeleteSample.ts | 4 +-
.../containerAppsAuthConfigsGetSample.ts | 4 +-
...AppsAuthConfigsListByContainerAppSample.ts | 4 +-
...ainerAppsBuildsByContainerAppListSample.ts | 4 +-
.../containerAppsBuildsDeleteSample.ts | 4 +-
.../containerAppsBuildsGetSample.ts | 4 +-
.../containerAppsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/containerAppsDeleteSample.ts | 4 +-
...ntainerAppsDiagnosticsGetDetectorSample.ts | 4 +-
...ntainerAppsDiagnosticsGetRevisionSample.ts | 4 +-
.../containerAppsDiagnosticsGetRootSample.ts | 4 +-
...ainerAppsDiagnosticsListDetectorsSample.ts | 4 +-
...ainerAppsDiagnosticsListRevisionsSample.ts | 4 +-
.../containerAppsGetAuthTokenSample.ts | 4 +-
.../samples-dev/containerAppsGetSample.ts | 4 +-
.../containerAppsListByResourceGroupSample.ts | 4 +-
.../containerAppsListBySubscriptionSample.ts | 4 +-
...nerAppsListCustomHostNameAnalysisSample.ts | 4 +-
.../containerAppsListSecretsSample.ts | 4 +-
.../containerAppsPatchesApplySample.ts | 4 +-
.../containerAppsPatchesDeleteSample.ts | 4 +-
.../containerAppsPatchesGetSample.ts | 4 +-
...inerAppsPatchesListByContainerAppSample.ts | 4 +-
...containerAppsPatchesSkipConfigureSample.ts | 4 +-
...nerAppsRevisionReplicasGetReplicaSample.ts | 4 +-
...rAppsRevisionReplicasListReplicasSample.ts | 4 +-
...inerAppsRevisionsActivateRevisionSample.ts | 4 +-
...erAppsRevisionsDeactivateRevisionSample.ts | 4 +-
...containerAppsRevisionsGetRevisionSample.ts | 4 +-
...ntainerAppsRevisionsListRevisionsSample.ts | 4 +-
...ainerAppsRevisionsRestartRevisionSample.ts | 4 +-
...nerAppsSessionPoolsCreateOrUpdateSample.ts | 4 +-
.../containerAppsSessionPoolsDeleteSample.ts | 4 +-
.../containerAppsSessionPoolsGetSample.ts | 4 +-
...psSessionPoolsListByResourceGroupSample.ts | 4 +-
...ppsSessionPoolsListBySubscriptionSample.ts | 4 +-
.../containerAppsSessionPoolsUpdateSample.ts | 4 +-
...rAppsSourceControlsCreateOrUpdateSample.ts | 4 +-
...containerAppsSourceControlsDeleteSample.ts | 4 +-
.../containerAppsSourceControlsGetSample.ts | 4 +-
...sSourceControlsListByContainerAppSample.ts | 4 +-
.../samples-dev/containerAppsStartSample.ts | 4 +-
.../samples-dev/containerAppsStopSample.ts | 4 +-
.../samples-dev/containerAppsUpdateSample.ts | 4 +-
...tResiliencyPoliciesCreateOrUpdateSample.ts | 4 +-
...ComponentResiliencyPoliciesDeleteSample.ts | 4 +-
...aprComponentResiliencyPoliciesGetSample.ts | 4 +-
...prComponentResiliencyPoliciesListSample.ts | 4 +-
.../daprComponentsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/daprComponentsDeleteSample.ts | 4 +-
.../samples-dev/daprComponentsGetSample.ts | 4 +-
.../samples-dev/daprComponentsListSample.ts | 4 +-
.../daprComponentsListSecretsSample.ts | 4 +-
.../daprSubscriptionsCreateOrUpdateSample.ts | 4 +-
.../daprSubscriptionsDeleteSample.ts | 4 +-
.../samples-dev/daprSubscriptionsGetSample.ts | 4 +-
.../daprSubscriptionsListSample.ts | 4 +-
.../dotNetComponentsCreateOrUpdateSample.ts | 4 +-
.../dotNetComponentsDeleteSample.ts | 4 +-
.../samples-dev/dotNetComponentsGetSample.ts | 4 +-
.../samples-dev/dotNetComponentsListSample.ts | 4 +-
.../dotNetComponentsUpdateSample.ts | 4 +-
...tionsExtensionInvokeFunctionsHostSample.ts | 4 +-
.../getCustomDomainVerificationIdSample.ts | 4 +-
.../javaComponentsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/javaComponentsDeleteSample.ts | 4 +-
.../samples-dev/javaComponentsGetSample.ts | 4 +-
.../samples-dev/javaComponentsListSample.ts | 4 +-
.../samples-dev/javaComponentsUpdateSample.ts | 4 +-
.../samples-dev/jobExecutionSample.ts | 4 +-
.../samples-dev/jobsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/jobsDeleteSample.ts | 4 +-
.../samples-dev/jobsExecutionsListSample.ts | 4 +-
.../samples-dev/jobsGetDetectorSample.ts | 4 +-
.../samples-dev/jobsGetSample.ts | 4 +-
.../jobsListByResourceGroupSample.ts | 4 +-
.../jobsListBySubscriptionSample.ts | 4 +-
.../samples-dev/jobsListDetectorsSample.ts | 4 +-
.../samples-dev/jobsListSecretsSample.ts | 4 +-
.../samples-dev/jobsProxyGetSample.ts | 4 +-
.../samples-dev/jobsResumeSample.ts | 4 +-
.../samples-dev/jobsStartSample.ts | 4 +-
.../samples-dev/jobsStopExecutionSample.ts | 4 +-
.../jobsStopMultipleExecutionsSample.ts | 4 +-
.../samples-dev/jobsSuspendSample.ts | 4 +-
.../samples-dev/jobsUpdateSample.ts | 4 +-
.../logicAppsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/logicAppsDeleteSample.ts | 4 +-
.../logicAppsDeployWorkflowArtifactsSample.ts | 4 +-
.../samples-dev/logicAppsGetSample.ts | 4 +-
.../samples-dev/logicAppsGetWorkflowSample.ts | 4 +-
.../samples-dev/logicAppsInvokeSample.ts | 4 +-
...logicAppsListWorkflowsConnectionsSample.ts | 4 +-
.../logicAppsListWorkflowsSample.ts | 4 +-
...managedCertificatesCreateOrUpdateSample.ts | 4 +-
.../managedCertificatesDeleteSample.ts | 4 +-
.../managedCertificatesGetSample.ts | 4 +-
.../managedCertificatesListSample.ts | 4 +-
.../managedCertificatesUpdateSample.ts | 4 +-
...EnvironmentDiagnosticsGetDetectorSample.ts | 4 +-
...vironmentDiagnosticsListDetectorsSample.ts | 4 +-
...EndpointConnectionsCreateOrUpdateSample.ts | 4 +-
...tPrivateEndpointConnectionsDeleteSample.ts | 4 +-
...mentPrivateEndpointConnectionsGetSample.ts | 4 +-
...entPrivateEndpointConnectionsListSample.ts | 4 +-
...vironmentPrivateLinkResourcesListSample.ts | 4 +-
.../managedEnvironmentUsagesListSample.ts | 4 +-
...managedEnvironmentsCreateOrUpdateSample.ts | 4 +-
.../managedEnvironmentsDeleteSample.ts | 4 +-
...gedEnvironmentsDiagnosticsGetRootSample.ts | 4 +-
.../managedEnvironmentsGetAuthTokenSample.ts | 4 +-
.../managedEnvironmentsGetSample.ts | 4 +-
...edEnvironmentsListByResourceGroupSample.ts | 4 +-
...gedEnvironmentsListBySubscriptionSample.ts | 4 +-
...ronmentsListWorkloadProfileStatesSample.ts | 4 +-
...nvironmentsStoragesCreateOrUpdateSample.ts | 4 +-
...managedEnvironmentsStoragesDeleteSample.ts | 4 +-
.../managedEnvironmentsStoragesGetSample.ts | 4 +-
.../managedEnvironmentsStoragesListSample.ts | 4 +-
.../managedEnvironmentsUpdateSample.ts | 4 +-
.../namespacesCheckNameAvailabilitySample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../samples-dev/usagesListSample.ts | 4 +-
.../src/appResiliencyCreateOrUpdateSample.ts | 4 +-
.../src/appResiliencyDeleteSample.ts | 4 +-
.../typescript/src/appResiliencyGetSample.ts | 4 +-
.../typescript/src/appResiliencyListSample.ts | 4 +-
.../src/appResiliencyUpdateSample.ts | 4 +-
.../src/availableWorkloadProfilesGetSample.ts | 4 +-
.../typescript/src/billingMetersGetSample.ts | 4 +-
.../src/buildAuthTokenListSample.ts | 4 +-
.../src/buildersCreateOrUpdateSample.ts | 4 +-
.../typescript/src/buildersDeleteSample.ts | 4 +-
.../typescript/src/buildersGetSample.ts | 4 +-
.../src/buildersListByResourceGroupSample.ts | 4 +-
.../src/buildersListBySubscriptionSample.ts | 4 +-
.../typescript/src/buildersUpdateSample.ts | 4 +-
.../src/buildsByBuilderResourceListSample.ts | 4 +-
.../src/buildsCreateOrUpdateSample.ts | 4 +-
.../typescript/src/buildsDeleteSample.ts | 4 +-
.../v2-beta/typescript/src/buildsGetSample.ts | 4 +-
.../src/certificatesCreateOrUpdateSample.ts | 4 +-
.../src/certificatesDeleteSample.ts | 4 +-
.../typescript/src/certificatesGetSample.ts | 4 +-
.../typescript/src/certificatesListSample.ts | 4 +-
.../src/certificatesUpdateSample.ts | 4 +-
...onmentsCertificatesCreateOrUpdateSample.ts | 4 +-
...tedEnvironmentsCertificatesDeleteSample.ts | 4 +-
...nectedEnvironmentsCertificatesGetSample.ts | 4 +-
...ectedEnvironmentsCertificatesListSample.ts | 4 +-
...tedEnvironmentsCertificatesUpdateSample.ts | 4 +-
...EnvironmentsCheckNameAvailabilitySample.ts | 4 +-
...nnectedEnvironmentsCreateOrUpdateSample.ts | 4 +-
...mentsDaprComponentsCreateOrUpdateSample.ts | 4 +-
...dEnvironmentsDaprComponentsDeleteSample.ts | 4 +-
...ctedEnvironmentsDaprComponentsGetSample.ts | 4 +-
...tedEnvironmentsDaprComponentsListSample.ts | 4 +-
...ronmentsDaprComponentsListSecretsSample.ts | 4 +-
.../src/connectedEnvironmentsDeleteSample.ts | 4 +-
.../src/connectedEnvironmentsGetSample.ts | 4 +-
...edEnvironmentsListByResourceGroupSample.ts | 4 +-
...tedEnvironmentsListBySubscriptionSample.ts | 4 +-
...nvironmentsStoragesCreateOrUpdateSample.ts | 4 +-
...nnectedEnvironmentsStoragesDeleteSample.ts | 4 +-
.../connectedEnvironmentsStoragesGetSample.ts | 4 +-
...connectedEnvironmentsStoragesListSample.ts | 4 +-
.../src/connectedEnvironmentsUpdateSample.ts | 4 +-
...inerAppsAuthConfigsCreateOrUpdateSample.ts | 4 +-
.../containerAppsAuthConfigsDeleteSample.ts | 4 +-
.../src/containerAppsAuthConfigsGetSample.ts | 4 +-
...AppsAuthConfigsListByContainerAppSample.ts | 4 +-
...ainerAppsBuildsByContainerAppListSample.ts | 4 +-
.../src/containerAppsBuildsDeleteSample.ts | 4 +-
.../src/containerAppsBuildsGetSample.ts | 4 +-
.../src/containerAppsCreateOrUpdateSample.ts | 4 +-
.../src/containerAppsDeleteSample.ts | 4 +-
...ntainerAppsDiagnosticsGetDetectorSample.ts | 4 +-
...ntainerAppsDiagnosticsGetRevisionSample.ts | 4 +-
.../containerAppsDiagnosticsGetRootSample.ts | 4 +-
...ainerAppsDiagnosticsListDetectorsSample.ts | 4 +-
...ainerAppsDiagnosticsListRevisionsSample.ts | 4 +-
.../src/containerAppsGetAuthTokenSample.ts | 4 +-
.../typescript/src/containerAppsGetSample.ts | 4 +-
.../containerAppsListByResourceGroupSample.ts | 4 +-
.../containerAppsListBySubscriptionSample.ts | 4 +-
...nerAppsListCustomHostNameAnalysisSample.ts | 4 +-
.../src/containerAppsListSecretsSample.ts | 4 +-
.../src/containerAppsPatchesApplySample.ts | 4 +-
.../src/containerAppsPatchesDeleteSample.ts | 4 +-
.../src/containerAppsPatchesGetSample.ts | 4 +-
...inerAppsPatchesListByContainerAppSample.ts | 4 +-
...containerAppsPatchesSkipConfigureSample.ts | 4 +-
...nerAppsRevisionReplicasGetReplicaSample.ts | 4 +-
...rAppsRevisionReplicasListReplicasSample.ts | 4 +-
...inerAppsRevisionsActivateRevisionSample.ts | 4 +-
...erAppsRevisionsDeactivateRevisionSample.ts | 4 +-
...containerAppsRevisionsGetRevisionSample.ts | 4 +-
...ntainerAppsRevisionsListRevisionsSample.ts | 4 +-
...ainerAppsRevisionsRestartRevisionSample.ts | 4 +-
...nerAppsSessionPoolsCreateOrUpdateSample.ts | 4 +-
.../containerAppsSessionPoolsDeleteSample.ts | 4 +-
.../src/containerAppsSessionPoolsGetSample.ts | 4 +-
...psSessionPoolsListByResourceGroupSample.ts | 4 +-
...ppsSessionPoolsListBySubscriptionSample.ts | 4 +-
.../containerAppsSessionPoolsUpdateSample.ts | 4 +-
...rAppsSourceControlsCreateOrUpdateSample.ts | 4 +-
...containerAppsSourceControlsDeleteSample.ts | 4 +-
.../containerAppsSourceControlsGetSample.ts | 4 +-
...sSourceControlsListByContainerAppSample.ts | 4 +-
.../src/containerAppsStartSample.ts | 4 +-
.../typescript/src/containerAppsStopSample.ts | 4 +-
.../src/containerAppsUpdateSample.ts | 4 +-
...tResiliencyPoliciesCreateOrUpdateSample.ts | 4 +-
...ComponentResiliencyPoliciesDeleteSample.ts | 4 +-
...aprComponentResiliencyPoliciesGetSample.ts | 4 +-
...prComponentResiliencyPoliciesListSample.ts | 4 +-
.../src/daprComponentsCreateOrUpdateSample.ts | 4 +-
.../src/daprComponentsDeleteSample.ts | 4 +-
.../typescript/src/daprComponentsGetSample.ts | 4 +-
.../src/daprComponentsListSample.ts | 4 +-
.../src/daprComponentsListSecretsSample.ts | 4 +-
.../daprSubscriptionsCreateOrUpdateSample.ts | 4 +-
.../src/daprSubscriptionsDeleteSample.ts | 4 +-
.../src/daprSubscriptionsGetSample.ts | 4 +-
.../src/daprSubscriptionsListSample.ts | 4 +-
.../dotNetComponentsCreateOrUpdateSample.ts | 4 +-
.../src/dotNetComponentsDeleteSample.ts | 4 +-
.../src/dotNetComponentsGetSample.ts | 4 +-
.../src/dotNetComponentsListSample.ts | 4 +-
.../src/dotNetComponentsUpdateSample.ts | 4 +-
...tionsExtensionInvokeFunctionsHostSample.ts | 4 +-
.../getCustomDomainVerificationIdSample.ts | 4 +-
.../src/javaComponentsCreateOrUpdateSample.ts | 4 +-
.../src/javaComponentsDeleteSample.ts | 4 +-
.../typescript/src/javaComponentsGetSample.ts | 4 +-
.../src/javaComponentsListSample.ts | 4 +-
.../src/javaComponentsUpdateSample.ts | 4 +-
.../typescript/src/jobExecutionSample.ts | 4 +-
.../src/jobsCreateOrUpdateSample.ts | 4 +-
.../typescript/src/jobsDeleteSample.ts | 4 +-
.../src/jobsExecutionsListSample.ts | 4 +-
.../typescript/src/jobsGetDetectorSample.ts | 4 +-
.../v2-beta/typescript/src/jobsGetSample.ts | 4 +-
.../src/jobsListByResourceGroupSample.ts | 4 +-
.../src/jobsListBySubscriptionSample.ts | 4 +-
.../typescript/src/jobsListDetectorsSample.ts | 4 +-
.../typescript/src/jobsListSecretsSample.ts | 4 +-
.../typescript/src/jobsProxyGetSample.ts | 4 +-
.../typescript/src/jobsResumeSample.ts | 4 +-
.../v2-beta/typescript/src/jobsStartSample.ts | 4 +-
.../typescript/src/jobsStopExecutionSample.ts | 4 +-
.../src/jobsStopMultipleExecutionsSample.ts | 4 +-
.../typescript/src/jobsSuspendSample.ts | 4 +-
.../typescript/src/jobsUpdateSample.ts | 4 +-
.../src/logicAppsCreateOrUpdateSample.ts | 4 +-
.../typescript/src/logicAppsDeleteSample.ts | 4 +-
.../logicAppsDeployWorkflowArtifactsSample.ts | 4 +-
.../typescript/src/logicAppsGetSample.ts | 4 +-
.../src/logicAppsGetWorkflowSample.ts | 4 +-
.../typescript/src/logicAppsInvokeSample.ts | 4 +-
...logicAppsListWorkflowsConnectionsSample.ts | 4 +-
.../src/logicAppsListWorkflowsSample.ts | 4 +-
...managedCertificatesCreateOrUpdateSample.ts | 4 +-
.../src/managedCertificatesDeleteSample.ts | 4 +-
.../src/managedCertificatesGetSample.ts | 4 +-
.../src/managedCertificatesListSample.ts | 4 +-
.../src/managedCertificatesUpdateSample.ts | 4 +-
...EnvironmentDiagnosticsGetDetectorSample.ts | 4 +-
...vironmentDiagnosticsListDetectorsSample.ts | 4 +-
...EndpointConnectionsCreateOrUpdateSample.ts | 4 +-
...tPrivateEndpointConnectionsDeleteSample.ts | 4 +-
...mentPrivateEndpointConnectionsGetSample.ts | 4 +-
...entPrivateEndpointConnectionsListSample.ts | 4 +-
...vironmentPrivateLinkResourcesListSample.ts | 4 +-
.../src/managedEnvironmentUsagesListSample.ts | 4 +-
...managedEnvironmentsCreateOrUpdateSample.ts | 4 +-
.../src/managedEnvironmentsDeleteSample.ts | 4 +-
...gedEnvironmentsDiagnosticsGetRootSample.ts | 4 +-
.../managedEnvironmentsGetAuthTokenSample.ts | 4 +-
.../src/managedEnvironmentsGetSample.ts | 4 +-
...edEnvironmentsListByResourceGroupSample.ts | 4 +-
...gedEnvironmentsListBySubscriptionSample.ts | 4 +-
...ronmentsListWorkloadProfileStatesSample.ts | 4 +-
...nvironmentsStoragesCreateOrUpdateSample.ts | 4 +-
...managedEnvironmentsStoragesDeleteSample.ts | 4 +-
.../managedEnvironmentsStoragesGetSample.ts | 4 +-
.../managedEnvironmentsStoragesListSample.ts | 4 +-
.../src/managedEnvironmentsUpdateSample.ts | 4 +-
.../namespacesCheckNameAvailabilitySample.ts | 4 +-
.../typescript/src/operationsListSample.ts | 4 +-
.../typescript/src/usagesListSample.ts | 4 +-
.../src/containerAppsAPIClient.ts | 10 +--
.../arm-appcontainers/src/index.ts | 8 +-
.../src/models/parameters.ts | 2 +-
.../src/operations/appResiliencyOperations.ts | 12 +--
.../operations/availableWorkloadProfiles.ts | 12 +--
.../src/operations/billingMeters.ts | 10 +--
.../src/operations/buildAuthToken.ts | 10 +--
.../src/operations/builders.ts | 14 ++--
.../src/operations/builds.ts | 12 +--
.../src/operations/buildsByBuilderResource.ts | 12 +--
.../src/operations/certificates.ts | 12 +--
.../src/operations/connectedEnvironments.ts | 14 ++--
.../connectedEnvironmentsCertificates.ts | 12 +--
.../connectedEnvironmentsDaprComponents.ts | 12 +--
.../connectedEnvironmentsStorages.ts | 10 +--
.../src/operations/containerApps.ts | 14 ++--
.../operations/containerAppsAuthConfigs.ts | 12 +--
.../src/operations/containerAppsBuilds.ts | 12 +--
.../containerAppsBuildsByContainerApp.ts | 12 +--
.../operations/containerAppsDiagnostics.ts | 12 +--
.../src/operations/containerAppsPatches.ts | 14 ++--
.../containerAppsRevisionReplicas.ts | 10 +--
.../src/operations/containerAppsRevisions.ts | 12 +--
.../operations/containerAppsSessionPools.ts | 14 ++--
.../operations/containerAppsSourceControls.ts | 14 ++--
.../daprComponentResiliencyPolicies.ts | 12 +--
.../src/operations/daprComponents.ts | 12 +--
.../src/operations/daprSubscriptions.ts | 12 +--
.../src/operations/dotNetComponents.ts | 14 ++--
.../src/operations/functionsExtension.ts | 10 +--
.../arm-appcontainers/src/operations/index.ts | 84 +++++++++----------
.../src/operations/javaComponents.ts | 14 ++--
.../arm-appcontainers/src/operations/jobs.ts | 14 ++--
.../src/operations/jobsExecutions.ts | 12 +--
.../src/operations/logicApps.ts | 12 +--
.../src/operations/managedCertificates.ts | 14 ++--
.../managedEnvironmentDiagnostics.ts | 10 +--
...edEnvironmentPrivateEndpointConnections.ts | 14 ++--
.../managedEnvironmentPrivateLinkResources.ts | 12 +--
.../operations/managedEnvironmentUsages.ts | 12 +--
.../src/operations/managedEnvironments.ts | 14 ++--
.../managedEnvironmentsDiagnostics.ts | 10 +--
.../operations/managedEnvironmentsStorages.ts | 10 +--
.../src/operations/namespaces.ts | 10 +--
.../src/operations/operations.ts | 12 +--
.../src/operations/usages.ts | 12 +--
.../appResiliencyOperations.ts | 2 +-
.../availableWorkloadProfiles.ts | 2 +-
.../src/operationsInterfaces/billingMeters.ts | 2 +-
.../operationsInterfaces/buildAuthToken.ts | 2 +-
.../src/operationsInterfaces/builders.ts | 2 +-
.../src/operationsInterfaces/builds.ts | 2 +-
.../buildsByBuilderResource.ts | 2 +-
.../src/operationsInterfaces/certificates.ts | 2 +-
.../connectedEnvironments.ts | 2 +-
.../connectedEnvironmentsCertificates.ts | 2 +-
.../connectedEnvironmentsDaprComponents.ts | 2 +-
.../connectedEnvironmentsStorages.ts | 2 +-
.../src/operationsInterfaces/containerApps.ts | 2 +-
.../containerAppsAuthConfigs.ts | 2 +-
.../containerAppsBuilds.ts | 2 +-
.../containerAppsBuildsByContainerApp.ts | 2 +-
.../containerAppsDiagnostics.ts | 2 +-
.../containerAppsPatches.ts | 2 +-
.../containerAppsRevisionReplicas.ts | 2 +-
.../containerAppsRevisions.ts | 2 +-
.../containerAppsSessionPools.ts | 2 +-
.../containerAppsSourceControls.ts | 2 +-
.../daprComponentResiliencyPolicies.ts | 2 +-
.../operationsInterfaces/daprComponents.ts | 2 +-
.../operationsInterfaces/daprSubscriptions.ts | 2 +-
.../operationsInterfaces/dotNetComponents.ts | 2 +-
.../functionsExtension.ts | 2 +-
.../src/operationsInterfaces/index.ts | 84 +++++++++----------
.../operationsInterfaces/javaComponents.ts | 2 +-
.../src/operationsInterfaces/jobs.ts | 2 +-
.../operationsInterfaces/jobsExecutions.ts | 2 +-
.../src/operationsInterfaces/logicApps.ts | 2 +-
.../managedCertificates.ts | 2 +-
.../managedEnvironmentDiagnostics.ts | 2 +-
...edEnvironmentPrivateEndpointConnections.ts | 2 +-
.../managedEnvironmentPrivateLinkResources.ts | 2 +-
.../managedEnvironmentUsages.ts | 2 +-
.../managedEnvironments.ts | 2 +-
.../managedEnvironmentsDiagnostics.ts | 2 +-
.../managedEnvironmentsStorages.ts | 2 +-
.../src/operationsInterfaces/namespaces.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/usages.ts | 2 +-
.../test/appcontainers_examples.spec.ts | 18 ++--
426 files changed, 732 insertions(+), 1412 deletions(-)
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyCreateOrUpdateSample.ts
index 3a3c3f3c2453..67d6e2a31d01 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyDeleteSample.ts
index 78b0a401487e..bdd92593e2f8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyGetSample.ts
index d08e0acda257..1392ea4276c3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyListSample.ts
index 760a5bf9f230..bcaee09057d0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List container app resiliency policies.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyUpdateSample.ts
index a9f0e31be93f..efb7405d4051 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/appResiliencyUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/availableWorkloadProfilesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/availableWorkloadProfilesGetSample.ts
index 6a45a7a411dc..1d9e7c3ec9b7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/availableWorkloadProfilesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/availableWorkloadProfilesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all available workload profiles for a location.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/billingMetersGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/billingMetersGetSample.ts
index 771c9c2babc5..0944c7e79c06 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/billingMetersGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/billingMetersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all billingMeters for a location.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildAuthTokenListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildAuthTokenListSample.ts
index d6bb3fde86ce..2ea5346bcf15 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildAuthTokenListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildAuthTokenListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the token used to connect to the endpoint where source code can be uploaded for a build.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersCreateOrUpdateSample.ts
index dc88eebb2f45..0c8beb62150a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersDeleteSample.ts
index 782f53983878..c9d9f98dcea6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersGetSample.ts
index c670f279892b..1d9507319c24 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListByResourceGroupSample.ts
index d8c70dedd471..b9a455d3034a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuilderResource resources by resource group
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListBySubscriptionSample.ts
index 3dafaf62fa96..d92c7a337927 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuilderResource resources by subscription ID
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersUpdateSample.ts
index 5796a8d6e51a..29c8faa8d02c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildersUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildersUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsByBuilderResourceListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsByBuilderResourceListSample.ts
index eaf15b8bbbc3..e93d4cc07ddb 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsByBuilderResourceListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsByBuilderResourceListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuildResource resources by BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsCreateOrUpdateSample.ts
index db90e7c24974..a67e010ea4be 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsDeleteSample.ts
index 8d2883011370..adbf1ab90186 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsGetSample.ts
index ff61f1ab2334..49d4a94d6f40 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/buildsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/buildsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesCreateOrUpdateSample.ts
index e6002e494e84..a556fabead0d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesDeleteSample.ts
index 6ebf0c39df4d..b681c9a9af8a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesGetSample.ts
index 28e3339616b7..35d01df94f8f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesListSample.ts
index 8e7d54213cde..ebe2a1bb28ac 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Certificates in a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesUpdateSample.ts
index 9476ddaffd95..f2be7571bcf1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/certificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a certificate. Currently only patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
index db048f71cc42..d829f8ed91b2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesDeleteSample.ts
index 379f8043ac67..71e309c9f63b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesGetSample.ts
index a635b8d10149..823a7a4b247b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesListSample.ts
index 77837c25fbca..64e2318a9d41 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Certificates in a given connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesUpdateSample.ts
index acf23eb6f863..64f6c701207b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCertificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a certificate. Currently only patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCheckNameAvailabilitySample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCheckNameAvailabilitySample.ts
index 45b77ae580be..748c01b0619e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCheckNameAvailabilitySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource connectedEnvironmentName is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCreateOrUpdateSample.ts
index daf0ce306b00..65f8be9dc270 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
index 8cdb7c86d2f7..a9e0d6c3b050 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr Component in a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsDeleteSample.ts
index 9aee7508a88e..d169c34adb4c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr Component from a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsGetSample.ts
index bd7b5241e480..63392516dab3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSample.ts
index 2112faa76ce3..e96459cea1f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr Components for a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSecretsSample.ts
index 37e4a8ab354e..dd43b87e2b6b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDaprComponentsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a dapr component
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDeleteSample.ts
index c6fdc636ca7a..bbf76c8ff087 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsGetSample.ts
index e8f7f31ced9a..a5dd61f3f2b3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListByResourceGroupSample.ts
index e9c45e500c57..7684448fa341 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all connectedEnvironments in a resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListBySubscriptionSample.ts
index 6c9a299052ff..00ad3aace6a4 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all connectedEnvironments for a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
index 5928dd5e6244..9c79d299d08e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesDeleteSample.ts
index 5fc9cde5ebcb..b24ec52c3315 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesGetSample.ts
index 5a1f55e4bea6..05bc1ea75a14 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesListSample.ts
index f29b7b41df49..d3522cabf929 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsStoragesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all storages for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsUpdateSample.ts
index 1dfd45c76f9f..18ebf349f9f7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/connectedEnvironmentsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Managed Environment. Only patching of tags is supported currently
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsCreateOrUpdateSample.ts
index 115d838711c8..e60e12c6a285 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AuthConfig, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the AuthConfig for a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsDeleteSample.ts
index bda605a091a4..052926ca6e19 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App AuthConfig.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsGetSample.ts
index 9a7306d38736..d058b91f436a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a AuthConfig of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsListByContainerAppSample.ts
index c36c29790989..b98cb1b00bfc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsAuthConfigsListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container App AuthConfigs in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsByContainerAppListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsByContainerAppListSample.ts
index 4a607783b949..04f537c9d3e0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsByContainerAppListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsByContainerAppListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Container Apps Build resources by Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsDeleteSample.ts
index c11ff926dda8..18d9b5b51b6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container Apps Build resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsGetSample.ts
index eca9eee15ff7..7ba31062f07b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsBuildsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Container Apps Build resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsCreateOrUpdateSample.ts
index 8232891a8a5b..6a5f2e64dd86 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDeleteSample.ts
index 20e1decc934c..a4d1230527bb 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetDetectorSample.ts
index acdaf3ee3b56..e5487ccf7039 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a diagnostics result of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRevisionSample.ts
index 82fba47516f1..b0a3e42e0117 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a revision of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRootSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRootSample.ts
index 5f8b35ddf6bb..dc63948aeb37 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRootSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsGetRootSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListDetectorsSample.ts
index 9184583b9f6e..47e3c5926aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListRevisionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListRevisionsSample.ts
index 44838615a93a..0ac52f09d57d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListRevisionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsDiagnosticsListRevisionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Revisions for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetAuthTokenSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetAuthTokenSample.ts
index 4bf4461815de..2d8cba27e065 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetAuthTokenSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetAuthTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get auth token for a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetSample.ts
index 9b75f70fb8c5..3c790be274ee 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListByResourceGroupSample.ts
index c4eb599799ed..d3adccf6e04f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListBySubscriptionSample.ts
index 582c0a3a1eab..5c69b1b8785c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListCustomHostNameAnalysisSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListCustomHostNameAnalysisSample.ts
index 79bb7d2f9761..97c19d226cfc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListCustomHostNameAnalysisSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListCustomHostNameAnalysisSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Analyzes a custom hostname for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListSecretsSample.ts
index 442edc98f7af..9aef324cd9db 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesApplySample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesApplySample.ts
index dba55636b820..1b7330aef569 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesApplySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesApplySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Apply a Container Apps Patch resource with patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesDeleteSample.ts
index 747e6c4f7f88..677e0173553d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specific Container Apps Patch by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesGetSample.ts
index 3f5ca32def8c..9cc9084673f3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get details for specific Container Apps Patch by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesListByContainerAppSample.ts
index 5754a684baf5..dd08aae33fb1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Container Apps Patch resources by ContainerApp.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesSkipConfigureSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesSkipConfigureSample.ts
index 89e8cf3e0cb4..3a5fde37e853 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesSkipConfigureSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsPatchesSkipConfigureSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Configure the Container Apps Patch skip option by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasGetReplicaSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasGetReplicaSample.ts
index 794017babc02..30159eb7a18e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasGetReplicaSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasGetReplicaSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a replica for a Container App Revision.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasListReplicasSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasListReplicasSample.ts
index c8763331adf6..cf3ea133b0ea 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasListReplicasSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionReplicasListReplicasSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List replicas for a Container App Revision.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsActivateRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsActivateRevisionSample.ts
index 8e1f0dbdf42a..3fc4522b5909 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsActivateRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsActivateRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Activates a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsDeactivateRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsDeactivateRevisionSample.ts
index c706374bb850..b93b6b2ae5ee 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsDeactivateRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsDeactivateRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deactivates a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsGetRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsGetRevisionSample.ts
index 2ed9d6380018..207e73a4bc3e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsGetRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsGetRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a revision of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsListRevisionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsListRevisionsSample.ts
index eb567ce4a6a7..fa19c613c613 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsListRevisionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsListRevisionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Revisions for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsRestartRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsRestartRevisionSample.ts
index bba96271c89e..93d58b772708 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsRestartRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsRevisionsRestartRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restarts a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsCreateOrUpdateSample.ts
index acab4ec82135..89db3d220f13 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { SessionPool, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a session pool with the given properties.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsDeleteSample.ts
index 233ed246a535..c94cddef64f9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the session pool with the given name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsGetSample.ts
index e75f5f88568b..dfd6fdeb924f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a session pool.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListByResourceGroupSample.ts
index 2ffd53da2bf1..abb6f48de826 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the session pools in a given resource group of a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListBySubscriptionSample.ts
index c7122d3c1c6d..f28e20681ac1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the session pools in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsUpdateSample.ts
index 90075dd852cc..441181158bc7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSessionPoolsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a session pool using JSON merge patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.ts
index 3dbbbafdbdfe..7552b54cea10 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the SourceControl for a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsDeleteSample.ts
index 82c91bc7c504..4010b5e3688b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App SourceControl.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsGetSample.ts
index e2dac09650d7..57f3e64941f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a SourceControl of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsListByContainerAppSample.ts
index ca709a826eba..5beb0fd1aff5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsSourceControlsListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container App SourceControls in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStartSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStartSample.ts
index 1c94b6fef488..bc16f1d1407c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStartSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStopSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStopSample.ts
index 7e48972a2437..4af7dffdaf6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStopSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsUpdateSample.ts
index 04ae7fc1decf..6ccf2528ae84 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/containerAppsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Container App using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
index 8ee79db8e947..b4b2654875fd 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a resiliency policy for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesDeleteSample.ts
index 1c638dfbf418..ce97714fc7c0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a resiliency policy for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesGetSample.ts
index e9cc4b9b7c79..e02733474fe2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Dapr component resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesListSample.ts
index c0cb8ce834c5..541d32c5ab09 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentResiliencyPoliciesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the resiliency policies for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsCreateOrUpdateSample.ts
index c08faf0410d0..5c97454ee144 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsDeleteSample.ts
index f0513e25572f..95244958f2cf 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr Component from a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsGetSample.ts
index 87c609208ea3..ea06e77c2d38 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSample.ts
index 08dfb732839b..b243568ac2a1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSecretsSample.ts
index 2792f4efee78..2787c2021e04 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprComponentsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a dapr component
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsCreateOrUpdateSample.ts
index 5deffc90d18d..f43719ea2d5b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr subscription in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsDeleteSample.ts
index 428f31bb7710..ccf2970e7af5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr subscription from a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsGetSample.ts
index 985468e00e61..957267891dbe 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsListSample.ts
index 16d8c67af25f..79bb2a116fa7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/daprSubscriptionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr subscriptions for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsCreateOrUpdateSample.ts
index a02dfdbe9f6f..4185396c20af 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a .NET Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsDeleteSample.ts
index 354232b05fd3..716eb090ccac 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a .NET Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsGetSample.ts
index a8865a1534d7..4158c1bf1a43 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a .NET Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsListSample.ts
index ea58c37e23cd..7cac9d5cee1e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the .NET Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsUpdateSample.ts
index 935fc722870d..a2916ebc5126 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/dotNetComponentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a .NET Component using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/functionsExtensionInvokeFunctionsHostSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/functionsExtensionInvokeFunctionsHostSample.ts
index 97e531cdd931..2a89a33c9482 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/functionsExtensionInvokeFunctionsHostSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/functionsExtensionInvokeFunctionsHostSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Proxies a Functions host call to the function app backed by the container app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/getCustomDomainVerificationIdSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/getCustomDomainVerificationIdSample.ts
index a91080d94ddf..5be8af709612 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/getCustomDomainVerificationIdSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/getCustomDomainVerificationIdSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the verification id of a subscription used for verifying custom domains
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsCreateOrUpdateSample.ts
index 8b6a9d98bf71..eb10d63689f6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Java Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsDeleteSample.ts
index 7d3dc783c007..b9cf2c5e0d7e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Java Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsGetSample.ts
index 47d9f1e32fce..bc1b3eb9660b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Java Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsListSample.ts
index 32bded2c49f9..d7b197701e80 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Java Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsUpdateSample.ts
index 0474a6654eba..11d51b1cd0dd 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/javaComponentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Java Component using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobExecutionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobExecutionSample.ts
index e85f4354d268..74088e4d5d7f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobExecutionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobExecutionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get details of a single job execution
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsCreateOrUpdateSample.ts
index 26fe2bc4688c..4b659647e91f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Job, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsDeleteSample.ts
index 2318b24c5daf..60874c9fb8a1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsExecutionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsExecutionsListSample.ts
index 8b7da96a9ddd..9138a85f86ed 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsExecutionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsExecutionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Container Apps Job's executions
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetDetectorSample.ts
index 8610ffc7fef2..f321e5a59008 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the diagnostics data for a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetSample.ts
index 3ff2b1dad233..dc2aed41cf64 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListByResourceGroupSample.ts
index 96f77e980394..46edfcac5334 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps Jobs in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListBySubscriptionSample.ts
index 6ee7a0f60edf..4180fb03cefa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps Jobs in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListDetectorsSample.ts
index eb76dc483c9e..294a0c247082 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListSecretsSample.ts
index 775e3f9f8814..09bb0646c729 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsProxyGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsProxyGetSample.ts
index 8f5ca2249676..c442043e8b2b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsProxyGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsProxyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsResumeSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsResumeSample.ts
index d0a751b7c273..a1f808bed8e5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsResumeSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsResumeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Resumes a suspended job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStartSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStartSample.ts
index d31a84d38c7d..76aa0ab57880 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStartSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStartSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a Container Apps Job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopExecutionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopExecutionSample.ts
index ab03569a6337..cfaa45e155aa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopExecutionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopExecutionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Terminates execution of a running container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopMultipleExecutionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopMultipleExecutionsSample.ts
index b0b460bce16f..5d003d1d5e7c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopMultipleExecutionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsStopMultipleExecutionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Terminates execution of a running container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsSuspendSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsSuspendSample.ts
index be4479299fa8..dae6acfe20a8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsSuspendSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsSuspendSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Suspends a job
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsUpdateSample.ts
index 0006f5efb91a..96bb33d79702 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/jobsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/jobsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Container Apps Job using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsCreateOrUpdateSample.ts
index bdc8e37ccc41..1b048591d2f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { LogicApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Logic App extension resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeleteSample.ts
index 8ad73db8e4fd..b471dd8d0f27 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Logic App extension resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeployWorkflowArtifactsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeployWorkflowArtifactsSample.ts
index a91c60920640..d31f7d0d404e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeployWorkflowArtifactsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsDeployWorkflowArtifactsSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates the artifacts for the logic app
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetSample.ts
index 2b24469f900b..1e6c9a71a1b8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a logic app extension resource.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetWorkflowSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetWorkflowSample.ts
index 64c802646e58..a7bd585afaf6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetWorkflowSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsGetWorkflowSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get workflow information by its name
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsInvokeSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsInvokeSample.ts
index c31a43c63d96..79a76bc867a0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsInvokeSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsInvokeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Proxies a the API call to the logic app backed by the container app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsConnectionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsConnectionsSample.ts
index d5e2aa6c429a..ad00433220a5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsConnectionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsConnectionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets logic app's connections.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsSample.ts
index aab927bc0233..a14b73174079 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/logicAppsListWorkflowsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the workflows for a logic app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesCreateOrUpdateSample.ts
index 15a44ccd9b48..499d495bbfbc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesDeleteSample.ts
index 0cfbafc49c4d..da819a8f52e6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesGetSample.ts
index c822dc7f46ce..5b15df25c792 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesListSample.ts
index 5171e6177b17..9bbc6d16e2ec 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Managed Certificates in a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesUpdateSample.ts
index 3d2ea090aaa7..c9ee4c6bd7fa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedCertificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a managed certificate. Oly patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsGetDetectorSample.ts
index 72a0ac0ea832..af5284a58b5f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the diagnostics data for a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsListDetectorsSample.ts
index a88b6894622e..42098d2d6e6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentDiagnosticsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
index 23ea1fcb2b84..1300e449086b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the state of a private endpoint connection for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
index bc4b86afa66e..75b071d3cbef 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a private endpoint connection for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
index e4f1b6f375ff..36842f5f8a2e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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 for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsListSample.ts
index ae69e3148523..5d24636fb1e6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateEndpointConnectionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateLinkResourcesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateLinkResourcesListSample.ts
index 8a051bcf40d2..20a5d743bc03 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateLinkResourcesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentPrivateLinkResourcesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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 managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentUsagesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentUsagesListSample.ts
index 697bb39d382c..5fb7137ea4e3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentUsagesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentUsagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the current usage information as well as the limits for environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsCreateOrUpdateSample.ts
index a976f00e5f38..0c975a22a131 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDeleteSample.ts
index cb8629b3645b..f9e8697b638d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Managed Environment if it does not have any container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDiagnosticsGetRootSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDiagnosticsGetRootSample.ts
index 67d890875f73..1c9f58a2e0f1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDiagnosticsGetRootSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsDiagnosticsGetRootSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetAuthTokenSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetAuthTokenSample.ts
index 1cdb22c214ab..01170a42c88b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetAuthTokenSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetAuthTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource name is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetSample.ts
index 486602dabebe..85bb6cc47aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListByResourceGroupSample.ts
index 6b1109d2e065..8f28e29d80f9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all the Managed Environments in a resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListBySubscriptionSample.ts
index 7ec77bce5eaa..d1b7521eb110 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all Managed Environments for a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListWorkloadProfileStatesSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListWorkloadProfileStatesSample.ts
index 003c3d9ccfa7..65386ed8456f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListWorkloadProfileStatesSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsListWorkloadProfileStatesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all workload Profile States for a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesCreateOrUpdateSample.ts
index e9c32ca17e5c..c894687e0aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesDeleteSample.ts
index cda8137e27ab..f30488d50ca2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesGetSample.ts
index 8fa28c5d712b..bdda6a5acb46 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesListSample.ts
index 54a952f16f05..8fa7248a0d89 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsStoragesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all storages for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsUpdateSample.ts
index 76f08c82563b..d8dfdedc25bf 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/managedEnvironmentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Managed Environment using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/namespacesCheckNameAvailabilitySample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/namespacesCheckNameAvailabilitySample.ts
index c5c65e2c91dc..81da7d83bfd8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/namespacesCheckNameAvailabilitySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/namespacesCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource name is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples-dev/operationsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/operationsListSample.ts
index 94d27d2206c6..7860115c7bf5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/operationsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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/appcontainers/arm-appcontainers/samples-dev/usagesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples-dev/usagesListSample.ts
index c5b4ef71dbe7..378df7fe680e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples-dev/usagesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples-dev/usagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets, for the specified location, the current resource usage information as well as the limits under the subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyCreateOrUpdateSample.ts
index 3a3c3f3c2453..67d6e2a31d01 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyDeleteSample.ts
index 78b0a401487e..bdd92593e2f8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyGetSample.ts
index d08e0acda257..1392ea4276c3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyListSample.ts
index 760a5bf9f230..bcaee09057d0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List container app resiliency policies.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyUpdateSample.ts
index a9f0e31be93f..efb7405d4051 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/appResiliencyUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update container app resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/availableWorkloadProfilesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/availableWorkloadProfilesGetSample.ts
index 6a45a7a411dc..1d9e7c3ec9b7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/availableWorkloadProfilesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/availableWorkloadProfilesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all available workload profiles for a location.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/billingMetersGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/billingMetersGetSample.ts
index 771c9c2babc5..0944c7e79c06 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/billingMetersGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/billingMetersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all billingMeters for a location.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildAuthTokenListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildAuthTokenListSample.ts
index d6bb3fde86ce..2ea5346bcf15 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildAuthTokenListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildAuthTokenListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the token used to connect to the endpoint where source code can be uploaded for a build.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersCreateOrUpdateSample.ts
index dc88eebb2f45..0c8beb62150a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersDeleteSample.ts
index 782f53983878..c9d9f98dcea6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersGetSample.ts
index c670f279892b..1d9507319c24 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListByResourceGroupSample.ts
index d8c70dedd471..b9a455d3034a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuilderResource resources by resource group
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListBySubscriptionSample.ts
index 3dafaf62fa96..d92c7a337927 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuilderResource resources by subscription ID
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersUpdateSample.ts
index 5796a8d6e51a..29c8faa8d02c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildersUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update a BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsByBuilderResourceListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsByBuilderResourceListSample.ts
index eaf15b8bbbc3..e93d4cc07ddb 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsByBuilderResourceListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsByBuilderResourceListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List BuildResource resources by BuilderResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsCreateOrUpdateSample.ts
index db90e7c24974..a67e010ea4be 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsDeleteSample.ts
index 8d2883011370..adbf1ab90186 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsGetSample.ts
index ff61f1ab2334..49d4a94d6f40 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/buildsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a BuildResource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts
index e6002e494e84..a556fabead0d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesDeleteSample.ts
index 6ebf0c39df4d..b681c9a9af8a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesGetSample.ts
index 28e3339616b7..35d01df94f8f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesListSample.ts
index 8e7d54213cde..ebe2a1bb28ac 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Certificates in a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesUpdateSample.ts
index 9476ddaffd95..f2be7571bcf1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/certificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a certificate. Currently only patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
index db048f71cc42..d829f8ed91b2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesDeleteSample.ts
index 379f8043ac67..71e309c9f63b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesGetSample.ts
index a635b8d10149..823a7a4b247b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesListSample.ts
index 77837c25fbca..64e2318a9d41 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Certificates in a given connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesUpdateSample.ts
index acf23eb6f863..64f6c701207b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCertificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a certificate. Currently only patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCheckNameAvailabilitySample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCheckNameAvailabilitySample.ts
index 45b77ae580be..748c01b0619e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCheckNameAvailabilitySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource connectedEnvironmentName is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCreateOrUpdateSample.ts
index daf0ce306b00..65f8be9dc270 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
index 8cdb7c86d2f7..a9e0d6c3b050 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr Component in a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsDeleteSample.ts
index 9aee7508a88e..d169c34adb4c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr Component from a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsGetSample.ts
index bd7b5241e480..63392516dab3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSample.ts
index 2112faa76ce3..e96459cea1f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr Components for a connected environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSecretsSample.ts
index 37e4a8ab354e..dd43b87e2b6b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDaprComponentsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a dapr component
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDeleteSample.ts
index c6fdc636ca7a..bbf76c8ff087 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsGetSample.ts
index e8f7f31ced9a..a5dd61f3f2b3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of an connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListByResourceGroupSample.ts
index e9c45e500c57..7684448fa341 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all connectedEnvironments in a resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListBySubscriptionSample.ts
index 6c9a299052ff..00ad3aace6a4 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all connectedEnvironments for a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
index 5928dd5e6244..9c79d299d08e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesDeleteSample.ts
index 5fc9cde5ebcb..b24ec52c3315 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesGetSample.ts
index 5a1f55e4bea6..05bc1ea75a14 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get storage for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesListSample.ts
index f29b7b41df49..d3522cabf929 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsStoragesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all storages for a connectedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsUpdateSample.ts
index 1dfd45c76f9f..18ebf349f9f7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/connectedEnvironmentsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Managed Environment. Only patching of tags is supported currently
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsCreateOrUpdateSample.ts
index 115d838711c8..e60e12c6a285 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AuthConfig, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the AuthConfig for a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsDeleteSample.ts
index bda605a091a4..052926ca6e19 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App AuthConfig.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsGetSample.ts
index 9a7306d38736..d058b91f436a 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a AuthConfig of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsListByContainerAppSample.ts
index c36c29790989..b98cb1b00bfc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsAuthConfigsListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container App AuthConfigs in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsByContainerAppListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsByContainerAppListSample.ts
index 4a607783b949..04f537c9d3e0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsByContainerAppListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsByContainerAppListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Container Apps Build resources by Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsDeleteSample.ts
index c11ff926dda8..18d9b5b51b6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container Apps Build resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsGetSample.ts
index eca9eee15ff7..7ba31062f07b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsBuildsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Container Apps Build resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsCreateOrUpdateSample.ts
index 8232891a8a5b..6a5f2e64dd86 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDeleteSample.ts
index 20e1decc934c..a4d1230527bb 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetDetectorSample.ts
index acdaf3ee3b56..e5487ccf7039 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a diagnostics result of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRevisionSample.ts
index 82fba47516f1..b0a3e42e0117 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a revision of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRootSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRootSample.ts
index 5f8b35ddf6bb..dc63948aeb37 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRootSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsGetRootSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListDetectorsSample.ts
index 9184583b9f6e..47e3c5926aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListRevisionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListRevisionsSample.ts
index 44838615a93a..0ac52f09d57d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListRevisionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsDiagnosticsListRevisionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Revisions for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetAuthTokenSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetAuthTokenSample.ts
index 4bf4461815de..2d8cba27e065 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetAuthTokenSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetAuthTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get auth token for a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetSample.ts
index 9b75f70fb8c5..3c790be274ee 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListByResourceGroupSample.ts
index c4eb599799ed..d3adccf6e04f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListBySubscriptionSample.ts
index 582c0a3a1eab..5c69b1b8785c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListCustomHostNameAnalysisSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListCustomHostNameAnalysisSample.ts
index 79bb7d2f9761..97c19d226cfc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListCustomHostNameAnalysisSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListCustomHostNameAnalysisSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Analyzes a custom hostname for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListSecretsSample.ts
index 442edc98f7af..9aef324cd9db 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesApplySample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesApplySample.ts
index dba55636b820..1b7330aef569 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesApplySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesApplySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Apply a Container Apps Patch resource with patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesDeleteSample.ts
index 747e6c4f7f88..677e0173553d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specific Container Apps Patch by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesGetSample.ts
index 3f5ca32def8c..9cc9084673f3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get details for specific Container Apps Patch by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesListByContainerAppSample.ts
index 5754a684baf5..dd08aae33fb1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Container Apps Patch resources by ContainerApp.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesSkipConfigureSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesSkipConfigureSample.ts
index 89e8cf3e0cb4..3a5fde37e853 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesSkipConfigureSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsPatchesSkipConfigureSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Configure the Container Apps Patch skip option by patch name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasGetReplicaSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasGetReplicaSample.ts
index 794017babc02..30159eb7a18e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasGetReplicaSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasGetReplicaSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a replica for a Container App Revision.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasListReplicasSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasListReplicasSample.ts
index c8763331adf6..cf3ea133b0ea 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasListReplicasSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionReplicasListReplicasSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List replicas for a Container App Revision.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsActivateRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsActivateRevisionSample.ts
index 8e1f0dbdf42a..3fc4522b5909 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsActivateRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsActivateRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Activates a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsDeactivateRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsDeactivateRevisionSample.ts
index c706374bb850..b93b6b2ae5ee 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsDeactivateRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsDeactivateRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deactivates a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsGetRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsGetRevisionSample.ts
index 2ed9d6380018..207e73a4bc3e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsGetRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsGetRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a revision of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsListRevisionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsListRevisionsSample.ts
index eb567ce4a6a7..fa19c613c613 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsListRevisionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsListRevisionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Revisions for a given Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsRestartRevisionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsRestartRevisionSample.ts
index bba96271c89e..93d58b772708 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsRestartRevisionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsRevisionsRestartRevisionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restarts a revision for a Container App
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsCreateOrUpdateSample.ts
index acab4ec82135..89db3d220f13 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { SessionPool, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a session pool with the given properties.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsDeleteSample.ts
index 233ed246a535..c94cddef64f9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the session pool with the given name.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsGetSample.ts
index e75f5f88568b..dfd6fdeb924f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a session pool.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListByResourceGroupSample.ts
index 2ffd53da2bf1..abb6f48de826 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the session pools in a given resource group of a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListBySubscriptionSample.ts
index c7122d3c1c6d..f28e20681ac1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the session pools in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsUpdateSample.ts
index 90075dd852cc..441181158bc7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSessionPoolsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a session pool using JSON merge patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsCreateOrUpdateSample.ts
index 3dbbbafdbdfe..7552b54cea10 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the SourceControl for a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsDeleteSample.ts
index 82c91bc7c504..4010b5e3688b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsDeleteSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container App SourceControl.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsGetSample.ts
index e2dac09650d7..57f3e64941f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a SourceControl of a Container App.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsListByContainerAppSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsListByContainerAppSample.ts
index ca709a826eba..5beb0fd1aff5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsListByContainerAppSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsSourceControlsListByContainerAppSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container App SourceControls in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStartSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStartSample.ts
index 1c94b6fef488..bc16f1d1407c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStartSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStopSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStopSample.ts
index 7e48972a2437..4af7dffdaf6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStopSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop a container app
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsUpdateSample.ts
index 04ae7fc1decf..6ccf2528ae84 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/containerAppsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Container App using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
index 8ee79db8e947..b4b2654875fd 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a resiliency policy for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesDeleteSample.ts
index 1c638dfbf418..ce97714fc7c0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a resiliency policy for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesGetSample.ts
index e9cc4b9b7c79..e02733474fe2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Dapr component resiliency policy.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesListSample.ts
index c0cb8ce834c5..541d32c5ab09 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentResiliencyPoliciesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the resiliency policies for a Dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsCreateOrUpdateSample.ts
index c08faf0410d0..5c97454ee144 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsDeleteSample.ts
index f0513e25572f..95244958f2cf 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr Component from a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsGetSample.ts
index 87c609208ea3..ea06e77c2d38 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSample.ts
index 08dfb732839b..b243568ac2a1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSecretsSample.ts
index 2792f4efee78..2787c2021e04 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprComponentsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a dapr component
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsCreateOrUpdateSample.ts
index 5deffc90d18d..f43719ea2d5b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Dapr subscription in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsDeleteSample.ts
index 428f31bb7710..ccf2970e7af5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Dapr subscription from a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsGetSample.ts
index 985468e00e61..957267891dbe 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a dapr subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsListSample.ts
index 16d8c67af25f..79bb2a116fa7 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/daprSubscriptionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Dapr subscriptions for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsCreateOrUpdateSample.ts
index a02dfdbe9f6f..4185396c20af 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a .NET Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsDeleteSample.ts
index 354232b05fd3..716eb090ccac 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a .NET Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsGetSample.ts
index a8865a1534d7..4158c1bf1a43 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a .NET Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsListSample.ts
index ea58c37e23cd..7cac9d5cee1e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the .NET Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsUpdateSample.ts
index 935fc722870d..a2916ebc5126 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/dotNetComponentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a .NET Component using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/functionsExtensionInvokeFunctionsHostSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/functionsExtensionInvokeFunctionsHostSample.ts
index 97e531cdd931..2a89a33c9482 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/functionsExtensionInvokeFunctionsHostSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/functionsExtensionInvokeFunctionsHostSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Proxies a Functions host call to the function app backed by the container app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/getCustomDomainVerificationIdSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/getCustomDomainVerificationIdSample.ts
index a91080d94ddf..5be8af709612 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/getCustomDomainVerificationIdSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/getCustomDomainVerificationIdSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the verification id of a subscription used for verifying custom domains
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsCreateOrUpdateSample.ts
index 8b6a9d98bf71..eb10d63689f6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Java Component in a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsDeleteSample.ts
index 7d3dc783c007..b9cf2c5e0d7e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Java Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsGetSample.ts
index 47d9f1e32fce..bc1b3eb9660b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Java Component.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsListSample.ts
index 32bded2c49f9..d7b197701e80 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Java Components for a managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsUpdateSample.ts
index 0474a6654eba..11d51b1cd0dd 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/javaComponentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Java Component using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobExecutionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobExecutionSample.ts
index e85f4354d268..74088e4d5d7f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobExecutionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobExecutionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get details of a single job execution
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsCreateOrUpdateSample.ts
index 26fe2bc4688c..4b659647e91f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Job, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsDeleteSample.ts
index 2318b24c5daf..60874c9fb8a1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsExecutionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsExecutionsListSample.ts
index 8b7da96a9ddd..9138a85f86ed 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsExecutionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsExecutionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Container Apps Job's executions
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetDetectorSample.ts
index 8610ffc7fef2..f321e5a59008 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the diagnostics data for a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetSample.ts
index 3ff2b1dad233..dc2aed41cf64 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container Apps Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListByResourceGroupSample.ts
index 96f77e980394..46edfcac5334 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps Jobs in a given resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListBySubscriptionSample.ts
index 6ee7a0f60edf..4180fb03cefa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Container Apps Jobs in a given subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListDetectorsSample.ts
index eb76dc483c9e..294a0c247082 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListSecretsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListSecretsSample.ts
index 775e3f9f8814..09bb0646c729 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListSecretsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsListSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List secrets for a container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsProxyGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsProxyGetSample.ts
index 8f5ca2249676..c442043e8b2b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsProxyGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsProxyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Container App Job.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsResumeSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsResumeSample.ts
index d0a751b7c273..a1f808bed8e5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsResumeSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsResumeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Resumes a suspended job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStartSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStartSample.ts
index d31a84d38c7d..76aa0ab57880 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStartSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStartSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a Container Apps Job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopExecutionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopExecutionSample.ts
index ab03569a6337..cfaa45e155aa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopExecutionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopExecutionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Terminates execution of a running container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopMultipleExecutionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopMultipleExecutionsSample.ts
index b0b460bce16f..5d003d1d5e7c 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopMultipleExecutionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsStopMultipleExecutionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Terminates execution of a running container apps job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsSuspendSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsSuspendSample.ts
index be4479299fa8..dae6acfe20a8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsSuspendSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsSuspendSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Suspends a job
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsUpdateSample.ts
index 0006f5efb91a..96bb33d79702 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/jobsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Container Apps Job using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsCreateOrUpdateSample.ts
index bdc8e37ccc41..1b048591d2f2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { LogicApp, ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a Logic App extension resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeleteSample.ts
index 8ad73db8e4fd..b471dd8d0f27 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a Logic App extension resource
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeployWorkflowArtifactsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeployWorkflowArtifactsSample.ts
index a91c60920640..d31f7d0d404e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeployWorkflowArtifactsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsDeployWorkflowArtifactsSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates the artifacts for the logic app
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetSample.ts
index 2b24469f900b..1e6c9a71a1b8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a logic app extension resource.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetWorkflowSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetWorkflowSample.ts
index 64c802646e58..a7bd585afaf6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetWorkflowSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsGetWorkflowSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get workflow information by its name
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsInvokeSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsInvokeSample.ts
index c31a43c63d96..79a76bc867a0 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsInvokeSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsInvokeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Proxies a the API call to the logic app backed by the container app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsConnectionsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsConnectionsSample.ts
index d5e2aa6c429a..ad00433220a5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsConnectionsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsConnectionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets logic app's connections.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsSample.ts
index aab927bc0233..a14b73174079 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/logicAppsListWorkflowsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the workflows for a logic app.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesCreateOrUpdateSample.ts
index 15a44ccd9b48..499d495bbfbc 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesCreateOrUpdateSample.ts
@@ -14,9 +14,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or Update a Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesDeleteSample.ts
index 0cfbafc49c4d..da819a8f52e6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesGetSample.ts
index c822dc7f46ce..5b15df25c792 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the specified Managed Certificate.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesListSample.ts
index 5171e6177b17..9bbc6d16e2ec 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Managed Certificates in a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesUpdateSample.ts
index 3d2ea090aaa7..c9ee4c6bd7fa 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedCertificatesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a managed certificate. Oly patching of tags is supported
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsGetDetectorSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsGetDetectorSample.ts
index 72a0ac0ea832..af5284a58b5f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsGetDetectorSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the diagnostics data for a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsListDetectorsSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsListDetectorsSample.ts
index a88b6894622e..42098d2d6e6f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsListDetectorsSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentDiagnosticsListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the list of diagnostics for a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
index 23ea1fcb2b84..1300e449086b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the state of a private endpoint connection for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
index bc4b86afa66e..75b071d3cbef 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a private endpoint connection for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
index e4f1b6f375ff..36842f5f8a2e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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 for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsListSample.ts
index ae69e3148523..5d24636fb1e6 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateEndpointConnectionsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List private endpoint connections for a given managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateLinkResourcesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateLinkResourcesListSample.ts
index 8a051bcf40d2..20a5d743bc03 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateLinkResourcesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentPrivateLinkResourcesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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 managed environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentUsagesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentUsagesListSample.ts
index 697bb39d382c..5fb7137ea4e3 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentUsagesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentUsagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the current usage information as well as the limits for environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsCreateOrUpdateSample.ts
index a976f00e5f38..0c975a22a131 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDeleteSample.ts
index cb8629b3645b..f9e8697b638d 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a Managed Environment if it does not have any container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDiagnosticsGetRootSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDiagnosticsGetRootSample.ts
index 67d890875f73..1c9f58a2e0f1 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDiagnosticsGetRootSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsDiagnosticsGetRootSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetAuthTokenSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetAuthTokenSample.ts
index 1cdb22c214ab..01170a42c88b 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetAuthTokenSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetAuthTokenSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource name is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetSample.ts
index 486602dabebe..85bb6cc47aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the properties of a Managed Environment used to host container apps.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListByResourceGroupSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListByResourceGroupSample.ts
index 6b1109d2e065..8f28e29d80f9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListByResourceGroupSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all the Managed Environments in a resource group.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListBySubscriptionSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListBySubscriptionSample.ts
index 7ec77bce5eaa..d1b7521eb110 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListBySubscriptionSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all Managed Environments for a subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListWorkloadProfileStatesSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListWorkloadProfileStatesSample.ts
index 003c3d9ccfa7..65386ed8456f 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListWorkloadProfileStatesSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsListWorkloadProfileStatesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all workload Profile States for a Managed Environment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesCreateOrUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesCreateOrUpdateSample.ts
index e9c32ca17e5c..c894687e0aa9 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesCreateOrUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesDeleteSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesDeleteSample.ts
index cda8137e27ab..f30488d50ca2 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesDeleteSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesGetSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesGetSample.ts
index 8fa28c5d712b..bdda6a5acb46 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesGetSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get storage for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesListSample.ts
index 54a952f16f05..8fa7248a0d89 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsStoragesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all storages for a managedEnvironment.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsUpdateSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsUpdateSample.ts
index 76f08c82563b..d8dfdedc25bf 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsUpdateSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/managedEnvironmentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches a Managed Environment using JSON Merge Patch
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/namespacesCheckNameAvailabilitySample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/namespacesCheckNameAvailabilitySample.ts
index c5c65e2c91dc..81da7d83bfd8 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/namespacesCheckNameAvailabilitySample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/namespacesCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
ContainerAppsAPIClient,
} from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks if resource name is available.
diff --git a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/operationsListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/operationsListSample.ts
index 94d27d2206c6..7860115c7bf5 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/operationsListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
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/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/usagesListSample.ts b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/usagesListSample.ts
index c5b4ef71dbe7..378df7fe680e 100644
--- a/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/usagesListSample.ts
+++ b/sdk/appcontainers/arm-appcontainers/samples/v2-beta/typescript/src/usagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ContainerAppsAPIClient } from "@azure/arm-appcontainers";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets, for the specified location, the current resource usage information as well as the limits under the subscription.
diff --git a/sdk/appcontainers/arm-appcontainers/src/containerAppsAPIClient.ts b/sdk/appcontainers/arm-appcontainers/src/containerAppsAPIClient.ts
index feb94f79ee0b..5ffab2f9fc2e 100644
--- a/sdk/appcontainers/arm-appcontainers/src/containerAppsAPIClient.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/containerAppsAPIClient.ts
@@ -57,7 +57,7 @@ import {
ContainerAppsSourceControlsImpl,
UsagesImpl,
ManagedEnvironmentUsagesImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
AppResiliencyOperations,
ContainerAppsAuthConfigs,
@@ -101,16 +101,16 @@ import {
ContainerAppsSourceControls,
Usages,
ManagedEnvironmentUsages,
-} from "./operationsInterfaces";
-import * as Parameters from "./models/parameters";
-import * as Mappers from "./models/mappers";
+} from "./operationsInterfaces/index.js";
+import * as Parameters from "./models/parameters.js";
+import * as Mappers from "./models/mappers.js";
import {
ContainerAppsAPIClientOptionalParams,
JobExecutionOptionalParams,
JobExecutionResponse,
GetCustomDomainVerificationIdOptionalParams,
GetCustomDomainVerificationIdResponse,
-} from "./models";
+} from "./models/index.js";
export class ContainerAppsAPIClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/appcontainers/arm-appcontainers/src/index.ts b/sdk/appcontainers/arm-appcontainers/src/index.ts
index 7f97ef95a798..4139fb05612c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/index.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { ContainerAppsAPIClient } from "./containerAppsAPIClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { ContainerAppsAPIClient } from "./containerAppsAPIClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/appcontainers/arm-appcontainers/src/models/parameters.ts b/sdk/appcontainers/arm-appcontainers/src/models/parameters.ts
index b11ccec32a8f..b2ca7cc67a9c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/models/parameters.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/models/parameters.ts
@@ -42,7 +42,7 @@ import {
SessionPool as SessionPoolMapper,
SessionPoolUpdatableProperties as SessionPoolUpdatablePropertiesMapper,
SourceControl as SourceControlMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const contentType: OperationParameter = {
parameterPath: ["options", "contentType"],
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/appResiliencyOperations.ts b/sdk/appcontainers/arm-appcontainers/src/operations/appResiliencyOperations.ts
index cdb9220543a7..f9a4b90b2bb1 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/appResiliencyOperations.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/appResiliencyOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AppResiliencyOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AppResiliencyOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
AppResiliency,
AppResiliencyListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
AppResiliencyGetOptionalParams,
AppResiliencyGetResponse,
AppResiliencyListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AppResiliencyOperations operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/availableWorkloadProfiles.ts b/sdk/appcontainers/arm-appcontainers/src/operations/availableWorkloadProfiles.ts
index afa19ce5b59a..1a32f13c31ee 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/availableWorkloadProfiles.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/availableWorkloadProfiles.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AvailableWorkloadProfiles } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AvailableWorkloadProfiles } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
AvailableWorkloadProfile,
AvailableWorkloadProfilesGetNextOptionalParams,
AvailableWorkloadProfilesGetOptionalParams,
AvailableWorkloadProfilesGetResponse,
AvailableWorkloadProfilesGetNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AvailableWorkloadProfiles operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/billingMeters.ts b/sdk/appcontainers/arm-appcontainers/src/operations/billingMeters.ts
index f1045164e6ad..bc442598016a 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/billingMeters.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/billingMeters.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BillingMeters } from "../operationsInterfaces";
+import { BillingMeters } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
BillingMetersGetOptionalParams,
BillingMetersGetResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing BillingMeters operations. */
export class BillingMetersImpl implements BillingMeters {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/buildAuthToken.ts b/sdk/appcontainers/arm-appcontainers/src/operations/buildAuthToken.ts
index ff23e47f9bf3..32642103a800 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/buildAuthToken.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/buildAuthToken.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BuildAuthToken } from "../operationsInterfaces";
+import { BuildAuthToken } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
BuildAuthTokenListOptionalParams,
BuildAuthTokenListResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing BuildAuthToken operations. */
export class BuildAuthTokenImpl implements BuildAuthToken {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/builders.ts b/sdk/appcontainers/arm-appcontainers/src/operations/builders.ts
index 0ec80c46cf79..22ade9ed93a2 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/builders.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/builders.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Builders } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Builders } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuilderResource,
BuildersListBySubscriptionNextOptionalParams,
@@ -38,7 +38,7 @@ import {
BuildersDeleteResponse,
BuildersListBySubscriptionNextResponse,
BuildersListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Builders operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/builds.ts b/sdk/appcontainers/arm-appcontainers/src/operations/builds.ts
index 2c99f98f3173..6859f1b9c582 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/builds.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/builds.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Builds } from "../operationsInterfaces";
+import { Builds } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuildsGetOptionalParams,
BuildsGetResponse,
@@ -25,7 +25,7 @@ import {
BuildsCreateOrUpdateResponse,
BuildsDeleteOptionalParams,
BuildsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Builds operations. */
export class BuildsImpl implements Builds {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/buildsByBuilderResource.ts b/sdk/appcontainers/arm-appcontainers/src/operations/buildsByBuilderResource.ts
index 008c12adcec4..a8fee9418158 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/buildsByBuilderResource.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/buildsByBuilderResource.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BuildsByBuilderResource } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BuildsByBuilderResource } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
BuildResource,
BuildsByBuilderResourceListNextOptionalParams,
BuildsByBuilderResourceListOptionalParams,
BuildsByBuilderResourceListResponse,
BuildsByBuilderResourceListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BuildsByBuilderResource operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/certificates.ts b/sdk/appcontainers/arm-appcontainers/src/operations/certificates.ts
index 4f15233ca615..fd96a92c921c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/certificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/certificates.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Certificates } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Certificates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Certificate,
CertificatesListNextOptionalParams,
@@ -27,7 +27,7 @@ import {
CertificatesUpdateOptionalParams,
CertificatesUpdateResponse,
CertificatesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Certificates operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironments.ts b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironments.ts
index 904bb456ca03..72fd3bc75444 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironments.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironments.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ConnectedEnvironments } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ConnectedEnvironments } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ConnectedEnvironment,
ConnectedEnvironmentsListBySubscriptionNextOptionalParams,
@@ -39,7 +39,7 @@ import {
ConnectedEnvironmentsCheckNameAvailabilityResponse,
ConnectedEnvironmentsListBySubscriptionNextResponse,
ConnectedEnvironmentsListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ConnectedEnvironments operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsCertificates.ts b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsCertificates.ts
index edda1eb3afe2..9a0c85d72086 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsCertificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsCertificates.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ConnectedEnvironmentsCertificates } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ConnectedEnvironmentsCertificates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Certificate,
ConnectedEnvironmentsCertificatesListNextOptionalParams,
@@ -27,7 +27,7 @@ import {
ConnectedEnvironmentsCertificatesUpdateOptionalParams,
ConnectedEnvironmentsCertificatesUpdateResponse,
ConnectedEnvironmentsCertificatesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ConnectedEnvironmentsCertificates operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsDaprComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsDaprComponents.ts
index 8c6e0fd011de..8a50faebf2ae 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsDaprComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsDaprComponents.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ConnectedEnvironmentsDaprComponents } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ConnectedEnvironmentsDaprComponents } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
DaprComponent,
ConnectedEnvironmentsDaprComponentsListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
ConnectedEnvironmentsDaprComponentsListSecretsOptionalParams,
ConnectedEnvironmentsDaprComponentsListSecretsResponse,
ConnectedEnvironmentsDaprComponentsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ConnectedEnvironmentsDaprComponents operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsStorages.ts b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsStorages.ts
index 8f4f415369aa..af80c88ab92b 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsStorages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/connectedEnvironmentsStorages.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ConnectedEnvironmentsStorages } from "../operationsInterfaces";
+import { ConnectedEnvironmentsStorages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ConnectedEnvironmentsStoragesListOptionalParams,
ConnectedEnvironmentsStoragesListResponse,
@@ -20,7 +20,7 @@ import {
ConnectedEnvironmentsStoragesCreateOrUpdateOptionalParams,
ConnectedEnvironmentsStoragesCreateOrUpdateResponse,
ConnectedEnvironmentsStoragesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Class containing ConnectedEnvironmentsStorages operations. */
export class ConnectedEnvironmentsStoragesImpl
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerApps.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerApps.ts
index 72c64115780a..c0c8bde6a46e 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerApps.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerApps.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerApps } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerApps } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ContainerApp,
ContainerAppsListBySubscriptionNextOptionalParams,
@@ -46,7 +46,7 @@ import {
ContainerAppsStopResponse,
ContainerAppsListBySubscriptionNextResponse,
ContainerAppsListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerApps operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsAuthConfigs.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsAuthConfigs.ts
index 66bb622111e2..6b9c66ec7d05 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsAuthConfigs.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsAuthConfigs.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsAuthConfigs } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsAuthConfigs } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
AuthConfig,
ContainerAppsAuthConfigsListByContainerAppNextOptionalParams,
@@ -24,7 +24,7 @@ import {
ContainerAppsAuthConfigsCreateOrUpdateResponse,
ContainerAppsAuthConfigsDeleteOptionalParams,
ContainerAppsAuthConfigsListByContainerAppNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsAuthConfigs operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuilds.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuilds.ts
index 1a0a92f3ca2a..22dab3ae3340 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuilds.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuilds.ts
@@ -6,23 +6,23 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ContainerAppsBuilds } from "../operationsInterfaces";
+import { ContainerAppsBuilds } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ContainerAppsBuildsGetOptionalParams,
ContainerAppsBuildsGetResponse,
ContainerAppsBuildsDeleteOptionalParams,
ContainerAppsBuildsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ContainerAppsBuilds operations. */
export class ContainerAppsBuildsImpl implements ContainerAppsBuilds {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuildsByContainerApp.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuildsByContainerApp.ts
index 3858fb146dac..84078badaabc 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuildsByContainerApp.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsBuildsByContainerApp.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsBuildsByContainerApp } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsBuildsByContainerApp } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ContainerAppsBuildResource,
ContainerAppsBuildsByContainerAppListNextOptionalParams,
ContainerAppsBuildsByContainerAppListOptionalParams,
ContainerAppsBuildsByContainerAppListResponse,
ContainerAppsBuildsByContainerAppListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsBuildsByContainerApp operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsDiagnostics.ts
index 8fed138934ca..e86bfea88806 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsDiagnostics.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsDiagnostics } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsDiagnostics } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Diagnostics,
ContainerAppsDiagnosticsListDetectorsNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ContainerAppsDiagnosticsGetRootResponse,
ContainerAppsDiagnosticsListDetectorsNextResponse,
ContainerAppsDiagnosticsListRevisionsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsDiagnostics operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsPatches.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsPatches.ts
index ab8897dd8384..aa4a5d368624 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsPatches.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsPatches.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsPatches } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsPatches } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ContainerAppsPatchResource,
ContainerAppsPatchesListByContainerAppNextOptionalParams,
@@ -34,7 +34,7 @@ import {
ContainerAppsPatchesApplyOptionalParams,
ContainerAppsPatchesApplyResponse,
ContainerAppsPatchesListByContainerAppNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsPatches operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisionReplicas.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisionReplicas.ts
index a072d6fc87f2..b564e5a808c6 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisionReplicas.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisionReplicas.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ContainerAppsRevisionReplicas } from "../operationsInterfaces";
+import { ContainerAppsRevisionReplicas } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ContainerAppsRevisionReplicasGetReplicaOptionalParams,
ContainerAppsRevisionReplicasGetReplicaResponse,
ContainerAppsRevisionReplicasListReplicasOptionalParams,
ContainerAppsRevisionReplicasListReplicasResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ContainerAppsRevisionReplicas operations. */
export class ContainerAppsRevisionReplicasImpl
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisions.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisions.ts
index de5a75f89fef..bbaf3823ef10 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsRevisions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsRevisions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsRevisions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Revision,
ContainerAppsRevisionsListRevisionsNextOptionalParams,
@@ -24,7 +24,7 @@ import {
ContainerAppsRevisionsDeactivateRevisionOptionalParams,
ContainerAppsRevisionsRestartRevisionOptionalParams,
ContainerAppsRevisionsListRevisionsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsRevisions operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSessionPools.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSessionPools.ts
index ea3d20b3ba55..d5b6c312be16 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSessionPools.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSessionPools.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsSessionPools } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsSessionPools } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SessionPool,
ContainerAppsSessionPoolsListBySubscriptionNextOptionalParams,
@@ -38,7 +38,7 @@ import {
ContainerAppsSessionPoolsDeleteResponse,
ContainerAppsSessionPoolsListBySubscriptionNextResponse,
ContainerAppsSessionPoolsListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsSessionPools operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSourceControls.ts b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSourceControls.ts
index b5bea2011311..f8474d618484 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSourceControls.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/containerAppsSourceControls.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerAppsSourceControls } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerAppsSourceControls } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SourceControl,
ContainerAppsSourceControlsListByContainerAppNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ContainerAppsSourceControlsCreateOrUpdateResponse,
ContainerAppsSourceControlsDeleteOptionalParams,
ContainerAppsSourceControlsListByContainerAppNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerAppsSourceControls operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/daprComponentResiliencyPolicies.ts b/sdk/appcontainers/arm-appcontainers/src/operations/daprComponentResiliencyPolicies.ts
index a1dc68a23ea3..68fc5927d359 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/daprComponentResiliencyPolicies.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/daprComponentResiliencyPolicies.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DaprComponentResiliencyPolicies } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DaprComponentResiliencyPolicies } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
DaprComponentResiliencyPolicy,
DaprComponentResiliencyPoliciesListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
DaprComponentResiliencyPoliciesCreateOrUpdateResponse,
DaprComponentResiliencyPoliciesDeleteOptionalParams,
DaprComponentResiliencyPoliciesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DaprComponentResiliencyPolicies operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/daprComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operations/daprComponents.ts
index 0ff866f57987..6e073723fb61 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/daprComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/daprComponents.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DaprComponents } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DaprComponents } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
DaprComponent,
DaprComponentsListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
DaprComponentsListSecretsOptionalParams,
DaprComponentsListSecretsResponse,
DaprComponentsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DaprComponents operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/daprSubscriptions.ts b/sdk/appcontainers/arm-appcontainers/src/operations/daprSubscriptions.ts
index d7153d92ef1d..89df257cd13d 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/daprSubscriptions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/daprSubscriptions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DaprSubscriptions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DaprSubscriptions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
DaprSubscription,
DaprSubscriptionsListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
DaprSubscriptionsCreateOrUpdateResponse,
DaprSubscriptionsDeleteOptionalParams,
DaprSubscriptionsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DaprSubscriptions operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/dotNetComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operations/dotNetComponents.ts
index fcd9ea334e1d..5404ff076d5b 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/dotNetComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/dotNetComponents.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DotNetComponents } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DotNetComponents } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DotNetComponent,
DotNetComponentsListNextOptionalParams,
@@ -33,7 +33,7 @@ import {
DotNetComponentsDeleteOptionalParams,
DotNetComponentsDeleteResponse,
DotNetComponentsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DotNetComponents operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/functionsExtension.ts b/sdk/appcontainers/arm-appcontainers/src/operations/functionsExtension.ts
index 9a82b922bcc4..066ab32f70dc 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/functionsExtension.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/functionsExtension.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { FunctionsExtension } from "../operationsInterfaces";
+import { FunctionsExtension } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
FunctionsExtensionInvokeFunctionsHostOptionalParams,
FunctionsExtensionInvokeFunctionsHostResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing FunctionsExtension operations. */
export class FunctionsExtensionImpl implements FunctionsExtension {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/index.ts b/sdk/appcontainers/arm-appcontainers/src/operations/index.ts
index 19854da4eb30..849c6cc8ba61 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/index.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/index.ts
@@ -6,45 +6,45 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./appResiliencyOperations";
-export * from "./containerAppsAuthConfigs";
-export * from "./availableWorkloadProfiles";
-export * from "./billingMeters";
-export * from "./builders";
-export * from "./buildsByBuilderResource";
-export * from "./builds";
-export * from "./buildAuthToken";
-export * from "./connectedEnvironments";
-export * from "./connectedEnvironmentsCertificates";
-export * from "./connectedEnvironmentsDaprComponents";
-export * from "./connectedEnvironmentsStorages";
-export * from "./containerApps";
-export * from "./containerAppsBuildsByContainerApp";
-export * from "./containerAppsBuilds";
-export * from "./containerAppsPatches";
-export * from "./containerAppsRevisions";
-export * from "./containerAppsRevisionReplicas";
-export * from "./containerAppsDiagnostics";
-export * from "./managedEnvironmentDiagnostics";
-export * from "./managedEnvironmentsDiagnostics";
-export * from "./jobs";
-export * from "./dotNetComponents";
-export * from "./functionsExtension";
-export * from "./operations";
-export * from "./javaComponents";
-export * from "./jobsExecutions";
-export * from "./logicApps";
-export * from "./managedEnvironments";
-export * from "./certificates";
-export * from "./managedCertificates";
-export * from "./namespaces";
-export * from "./managedEnvironmentPrivateEndpointConnections";
-export * from "./managedEnvironmentPrivateLinkResources";
-export * from "./daprComponentResiliencyPolicies";
-export * from "./daprComponents";
-export * from "./daprSubscriptions";
-export * from "./managedEnvironmentsStorages";
-export * from "./containerAppsSessionPools";
-export * from "./containerAppsSourceControls";
-export * from "./usages";
-export * from "./managedEnvironmentUsages";
+export * from "./appResiliencyOperations.js";
+export * from "./containerAppsAuthConfigs.js";
+export * from "./availableWorkloadProfiles.js";
+export * from "./billingMeters.js";
+export * from "./builders.js";
+export * from "./buildsByBuilderResource.js";
+export * from "./builds.js";
+export * from "./buildAuthToken.js";
+export * from "./connectedEnvironments.js";
+export * from "./connectedEnvironmentsCertificates.js";
+export * from "./connectedEnvironmentsDaprComponents.js";
+export * from "./connectedEnvironmentsStorages.js";
+export * from "./containerApps.js";
+export * from "./containerAppsBuildsByContainerApp.js";
+export * from "./containerAppsBuilds.js";
+export * from "./containerAppsPatches.js";
+export * from "./containerAppsRevisions.js";
+export * from "./containerAppsRevisionReplicas.js";
+export * from "./containerAppsDiagnostics.js";
+export * from "./managedEnvironmentDiagnostics.js";
+export * from "./managedEnvironmentsDiagnostics.js";
+export * from "./jobs.js";
+export * from "./dotNetComponents.js";
+export * from "./functionsExtension.js";
+export * from "./operations.js";
+export * from "./javaComponents.js";
+export * from "./jobsExecutions.js";
+export * from "./logicApps.js";
+export * from "./managedEnvironments.js";
+export * from "./certificates.js";
+export * from "./managedCertificates.js";
+export * from "./namespaces.js";
+export * from "./managedEnvironmentPrivateEndpointConnections.js";
+export * from "./managedEnvironmentPrivateLinkResources.js";
+export * from "./daprComponentResiliencyPolicies.js";
+export * from "./daprComponents.js";
+export * from "./daprSubscriptions.js";
+export * from "./managedEnvironmentsStorages.js";
+export * from "./containerAppsSessionPools.js";
+export * from "./containerAppsSourceControls.js";
+export * from "./usages.js";
+export * from "./managedEnvironmentUsages.js";
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/javaComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operations/javaComponents.ts
index 76f06b99552e..1f8c64264997 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/javaComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/javaComponents.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { JavaComponents } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { JavaComponents } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
JavaComponent,
JavaComponentsListNextOptionalParams,
@@ -33,7 +33,7 @@ import {
JavaComponentsDeleteOptionalParams,
JavaComponentsDeleteResponse,
JavaComponentsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing JavaComponents operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/jobs.ts b/sdk/appcontainers/arm-appcontainers/src/operations/jobs.ts
index 6a5d9cbb123a..72a41797ea5d 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/jobs.ts
+++ b/sdk/appcontainers/arm-appcontainers/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 { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Diagnostics,
JobsListDetectorsNextOptionalParams,
@@ -57,7 +57,7 @@ import {
JobsListDetectorsNextResponse,
JobsListBySubscriptionNextResponse,
JobsListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Jobs operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/jobsExecutions.ts b/sdk/appcontainers/arm-appcontainers/src/operations/jobsExecutions.ts
index f24877b461cc..d294ca0d6454 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/jobsExecutions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/jobsExecutions.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { JobsExecutions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { JobsExecutions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
JobExecution,
JobsExecutionsListNextOptionalParams,
JobsExecutionsListOptionalParams,
JobsExecutionsListResponse,
JobsExecutionsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing JobsExecutions operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/logicApps.ts b/sdk/appcontainers/arm-appcontainers/src/operations/logicApps.ts
index cf4686b5c4bf..09e938a2509b 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/logicApps.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/logicApps.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { LogicApps } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { LogicApps } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
WorkflowEnvelope,
LogicAppsListWorkflowsNextOptionalParams,
@@ -33,7 +33,7 @@ import {
LogicAppsInvokeOptionalParams,
LogicAppsInvokeResponse,
LogicAppsListWorkflowsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing LogicApps operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedCertificates.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedCertificates.ts
index d5f3336fbda4..0673ecf24507 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedCertificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedCertificates.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ManagedCertificates } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ManagedCertificates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ManagedCertificate,
ManagedCertificatesListNextOptionalParams,
@@ -33,7 +33,7 @@ import {
ManagedCertificatesUpdateOptionalParams,
ManagedCertificatesUpdateResponse,
ManagedCertificatesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ManagedCertificates operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentDiagnostics.ts
index 038afee6e1c1..9c2811a7e8c0 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentDiagnostics.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ManagedEnvironmentDiagnostics } from "../operationsInterfaces";
+import { ManagedEnvironmentDiagnostics } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ManagedEnvironmentDiagnosticsListDetectorsOptionalParams,
ManagedEnvironmentDiagnosticsListDetectorsResponse,
ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,
ManagedEnvironmentDiagnosticsGetDetectorResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ManagedEnvironmentDiagnostics operations. */
export class ManagedEnvironmentDiagnosticsImpl
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateEndpointConnections.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateEndpointConnections.ts
index 862d98b8492f..1160e2670a2c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateEndpointConnections.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateEndpointConnections.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ManagedEnvironmentPrivateEndpointConnections } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ManagedEnvironmentPrivateEndpointConnections } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
PrivateEndpointConnection,
ManagedEnvironmentPrivateEndpointConnectionsListNextOptionalParams,
@@ -31,7 +31,7 @@ import {
ManagedEnvironmentPrivateEndpointConnectionsDeleteOptionalParams,
ManagedEnvironmentPrivateEndpointConnectionsDeleteResponse,
ManagedEnvironmentPrivateEndpointConnectionsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ManagedEnvironmentPrivateEndpointConnections operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateLinkResources.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateLinkResources.ts
index 7f547281ed18..78d2ed8cc12a 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateLinkResources.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentPrivateLinkResources.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ManagedEnvironmentPrivateLinkResources } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ManagedEnvironmentPrivateLinkResources } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
PrivateLinkResource,
ManagedEnvironmentPrivateLinkResourcesListNextOptionalParams,
ManagedEnvironmentPrivateLinkResourcesListOptionalParams,
ManagedEnvironmentPrivateLinkResourcesListResponse,
ManagedEnvironmentPrivateLinkResourcesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ManagedEnvironmentPrivateLinkResources operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentUsages.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentUsages.ts
index a6c7efe0e7ba..6ef9c20f4288 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentUsages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentUsages.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ManagedEnvironmentUsages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ManagedEnvironmentUsages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Usage,
ManagedEnvironmentUsagesListNextOptionalParams,
ManagedEnvironmentUsagesListOptionalParams,
ManagedEnvironmentUsagesListResponse,
ManagedEnvironmentUsagesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ManagedEnvironmentUsages operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironments.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironments.ts
index 4ffe90f9199a..9fa9aaaa481f 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironments.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironments.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ManagedEnvironments } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ManagedEnvironments } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ManagedEnvironment,
ManagedEnvironmentsListBySubscriptionNextOptionalParams,
@@ -43,7 +43,7 @@ import {
ManagedEnvironmentsListBySubscriptionNextResponse,
ManagedEnvironmentsListByResourceGroupNextResponse,
ManagedEnvironmentsListWorkloadProfileStatesNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ManagedEnvironments operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsDiagnostics.ts
index 62f5b5074cfc..e64f184bb9da 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsDiagnostics.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ManagedEnvironmentsDiagnostics } from "../operationsInterfaces";
+import { ManagedEnvironmentsDiagnostics } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ManagedEnvironmentsDiagnosticsGetRootOptionalParams,
ManagedEnvironmentsDiagnosticsGetRootResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing ManagedEnvironmentsDiagnostics operations. */
export class ManagedEnvironmentsDiagnosticsImpl
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsStorages.ts b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsStorages.ts
index a4c6b3ac5119..c271cd74c765 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsStorages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/managedEnvironmentsStorages.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ManagedEnvironmentsStorages } from "../operationsInterfaces";
+import { ManagedEnvironmentsStorages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
ManagedEnvironmentsStoragesListOptionalParams,
ManagedEnvironmentsStoragesListResponse,
@@ -20,7 +20,7 @@ import {
ManagedEnvironmentsStoragesCreateOrUpdateOptionalParams,
ManagedEnvironmentsStoragesCreateOrUpdateResponse,
ManagedEnvironmentsStoragesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Class containing ManagedEnvironmentsStorages operations. */
export class ManagedEnvironmentsStoragesImpl
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/namespaces.ts b/sdk/appcontainers/arm-appcontainers/src/operations/namespaces.ts
index e86dee1ef889..8bb64803b747 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/namespaces.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/namespaces.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Namespaces } from "../operationsInterfaces";
+import { Namespaces } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
CheckNameAvailabilityRequest,
NamespacesCheckNameAvailabilityOptionalParams,
NamespacesCheckNameAvailabilityResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Namespaces operations. */
export class NamespacesImpl implements Namespaces {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/operations.ts b/sdk/appcontainers/arm-appcontainers/src/operations/operations.ts
index b9ca128ba1aa..ee17b987dc21 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/operations.ts
+++ b/sdk/appcontainers/arm-appcontainers/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 { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
OperationDetail,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operations/usages.ts b/sdk/appcontainers/arm-appcontainers/src/operations/usages.ts
index 93fb83b6bebf..ca8165b7fa94 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operations/usages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operations/usages.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Usages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Usages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ContainerAppsAPIClient } from "../containerAppsAPIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ContainerAppsAPIClient } from "../containerAppsAPIClient.js";
import {
Usage,
UsagesListNextOptionalParams,
UsagesListOptionalParams,
UsagesListResponse,
UsagesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Usages operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/appResiliencyOperations.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/appResiliencyOperations.ts
index 02ddd9a3dcff..3e4158ebd7aa 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/appResiliencyOperations.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/appResiliencyOperations.ts
@@ -17,7 +17,7 @@ import {
AppResiliencyDeleteOptionalParams,
AppResiliencyGetOptionalParams,
AppResiliencyGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AppResiliencyOperations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/availableWorkloadProfiles.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/availableWorkloadProfiles.ts
index de0457d5f3d9..3e3c5fc15d54 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/availableWorkloadProfiles.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/availableWorkloadProfiles.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
AvailableWorkloadProfile,
AvailableWorkloadProfilesGetOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AvailableWorkloadProfiles. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/billingMeters.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/billingMeters.ts
index d2f874699108..e511f377e60d 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/billingMeters.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/billingMeters.ts
@@ -9,7 +9,7 @@
import {
BillingMetersGetOptionalParams,
BillingMetersGetResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a BillingMeters. */
export interface BillingMeters {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildAuthToken.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildAuthToken.ts
index e3809bfe5362..ab9589360638 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildAuthToken.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildAuthToken.ts
@@ -9,7 +9,7 @@
import {
BuildAuthTokenListOptionalParams,
BuildAuthTokenListResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a BuildAuthToken. */
export interface BuildAuthToken {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builders.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builders.ts
index cd798024a5b0..d9855aa4cd26 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builders.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builders.ts
@@ -21,7 +21,7 @@ import {
BuildersUpdateResponse,
BuildersDeleteOptionalParams,
BuildersDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Builders. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builds.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builds.ts
index 4bda16271c98..c412e427e2b6 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builds.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/builds.ts
@@ -15,7 +15,7 @@ import {
BuildsCreateOrUpdateResponse,
BuildsDeleteOptionalParams,
BuildsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Builds. */
export interface Builds {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildsByBuilderResource.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildsByBuilderResource.ts
index 8fc0552a0b84..52172642eb4d 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildsByBuilderResource.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/buildsByBuilderResource.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
BuildResource,
BuildsByBuilderResourceListOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BuildsByBuilderResource. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/certificates.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/certificates.ts
index b5ec1260d46f..1817ef0fe4bc 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/certificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/certificates.ts
@@ -18,7 +18,7 @@ import {
CertificatePatch,
CertificatesUpdateOptionalParams,
CertificatesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Certificates. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironments.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironments.ts
index 0b8da5e483a0..08efe08b09e4 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironments.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironments.ts
@@ -22,7 +22,7 @@ import {
CheckNameAvailabilityRequest,
ConnectedEnvironmentsCheckNameAvailabilityOptionalParams,
ConnectedEnvironmentsCheckNameAvailabilityResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ConnectedEnvironments. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsCertificates.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsCertificates.ts
index 8a39598f59f0..b6386792a123 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsCertificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsCertificates.ts
@@ -18,7 +18,7 @@ import {
CertificatePatch,
ConnectedEnvironmentsCertificatesUpdateOptionalParams,
ConnectedEnvironmentsCertificatesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ConnectedEnvironmentsCertificates. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsDaprComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsDaprComponents.ts
index ad829ef3d7f4..939866895f13 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsDaprComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsDaprComponents.ts
@@ -17,7 +17,7 @@ import {
ConnectedEnvironmentsDaprComponentsDeleteOptionalParams,
ConnectedEnvironmentsDaprComponentsListSecretsOptionalParams,
ConnectedEnvironmentsDaprComponentsListSecretsResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ConnectedEnvironmentsDaprComponents. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsStorages.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsStorages.ts
index d83f94c38661..186362a53183 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsStorages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/connectedEnvironmentsStorages.ts
@@ -15,7 +15,7 @@ import {
ConnectedEnvironmentsStoragesCreateOrUpdateOptionalParams,
ConnectedEnvironmentsStoragesCreateOrUpdateResponse,
ConnectedEnvironmentsStoragesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ConnectedEnvironmentsStorages. */
export interface ConnectedEnvironmentsStorages {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerApps.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerApps.ts
index 571821975c52..5379a5c01410 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerApps.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerApps.ts
@@ -29,7 +29,7 @@ import {
ContainerAppsStartResponse,
ContainerAppsStopOptionalParams,
ContainerAppsStopResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerApps. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsAuthConfigs.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsAuthConfigs.ts
index 9f0f058ec0d3..306561b33efc 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsAuthConfigs.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsAuthConfigs.ts
@@ -15,7 +15,7 @@ import {
ContainerAppsAuthConfigsCreateOrUpdateOptionalParams,
ContainerAppsAuthConfigsCreateOrUpdateResponse,
ContainerAppsAuthConfigsDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsAuthConfigs. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuilds.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuilds.ts
index 8e998eedd8b2..e75bab7ec11b 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuilds.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuilds.ts
@@ -12,7 +12,7 @@ import {
ContainerAppsBuildsGetResponse,
ContainerAppsBuildsDeleteOptionalParams,
ContainerAppsBuildsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ContainerAppsBuilds. */
export interface ContainerAppsBuilds {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuildsByContainerApp.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuildsByContainerApp.ts
index 3c9655f51f28..9211820d0996 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuildsByContainerApp.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsBuildsByContainerApp.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ContainerAppsBuildResource,
ContainerAppsBuildsByContainerAppListOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsBuildsByContainerApp. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsDiagnostics.ts
index 39f5fbbe0286..d266058e5824 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsDiagnostics.ts
@@ -18,7 +18,7 @@ import {
ContainerAppsDiagnosticsGetRevisionResponse,
ContainerAppsDiagnosticsGetRootOptionalParams,
ContainerAppsDiagnosticsGetRootResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsDiagnostics. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsPatches.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsPatches.ts
index 65cfb81a6351..9c7ec65860e3 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsPatches.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsPatches.ts
@@ -20,7 +20,7 @@ import {
ContainerAppsPatchesSkipConfigureResponse,
ContainerAppsPatchesApplyOptionalParams,
ContainerAppsPatchesApplyResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsPatches. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisionReplicas.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisionReplicas.ts
index 90ce534b97a3..8dca32e3baae 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisionReplicas.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisionReplicas.ts
@@ -11,7 +11,7 @@ import {
ContainerAppsRevisionReplicasGetReplicaResponse,
ContainerAppsRevisionReplicasListReplicasOptionalParams,
ContainerAppsRevisionReplicasListReplicasResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ContainerAppsRevisionReplicas. */
export interface ContainerAppsRevisionReplicas {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisions.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisions.ts
index 3725f904e912..1410e530dbec 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsRevisions.ts
@@ -15,7 +15,7 @@ import {
ContainerAppsRevisionsActivateRevisionOptionalParams,
ContainerAppsRevisionsDeactivateRevisionOptionalParams,
ContainerAppsRevisionsRestartRevisionOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsRevisions. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSessionPools.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSessionPools.ts
index a60d6ec80cd2..6c4f1a73c906 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSessionPools.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSessionPools.ts
@@ -21,7 +21,7 @@ import {
ContainerAppsSessionPoolsUpdateResponse,
ContainerAppsSessionPoolsDeleteOptionalParams,
ContainerAppsSessionPoolsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsSessionPools. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSourceControls.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSourceControls.ts
index e7d678d02aec..2d322415ea3a 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSourceControls.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/containerAppsSourceControls.ts
@@ -16,7 +16,7 @@ import {
ContainerAppsSourceControlsCreateOrUpdateOptionalParams,
ContainerAppsSourceControlsCreateOrUpdateResponse,
ContainerAppsSourceControlsDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerAppsSourceControls. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponentResiliencyPolicies.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponentResiliencyPolicies.ts
index ba6615f2fc7e..223704be7678 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponentResiliencyPolicies.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponentResiliencyPolicies.ts
@@ -15,7 +15,7 @@ import {
DaprComponentResiliencyPoliciesCreateOrUpdateOptionalParams,
DaprComponentResiliencyPoliciesCreateOrUpdateResponse,
DaprComponentResiliencyPoliciesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DaprComponentResiliencyPolicies. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponents.ts
index c57b04bab6d1..4ec751b13193 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprComponents.ts
@@ -17,7 +17,7 @@ import {
DaprComponentsDeleteOptionalParams,
DaprComponentsListSecretsOptionalParams,
DaprComponentsListSecretsResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DaprComponents. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprSubscriptions.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprSubscriptions.ts
index 958294ab0a36..2a850fcc768c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprSubscriptions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/daprSubscriptions.ts
@@ -15,7 +15,7 @@ import {
DaprSubscriptionsCreateOrUpdateOptionalParams,
DaprSubscriptionsCreateOrUpdateResponse,
DaprSubscriptionsDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DaprSubscriptions. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/dotNetComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/dotNetComponents.ts
index 42d2b70d9a67..8d00067697cc 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/dotNetComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/dotNetComponents.ts
@@ -19,7 +19,7 @@ import {
DotNetComponentsUpdateResponse,
DotNetComponentsDeleteOptionalParams,
DotNetComponentsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DotNetComponents. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/functionsExtension.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/functionsExtension.ts
index c49faec48872..a48c38de7bb7 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/functionsExtension.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/functionsExtension.ts
@@ -9,7 +9,7 @@
import {
FunctionsExtensionInvokeFunctionsHostOptionalParams,
FunctionsExtensionInvokeFunctionsHostResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a FunctionsExtension. */
export interface FunctionsExtension {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/index.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/index.ts
index 19854da4eb30..849c6cc8ba61 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/index.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/index.ts
@@ -6,45 +6,45 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./appResiliencyOperations";
-export * from "./containerAppsAuthConfigs";
-export * from "./availableWorkloadProfiles";
-export * from "./billingMeters";
-export * from "./builders";
-export * from "./buildsByBuilderResource";
-export * from "./builds";
-export * from "./buildAuthToken";
-export * from "./connectedEnvironments";
-export * from "./connectedEnvironmentsCertificates";
-export * from "./connectedEnvironmentsDaprComponents";
-export * from "./connectedEnvironmentsStorages";
-export * from "./containerApps";
-export * from "./containerAppsBuildsByContainerApp";
-export * from "./containerAppsBuilds";
-export * from "./containerAppsPatches";
-export * from "./containerAppsRevisions";
-export * from "./containerAppsRevisionReplicas";
-export * from "./containerAppsDiagnostics";
-export * from "./managedEnvironmentDiagnostics";
-export * from "./managedEnvironmentsDiagnostics";
-export * from "./jobs";
-export * from "./dotNetComponents";
-export * from "./functionsExtension";
-export * from "./operations";
-export * from "./javaComponents";
-export * from "./jobsExecutions";
-export * from "./logicApps";
-export * from "./managedEnvironments";
-export * from "./certificates";
-export * from "./managedCertificates";
-export * from "./namespaces";
-export * from "./managedEnvironmentPrivateEndpointConnections";
-export * from "./managedEnvironmentPrivateLinkResources";
-export * from "./daprComponentResiliencyPolicies";
-export * from "./daprComponents";
-export * from "./daprSubscriptions";
-export * from "./managedEnvironmentsStorages";
-export * from "./containerAppsSessionPools";
-export * from "./containerAppsSourceControls";
-export * from "./usages";
-export * from "./managedEnvironmentUsages";
+export * from "./appResiliencyOperations.js";
+export * from "./containerAppsAuthConfigs.js";
+export * from "./availableWorkloadProfiles.js";
+export * from "./billingMeters.js";
+export * from "./builders.js";
+export * from "./buildsByBuilderResource.js";
+export * from "./builds.js";
+export * from "./buildAuthToken.js";
+export * from "./connectedEnvironments.js";
+export * from "./connectedEnvironmentsCertificates.js";
+export * from "./connectedEnvironmentsDaprComponents.js";
+export * from "./connectedEnvironmentsStorages.js";
+export * from "./containerApps.js";
+export * from "./containerAppsBuildsByContainerApp.js";
+export * from "./containerAppsBuilds.js";
+export * from "./containerAppsPatches.js";
+export * from "./containerAppsRevisions.js";
+export * from "./containerAppsRevisionReplicas.js";
+export * from "./containerAppsDiagnostics.js";
+export * from "./managedEnvironmentDiagnostics.js";
+export * from "./managedEnvironmentsDiagnostics.js";
+export * from "./jobs.js";
+export * from "./dotNetComponents.js";
+export * from "./functionsExtension.js";
+export * from "./operations.js";
+export * from "./javaComponents.js";
+export * from "./jobsExecutions.js";
+export * from "./logicApps.js";
+export * from "./managedEnvironments.js";
+export * from "./certificates.js";
+export * from "./managedCertificates.js";
+export * from "./namespaces.js";
+export * from "./managedEnvironmentPrivateEndpointConnections.js";
+export * from "./managedEnvironmentPrivateLinkResources.js";
+export * from "./daprComponentResiliencyPolicies.js";
+export * from "./daprComponents.js";
+export * from "./daprSubscriptions.js";
+export * from "./managedEnvironmentsStorages.js";
+export * from "./containerAppsSessionPools.js";
+export * from "./containerAppsSourceControls.js";
+export * from "./usages.js";
+export * from "./managedEnvironmentUsages.js";
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/javaComponents.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/javaComponents.ts
index a523c0ea6b2b..584111cfb5f1 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/javaComponents.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/javaComponents.ts
@@ -19,7 +19,7 @@ import {
JavaComponentsUpdateResponse,
JavaComponentsDeleteOptionalParams,
JavaComponentsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a JavaComponents. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobs.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobs.ts
index 9ec8acecce0d..a8e171db2aa8 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobs.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobs.ts
@@ -37,7 +37,7 @@ import {
JobsResumeResponse,
JobsSuspendOptionalParams,
JobsSuspendResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Jobs. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobsExecutions.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobsExecutions.ts
index 15ace0ca1129..4d24d7e856c7 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobsExecutions.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/jobsExecutions.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { JobExecution, JobsExecutionsListOptionalParams } from "../models";
+import { JobExecution, JobsExecutionsListOptionalParams } from "../models/index.js";
///
/** Interface representing a JobsExecutions. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/logicApps.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/logicApps.ts
index 70b12e099618..16666d7cca33 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/logicApps.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/logicApps.ts
@@ -24,7 +24,7 @@ import {
LogicAppsProxyMethod,
LogicAppsInvokeOptionalParams,
LogicAppsInvokeResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a LogicApps. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedCertificates.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedCertificates.ts
index 5dc26fab53cc..792d22e0f23d 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedCertificates.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedCertificates.ts
@@ -19,7 +19,7 @@ import {
ManagedCertificatePatch,
ManagedCertificatesUpdateOptionalParams,
ManagedCertificatesUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ManagedCertificates. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentDiagnostics.ts
index 6ca308b7d02d..0385eaa46d90 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentDiagnostics.ts
@@ -11,7 +11,7 @@ import {
ManagedEnvironmentDiagnosticsListDetectorsResponse,
ManagedEnvironmentDiagnosticsGetDetectorOptionalParams,
ManagedEnvironmentDiagnosticsGetDetectorResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ManagedEnvironmentDiagnostics. */
export interface ManagedEnvironmentDiagnostics {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateEndpointConnections.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateEndpointConnections.ts
index 603ba7f7c2ce..6f6d16a40382 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateEndpointConnections.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateEndpointConnections.ts
@@ -17,7 +17,7 @@ import {
ManagedEnvironmentPrivateEndpointConnectionsCreateOrUpdateResponse,
ManagedEnvironmentPrivateEndpointConnectionsDeleteOptionalParams,
ManagedEnvironmentPrivateEndpointConnectionsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ManagedEnvironmentPrivateEndpointConnections. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateLinkResources.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateLinkResources.ts
index 1f3937da2566..c6cfc3f4da5c 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateLinkResources.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentPrivateLinkResources.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
PrivateLinkResource,
ManagedEnvironmentPrivateLinkResourcesListOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ManagedEnvironmentPrivateLinkResources. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentUsages.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentUsages.ts
index 739999975a72..36ff3cb97672 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentUsages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentUsages.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Usage, ManagedEnvironmentUsagesListOptionalParams } from "../models";
+import { Usage, ManagedEnvironmentUsagesListOptionalParams } from "../models/index.js";
///
/** Interface representing a ManagedEnvironmentUsages. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironments.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironments.ts
index eb46dcc0f59a..4371b7ca6eaa 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironments.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironments.ts
@@ -23,7 +23,7 @@ import {
ManagedEnvironmentsUpdateResponse,
ManagedEnvironmentsGetAuthTokenOptionalParams,
ManagedEnvironmentsGetAuthTokenResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ManagedEnvironments. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsDiagnostics.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsDiagnostics.ts
index 60ef889bf09d..4bf475c3fce2 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsDiagnostics.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsDiagnostics.ts
@@ -9,7 +9,7 @@
import {
ManagedEnvironmentsDiagnosticsGetRootOptionalParams,
ManagedEnvironmentsDiagnosticsGetRootResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ManagedEnvironmentsDiagnostics. */
export interface ManagedEnvironmentsDiagnostics {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsStorages.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsStorages.ts
index d09709e7ddb3..ef4ec8b7d2fa 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsStorages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/managedEnvironmentsStorages.ts
@@ -15,7 +15,7 @@ import {
ManagedEnvironmentsStoragesCreateOrUpdateOptionalParams,
ManagedEnvironmentsStoragesCreateOrUpdateResponse,
ManagedEnvironmentsStoragesDeleteOptionalParams,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ManagedEnvironmentsStorages. */
export interface ManagedEnvironmentsStorages {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/namespaces.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/namespaces.ts
index 312a5900990c..1066b32a0451 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/namespaces.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/namespaces.ts
@@ -10,7 +10,7 @@ import {
CheckNameAvailabilityRequest,
NamespacesCheckNameAvailabilityOptionalParams,
NamespacesCheckNameAvailabilityResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Namespaces. */
export interface Namespaces {
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/operations.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/operations.ts
index 703996eefcb6..69fd7864dfaf 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/operations.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/operations.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { OperationDetail, OperationsListOptionalParams } from "../models";
+import { OperationDetail, OperationsListOptionalParams } from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/usages.ts b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/usages.ts
index d0b35865d13d..cef55d7783aa 100644
--- a/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/usages.ts
+++ b/sdk/appcontainers/arm-appcontainers/src/operationsInterfaces/usages.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { Usage, UsagesListOptionalParams } from "../models";
+import { Usage, UsagesListOptionalParams } from "../models/index.js";
///
/** Interface representing a Usages. */
diff --git a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
index cb321ff0edee..d36fc42ed666 100644
--- a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
+++ b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
@@ -10,14 +10,12 @@ import {
env,
Recorder,
RecorderStartOptions,
- delay,
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert, use } from "chai";
-import { Context } from "mocha";
-import { ContainerAppsAPIClient } from "../src/containerAppsAPIClient";
-import { ContainerApp, ManagedEnvironment } from "../src/models";
+import { assert } from "chai";
+import { ContainerAppsAPIClient } from "../src/containerAppsAPIClient.js";
+import { ContainerApp, ManagedEnvironment } from "../src/models/index.js";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
@@ -46,8 +44,8 @@ describe("AppContainer test", () => {
let containerAppEnvelope: ContainerApp;
let environmentName: 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
@@ -107,14 +105,9 @@ describe("AppContainer test", () => {
});
it("containerapp list Secrets test", async function () {
- const res = await client.containerApps.listSecrets(
- resourceGroup,
- containerAppName
- );
});
it("containerapp delete test", async function () {
- const res = await client.containerApps.beginDeleteAndWait(resourceGroup, containerAppName, testPollingOptions);
const resArray = new Array();
for await (let item of client.containerApps.listByResourceGroup(resourceGroup)) {
resArray.push(item);
@@ -123,7 +116,6 @@ describe("AppContainer test", () => {
})
it("managedEnvironments delete test", async function () {
- const res = await client.managedEnvironments.beginDeleteAndWait(resourceGroup, environmentName, testPollingOptions);
const resArray = new Array();
for await (let item of client.managedEnvironments.listByResourceGroup(resourceGroup)) {
resArray.push(item);
From 3047837f8665067c5ab54fd03206e2490992bbaa Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:41 +0800
Subject: [PATCH 29/68] Migration: Apply codemod: "fixTestingImports"
---
.../arm-appcontainers/test/appcontainers_examples.spec.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
index d36fc42ed666..15500f5ac7f1 100644
--- a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
+++ b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
@@ -13,9 +13,9 @@ import {
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
import { ContainerAppsAPIClient } from "../src/containerAppsAPIClient.js";
import { ContainerApp, ManagedEnvironment } from "../src/models/index.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
From 96b1f71b297b70c1d97dedd98e613644dd61eb42 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:44 +0800
Subject: [PATCH 30/68] Migration: Apply codemod: "replaceAssertIsRejected"
From a373453792771597d222efec3b5a923d78a476d0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:46 +0800
Subject: [PATCH 31/68] Migration: Apply codemod: "replaceSinonStub"
From 844df2d06e9c2dcba5d7a5373facec9d3a20d32a Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:49 +0800
Subject: [PATCH 32/68] Migration: Apply codemod: "addViHelper"
From 5237ddf828604f1f8d683fb5ab81604451a34a21 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:51 +0800
Subject: [PATCH 33/68] Migration: Apply codemod: "replaceSupportTracing"
From b36b08b93619efde24af73a19aa07d545ec0ef60 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:53 +0800
Subject: [PATCH 34/68] Migration: Apply codemod: "replaceTestUtils"
From f4ddb18a8280f01b48117b7d3b0e9151241b56a0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:23:59 +0800
Subject: [PATCH 35/68] Migration: rushx format
From cf84783cbc1493ea3faed3369eb1f427d9e69b0d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:32:58 +0800
Subject: [PATCH 36/68] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
.../arm-appcontainers/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 dd9b9bb40f6c..5562cc2f54dd 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -96,7 +96,7 @@ importers:
version: file:projects/arm-appconfiguration.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-appcontainers':
specifier: file:./projects/arm-appcontainers.tgz
- version: file:projects/arm-appcontainers.tgz
+ version: file:projects/arm-appcontainers.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-appinsights':
specifier: file:./projects/arm-appinsights.tgz
version: file:projects/arm-appinsights.tgz
@@ -2599,7 +2599,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-appcontainers@file:projects/arm-appcontainers.tgz':
- resolution: {integrity: sha512-UnFo4rdWLQ66rmecv28SUhJ+Uny+GDzRBrISfiFQcSw/aFZXZ/i52gH0SIgzi68JAcuEAV6PvHFt1ot/m/e9CA==, tarball: file:projects/arm-appcontainers.tgz}
+ resolution: {integrity: sha512-F6UWTLT88PtbS6bRhWQrh0Sp2yjMRFbtbc6EcTqhkHPcRMVXjzUyOFN1vHHdaJC5mrJIZmWMIKGLeZCb5qQJWQ==, tarball: file:projects/arm-appcontainers.tgz}
version: 0.0.0
'@rush-temp/arm-appinsights@file:projects/arm-appinsights.tgz':
@@ -10646,25 +10646,37 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-appcontainers@file:projects/arm-appcontainers.tgz':
+ '@rush-temp/arm-appcontainers@file:projects/arm-appcontainers.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/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
tsx: 4.19.2
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-appinsights@file:projects/arm-appinsights.tgz':
dependencies:
diff --git a/sdk/appcontainers/arm-appcontainers/package.json b/sdk/appcontainers/arm-appcontainers/package.json
index c2236eed6a13..57a66b53e37d 100644
--- a/sdk/appcontainers/arm-appcontainers/package.json
+++ b/sdk/appcontainers/arm-appcontainers/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-appcontainers.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 18571d3c6b200d7c806d7e3c533aedc0a248fd4c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:37:52 +0800
Subject: [PATCH 37/68] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-appinsights/api-extractor.json | 6 +-
.../arm-appinsights/package.json | 61 +++++++++++--------
.../arm-appinsights/tsconfig.json | 40 +++---------
.../arm-appinsights/tsconfig.samples.json | 10 +++
.../arm-appinsights/tsconfig.src.json | 3 +
.../arm-appinsights/tsconfig.test.json | 6 ++
6 files changed, 67 insertions(+), 59 deletions(-)
create mode 100644 sdk/applicationinsights/arm-appinsights/tsconfig.samples.json
create mode 100644 sdk/applicationinsights/arm-appinsights/tsconfig.src.json
create mode 100644 sdk/applicationinsights/arm-appinsights/tsconfig.test.json
diff --git a/sdk/applicationinsights/arm-appinsights/api-extractor.json b/sdk/applicationinsights/arm-appinsights/api-extractor.json
index c1199353e8d1..e59166b2bd83 100644
--- a/sdk/applicationinsights/arm-appinsights/api-extractor.json
+++ b/sdk/applicationinsights/arm-appinsights/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-appinsights.d.ts"
+ "publicTrimmedFilePath": "dist/arm-appinsights.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/applicationinsights/arm-appinsights/package.json b/sdk/applicationinsights/arm-appinsights/package.json
index 37e05df8945c..4c281cb037ca 100644
--- a/sdk/applicationinsights/arm-appinsights/package.json
+++ b/sdk/applicationinsights/arm-appinsights/package.json
@@ -26,17 +26,17 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-appinsights.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/applicationinsights/arm-appinsights",
"repository": {
@@ -47,24 +47,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -76,7 +66,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -85,8 +75,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,
@@ -106,5 +96,24 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appinsights?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/applicationinsights/arm-appinsights/tsconfig.json b/sdk/applicationinsights/arm-appinsights/tsconfig.json
index 996cead488fa..19ceb382b521 100644
--- a/sdk/applicationinsights/arm-appinsights/tsconfig.json
+++ b/sdk/applicationinsights/arm-appinsights/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-appinsights": [
- "./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/applicationinsights/arm-appinsights/tsconfig.samples.json b/sdk/applicationinsights/arm-appinsights/tsconfig.samples.json
new file mode 100644
index 000000000000..9cf990a9c013
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-appinsights": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/applicationinsights/arm-appinsights/tsconfig.src.json b/sdk/applicationinsights/arm-appinsights/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/applicationinsights/arm-appinsights/tsconfig.test.json b/sdk/applicationinsights/arm-appinsights/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From fc55e2964e6a98994c5a751f6f71607357af84c2 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:37:53 +0800
Subject: [PATCH 38/68] Migration: Update test config
---
.../tsconfig.browser.config.json | 17 +++++++++++++++++
.../arm-appinsights/vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-appinsights/vitest.config.ts | 7 +++++++
.../arm-appinsights/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 53 insertions(+)
create mode 100644 sdk/applicationinsights/arm-appinsights/tsconfig.browser.config.json
create mode 100644 sdk/applicationinsights/arm-appinsights/vitest.browser.config.ts
create mode 100644 sdk/applicationinsights/arm-appinsights/vitest.config.ts
create mode 100644 sdk/applicationinsights/arm-appinsights/vitest.esm.config.ts
diff --git a/sdk/applicationinsights/arm-appinsights/tsconfig.browser.config.json b/sdk/applicationinsights/arm-appinsights/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/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/applicationinsights/arm-appinsights/vitest.browser.config.ts b/sdk/applicationinsights/arm-appinsights/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/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/applicationinsights/arm-appinsights/vitest.config.ts b/sdk/applicationinsights/arm-appinsights/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/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/applicationinsights/arm-appinsights/vitest.esm.config.ts b/sdk/applicationinsights/arm-appinsights/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/applicationinsights/arm-appinsights/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 92b9a2f745dd069e140b9e6ad1ae1e37b25c84ef Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:37:53 +0800
Subject: [PATCH 39/68] Migration: Clean up files
From ca67c1345560f5f153e338a5b5a4f0c91623c719 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:17 +0800
Subject: [PATCH 40/68] Migration: Apply codemod: "fixSourceFile"
---
.../applicationInsightsManagementClient.ts | 6 +--
.../arm-appinsights/src/index.ts | 8 ++--
.../arm-appinsights/src/models/parameters.ts | 2 +-
.../arm-appinsights/src/operations/aPIKeys.ts | 10 ++---
.../src/operations/analyticsItems.ts | 10 ++---
.../src/operations/annotations.ts | 10 ++---
.../operations/componentAvailableFeatures.ts | 10 ++---
.../componentCurrentBillingFeatures.ts | 10 ++---
.../componentFeatureCapabilities.ts | 10 ++---
...omponentLinkedStorageAccountsOperations.ts | 10 ++---
.../src/operations/componentQuotaStatus.ts | 10 ++---
.../src/operations/components.ts | 12 +++---
.../src/operations/exportConfigurations.ts | 10 ++---
.../src/operations/favorites.ts | 10 ++---
.../arm-appinsights/src/operations/index.ts | 38 +++++++++----------
.../src/operations/liveToken.ts | 10 ++---
.../src/operations/myWorkbooks.ts | 12 +++---
.../proactiveDetectionConfigurations.ts | 10 ++---
.../src/operations/webTestLocations.ts | 10 ++---
.../src/operations/webTests.ts | 12 +++---
.../src/operations/workItemConfigurations.ts | 10 ++---
.../src/operations/workbookTemplates.ts | 10 ++---
.../src/operations/workbooks.ts | 12 +++---
.../src/operationsInterfaces/aPIKeys.ts | 2 +-
.../operationsInterfaces/analyticsItems.ts | 2 +-
.../src/operationsInterfaces/annotations.ts | 2 +-
.../componentAvailableFeatures.ts | 2 +-
.../componentCurrentBillingFeatures.ts | 2 +-
.../componentFeatureCapabilities.ts | 2 +-
...omponentLinkedStorageAccountsOperations.ts | 2 +-
.../componentQuotaStatus.ts | 2 +-
.../src/operationsInterfaces/components.ts | 2 +-
.../exportConfigurations.ts | 2 +-
.../src/operationsInterfaces/favorites.ts | 2 +-
.../src/operationsInterfaces/index.ts | 38 +++++++++----------
.../src/operationsInterfaces/liveToken.ts | 2 +-
.../src/operationsInterfaces/myWorkbooks.ts | 2 +-
.../proactiveDetectionConfigurations.ts | 2 +-
.../operationsInterfaces/webTestLocations.ts | 2 +-
.../src/operationsInterfaces/webTests.ts | 2 +-
.../workItemConfigurations.ts | 2 +-
.../operationsInterfaces/workbookTemplates.ts | 2 +-
.../src/operationsInterfaces/workbooks.ts | 2 +-
.../arm-appinsights/test/sampleTest.ts | 10 ++---
44 files changed, 167 insertions(+), 171 deletions(-)
diff --git a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts
index b8d18849a886..91ae57008867 100644
--- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts
@@ -29,7 +29,7 @@ import {
ComponentsImpl,
ComponentLinkedStorageAccountsOperationsImpl,
LiveTokenImpl
-} from "./operations";
+} from "./operations/index.js";
import {
Annotations,
APIKeys,
@@ -50,8 +50,8 @@ import {
Components,
ComponentLinkedStorageAccountsOperations,
LiveToken
-} from "./operationsInterfaces";
-import { ApplicationInsightsManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { ApplicationInsightsManagementClientOptionalParams } from "./models/index.js";
export class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/applicationinsights/arm-appinsights/src/index.ts b/sdk/applicationinsights/arm-appinsights/src/index.ts
index 6654e8c66227..f12195456684 100644
--- a/sdk/applicationinsights/arm-appinsights/src/index.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { ApplicationInsightsManagementClient } from "./applicationInsightsManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { ApplicationInsightsManagementClient } from "./applicationInsightsManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts
index 5f050754320e..c2b81bccc2b3 100644
--- a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts
@@ -31,7 +31,7 @@ import {
ComponentPurgeBody as ComponentPurgeBodyMapper,
ComponentLinkedStorageAccounts as ComponentLinkedStorageAccountsMapper,
ComponentLinkedStorageAccountsPatch as ComponentLinkedStorageAccountsPatchMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts b/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts
index f4d24cf4d9e2..5afcf870af72 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts
@@ -7,11 +7,11 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { APIKeys } from "../operationsInterfaces";
+import { APIKeys } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ApplicationInsightsComponentAPIKey,
APIKeysListOptionalParams,
@@ -23,7 +23,7 @@ import {
APIKeysDeleteResponse,
APIKeysGetOptionalParams,
APIKeysGetResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing APIKeys operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts
index e82a0517d7d6..0685f5ecfe7b 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { AnalyticsItems } from "../operationsInterfaces";
+import { AnalyticsItems } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ItemScopePath,
AnalyticsItemsListOptionalParams,
@@ -21,7 +21,7 @@ import {
AnalyticsItemsPutOptionalParams,
AnalyticsItemsPutResponse,
AnalyticsItemsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Class containing AnalyticsItems operations. */
export class AnalyticsItemsImpl implements AnalyticsItems {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts
index 46f766e81959..f3fa3e2d791f 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts
@@ -7,11 +7,11 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { Annotations } from "../operationsInterfaces";
+import { Annotations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
Annotation,
AnnotationsListOptionalParams,
@@ -21,7 +21,7 @@ import {
AnnotationsDeleteOptionalParams,
AnnotationsGetOptionalParams,
AnnotationsGetResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Annotations operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts
index cb112acafb6c..754d0431caef 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ComponentAvailableFeatures } from "../operationsInterfaces";
+import { ComponentAvailableFeatures } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ComponentAvailableFeaturesGetOptionalParams,
ComponentAvailableFeaturesGetResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ComponentAvailableFeatures operations. */
export class ComponentAvailableFeaturesImpl
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts
index a3acc0fa2123..d9e084209aff 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts
@@ -6,18 +6,18 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ComponentCurrentBillingFeatures } from "../operationsInterfaces";
+import { ComponentCurrentBillingFeatures } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ComponentCurrentBillingFeaturesGetOptionalParams,
ComponentCurrentBillingFeaturesGetResponse,
ApplicationInsightsComponentBillingFeatures,
ComponentCurrentBillingFeaturesUpdateOptionalParams,
ComponentCurrentBillingFeaturesUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ComponentCurrentBillingFeatures operations. */
export class ComponentCurrentBillingFeaturesImpl
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts
index 4b383c42e0c0..d23240d8f071 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ComponentFeatureCapabilities } from "../operationsInterfaces";
+import { ComponentFeatureCapabilities } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ComponentFeatureCapabilitiesGetOptionalParams,
ComponentFeatureCapabilitiesGetResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ComponentFeatureCapabilities operations. */
export class ComponentFeatureCapabilitiesImpl
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts
index d9b50fde2a13..c186a8bf1ba2 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ComponentLinkedStorageAccountsOperations } from "../operationsInterfaces";
+import { ComponentLinkedStorageAccountsOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
StorageType,
ComponentLinkedStorageAccountsGetOptionalParams,
@@ -22,7 +22,7 @@ import {
ComponentLinkedStorageAccountsUpdateOptionalParams,
ComponentLinkedStorageAccountsUpdateResponse,
ComponentLinkedStorageAccountsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Class containing ComponentLinkedStorageAccountsOperations operations. */
export class ComponentLinkedStorageAccountsOperationsImpl
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts
index 4acb374ee67f..66456157d4b9 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ComponentQuotaStatus } from "../operationsInterfaces";
+import { ComponentQuotaStatus } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ComponentQuotaStatusGetOptionalParams,
ComponentQuotaStatusGetResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ComponentQuotaStatus operations. */
export class ComponentQuotaStatusImpl implements ComponentQuotaStatus {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts
index 8108a41f1ca1..22371c30e6d4 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Components } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Components } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ApplicationInsightsComponent,
ComponentsListNextOptionalParams,
@@ -36,7 +36,7 @@ import {
ComponentsGetPurgeStatusResponse,
ComponentsListNextResponse,
ComponentsListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Components operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts
index 95c6930c80e8..86864bef4ffc 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ExportConfigurations } from "../operationsInterfaces";
+import { ExportConfigurations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ExportConfigurationsListOptionalParams,
ExportConfigurationsListResponse,
@@ -23,7 +23,7 @@ import {
ExportConfigurationsGetResponse,
ExportConfigurationsUpdateOptionalParams,
ExportConfigurationsUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ExportConfigurations operations. */
export class ExportConfigurationsImpl implements ExportConfigurations {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts
index 841d9e65a5c1..10b97a9f6e7a 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Favorites } from "../operationsInterfaces";
+import { Favorites } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
FavoritesListOptionalParams,
FavoritesListResponse,
@@ -22,7 +22,7 @@ import {
FavoritesUpdateOptionalParams,
FavoritesUpdateResponse,
FavoritesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Class containing Favorites operations. */
export class FavoritesImpl implements Favorites {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts
index d273af781cd5..7309ac8ab9e0 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts
@@ -6,22 +6,22 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./annotations";
-export * from "./aPIKeys";
-export * from "./exportConfigurations";
-export * from "./componentCurrentBillingFeatures";
-export * from "./componentQuotaStatus";
-export * from "./componentFeatureCapabilities";
-export * from "./componentAvailableFeatures";
-export * from "./proactiveDetectionConfigurations";
-export * from "./workItemConfigurations";
-export * from "./favorites";
-export * from "./webTestLocations";
-export * from "./webTests";
-export * from "./analyticsItems";
-export * from "./workbookTemplates";
-export * from "./myWorkbooks";
-export * from "./workbooks";
-export * from "./components";
-export * from "./componentLinkedStorageAccountsOperations";
-export * from "./liveToken";
+export * from "./annotations.js";
+export * from "./aPIKeys.js";
+export * from "./exportConfigurations.js";
+export * from "./componentCurrentBillingFeatures.js";
+export * from "./componentQuotaStatus.js";
+export * from "./componentFeatureCapabilities.js";
+export * from "./componentAvailableFeatures.js";
+export * from "./proactiveDetectionConfigurations.js";
+export * from "./workItemConfigurations.js";
+export * from "./favorites.js";
+export * from "./webTestLocations.js";
+export * from "./webTests.js";
+export * from "./analyticsItems.js";
+export * from "./workbookTemplates.js";
+export * from "./myWorkbooks.js";
+export * from "./workbooks.js";
+export * from "./components.js";
+export * from "./componentLinkedStorageAccountsOperations.js";
+export * from "./liveToken.js";
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts
index b5e5efb50c24..d22b990066de 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts
@@ -6,12 +6,12 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { LiveToken } from "../operationsInterfaces";
+import { LiveToken } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
-import { LiveTokenGetOptionalParams, LiveTokenGetResponse } from "../models";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
+import { LiveTokenGetOptionalParams, LiveTokenGetResponse } from "../models/index.js";
/** Class containing LiveToken operations. */
export class LiveTokenImpl implements LiveToken {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts
index bd61179653d9..26f6e223e7d1 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { MyWorkbooks } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { MyWorkbooks } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
MyWorkbook,
CategoryType,
@@ -31,7 +31,7 @@ import {
MyWorkbooksUpdateResponse,
MyWorkbooksListByResourceGroupNextResponse,
MyWorkbooksListBySubscriptionNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing MyWorkbooks operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts
index 513948aeb59d..aada96f3bba3 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts
@@ -6,11 +6,11 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ProactiveDetectionConfigurations } from "../operationsInterfaces";
+import { ProactiveDetectionConfigurations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ProactiveDetectionConfigurationsListOptionalParams,
ProactiveDetectionConfigurationsListResponse,
@@ -19,7 +19,7 @@ import {
ApplicationInsightsComponentProactiveDetectionConfiguration,
ProactiveDetectionConfigurationsUpdateOptionalParams,
ProactiveDetectionConfigurationsUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ProactiveDetectionConfigurations operations. */
export class ProactiveDetectionConfigurationsImpl
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts
index 1ed6971b6108..1adc8a1127a3 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts
@@ -7,16 +7,16 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { WebTestLocations } from "../operationsInterfaces";
+import { WebTestLocations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
ApplicationInsightsComponentWebTestLocation,
WebTestLocationsListOptionalParams,
WebTestLocationsListResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing WebTestLocations operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts
index cdc40d5a4e14..1aa10fb109a2 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { WebTests } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { WebTests } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
WebTest,
WebTestsListByResourceGroupNextOptionalParams,
@@ -35,7 +35,7 @@ import {
WebTestsListByResourceGroupNextResponse,
WebTestsListNextResponse,
WebTestsListByComponentNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing WebTests operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts
index f4c87b96edda..a00a0baaca4f 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts
@@ -7,11 +7,11 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { WorkItemConfigurations } from "../operationsInterfaces";
+import { WorkItemConfigurations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
WorkItemConfiguration,
WorkItemConfigurationsListOptionalParams,
@@ -26,7 +26,7 @@ import {
WorkItemConfigurationsGetItemResponse,
WorkItemConfigurationsUpdateItemOptionalParams,
WorkItemConfigurationsUpdateItemResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing WorkItemConfigurations operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts
index 1cde6cd8a09e..80377d44a6b0 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/workbookTemplates.ts
@@ -7,11 +7,11 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { WorkbookTemplates } from "../operationsInterfaces";
+import { WorkbookTemplates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
WorkbookTemplate,
WorkbookTemplatesListByResourceGroupOptionalParams,
@@ -23,7 +23,7 @@ import {
WorkbookTemplatesCreateOrUpdateResponse,
WorkbookTemplatesUpdateOptionalParams,
WorkbookTemplatesUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing WorkbookTemplates operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts
index a5de76fcba90..1cf5ed90d9ba 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Workbooks } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Workbooks } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient.js";
import {
Workbook,
CategoryType,
@@ -37,7 +37,7 @@ import {
WorkbooksListBySubscriptionNextResponse,
WorkbooksListByResourceGroupNextResponse,
WorkbooksRevisionsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Workbooks operations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts
index a8b25dfdecee..774946bd3920 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/aPIKeys.ts
@@ -17,7 +17,7 @@ import {
APIKeysDeleteResponse,
APIKeysGetOptionalParams,
APIKeysGetResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a APIKeys. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts
index 54710d4939e3..38d0bffbd978 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/analyticsItems.ts
@@ -16,7 +16,7 @@ import {
AnalyticsItemsPutOptionalParams,
AnalyticsItemsPutResponse,
AnalyticsItemsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Interface representing a AnalyticsItems. */
export interface AnalyticsItems {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts
index 96629458740f..66b553a85094 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/annotations.ts
@@ -15,7 +15,7 @@ import {
AnnotationsDeleteOptionalParams,
AnnotationsGetOptionalParams,
AnnotationsGetResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Annotations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts
index d3880d894bff..7d9491d489c8 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentAvailableFeatures.ts
@@ -9,7 +9,7 @@
import {
ComponentAvailableFeaturesGetOptionalParams,
ComponentAvailableFeaturesGetResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ComponentAvailableFeatures. */
export interface ComponentAvailableFeatures {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts
index e2a617e46a21..8f426156443a 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentCurrentBillingFeatures.ts
@@ -12,7 +12,7 @@ import {
ApplicationInsightsComponentBillingFeatures,
ComponentCurrentBillingFeaturesUpdateOptionalParams,
ComponentCurrentBillingFeaturesUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ComponentCurrentBillingFeatures. */
export interface ComponentCurrentBillingFeatures {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts
index 0ca1c39b7be6..2d504c58ec1f 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentFeatureCapabilities.ts
@@ -9,7 +9,7 @@
import {
ComponentFeatureCapabilitiesGetOptionalParams,
ComponentFeatureCapabilitiesGetResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ComponentFeatureCapabilities. */
export interface ComponentFeatureCapabilities {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts
index 4635a3f43fa7..ea43a9058d45 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentLinkedStorageAccountsOperations.ts
@@ -17,7 +17,7 @@ import {
ComponentLinkedStorageAccountsUpdateOptionalParams,
ComponentLinkedStorageAccountsUpdateResponse,
ComponentLinkedStorageAccountsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ComponentLinkedStorageAccountsOperations. */
export interface ComponentLinkedStorageAccountsOperations {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts
index 0eea4b49a2b7..91a5fa11e3a6 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/componentQuotaStatus.ts
@@ -9,7 +9,7 @@
import {
ComponentQuotaStatusGetOptionalParams,
ComponentQuotaStatusGetResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ComponentQuotaStatus. */
export interface ComponentQuotaStatus {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts
index 84fb14b12d30..74af318e83fe 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/components.ts
@@ -24,7 +24,7 @@ import {
ComponentsPurgeResponse,
ComponentsGetPurgeStatusOptionalParams,
ComponentsGetPurgeStatusResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Components. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts
index a9a3edcf01fa..68447af3bd58 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/exportConfigurations.ts
@@ -18,7 +18,7 @@ import {
ExportConfigurationsGetResponse,
ExportConfigurationsUpdateOptionalParams,
ExportConfigurationsUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ExportConfigurations. */
export interface ExportConfigurations {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts
index 5ad0be7a2dd9..9d957bf0776a 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/favorites.ts
@@ -17,7 +17,7 @@ import {
FavoritesUpdateOptionalParams,
FavoritesUpdateResponse,
FavoritesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Favorites. */
export interface Favorites {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts
index d273af781cd5..7309ac8ab9e0 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/index.ts
@@ -6,22 +6,22 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./annotations";
-export * from "./aPIKeys";
-export * from "./exportConfigurations";
-export * from "./componentCurrentBillingFeatures";
-export * from "./componentQuotaStatus";
-export * from "./componentFeatureCapabilities";
-export * from "./componentAvailableFeatures";
-export * from "./proactiveDetectionConfigurations";
-export * from "./workItemConfigurations";
-export * from "./favorites";
-export * from "./webTestLocations";
-export * from "./webTests";
-export * from "./analyticsItems";
-export * from "./workbookTemplates";
-export * from "./myWorkbooks";
-export * from "./workbooks";
-export * from "./components";
-export * from "./componentLinkedStorageAccountsOperations";
-export * from "./liveToken";
+export * from "./annotations.js";
+export * from "./aPIKeys.js";
+export * from "./exportConfigurations.js";
+export * from "./componentCurrentBillingFeatures.js";
+export * from "./componentQuotaStatus.js";
+export * from "./componentFeatureCapabilities.js";
+export * from "./componentAvailableFeatures.js";
+export * from "./proactiveDetectionConfigurations.js";
+export * from "./workItemConfigurations.js";
+export * from "./favorites.js";
+export * from "./webTestLocations.js";
+export * from "./webTests.js";
+export * from "./analyticsItems.js";
+export * from "./workbookTemplates.js";
+export * from "./myWorkbooks.js";
+export * from "./workbooks.js";
+export * from "./components.js";
+export * from "./componentLinkedStorageAccountsOperations.js";
+export * from "./liveToken.js";
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts
index 2045c08c28e8..6d664dddadc0 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/liveToken.ts
@@ -6,7 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { LiveTokenGetOptionalParams, LiveTokenGetResponse } from "../models";
+import { LiveTokenGetOptionalParams, LiveTokenGetResponse } from "../models/index.js";
/** Interface representing a LiveToken. */
export interface LiveToken {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts
index 46def1df128f..621821e4c030 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/myWorkbooks.ts
@@ -19,7 +19,7 @@ import {
MyWorkbooksCreateOrUpdateResponse,
MyWorkbooksUpdateOptionalParams,
MyWorkbooksUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a MyWorkbooks. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts
index be564904a0ff..559542869e53 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/proactiveDetectionConfigurations.ts
@@ -14,7 +14,7 @@ import {
ApplicationInsightsComponentProactiveDetectionConfiguration,
ProactiveDetectionConfigurationsUpdateOptionalParams,
ProactiveDetectionConfigurationsUpdateResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ProactiveDetectionConfigurations. */
export interface ProactiveDetectionConfigurations {
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts
index 6bb6a15bec02..15fe7ad634a2 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTestLocations.ts
@@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import {
ApplicationInsightsComponentWebTestLocation,
WebTestLocationsListOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a WebTestLocations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts
index 113a8444b933..43a0cfe4c330 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/webTests.ts
@@ -20,7 +20,7 @@ import {
WebTestsUpdateTagsOptionalParams,
WebTestsUpdateTagsResponse,
WebTestsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a WebTests. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts
index 958744cb3b6e..ff0ddc662da5 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workItemConfigurations.ts
@@ -20,7 +20,7 @@ import {
WorkItemConfigurationsGetItemResponse,
WorkItemConfigurationsUpdateItemOptionalParams,
WorkItemConfigurationsUpdateItemResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a WorkItemConfigurations. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts
index 69bac6e12019..b5cbc32d9a8f 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbookTemplates.ts
@@ -17,7 +17,7 @@ import {
WorkbookTemplatesCreateOrUpdateResponse,
WorkbookTemplatesUpdateOptionalParams,
WorkbookTemplatesUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a WorkbookTemplates. */
diff --git a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts
index 252a0e0bcb11..481142488f9a 100644
--- a/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts
+++ b/sdk/applicationinsights/arm-appinsights/src/operationsInterfaces/workbooks.ts
@@ -22,7 +22,7 @@ import {
WorkbooksUpdateResponse,
WorkbooksRevisionGetOptionalParams,
WorkbooksRevisionGetResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Workbooks. */
diff --git a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts b/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts
index 8ff7deb0acbe..f0d6ea6885e4 100644
--- a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts
+++ b/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts
@@ -8,11 +8,7 @@
import {
Recorder,
- RecorderStartOptions,
- env
-} from "@azure-tools/test-recorder";
-import { assert } from "chai";
-import { Context } from "mocha";
+ RecorderStartOptions} from "@azure-tools/test-recorder";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -32,8 +28,8 @@ const recorderOptions: RecorderStartOptions = {
describe("My test", () => {
let recorder: Recorder;
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
+ beforeEach(async function (ctx) {
+ recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
});
From 77522eaa87ad43cff3ff6da2fc48d9fecc8375be Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:18 +0800
Subject: [PATCH 41/68] Migration: Apply codemod: "fixTestingImports"
From a7c49723da3018ce668ceb49ca0fda5bc0100df8 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:19 +0800
Subject: [PATCH 42/68] Migration: Apply codemod: "replaceAssertIsRejected"
From 9d975c58c37f155130aafe0484df75e926bbdd7d Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:20 +0800
Subject: [PATCH 43/68] Migration: Apply codemod: "replaceSinonStub"
From 0591f68eaf380d999ed08976832a0c9454a110a5 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:21 +0800
Subject: [PATCH 44/68] Migration: Apply codemod: "addViHelper"
From e80c638fdc32c6fbdc01013d723a3123d208928e Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:22 +0800
Subject: [PATCH 45/68] Migration: Apply codemod: "replaceSupportTracing"
From f2d86b147f576e9cccf295ae6de74c5d711f6a0f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:23 +0800
Subject: [PATCH 46/68] Migration: Apply codemod: "replaceTestUtils"
From a71ac3bd2d3a0b8fda182671973985636e66dc89 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 15:38:38 +0800
Subject: [PATCH 47/68] Migration: rushx format
From ac3cbafe970aa35bb57fbef2e31cfee7717289b6 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:48:54 +0800
Subject: [PATCH 48/68] update
---
common/config/rush/pnpm-lock.yaml | 36 ++++++++++++-------
.../arm-appinsights/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 5562cc2f54dd..f0ee83b799cb 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -99,7 +99,7 @@ importers:
version: file:projects/arm-appcontainers.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-appinsights':
specifier: file:./projects/arm-appinsights.tgz
- version: file:projects/arm-appinsights.tgz
+ version: file:projects/arm-appinsights.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-appplatform':
specifier: file:./projects/arm-appplatform.tgz
version: file:projects/arm-appplatform.tgz
@@ -2603,7 +2603,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-appinsights@file:projects/arm-appinsights.tgz':
- resolution: {integrity: sha512-pTE5lGBibSRFAEHVz8deDAgLklg8TkDoqqj8Go9wFaahW3CtEit5PF1lKWy5r/6ERY3573bj2Am0plYi/CCIAQ==, tarball: file:projects/arm-appinsights.tgz}
+ resolution: {integrity: sha512-WkCGRJOgMT05ZAwQI/9TO2tMfFvJXNGq7way06YLyR9pQaBWGLigg9I31NJf0wPL0RjiZZCcosvcqDLQvSz7ng==, tarball: file:projects/arm-appinsights.tgz}
version: 0.0.0
'@rush-temp/arm-appplatform@file:projects/arm-appplatform.tgz':
@@ -10678,22 +10678,34 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-appinsights@file:projects/arm-appinsights.tgz':
+ '@rush-temp/arm-appinsights@file:projects/arm-appinsights.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
- '@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-appplatform@file:projects/arm-appplatform.tgz':
dependencies:
diff --git a/sdk/applicationinsights/arm-appinsights/package.json b/sdk/applicationinsights/arm-appinsights/package.json
index 4c281cb037ca..3cf8f68435e9 100644
--- a/sdk/applicationinsights/arm-appinsights/package.json
+++ b/sdk/applicationinsights/arm-appinsights/package.json
@@ -22,9 +22,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-appinsights.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",
@@ -115,5 +115,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 de87d8d70907496e506514a1fd5739981fcf4264 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:57:00 +0800
Subject: [PATCH 49/68] Migration: Update package.json, tsconfig.json, and
api-extractor.json
---
.../arm-appplatform/api-extractor.json | 6 +-
sdk/appplatform/arm-appplatform/package.json | 61 +++++++++++--------
sdk/appplatform/arm-appplatform/tsconfig.json | 40 +++---------
.../arm-appplatform/tsconfig.samples.json | 10 +++
.../arm-appplatform/tsconfig.src.json | 3 +
.../arm-appplatform/tsconfig.test.json | 6 ++
6 files changed, 67 insertions(+), 59 deletions(-)
create mode 100644 sdk/appplatform/arm-appplatform/tsconfig.samples.json
create mode 100644 sdk/appplatform/arm-appplatform/tsconfig.src.json
create mode 100644 sdk/appplatform/arm-appplatform/tsconfig.test.json
diff --git a/sdk/appplatform/arm-appplatform/api-extractor.json b/sdk/appplatform/arm-appplatform/api-extractor.json
index 4236ccd79b9d..78af3ec0ae3b 100644
--- a/sdk/appplatform/arm-appplatform/api-extractor.json
+++ b/sdk/appplatform/arm-appplatform/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-appplatform.d.ts"
+ "publicTrimmedFilePath": "dist/arm-appplatform.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json
index ddfdcffd523a..0c5ba956ef0a 100644
--- a/sdk/appplatform/arm-appplatform/package.json
+++ b/sdk/appplatform/arm-appplatform/package.json
@@ -28,18 +28,18 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-appplatform.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-appplatform?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/appplatform/arm-appplatform/tsconfig.json b/sdk/appplatform/arm-appplatform/tsconfig.json
index 04fa881dd845..19ceb382b521 100644
--- a/sdk/appplatform/arm-appplatform/tsconfig.json
+++ b/sdk/appplatform/arm-appplatform/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-appplatform": [
- "./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/appplatform/arm-appplatform/tsconfig.samples.json b/sdk/appplatform/arm-appplatform/tsconfig.samples.json
new file mode 100644
index 000000000000..231e185a7beb
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-appplatform": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/appplatform/arm-appplatform/tsconfig.src.json b/sdk/appplatform/arm-appplatform/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/appplatform/arm-appplatform/tsconfig.test.json b/sdk/appplatform/arm-appplatform/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
From 55a53b1e2305b2a7754cc8ba9ebbbb3f0bb05b84 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:57:00 +0800
Subject: [PATCH 50/68] Migration: Update test config
---
.../tsconfig.browser.config.json | 17 +++++++++++++++++
.../arm-appplatform/vitest.browser.config.ts | 17 +++++++++++++++++
.../arm-appplatform/vitest.config.ts | 7 +++++++
.../arm-appplatform/vitest.esm.config.ts | 12 ++++++++++++
4 files changed, 53 insertions(+)
create mode 100644 sdk/appplatform/arm-appplatform/tsconfig.browser.config.json
create mode 100644 sdk/appplatform/arm-appplatform/vitest.browser.config.ts
create mode 100644 sdk/appplatform/arm-appplatform/vitest.config.ts
create mode 100644 sdk/appplatform/arm-appplatform/vitest.esm.config.ts
diff --git a/sdk/appplatform/arm-appplatform/tsconfig.browser.config.json b/sdk/appplatform/arm-appplatform/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/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/appplatform/arm-appplatform/vitest.browser.config.ts b/sdk/appplatform/arm-appplatform/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/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/appplatform/arm-appplatform/vitest.config.ts b/sdk/appplatform/arm-appplatform/vitest.config.ts
new file mode 100644
index 000000000000..cc5cd85d4131
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/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/appplatform/arm-appplatform/vitest.esm.config.ts b/sdk/appplatform/arm-appplatform/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/appplatform/arm-appplatform/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 324aa55c59c7fc463864d176a5c77c982c565e74 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:57:00 +0800
Subject: [PATCH 51/68] Migration: Clean up files
From ef95af7246ca64e4372a9fbd34a8006b439c71d2 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:57:59 +0800
Subject: [PATCH 52/68] Migration: Apply codemod: "fixSourceFile"
---
...PortalCustomDomainsCreateOrUpdateSample.ts | 4 +-
.../apiPortalCustomDomainsDeleteSample.ts | 4 +-
.../apiPortalCustomDomainsGetSample.ts | 4 +-
.../apiPortalCustomDomainsListSample.ts | 4 +-
.../apiPortalsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/apiPortalsDeleteSample.ts | 4 +-
.../samples-dev/apiPortalsGetSample.ts | 4 +-
.../samples-dev/apiPortalsListSample.ts | 4 +-
.../apiPortalsValidateDomainSample.ts | 4 +-
.../samples-dev/apmsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/apmsDeleteSample.ts | 4 +-
.../samples-dev/apmsGetSample.ts | 4 +-
.../samples-dev/apmsListSample.ts | 4 +-
.../samples-dev/apmsListSecretKeysSample.ts | 4 +-
...icationAcceleratorsCreateOrUpdateSample.ts | 4 +-
.../applicationAcceleratorsDeleteSample.ts | 4 +-
.../applicationAcceleratorsGetSample.ts | 4 +-
.../applicationAcceleratorsListSample.ts | 4 +-
...pplicationLiveViewsCreateOrUpdateSample.ts | 4 +-
.../applicationLiveViewsDeleteSample.ts | 4 +-
.../applicationLiveViewsGetSample.ts | 4 +-
.../applicationLiveViewsListSample.ts | 4 +-
.../samples-dev/appsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/appsDeleteSample.ts | 4 +-
.../appsGetResourceUploadUrlSample.ts | 4 +-
.../samples-dev/appsGetSample.ts | 4 +-
.../samples-dev/appsListSample.ts | 4 +-
.../appsSetActiveDeploymentsSample.ts | 4 +-
.../samples-dev/appsUpdateSample.ts | 4 +-
.../samples-dev/appsValidateDomainSample.ts | 4 +-
.../bindingsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/bindingsDeleteSample.ts | 4 +-
.../samples-dev/bindingsGetSample.ts | 4 +-
.../samples-dev/bindingsListSample.ts | 4 +-
.../samples-dev/bindingsUpdateSample.ts | 4 +-
.../buildServiceAgentPoolGetSample.ts | 4 +-
.../buildServiceAgentPoolListSample.ts | 4 +-
.../buildServiceAgentPoolUpdatePutSample.ts | 4 +-
...buildServiceBuilderCreateOrUpdateSample.ts | 4 +-
.../buildServiceBuilderDeleteSample.ts | 4 +-
.../buildServiceBuilderGetSample.ts | 4 +-
...uildServiceBuilderListDeploymentsSample.ts | 4 +-
.../buildServiceBuilderListSample.ts | 4 +-
.../buildServiceCreateOrUpdateBuildSample.ts | 4 +-
.../buildServiceCreateOrUpdateSample.ts | 4 +-
.../buildServiceDeleteBuildSample.ts | 4 +-
.../buildServiceGetBuildResultLogSample.ts | 4 +-
.../buildServiceGetBuildResultSample.ts | 4 +-
.../samples-dev/buildServiceGetBuildSample.ts | 4 +-
.../buildServiceGetBuildServiceSample.ts | 4 +-
.../buildServiceGetResourceUploadUrlSample.ts | 4 +-
...buildServiceGetSupportedBuildpackSample.ts | 4 +-
.../buildServiceGetSupportedStackSample.ts | 4 +-
.../buildServiceListBuildResultsSample.ts | 4 +-
.../buildServiceListBuildServicesSample.ts | 4 +-
.../buildServiceListBuildsSample.ts | 4 +-
...ildServiceListSupportedBuildpacksSample.ts | 4 +-
.../buildServiceListSupportedStacksSample.ts | 4 +-
.../buildpackBindingCreateOrUpdateSample.ts | 4 +-
.../buildpackBindingDeleteSample.ts | 4 +-
.../samples-dev/buildpackBindingGetSample.ts | 4 +-
.../buildpackBindingListForClusterSample.ts | 4 +-
.../samples-dev/buildpackBindingListSample.ts | 4 +-
.../certificatesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/certificatesDeleteSample.ts | 4 +-
.../samples-dev/certificatesGetSample.ts | 4 +-
.../samples-dev/certificatesListSample.ts | 4 +-
.../samples-dev/configServersGetSample.ts | 4 +-
.../configServersUpdatePatchSample.ts | 4 +-
.../configServersUpdatePutSample.ts | 4 +-
.../configServersValidateSample.ts | 4 +-
...nfigurationServicesCreateOrUpdateSample.ts | 4 +-
.../configurationServicesDeleteSample.ts | 4 +-
.../configurationServicesGetSample.ts | 4 +-
.../configurationServicesListSample.ts | 4 +-
...igurationServicesValidateResourceSample.ts | 4 +-
.../configurationServicesValidateSample.ts | 4 +-
...containerRegistriesCreateOrUpdateSample.ts | 4 +-
.../containerRegistriesDeleteSample.ts | 4 +-
.../containerRegistriesGetSample.ts | 4 +-
.../containerRegistriesListSample.ts | 4 +-
.../containerRegistriesValidateSample.ts | 4 +-
.../customDomainsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/customDomainsDeleteSample.ts | 4 +-
.../samples-dev/customDomainsGetSample.ts | 4 +-
.../samples-dev/customDomainsListSample.ts | 4 +-
.../samples-dev/customDomainsUpdateSample.ts | 4 +-
...tomizedAcceleratorsCreateOrUpdateSample.ts | 4 +-
.../customizedAcceleratorsDeleteSample.ts | 4 +-
.../customizedAcceleratorsGetSample.ts | 4 +-
.../customizedAcceleratorsListSample.ts | 4 +-
.../customizedAcceleratorsValidateSample.ts | 4 +-
.../deploymentsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/deploymentsDeleteSample.ts | 4 +-
...deploymentsDisableRemoteDebuggingSample.ts | 4 +-
.../deploymentsEnableRemoteDebuggingSample.ts | 4 +-
.../deploymentsGenerateHeapDumpSample.ts | 4 +-
.../deploymentsGenerateThreadDumpSample.ts | 4 +-
.../deploymentsGetLogFileUrlSample.ts | 4 +-
...ploymentsGetRemoteDebuggingConfigSample.ts | 4 +-
.../samples-dev/deploymentsGetSample.ts | 4 +-
.../deploymentsListForClusterSample.ts | 4 +-
.../samples-dev/deploymentsListSample.ts | 4 +-
.../samples-dev/deploymentsRestartSample.ts | 4 +-
.../samples-dev/deploymentsStartJfrSample.ts | 4 +-
.../samples-dev/deploymentsStartSample.ts | 4 +-
.../samples-dev/deploymentsStopSample.ts | 4 +-
.../samples-dev/deploymentsUpdateSample.ts | 4 +-
.../devToolPortalsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/devToolPortalsDeleteSample.ts | 4 +-
.../samples-dev/devToolPortalsGetSample.ts | 4 +-
.../samples-dev/devToolPortalsListSample.ts | 4 +-
...atewayCustomDomainsCreateOrUpdateSample.ts | 4 +-
.../gatewayCustomDomainsDeleteSample.ts | 4 +-
.../gatewayCustomDomainsGetSample.ts | 4 +-
.../gatewayCustomDomainsListSample.ts | 4 +-
...gatewayRouteConfigsCreateOrUpdateSample.ts | 4 +-
.../gatewayRouteConfigsDeleteSample.ts | 4 +-
.../gatewayRouteConfigsGetSample.ts | 4 +-
.../gatewayRouteConfigsListSample.ts | 4 +-
.../gatewaysCreateOrUpdateSample.ts | 4 +-
.../samples-dev/gatewaysDeleteSample.ts | 4 +-
.../samples-dev/gatewaysGetSample.ts | 4 +-
.../gatewaysListEnvSecretsSample.ts | 4 +-
.../samples-dev/gatewaysListSample.ts | 4 +-
.../samples-dev/gatewaysRestartSample.ts | 4 +-
.../gatewaysValidateDomainSample.ts | 4 +-
.../monitoringSettingsGetSample.ts | 4 +-
.../monitoringSettingsUpdatePatchSample.ts | 4 +-
.../monitoringSettingsUpdatePutSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../predefinedAcceleratorsDisableSample.ts | 4 +-
.../predefinedAcceleratorsEnableSample.ts | 4 +-
.../predefinedAcceleratorsGetSample.ts | 4 +-
.../predefinedAcceleratorsListSample.ts | 4 +-
...untimeVersionsListRuntimeVersionsSample.ts | 4 +-
.../serviceRegistriesCreateOrUpdateSample.ts | 4 +-
.../serviceRegistriesDeleteSample.ts | 4 +-
.../samples-dev/serviceRegistriesGetSample.ts | 4 +-
.../serviceRegistriesListSample.ts | 4 +-
.../servicesCheckNameAvailabilitySample.ts | 4 +-
.../servicesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/servicesDeleteSample.ts | 4 +-
.../servicesDisableApmGloballySample.ts | 4 +-
.../servicesDisableTestEndpointSample.ts | 4 +-
.../servicesEnableApmGloballySample.ts | 4 +-
.../servicesEnableTestEndpointSample.ts | 4 +-
.../servicesFlushVnetDnsSettingSample.ts | 4 +-
.../samples-dev/servicesGetSample.ts | 4 +-
.../servicesListBySubscriptionSample.ts | 4 +-
.../servicesListGloballyEnabledApmsSample.ts | 4 +-
.../samples-dev/servicesListSample.ts | 4 +-
.../servicesListSupportedApmTypesSample.ts | 4 +-
...rvicesListSupportedServerVersionsSample.ts | 4 +-
.../samples-dev/servicesListTestKeysSample.ts | 4 +-
.../servicesRegenerateTestKeySample.ts | 4 +-
.../samples-dev/servicesStartSample.ts | 4 +-
.../samples-dev/servicesStopSample.ts | 4 +-
.../samples-dev/servicesUpdateSample.ts | 4 +-
.../samples-dev/skusListSample.ts | 4 +-
.../storagesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/storagesDeleteSample.ts | 4 +-
.../samples-dev/storagesGetSample.ts | 4 +-
.../samples-dev/storagesListSample.ts | 4 +-
...PortalCustomDomainsCreateOrUpdateSample.ts | 4 +-
.../src/apiPortalCustomDomainsDeleteSample.ts | 4 +-
.../src/apiPortalCustomDomainsGetSample.ts | 4 +-
.../src/apiPortalCustomDomainsListSample.ts | 4 +-
.../src/apiPortalsCreateOrUpdateSample.ts | 4 +-
.../typescript/src/apiPortalsDeleteSample.ts | 4 +-
.../v3/typescript/src/apiPortalsGetSample.ts | 4 +-
.../v3/typescript/src/apiPortalsListSample.ts | 4 +-
.../src/apiPortalsValidateDomainSample.ts | 4 +-
.../src/apmsCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/apmsDeleteSample.ts | 4 +-
.../v3/typescript/src/apmsGetSample.ts | 4 +-
.../v3/typescript/src/apmsListSample.ts | 4 +-
.../src/apmsListSecretKeysSample.ts | 4 +-
...icationAcceleratorsCreateOrUpdateSample.ts | 4 +-
.../applicationAcceleratorsDeleteSample.ts | 4 +-
.../src/applicationAcceleratorsGetSample.ts | 4 +-
.../src/applicationAcceleratorsListSample.ts | 4 +-
...pplicationLiveViewsCreateOrUpdateSample.ts | 4 +-
.../src/applicationLiveViewsDeleteSample.ts | 4 +-
.../src/applicationLiveViewsGetSample.ts | 4 +-
.../src/applicationLiveViewsListSample.ts | 4 +-
.../src/appsCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/appsDeleteSample.ts | 4 +-
.../src/appsGetResourceUploadUrlSample.ts | 4 +-
.../v3/typescript/src/appsGetSample.ts | 4 +-
.../v3/typescript/src/appsListSample.ts | 4 +-
.../src/appsSetActiveDeploymentsSample.ts | 4 +-
.../v3/typescript/src/appsUpdateSample.ts | 4 +-
.../src/appsValidateDomainSample.ts | 4 +-
.../src/bindingsCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/bindingsDeleteSample.ts | 4 +-
.../v3/typescript/src/bindingsGetSample.ts | 4 +-
.../v3/typescript/src/bindingsListSample.ts | 4 +-
.../v3/typescript/src/bindingsUpdateSample.ts | 4 +-
.../src/buildServiceAgentPoolGetSample.ts | 4 +-
.../src/buildServiceAgentPoolListSample.ts | 4 +-
.../buildServiceAgentPoolUpdatePutSample.ts | 4 +-
...buildServiceBuilderCreateOrUpdateSample.ts | 4 +-
.../src/buildServiceBuilderDeleteSample.ts | 4 +-
.../src/buildServiceBuilderGetSample.ts | 4 +-
...uildServiceBuilderListDeploymentsSample.ts | 4 +-
.../src/buildServiceBuilderListSample.ts | 4 +-
.../buildServiceCreateOrUpdateBuildSample.ts | 4 +-
.../src/buildServiceCreateOrUpdateSample.ts | 4 +-
.../src/buildServiceDeleteBuildSample.ts | 4 +-
.../buildServiceGetBuildResultLogSample.ts | 4 +-
.../src/buildServiceGetBuildResultSample.ts | 4 +-
.../src/buildServiceGetBuildSample.ts | 4 +-
.../src/buildServiceGetBuildServiceSample.ts | 4 +-
.../buildServiceGetResourceUploadUrlSample.ts | 4 +-
...buildServiceGetSupportedBuildpackSample.ts | 4 +-
.../buildServiceGetSupportedStackSample.ts | 4 +-
.../src/buildServiceListBuildResultsSample.ts | 4 +-
.../buildServiceListBuildServicesSample.ts | 4 +-
.../src/buildServiceListBuildsSample.ts | 4 +-
...ildServiceListSupportedBuildpacksSample.ts | 4 +-
.../buildServiceListSupportedStacksSample.ts | 4 +-
.../buildpackBindingCreateOrUpdateSample.ts | 4 +-
.../src/buildpackBindingDeleteSample.ts | 4 +-
.../src/buildpackBindingGetSample.ts | 4 +-
.../buildpackBindingListForClusterSample.ts | 4 +-
.../src/buildpackBindingListSample.ts | 4 +-
.../src/certificatesCreateOrUpdateSample.ts | 4 +-
.../src/certificatesDeleteSample.ts | 4 +-
.../typescript/src/certificatesGetSample.ts | 4 +-
.../typescript/src/certificatesListSample.ts | 4 +-
.../typescript/src/configServersGetSample.ts | 4 +-
.../src/configServersUpdatePatchSample.ts | 4 +-
.../src/configServersUpdatePutSample.ts | 4 +-
.../src/configServersValidateSample.ts | 4 +-
...nfigurationServicesCreateOrUpdateSample.ts | 4 +-
.../src/configurationServicesDeleteSample.ts | 4 +-
.../src/configurationServicesGetSample.ts | 4 +-
.../src/configurationServicesListSample.ts | 4 +-
...igurationServicesValidateResourceSample.ts | 4 +-
.../configurationServicesValidateSample.ts | 4 +-
...containerRegistriesCreateOrUpdateSample.ts | 4 +-
.../src/containerRegistriesDeleteSample.ts | 4 +-
.../src/containerRegistriesGetSample.ts | 4 +-
.../src/containerRegistriesListSample.ts | 4 +-
.../src/containerRegistriesValidateSample.ts | 4 +-
.../src/customDomainsCreateOrUpdateSample.ts | 4 +-
.../src/customDomainsDeleteSample.ts | 4 +-
.../typescript/src/customDomainsGetSample.ts | 4 +-
.../typescript/src/customDomainsListSample.ts | 4 +-
.../src/customDomainsUpdateSample.ts | 4 +-
...tomizedAcceleratorsCreateOrUpdateSample.ts | 4 +-
.../src/customizedAcceleratorsDeleteSample.ts | 4 +-
.../src/customizedAcceleratorsGetSample.ts | 4 +-
.../src/customizedAcceleratorsListSample.ts | 4 +-
.../customizedAcceleratorsValidateSample.ts | 4 +-
.../src/deploymentsCreateOrUpdateSample.ts | 4 +-
.../typescript/src/deploymentsDeleteSample.ts | 4 +-
...deploymentsDisableRemoteDebuggingSample.ts | 4 +-
.../deploymentsEnableRemoteDebuggingSample.ts | 4 +-
.../src/deploymentsGenerateHeapDumpSample.ts | 4 +-
.../deploymentsGenerateThreadDumpSample.ts | 4 +-
.../src/deploymentsGetLogFileUrlSample.ts | 4 +-
...ploymentsGetRemoteDebuggingConfigSample.ts | 4 +-
.../v3/typescript/src/deploymentsGetSample.ts | 4 +-
.../src/deploymentsListForClusterSample.ts | 4 +-
.../typescript/src/deploymentsListSample.ts | 4 +-
.../src/deploymentsRestartSample.ts | 4 +-
.../src/deploymentsStartJfrSample.ts | 4 +-
.../typescript/src/deploymentsStartSample.ts | 4 +-
.../typescript/src/deploymentsStopSample.ts | 4 +-
.../typescript/src/deploymentsUpdateSample.ts | 4 +-
.../src/devToolPortalsCreateOrUpdateSample.ts | 4 +-
.../src/devToolPortalsDeleteSample.ts | 4 +-
.../typescript/src/devToolPortalsGetSample.ts | 4 +-
.../src/devToolPortalsListSample.ts | 4 +-
...atewayCustomDomainsCreateOrUpdateSample.ts | 4 +-
.../src/gatewayCustomDomainsDeleteSample.ts | 4 +-
.../src/gatewayCustomDomainsGetSample.ts | 4 +-
.../src/gatewayCustomDomainsListSample.ts | 4 +-
...gatewayRouteConfigsCreateOrUpdateSample.ts | 4 +-
.../src/gatewayRouteConfigsDeleteSample.ts | 4 +-
.../src/gatewayRouteConfigsGetSample.ts | 4 +-
.../src/gatewayRouteConfigsListSample.ts | 4 +-
.../src/gatewaysCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/gatewaysDeleteSample.ts | 4 +-
.../v3/typescript/src/gatewaysGetSample.ts | 4 +-
.../src/gatewaysListEnvSecretsSample.ts | 4 +-
.../v3/typescript/src/gatewaysListSample.ts | 4 +-
.../typescript/src/gatewaysRestartSample.ts | 4 +-
.../src/gatewaysValidateDomainSample.ts | 4 +-
.../src/monitoringSettingsGetSample.ts | 4 +-
.../monitoringSettingsUpdatePatchSample.ts | 4 +-
.../src/monitoringSettingsUpdatePutSample.ts | 4 +-
.../v3/typescript/src/operationsListSample.ts | 4 +-
.../predefinedAcceleratorsDisableSample.ts | 4 +-
.../src/predefinedAcceleratorsEnableSample.ts | 4 +-
.../src/predefinedAcceleratorsGetSample.ts | 4 +-
.../src/predefinedAcceleratorsListSample.ts | 4 +-
...untimeVersionsListRuntimeVersionsSample.ts | 4 +-
.../serviceRegistriesCreateOrUpdateSample.ts | 4 +-
.../src/serviceRegistriesDeleteSample.ts | 4 +-
.../src/serviceRegistriesGetSample.ts | 4 +-
.../src/serviceRegistriesListSample.ts | 4 +-
.../servicesCheckNameAvailabilitySample.ts | 4 +-
.../src/servicesCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/servicesDeleteSample.ts | 4 +-
.../src/servicesDisableApmGloballySample.ts | 4 +-
.../src/servicesDisableTestEndpointSample.ts | 4 +-
.../src/servicesEnableApmGloballySample.ts | 4 +-
.../src/servicesEnableTestEndpointSample.ts | 4 +-
.../src/servicesFlushVnetDnsSettingSample.ts | 4 +-
.../v3/typescript/src/servicesGetSample.ts | 4 +-
.../src/servicesListBySubscriptionSample.ts | 4 +-
.../servicesListGloballyEnabledApmsSample.ts | 4 +-
.../v3/typescript/src/servicesListSample.ts | 4 +-
.../servicesListSupportedApmTypesSample.ts | 4 +-
...rvicesListSupportedServerVersionsSample.ts | 4 +-
.../src/servicesListTestKeysSample.ts | 4 +-
.../src/servicesRegenerateTestKeySample.ts | 4 +-
.../v3/typescript/src/servicesStartSample.ts | 4 +-
.../v3/typescript/src/servicesStopSample.ts | 4 +-
.../v3/typescript/src/servicesUpdateSample.ts | 4 +-
.../v3/typescript/src/skusListSample.ts | 4 +-
.../src/storagesCreateOrUpdateSample.ts | 4 +-
.../v3/typescript/src/storagesDeleteSample.ts | 4 +-
.../v3/typescript/src/storagesGetSample.ts | 4 +-
.../v3/typescript/src/storagesListSample.ts | 4 +-
.../src/appPlatformManagementClient.ts | 6 +-
sdk/appplatform/arm-appplatform/src/index.ts | 8 +--
.../arm-appplatform/src/models/parameters.ts | 2 +-
.../src/operations/apiPortalCustomDomains.ts | 14 ++---
.../src/operations/apiPortals.ts | 14 ++---
.../arm-appplatform/src/operations/apms.ts | 14 ++---
.../src/operations/applicationAccelerators.ts | 14 ++---
.../src/operations/applicationLiveViews.ts | 14 ++---
.../arm-appplatform/src/operations/apps.ts | 14 ++---
.../src/operations/bindings.ts | 14 ++---
.../src/operations/buildServiceAgentPool.ts | 14 ++---
.../src/operations/buildServiceBuilder.ts | 14 ++---
.../src/operations/buildServiceOperations.ts | 14 ++---
.../src/operations/buildpackBinding.ts | 14 ++---
.../src/operations/certificates.ts | 14 ++---
.../src/operations/configServers.ts | 12 ++--
.../src/operations/configurationServices.ts | 14 ++---
.../src/operations/containerRegistries.ts | 14 ++---
.../src/operations/customDomains.ts | 14 ++---
.../src/operations/customizedAccelerators.ts | 14 ++---
.../src/operations/deployments.ts | 14 ++---
.../src/operations/devToolPortals.ts | 14 ++---
.../src/operations/gatewayCustomDomains.ts | 14 ++---
.../src/operations/gatewayRouteConfigs.ts | 14 ++---
.../src/operations/gateways.ts | 14 ++---
.../arm-appplatform/src/operations/index.ts | 60 +++++++++----------
.../src/operations/monitoringSettings.ts | 12 ++--
.../src/operations/operations.ts | 12 ++--
.../src/operations/predefinedAccelerators.ts | 14 ++---
.../src/operations/runtimeVersions.ts | 10 ++--
.../src/operations/serviceRegistries.ts | 14 ++---
.../src/operations/services.ts | 14 ++---
.../arm-appplatform/src/operations/skus.ts | 12 ++--
.../src/operations/storages.ts | 14 ++---
.../apiPortalCustomDomains.ts | 2 +-
.../src/operationsInterfaces/apiPortals.ts | 2 +-
.../src/operationsInterfaces/apms.ts | 2 +-
.../applicationAccelerators.ts | 2 +-
.../applicationLiveViews.ts | 2 +-
.../src/operationsInterfaces/apps.ts | 2 +-
.../src/operationsInterfaces/bindings.ts | 2 +-
.../buildServiceAgentPool.ts | 2 +-
.../buildServiceBuilder.ts | 2 +-
.../buildServiceOperations.ts | 2 +-
.../operationsInterfaces/buildpackBinding.ts | 2 +-
.../src/operationsInterfaces/certificates.ts | 2 +-
.../src/operationsInterfaces/configServers.ts | 2 +-
.../configurationServices.ts | 2 +-
.../containerRegistries.ts | 2 +-
.../src/operationsInterfaces/customDomains.ts | 2 +-
.../customizedAccelerators.ts | 2 +-
.../src/operationsInterfaces/deployments.ts | 2 +-
.../operationsInterfaces/devToolPortals.ts | 2 +-
.../gatewayCustomDomains.ts | 2 +-
.../gatewayRouteConfigs.ts | 2 +-
.../src/operationsInterfaces/gateways.ts | 2 +-
.../src/operationsInterfaces/index.ts | 60 +++++++++----------
.../monitoringSettings.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../predefinedAccelerators.ts | 2 +-
.../operationsInterfaces/runtimeVersions.ts | 2 +-
.../operationsInterfaces/serviceRegistries.ts | 2 +-
.../src/operationsInterfaces/services.ts | 2 +-
.../src/operationsInterfaces/skus.ts | 2 +-
.../src/operationsInterfaces/storages.ts | 2 +-
.../test/appplatform_examples.ts | 36 +----------
394 files changed, 633 insertions(+), 1319 deletions(-)
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts
index f4a53e3a5036..6e1d63fdbc63 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts
index 5df76d9768d2..b5f73166d1d7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts
index c5a33f36ccc6..f503cb2c8011 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts
index db175cfb80d2..3e2e0327480a 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all API portal custom domains.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts
index a54ee52424b4..812a1d7d0fa7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default API portal or update the existing API portal.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts
index 1cdd6136a823..e74235e74856 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the default API portal.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts
index 69417f6636f5..094c45366261 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the API portal and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts
index fd36a1f4a480..7d63b6f68770 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts
index c1a8aa444965..6247e5ce1d66 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apiPortalsValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the domains are valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apmsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apmsCreateOrUpdateSample.ts
index 4b530f37d51b..1e594cdf3dd5 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apmsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apmsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an APM.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apmsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apmsDeleteSample.ts
index f9d09c437651..ddf2c63b05d7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apmsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apmsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete an APM
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apmsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apmsGetSample.ts
index 7e2151d14008..da24cc231f61 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apmsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apmsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the APM by name.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apmsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apmsListSample.ts
index 642860fc83f0..4dc5481c23ea 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apmsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apmsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get collection of APMs.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/apmsListSecretKeysSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/apmsListSecretKeysSample.ts
index 66af23a2e4aa..4ae843225899 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/apmsListSecretKeysSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/apmsListSecretKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List keys of APM sensitive properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsCreateOrUpdateSample.ts
index 867f7def3676..b5aaaacf2429 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsDeleteSample.ts
index 1e685fdc5670..7f27673c07c3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsGetSample.ts
index ea2c603191a6..10345a33e0f3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsListSample.ts
index d339ab1a2f2b..13ed5257c178 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsCreateOrUpdateSample.ts
index 4f26203c98d6..48a96cd7f4f0 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Application Live View or update the existing Application Live View.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsDeleteSample.ts
index f0c86879d0db..60ca6e49e70b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Application Live View.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsGetSample.ts
index 8f8ab92e6809..139948d6d8f6 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Live and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsListSample.ts
index ff7e0a490849..5b0591763dc3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/applicationLiveViewsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts
index 55f18c900b0a..f4ccffd74964 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new App or update an exiting App.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts
index a031ddb18208..2223bed3e628 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete an App.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts
index 06d8c7b8bb59..cd99a2b510c7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsGetResourceUploadUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts
index de7fc74fcfa8..20bcc929ba2b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an App and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts
index 2b206793dee3..54ff6a22fe77 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts
index cff94a655aef..1350af724388 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsSetActiveDeploymentsSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Set existing Deployment under the app as active
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts
index 23201d9ba722..dc98ccde1e51 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting App.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts
index fcd86c89dbe3..fac1eaa7b682 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/appsValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the resource name is valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts
index a32b520cf33c..e716ecc0aa55 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Binding or update an exiting Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts
index 408bcfad40d7..033397cef1a0 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts
index 3902a902b462..7b7360d459f6 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Binding and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts
index 66bdee530241..ea08b049f898 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in an App.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts
index 399f763a02a6..1865b1bc5da1 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/bindingsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts
index e42d777a9c3c..5b1fb93b65a1 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts
index 39b006d7ea07..e4333f909571 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts
index 0f63dc54f457..9f40812bcbba 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceAgentPoolUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts
index e34cab6f62c0..78e0e2129b94 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts
index b6e2fc585de0..385d88630d2f 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts
index 810d0516dd98..50d260abbbd9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListDeploymentsSample.ts
index d8a66d8fcc0c..83b57c07cfc7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListDeploymentsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListDeploymentsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List deployments that are using the builder.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts
index 71637d460600..c21ab3ce3986 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceBuilderListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack builders result.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts
index 826b39eca077..7ce1b3af6c65 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Build, AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateSample.ts
index 36864de140a1..c909a50c618a 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a build service resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceDeleteBuildSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceDeleteBuildSample.ts
index 81551698f8c3..c99490ed537a 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceDeleteBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceDeleteBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to delete a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts
index 153f8abc0283..f09816e468bf 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultLogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build result log download URL.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts
index fea6c5d7cb3c..f75f7f5fef6e 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildResultSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build result.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts
index 43e7250d88fe..cbb04259c857 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts
index 3115843cfc46..24575d7ca453 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetBuildServiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a build service resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts
index 1eb26d6a5b21..a0c989417ca0 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetResourceUploadUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts
index e639c9b446dd..3f827dcb109d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedBuildpackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the supported buildpack resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts
index bdb3aabfb943..dd5eae373213 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceGetSupportedStackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the supported stack resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts
index 858480f1ba9d..f2232f8cd142 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildResultsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack build results.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts
index a6ec91c68a78..c6f9863a81d8 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildServicesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List build services resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts
index 0be80842dfe7..19d9d633c1b8 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListBuildsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack builds.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts
index 4a37c358d6eb..e39c59023ebd 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedBuildpacksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all supported buildpacks.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts
index 96f31454587e..9cc1fe4e1eeb 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildServiceListSupportedStacksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all supported stacks.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts
index 980b1ab7102a..bcaa5d45afdf 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a buildpack binding.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts
index 6ef47725a4ce..cb72c736a106 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Buildpack Binding
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts
index bbd9ff96bf8e..94ab77d822c3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a buildpack binding by name.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListForClusterSample.ts
index 94ba7bc31b8c..6465eb45cbf7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListForClusterSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListForClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get collection of buildpack bindings under all builders.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts
index 09a1c5b83ca9..fae305154d5d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/buildpackBindingListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all buildpack bindings in a builder.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts
index 14a9d8453879..41675013788d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts
index e9bd5d8abbe3..61c6ff707847 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts
index 88a1985491bd..9989c63a7327 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts
index b1a5270e092b..456e8eb3cf6c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/certificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the certificates of one user.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts
index 0cf19f288dbc..4d382ad9ec23 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the config server and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts
index 617471716bf9..8381f2ffc250 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePatchSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the config server.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts
index e52975e8763e..a47caa049026 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the config server.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts
index aa5ab779bfb3..953e775ce8c1 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configServersValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the config server settings are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts
index 4fe3bf7ec5cc..974a1789c1c6 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts
index 48c70158957b..d939d3ae8a48 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Application Configuration Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts
index 1060f8438daa..6761ca041ed4 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Configuration Service and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts
index bf4b294657d0..b357e9f6d820 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateResourceSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateResourceSample.ts
index c6f1acb1a1be..5fb4b818898c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateResourceSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateResourceSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the Application Configuration Service resource is valid.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts
index c127a457888a..66bd3af81f37 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/configurationServicesValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the Application Configuration Service settings are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesCreateOrUpdateSample.ts
index 0e156989c89d..bd9000f3849d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update container registry resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesDeleteSample.ts
index 39dae732cc7d..4fc0b8094046 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a container registry resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesGetSample.ts
index 8b3285061064..17c5cbb48539 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the container registries resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesListSample.ts
index 5718de08f667..830700f12295 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List container registries resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesValidateSample.ts
index 60a87f46347c..9a5a0e112dc7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/containerRegistriesValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the container registry properties are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts
index 43d4bf6532bd..7de94af7bdbc 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts
index 5ddafa144a4b..8d2ae4638f8c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts
index fe7ccad8c651..e14648db2771 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts
index 59b0e99a558d..fd7cb61f3069 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the custom domains of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts
index f42cb39a7556..5d1d525e26ed 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customDomainsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsCreateOrUpdateSample.ts
index 8becfcd000c8..b467403754de 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsDeleteSample.ts
index 4dcd8aa95a22..8ed84751f559 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsGetSample.ts
index 7a68bfd43f61..97c6d1ad8bdb 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsListSample.ts
index 1cc03c663722..89dd53207f9b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all customized accelerators.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsValidateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsValidateSample.ts
index ae8abea786bd..aa842abcbd4f 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/customizedAcceleratorsValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the customized accelerator are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts
index 071efbe05e64..39b6cc181f30 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Deployment or update an exiting Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts
index 60491197f5ee..c5e905ff4a31 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDisableRemoteDebuggingSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDisableRemoteDebuggingSample.ts
index afba05c41a23..9be0bf98a682 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDisableRemoteDebuggingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsDisableRemoteDebuggingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable remote debugging.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsEnableRemoteDebuggingSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsEnableRemoteDebuggingSample.ts
index e0ec4b00e872..22e02b7bbc71 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsEnableRemoteDebuggingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsEnableRemoteDebuggingSample.ts
@@ -14,9 +14,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable remote debugging.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts
index 8f3a5f643454..8f54f6b5e285 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateHeapDumpSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate Heap Dump
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts
index 5a22c1e6b740..8c247ba9eae2 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGenerateThreadDumpSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate Thread Dump
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts
index bca81e05dc85..3cb76354090b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetLogFileUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get deployment log file URL
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetRemoteDebuggingConfigSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetRemoteDebuggingConfigSample.ts
index ebb88b5b145b..30cbc43abd20 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetRemoteDebuggingConfigSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetRemoteDebuggingConfigSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get remote debugging config.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts
index 9b49b8b3c2fc..c5366c803004 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Deployment and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts
index 50eb0b209e61..f6e833994aa7 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListForClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List deployments for a certain service
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts
index 2d10e9c6d1be..0191591cf1ea 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in an App.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts
index 3963736b2255..0faa5c9a5852 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restart the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts
index dcc6bbf0b4df..8b67237239dc 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartJfrSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start JFR
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts
index dcf591dc06c2..72e09b6c83cf 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts
index 407f76ec174e..ece1675997b9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts
index 8fb3da734084..b0babe2bd8ad 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/deploymentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsCreateOrUpdateSample.ts
index aef1e350a72e..db5d322506bd 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Dev Tool Portal or update the existing Dev Tool Portal.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsDeleteSample.ts
index 7c30c6163b36..cc9de4b8e059 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Dev Tool Portal.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsGetSample.ts
index 1123a4e7bdeb..0468d909e250 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Live and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsListSample.ts
index 4bf523e8f82b..8fbca2d7e7bd 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/devToolPortalsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts
index 4dabbac3c662..f2b8dc7b3079 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts
index ceee5ddf2729..e0868c4d7f14 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts
index 458b39f0549e..870658e2951c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts
index bcfb3936dc60..1f34c6ddbc9e 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayCustomDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts
index ec5f1983e932..8b7f933ccd79 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts
index f95da0139c38..76b99815b327 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the Spring Cloud Gateway route config.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts
index 0d076bd6277c..a3ca171ebe25 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts
index 10aeab3d6a15..171faff30aa5 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewayRouteConfigsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts
index 8e080f779d41..aef3a24a1214 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts
index 567aaff6cbcf..a1fa81006cef 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts
index 1bac7c263c58..3a2c4d06d2ca 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListEnvSecretsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListEnvSecretsSample.ts
index 4979f1eacf34..2717c010bc35 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListEnvSecretsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListEnvSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List sensitive environment variables of Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts
index 19778568483c..e9d05d98df70 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysRestartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysRestartSample.ts
index 43176bdf7bdd..76a887ac6dd2 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysRestartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restart the Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts
index 7ff29026dc46..aae79df0d6d3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/gatewaysValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the domains are valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts
index 51444a3eb2bb..0888ab416a90 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Monitoring Setting and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts
index 38a1fb8d12cb..b5aa0ade03c9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePatchSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the Monitoring Setting.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts
index 899d209d01b2..9329af2d3848 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/monitoringSettingsUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the Monitoring Setting.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts
index 19c87f50018a..0a056e9694a2 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 REST API operations of the Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsDisableSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsDisableSample.ts
index ddcfde2d82ee..316891100947 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsDisableSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsDisableSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsEnableSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsEnableSample.ts
index 9a7061fa6373..1a54eef27ddd 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsEnableSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsEnableSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsGetSample.ts
index 1f38257bbe53..7dadb8052aa2 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsListSample.ts
index d5ffc528ed2d..6543cc07ec93 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/predefinedAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all predefined accelerators.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts
index 1bf257fb00cd..6fea84cb29bb 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/runtimeVersionsListRuntimeVersionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 runtime versions supported by Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts
index 5f85bdfac1da..06448f09259d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Service Registry or update the existing Service Registry.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts
index adbe41771a16..88a0dbb9f3f6 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Service Registry.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts
index bc30a8b09d53..3f341789a7af 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Service Registry and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts
index 5fb0e1292eca..8c710f1791e1 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/serviceRegistriesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts
index 5be0ba9f7310..847a07585ae0 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks that the resource name is valid and is not already in use.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts
index fc8b63040402..0aa363645450 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Service or update an exiting Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts
index 32c9264f332e..0a0dd592bb6a 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableApmGloballySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableApmGloballySample.ts
index 6a16e13bf549..10eab08788c9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableApmGloballySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableApmGloballySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable an APM globally.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts
index 0715ab23a3bb..2f19ecd41a0c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesDisableTestEndpointSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable test endpoint functionality for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableApmGloballySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableApmGloballySample.ts
index 88fb70a46199..07423768e1d6 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableApmGloballySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableApmGloballySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable an APM globally.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts
index 1d68ae669b84..268e215c7a3b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesEnableTestEndpointSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable test endpoint functionality for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesFlushVnetDnsSettingSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesFlushVnetDnsSettingSample.ts
index 68272c24d4a4..764e37c04040 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesFlushVnetDnsSettingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesFlushVnetDnsSettingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Flush Virtual Network DNS settings for a VNET injected Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts
index 90a6320a4c06..da39bac0a73c 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Service and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts
index 53ea783ae6e6..a802f2661fe1 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a subscription.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListGloballyEnabledApmsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListGloballyEnabledApmsSample.ts
index 39f85e0940b0..ba931fa2cf18 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListGloballyEnabledApmsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListGloballyEnabledApmsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List globally enabled APMs for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts
index d8ffea298e06..df37fb5dde4b 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a resource group.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedApmTypesSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedApmTypesSample.ts
index 273eec170d93..74e80a2bf5fd 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedApmTypesSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedApmTypesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List supported APM types for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedServerVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedServerVersionsSample.ts
index 90c6bff5a298..969a2ef0b21d 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedServerVersionsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListSupportedServerVersionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 server versions supported by Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts
index c457e553505b..efe24ba55954 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesListTestKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List test keys for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts
index 3240730953f7..02d2b6625733 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesRegenerateTestKeySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerate a test key for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts
index 1bbdc5cef2a2..5b5b5e3a27dc 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts
index df91b637e5ee..936ab6412033 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts
index e3f5bf1746be..29ad1d355af9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/servicesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Service.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts
index 4dc7a1b3f7cc..10fef0a3bea9 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/skusListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 skus of the Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts
index 109eafbad1ef..f416cf690623 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/storagesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts
index 4ca566163f03..8e1a274a1d01 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/storagesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts
index ce11ce23c0b2..cc142598c3d3 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/storagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts b/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts
index 3e68d8a2e9b1..f089d7719578 100644
--- a/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples-dev/storagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the storages of one Azure Spring Apps resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts
index f4a53e3a5036..6e1d63fdbc63 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsDeleteSample.ts
index 5df76d9768d2..b5f73166d1d7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsGetSample.ts
index c5a33f36ccc6..f503cb2c8011 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the API portal custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsListSample.ts
index db175cfb80d2..3e2e0327480a 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalCustomDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all API portal custom domains.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsCreateOrUpdateSample.ts
index a54ee52424b4..812a1d7d0fa7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default API portal or update the existing API portal.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsDeleteSample.ts
index 1cdd6136a823..e74235e74856 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the default API portal.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsGetSample.ts
index 69417f6636f5..094c45366261 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the API portal and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsListSample.ts
index fd36a1f4a480..7d63b6f68770 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsValidateDomainSample.ts
index c1a8aa444965..6247e5ce1d66 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apiPortalsValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the domains are valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsCreateOrUpdateSample.ts
index 4b530f37d51b..1e594cdf3dd5 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an APM.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsDeleteSample.ts
index f9d09c437651..ddf2c63b05d7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete an APM
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsGetSample.ts
index 7e2151d14008..da24cc231f61 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the APM by name.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSample.ts
index 642860fc83f0..4dc5481c23ea 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get collection of APMs.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSecretKeysSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSecretKeysSample.ts
index 66af23a2e4aa..4ae843225899 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSecretKeysSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/apmsListSecretKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List keys of APM sensitive properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsCreateOrUpdateSample.ts
index 867f7def3676..b5aaaacf2429 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsDeleteSample.ts
index 1e685fdc5670..7f27673c07c3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsGetSample.ts
index ea2c603191a6..10345a33e0f3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsListSample.ts
index d339ab1a2f2b..13ed5257c178 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all application accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsCreateOrUpdateSample.ts
index 4f26203c98d6..48a96cd7f4f0 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Application Live View or update the existing Application Live View.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsDeleteSample.ts
index f0c86879d0db..60ca6e49e70b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Application Live View.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsGetSample.ts
index 8f8ab92e6809..139948d6d8f6 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Live and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsListSample.ts
index ff7e0a490849..5b0591763dc3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/applicationLiveViewsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsCreateOrUpdateSample.ts
index 55f18c900b0a..f4ccffd74964 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new App or update an exiting App.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsDeleteSample.ts
index a031ddb18208..2223bed3e628 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete an App.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetResourceUploadUrlSample.ts
index 06d8c7b8bb59..cd99a2b510c7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetResourceUploadUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetResourceUploadUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an resource upload URL for an App, which may be artifacts or source archive.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetSample.ts
index de7fc74fcfa8..20bcc929ba2b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an App and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsListSample.ts
index 2b206793dee3..54ff6a22fe77 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsSetActiveDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsSetActiveDeploymentsSample.ts
index cff94a655aef..1350af724388 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsSetActiveDeploymentsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsSetActiveDeploymentsSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Set existing Deployment under the app as active
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsUpdateSample.ts
index 23201d9ba722..dc98ccde1e51 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting App.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsValidateDomainSample.ts
index fcd86c89dbe3..fac1eaa7b682 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/appsValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the resource name is valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsCreateOrUpdateSample.ts
index a32b520cf33c..e716ecc0aa55 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Binding or update an exiting Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsDeleteSample.ts
index 408bcfad40d7..033397cef1a0 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsGetSample.ts
index 3902a902b462..7b7360d459f6 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Binding and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsListSample.ts
index 66bdee530241..ea08b049f898 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in an App.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsUpdateSample.ts
index 399f763a02a6..1865b1bc5da1 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/bindingsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Binding.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolGetSample.ts
index e42d777a9c3c..5b1fb93b65a1 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolListSample.ts
index 39b006d7ea07..e4333f909571 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolUpdatePutSample.ts
index 0f63dc54f457..9f40812bcbba 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceAgentPoolUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update build service agent pool.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts
index e34cab6f62c0..78e0e2129b94 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderDeleteSample.ts
index b6e2fc585de0..385d88630d2f 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderGetSample.ts
index 810d0516dd98..50d260abbbd9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack builder.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListDeploymentsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListDeploymentsSample.ts
index d8a66d8fcc0c..83b57c07cfc7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListDeploymentsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListDeploymentsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List deployments that are using the builder.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListSample.ts
index 71637d460600..c21ab3ce3986 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceBuilderListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack builders result.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateBuildSample.ts
index 826b39eca077..7ce1b3af6c65 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Build, AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateSample.ts
index 36864de140a1..c909a50c618a 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a build service resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceDeleteBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceDeleteBuildSample.ts
index 81551698f8c3..c99490ed537a 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceDeleteBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceDeleteBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to delete a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultLogSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultLogSample.ts
index 153f8abc0283..f09816e468bf 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultLogSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultLogSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build result log download URL.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultSample.ts
index fea6c5d7cb3c..f75f7f5fef6e 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildResultSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build result.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildSample.ts
index 43e7250d88fe..cbb04259c857 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a KPack build.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildServiceSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildServiceSample.ts
index 3115843cfc46..24575d7ca453 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildServiceSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetBuildServiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a build service resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetResourceUploadUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetResourceUploadUrlSample.ts
index 1eb26d6a5b21..a0c989417ca0 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetResourceUploadUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetResourceUploadUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get an resource upload URL for build service, which may be artifacts or source archive.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedBuildpackSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedBuildpackSample.ts
index e639c9b446dd..3f827dcb109d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedBuildpackSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedBuildpackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the supported buildpack resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedStackSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedStackSample.ts
index bdb3aabfb943..dd5eae373213 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedStackSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceGetSupportedStackSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the supported stack resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildResultsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildResultsSample.ts
index 858480f1ba9d..f2232f8cd142 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildResultsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildResultsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack build results.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildServicesSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildServicesSample.ts
index a6ec91c68a78..c6f9863a81d8 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildServicesSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildServicesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List build services resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildsSample.ts
index 0be80842dfe7..19d9d633c1b8 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListBuildsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List KPack builds.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedBuildpacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedBuildpacksSample.ts
index 4a37c358d6eb..e39c59023ebd 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedBuildpacksSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedBuildpacksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all supported buildpacks.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedStacksSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedStacksSample.ts
index 96f31454587e..9cc1fe4e1eeb 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedStacksSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildServiceListSupportedStacksSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all supported stacks.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingCreateOrUpdateSample.ts
index 980b1ab7102a..bcaa5d45afdf 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a buildpack binding.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingDeleteSample.ts
index 6ef47725a4ce..cb72c736a106 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Buildpack Binding
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingGetSample.ts
index bbd9ff96bf8e..94ab77d822c3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a buildpack binding by name.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListForClusterSample.ts
index 94ba7bc31b8c..6465eb45cbf7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListForClusterSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListForClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get collection of buildpack bindings under all builders.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListSample.ts
index 09a1c5b83ca9..fae305154d5d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/buildpackBindingListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all buildpack bindings in a builder.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts
index 14a9d8453879..41675013788d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesDeleteSample.ts
index e9bd5d8abbe3..61c6ff707847 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesGetSample.ts
index 88a1985491bd..9989c63a7327 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the certificate resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesListSample.ts
index b1a5270e092b..456e8eb3cf6c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/certificatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the certificates of one user.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersGetSample.ts
index 0cf19f288dbc..4d382ad9ec23 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the config server and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePatchSample.ts
index 617471716bf9..8381f2ffc250 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePatchSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePatchSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the config server.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePutSample.ts
index e52975e8763e..a47caa049026 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the config server.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersValidateSample.ts
index aa5ab779bfb3..953e775ce8c1 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configServersValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the config server settings are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesCreateOrUpdateSample.ts
index 4fe3bf7ec5cc..974a1789c1c6 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Application Configuration Service or update the existing Application Configuration Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesDeleteSample.ts
index 48c70158957b..d939d3ae8a48 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Application Configuration Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesGetSample.ts
index 1060f8438daa..6761ca041ed4 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Configuration Service and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesListSample.ts
index bf4b294657d0..b357e9f6d820 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateResourceSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateResourceSample.ts
index c6f1acb1a1be..5fb4b818898c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateResourceSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateResourceSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the Application Configuration Service resource is valid.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateSample.ts
index c127a457888a..66bd3af81f37 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/configurationServicesValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the Application Configuration Service settings are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesCreateOrUpdateSample.ts
index 0e156989c89d..bd9000f3849d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update container registry resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesDeleteSample.ts
index 39dae732cc7d..4fc0b8094046 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a container registry resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesGetSample.ts
index 8b3285061064..17c5cbb48539 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the container registries resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesListSample.ts
index 5718de08f667..830700f12295 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List container registries resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesValidateSample.ts
index 60a87f46347c..9a5a0e112dc7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/containerRegistriesValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check if the container registry properties are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsCreateOrUpdateSample.ts
index 43d4bf6532bd..7de94af7bdbc 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsDeleteSample.ts
index 5ddafa144a4b..8d2ae4638f8c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsGetSample.ts
index fe7ccad8c651..e14648db2771 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsListSample.ts
index 59b0e99a558d..fd7cb61f3069 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the custom domains of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsUpdateSample.ts
index f42cb39a7556..5d1d525e26ed 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customDomainsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update custom domain of one lifecycle application.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsCreateOrUpdateSample.ts
index 8becfcd000c8..b467403754de 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsDeleteSample.ts
index 4dcd8aa95a22..8ed84751f559 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsGetSample.ts
index 7a68bfd43f61..97c6d1ad8bdb 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the customized accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsListSample.ts
index 1cc03c663722..89dd53207f9b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all customized accelerators.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsValidateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsValidateSample.ts
index ae8abea786bd..aa842abcbd4f 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsValidateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/customizedAcceleratorsValidateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the customized accelerator are valid.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts
index 071efbe05e64..39b6cc181f30 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Deployment or update an exiting Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDeleteSample.ts
index 60491197f5ee..c5e905ff4a31 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDisableRemoteDebuggingSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDisableRemoteDebuggingSample.ts
index afba05c41a23..9be0bf98a682 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDisableRemoteDebuggingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsDisableRemoteDebuggingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable remote debugging.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsEnableRemoteDebuggingSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsEnableRemoteDebuggingSample.ts
index e0ec4b00e872..22e02b7bbc71 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsEnableRemoteDebuggingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsEnableRemoteDebuggingSample.ts
@@ -14,9 +14,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable remote debugging.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateHeapDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateHeapDumpSample.ts
index 8f3a5f643454..8f54f6b5e285 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateHeapDumpSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateHeapDumpSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate Heap Dump
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateThreadDumpSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateThreadDumpSample.ts
index 5a22c1e6b740..8c247ba9eae2 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateThreadDumpSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGenerateThreadDumpSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate Thread Dump
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetLogFileUrlSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetLogFileUrlSample.ts
index bca81e05dc85..3cb76354090b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetLogFileUrlSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetLogFileUrlSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get deployment log file URL
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetRemoteDebuggingConfigSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetRemoteDebuggingConfigSample.ts
index ebb88b5b145b..30cbc43abd20 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetRemoteDebuggingConfigSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetRemoteDebuggingConfigSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get remote debugging config.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetSample.ts
index 9b49b8b3c2fc..c5366c803004 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Deployment and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListForClusterSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListForClusterSample.ts
index 50eb0b209e61..f6e833994aa7 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListForClusterSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListForClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List deployments for a certain service
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListSample.ts
index 2d10e9c6d1be..0191591cf1ea 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in an App.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsRestartSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsRestartSample.ts
index 3963736b2255..0faa5c9a5852 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsRestartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restart the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartJfrSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartJfrSample.ts
index dcc6bbf0b4df..8b67237239dc 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartJfrSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartJfrSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start JFR
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartSample.ts
index dcf591dc06c2..72e09b6c83cf 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStopSample.ts
index 407f76ec174e..ece1675997b9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStopSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop the deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsUpdateSample.ts
index 8fb3da734084..b0babe2bd8ad 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/deploymentsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Deployment.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsCreateOrUpdateSample.ts
index aef1e350a72e..db5d322506bd 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Dev Tool Portal or update the existing Dev Tool Portal.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsDeleteSample.ts
index 7c30c6163b36..cc9de4b8e059 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Dev Tool Portal.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsGetSample.ts
index 1123a4e7bdeb..0468d909e250 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Application Live and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsListSample.ts
index 4bf523e8f82b..8fbca2d7e7bd 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/devToolPortalsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts
index 4dabbac3c662..f2b8dc7b3079 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsDeleteSample.ts
index ceee5ddf2729..e0868c4d7f14 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsGetSample.ts
index 458b39f0549e..870658e2951c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway custom domain.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsListSample.ts
index bcfb3936dc60..1f34c6ddbc9e 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayCustomDomainsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all Spring Cloud Gateway custom domains.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts
index ec5f1983e932..8b7f933ccd79 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Spring Cloud Gateway route configs or update the existing Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsDeleteSample.ts
index f95da0139c38..76b99815b327 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the Spring Cloud Gateway route config.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsGetSample.ts
index 0d076bd6277c..a3ca171ebe25 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsListSample.ts
index 10aeab3d6a15..171faff30aa5 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewayRouteConfigsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all Spring Cloud Gateway route configs.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysCreateOrUpdateSample.ts
index 8e080f779d41..aef3a24a1214 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Spring Cloud Gateway or update the existing Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysDeleteSample.ts
index 567aaff6cbcf..a1fa81006cef 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysGetSample.ts
index 1bac7c263c58..3a2c4d06d2ca 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Spring Cloud Gateway and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListEnvSecretsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListEnvSecretsSample.ts
index 4979f1eacf34..2717c010bc35 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListEnvSecretsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListEnvSecretsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List sensitive environment variables of Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListSample.ts
index 19778568483c..e9d05d98df70 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysRestartSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysRestartSample.ts
index 43176bdf7bdd..76a887ac6dd2 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysRestartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Restart the Spring Cloud Gateway.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysValidateDomainSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysValidateDomainSample.ts
index 7ff29026dc46..aae79df0d6d3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysValidateDomainSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/gatewaysValidateDomainSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Check the domains are valid as well as not in use.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsGetSample.ts
index 51444a3eb2bb..0888ab416a90 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Monitoring Setting and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePatchSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePatchSample.ts
index 38a1fb8d12cb..b5aa0ade03c9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePatchSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePatchSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the Monitoring Setting.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePutSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePutSample.ts
index 899d209d01b2..9329af2d3848 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePutSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/monitoringSettingsUpdatePutSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the Monitoring Setting.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/operationsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/operationsListSample.ts
index 19c87f50018a..0a056e9694a2 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/operationsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 REST API operations of the Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsDisableSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsDisableSample.ts
index ddcfde2d82ee..316891100947 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsDisableSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsDisableSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsEnableSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsEnableSample.ts
index 9a7061fa6373..1a54eef27ddd 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsEnableSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsEnableSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsGetSample.ts
index 1f38257bbe53..7dadb8052aa2 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the predefined accelerator.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsListSample.ts
index d5ffc528ed2d..6543cc07ec93 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/predefinedAcceleratorsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handle requests to list all predefined accelerators.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts
index 1bf257fb00cd..6fea84cb29bb 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/runtimeVersionsListRuntimeVersionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 runtime versions supported by Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesCreateOrUpdateSample.ts
index 5f85bdfac1da..06448f09259d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create the default Service Registry or update the existing Service Registry.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesDeleteSample.ts
index adbe41771a16..88a0dbb9f3f6 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable the default Service Registry.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesGetSample.ts
index bc30a8b09d53..3f341789a7af 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Service Registry and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesListSample.ts
index 5fb0e1292eca..8c710f1791e1 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/serviceRegistriesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCheckNameAvailabilitySample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCheckNameAvailabilitySample.ts
index 5be0ba9f7310..847a07585ae0 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCheckNameAvailabilitySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks that the resource name is valid and is not already in use.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts
index fc8b63040402..0aa363645450 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a new Service or update an exiting Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDeleteSample.ts
index 32c9264f332e..0a0dd592bb6a 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to delete a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableApmGloballySample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableApmGloballySample.ts
index 6a16e13bf549..10eab08788c9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableApmGloballySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableApmGloballySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable an APM globally.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableTestEndpointSample.ts
index 0715ab23a3bb..2f19ecd41a0c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableTestEndpointSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesDisableTestEndpointSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disable test endpoint functionality for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableApmGloballySample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableApmGloballySample.ts
index 88fb70a46199..07423768e1d6 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableApmGloballySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableApmGloballySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable an APM globally.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableTestEndpointSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableTestEndpointSample.ts
index 1d68ae669b84..268e215c7a3b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableTestEndpointSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesEnableTestEndpointSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Enable test endpoint functionality for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesFlushVnetDnsSettingSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesFlushVnetDnsSettingSample.ts
index 68272c24d4a4..764e37c04040 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesFlushVnetDnsSettingSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesFlushVnetDnsSettingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Flush Virtual Network DNS settings for a VNET injected Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesGetSample.ts
index 90a6320a4c06..da39bac0a73c 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a Service and its properties.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListBySubscriptionSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListBySubscriptionSample.ts
index 53ea783ae6e6..a802f2661fe1 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListBySubscriptionSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a subscription.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListGloballyEnabledApmsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListGloballyEnabledApmsSample.ts
index 39f85e0940b0..ba931fa2cf18 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListGloballyEnabledApmsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListGloballyEnabledApmsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List globally enabled APMs for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSample.ts
index d8ffea298e06..df37fb5dde4b 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Handles requests to list all resources in a resource group.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedApmTypesSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedApmTypesSample.ts
index 273eec170d93..74e80a2bf5fd 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedApmTypesSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedApmTypesSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List supported APM types for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedServerVersionsSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedServerVersionsSample.ts
index 90c6bff5a298..969a2ef0b21d 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedServerVersionsSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListSupportedServerVersionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 server versions supported by Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListTestKeysSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListTestKeysSample.ts
index c457e553505b..efe24ba55954 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListTestKeysSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesListTestKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List test keys for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesRegenerateTestKeySample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesRegenerateTestKeySample.ts
index 3240730953f7..02d2b6625733 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesRegenerateTestKeySample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesRegenerateTestKeySample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerate a test key for a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStartSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStartSample.ts
index 1bbdc5cef2a2..5b5b5e3a27dc 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStartSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Start a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStopSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStopSample.ts
index df91b637e5ee..936ab6412033 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStopSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesStopSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Stop a Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesUpdateSample.ts
index e3f5bf1746be..29ad1d355af9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/servicesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Operation to update an exiting Service.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/skusListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/skusListSample.ts
index 4dc7a1b3f7cc..10fef0a3bea9 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/skusListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/skusListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
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 skus of the Microsoft.AppPlatform provider.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesCreateOrUpdateSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesCreateOrUpdateSample.ts
index 109eafbad1ef..f416cf690623 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesCreateOrUpdateSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesDeleteSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesDeleteSample.ts
index 4ca566163f03..8e1a274a1d01 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesDeleteSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete the storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesGetSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesGetSample.ts
index ce11ce23c0b2..cc142598c3d3 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesGetSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the storage resource.
diff --git a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesListSample.ts b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesListSample.ts
index 3e68d8a2e9b1..f089d7719578 100644
--- a/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesListSample.ts
+++ b/sdk/appplatform/arm-appplatform/samples/v3/typescript/src/storagesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the storages of one Azure Spring Apps resource.
diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts
index 8f5181f8f292..c6d7ab52a5d0 100644
--- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts
+++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts
@@ -45,7 +45,7 @@ import {
ApplicationAcceleratorsImpl,
CustomizedAcceleratorsImpl,
PredefinedAcceleratorsImpl
-} from "./operations";
+} from "./operations/index.js";
import {
Services,
Apms,
@@ -77,8 +77,8 @@ import {
ApplicationAccelerators,
CustomizedAccelerators,
PredefinedAccelerators
-} from "./operationsInterfaces";
-import { AppPlatformManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AppPlatformManagementClientOptionalParams } from "./models/index.js";
export class AppPlatformManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/appplatform/arm-appplatform/src/index.ts b/sdk/appplatform/arm-appplatform/src/index.ts
index 271a56b0b579..af84043ce081 100644
--- a/sdk/appplatform/arm-appplatform/src/index.ts
+++ b/sdk/appplatform/arm-appplatform/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AppPlatformManagementClient } from "./appPlatformManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AppPlatformManagementClient } from "./appPlatformManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts
index 42df042a630d..c451c15791a1 100644
--- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts
+++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts
@@ -49,7 +49,7 @@ import {
ApplicationAcceleratorResource as ApplicationAcceleratorResourceMapper,
CustomizedAcceleratorResource as CustomizedAcceleratorResourceMapper,
CustomizedAcceleratorProperties as CustomizedAcceleratorPropertiesMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts
index fa75f88b4ed8..6273a1cdf0b0 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortalCustomDomains.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApiPortalCustomDomains } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApiPortalCustomDomains } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ApiPortalCustomDomainResource,
ApiPortalCustomDomainsListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ApiPortalCustomDomainsCreateOrUpdateResponse,
ApiPortalCustomDomainsDeleteOptionalParams,
ApiPortalCustomDomainsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApiPortalCustomDomains operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts
index 748e63b0e994..bfb1bcac4cf3 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/apiPortals.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApiPortals } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApiPortals } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ApiPortalResource,
ApiPortalsListNextOptionalParams,
@@ -33,7 +33,7 @@ import {
ApiPortalsValidateDomainOptionalParams,
ApiPortalsValidateDomainResponse,
ApiPortalsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApiPortals operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/apms.ts b/sdk/appplatform/arm-appplatform/src/operations/apms.ts
index e614a088f7ee..3822003fd11b 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/apms.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/apms.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Apms } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Apms } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ApmResource,
ApmsListNextOptionalParams,
@@ -33,7 +33,7 @@ import {
ApmsListSecretKeysOptionalParams,
ApmsListSecretKeysResponse,
ApmsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Apms operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts
index 4bbc4b653705..6017eb05ab70 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/applicationAccelerators.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApplicationAccelerators } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApplicationAccelerators } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ApplicationAcceleratorResource,
ApplicationAcceleratorsListNextOptionalParams,
@@ -31,7 +31,7 @@ import {
ApplicationAcceleratorsDeleteOptionalParams,
ApplicationAcceleratorsDeleteResponse,
ApplicationAcceleratorsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApplicationAccelerators operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts
index 0a64d8f5df47..a026c3255fca 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/applicationLiveViews.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApplicationLiveViews } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApplicationLiveViews } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ApplicationLiveViewResource,
ApplicationLiveViewsListNextOptionalParams,
@@ -31,7 +31,7 @@ import {
ApplicationLiveViewsDeleteOptionalParams,
ApplicationLiveViewsDeleteResponse,
ApplicationLiveViewsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApplicationLiveViews operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts
index 57ce9317aa6e..fdcbdc98751f 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Apps } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Apps } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
AppResource,
AppsListNextOptionalParams,
@@ -40,7 +40,7 @@ import {
AppsValidateDomainOptionalParams,
AppsValidateDomainResponse,
AppsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Apps operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts
index 72136c4d05c1..29d961d5b6a0 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Bindings } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Bindings } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BindingResource,
BindingsListNextOptionalParams,
@@ -32,7 +32,7 @@ import {
BindingsUpdateOptionalParams,
BindingsUpdateResponse,
BindingsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Bindings operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts
index 03c281c03711..b0aca8cd4db2 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceAgentPool.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BuildServiceAgentPool } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BuildServiceAgentPool } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuildServiceAgentPoolResource,
BuildServiceAgentPoolListNextOptionalParams,
@@ -29,7 +29,7 @@ import {
BuildServiceAgentPoolUpdatePutOptionalParams,
BuildServiceAgentPoolUpdatePutResponse,
BuildServiceAgentPoolListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BuildServiceAgentPool operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts
index 7add0a5ec815..21409435ffd1 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceBuilder.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BuildServiceBuilder } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BuildServiceBuilder } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuilderResource,
BuildServiceBuilderListNextOptionalParams,
@@ -32,7 +32,7 @@ import {
BuildServiceBuilderListDeploymentsOptionalParams,
BuildServiceBuilderListDeploymentsResponse,
BuildServiceBuilderListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BuildServiceBuilder operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts
index c29fca525381..62dcd98b9a6d 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/buildServiceOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BuildServiceOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BuildServiceOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuildService,
BuildServiceListBuildServicesNextOptionalParams,
@@ -59,7 +59,7 @@ import {
BuildServiceListBuildServicesNextResponse,
BuildServiceListBuildsNextResponse,
BuildServiceListBuildResultsNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BuildServiceOperations operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts
index 873277df6ccf..db00afd57c01 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/buildpackBinding.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BuildpackBinding } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BuildpackBinding } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BuildpackBindingResource,
BuildpackBindingListForClusterNextOptionalParams,
@@ -34,7 +34,7 @@ import {
BuildpackBindingDeleteOptionalParams,
BuildpackBindingListForClusterNextResponse,
BuildpackBindingListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BuildpackBinding operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts
index 2ccff07f6af3..8794d5400428 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Certificates } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Certificates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
CertificateResource,
CertificatesListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
CertificatesCreateOrUpdateResponse,
CertificatesDeleteOptionalParams,
CertificatesListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Certificates operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts
index f97f2f4f7fb8..dc43b34c7f1b 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { ConfigServers } from "../operationsInterfaces";
+import { ConfigServers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ConfigServersGetOptionalParams,
ConfigServersGetResponse,
@@ -28,7 +28,7 @@ import {
ConfigServerSettings,
ConfigServersValidateOptionalParams,
ConfigServersValidateResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing ConfigServers operations. */
export class ConfigServersImpl implements ConfigServers {
diff --git a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts
index 87bda48d017f..0e9ee5810d32 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/configurationServices.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ConfigurationServices } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ConfigurationServices } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ConfigurationServiceResource,
ConfigurationServicesListNextOptionalParams,
@@ -35,7 +35,7 @@ import {
ConfigurationServicesValidateResourceOptionalParams,
ConfigurationServicesValidateResourceResponse,
ConfigurationServicesListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ConfigurationServices operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts
index 7a32246bd5eb..d8c231ea3f56 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/containerRegistries.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ContainerRegistries } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ContainerRegistries } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ContainerRegistryResource,
ContainerRegistriesListNextOptionalParams,
@@ -34,7 +34,7 @@ import {
ContainerRegistriesValidateOptionalParams,
ContainerRegistriesValidateResponse,
ContainerRegistriesListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ContainerRegistries operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts
index c29415fa88d5..881a5ccf92c9 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { CustomDomains } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { CustomDomains } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
CustomDomainResource,
CustomDomainsListNextOptionalParams,
@@ -32,7 +32,7 @@ import {
CustomDomainsUpdateOptionalParams,
CustomDomainsUpdateResponse,
CustomDomainsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing CustomDomains operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts
index c0e3cef5812c..aa1a0d7c6b9b 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/customizedAccelerators.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { CustomizedAccelerators } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { CustomizedAccelerators } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
CustomizedAcceleratorResource,
CustomizedAcceleratorsListNextOptionalParams,
@@ -34,7 +34,7 @@ import {
CustomizedAcceleratorsValidateOptionalParams,
CustomizedAcceleratorsValidateResponse,
CustomizedAcceleratorsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing CustomizedAccelerators operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts
index f406ef96e82c..c288eb4d1c10 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Deployments } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Deployments } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DeploymentResource,
DeploymentsListNextOptionalParams,
@@ -51,7 +51,7 @@ import {
DeploymentsStartJFROptionalParams,
DeploymentsListNextResponse,
DeploymentsListForClusterNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Deployments operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts
index b989921a29d6..1d318e6793a1 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/devToolPortals.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DevToolPortals } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DevToolPortals } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DevToolPortalResource,
DevToolPortalsListNextOptionalParams,
@@ -31,7 +31,7 @@ import {
DevToolPortalsDeleteOptionalParams,
DevToolPortalsDeleteResponse,
DevToolPortalsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DevToolPortals operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts
index cc8fef5b2e0f..6fcfe59a7a52 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayCustomDomains.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { GatewayCustomDomains } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { GatewayCustomDomains } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
GatewayCustomDomainResource,
GatewayCustomDomainsListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
GatewayCustomDomainsCreateOrUpdateResponse,
GatewayCustomDomainsDeleteOptionalParams,
GatewayCustomDomainsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing GatewayCustomDomains operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts
index 914d3b31004d..9f4b3608ae69 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/gatewayRouteConfigs.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { GatewayRouteConfigs } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { GatewayRouteConfigs } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
GatewayRouteConfigResource,
GatewayRouteConfigsListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
GatewayRouteConfigsCreateOrUpdateResponse,
GatewayRouteConfigsDeleteOptionalParams,
GatewayRouteConfigsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing GatewayRouteConfigs operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts
index a6538a4ec994..05d38842bc67 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/gateways.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/gateways.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Gateways } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Gateways } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
GatewayResource,
GatewaysListNextOptionalParams,
@@ -36,7 +36,7 @@ import {
GatewaysValidateDomainOptionalParams,
GatewaysValidateDomainResponse,
GatewaysListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Gateways operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts
index c8565fe39e2e..370bbfd7b42a 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/index.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts
@@ -6,33 +6,33 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./services";
-export * from "./apms";
-export * from "./configServers";
-export * from "./configurationServices";
-export * from "./serviceRegistries";
-export * from "./applicationLiveViews";
-export * from "./devToolPortals";
-export * from "./containerRegistries";
-export * from "./buildServiceOperations";
-export * from "./buildpackBinding";
-export * from "./buildServiceBuilder";
-export * from "./buildServiceAgentPool";
-export * from "./monitoringSettings";
-export * from "./apps";
-export * from "./bindings";
-export * from "./storages";
-export * from "./certificates";
-export * from "./customDomains";
-export * from "./deployments";
-export * from "./operations";
-export * from "./runtimeVersions";
-export * from "./skus";
-export * from "./gateways";
-export * from "./gatewayRouteConfigs";
-export * from "./gatewayCustomDomains";
-export * from "./apiPortals";
-export * from "./apiPortalCustomDomains";
-export * from "./applicationAccelerators";
-export * from "./customizedAccelerators";
-export * from "./predefinedAccelerators";
+export * from "./services.js";
+export * from "./apms.js";
+export * from "./configServers.js";
+export * from "./configurationServices.js";
+export * from "./serviceRegistries.js";
+export * from "./applicationLiveViews.js";
+export * from "./devToolPortals.js";
+export * from "./containerRegistries.js";
+export * from "./buildServiceOperations.js";
+export * from "./buildpackBinding.js";
+export * from "./buildServiceBuilder.js";
+export * from "./buildServiceAgentPool.js";
+export * from "./monitoringSettings.js";
+export * from "./apps.js";
+export * from "./bindings.js";
+export * from "./storages.js";
+export * from "./certificates.js";
+export * from "./customDomains.js";
+export * from "./deployments.js";
+export * from "./operations.js";
+export * from "./runtimeVersions.js";
+export * from "./skus.js";
+export * from "./gateways.js";
+export * from "./gatewayRouteConfigs.js";
+export * from "./gatewayCustomDomains.js";
+export * from "./apiPortals.js";
+export * from "./apiPortalCustomDomains.js";
+export * from "./applicationAccelerators.js";
+export * from "./customizedAccelerators.js";
+export * from "./predefinedAccelerators.js";
diff --git a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts
index 617cc508234f..ee317d57c103 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { MonitoringSettings } from "../operationsInterfaces";
+import { MonitoringSettings } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
MonitoringSettingsGetOptionalParams,
MonitoringSettingsGetResponse,
@@ -25,7 +25,7 @@ import {
MonitoringSettingsUpdatePutResponse,
MonitoringSettingsUpdatePatchOptionalParams,
MonitoringSettingsUpdatePatchResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing MonitoringSettings operations. */
export class MonitoringSettingsImpl implements MonitoringSettings {
diff --git a/sdk/appplatform/arm-appplatform/src/operations/operations.ts b/sdk/appplatform/arm-appplatform/src/operations/operations.ts
index 844ad5e54bed..fa12c4854fec 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/operations.ts
+++ b/sdk/appplatform/arm-appplatform/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 { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
OperationDetail,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts
index aede8603928e..cfb0993e24f4 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/predefinedAccelerators.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PredefinedAccelerators } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PredefinedAccelerators } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
PredefinedAcceleratorResource,
PredefinedAcceleratorsListNextOptionalParams,
@@ -29,7 +29,7 @@ import {
PredefinedAcceleratorsDisableOptionalParams,
PredefinedAcceleratorsEnableOptionalParams,
PredefinedAcceleratorsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PredefinedAccelerators operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts
index 91c5c174c8e0..f963ecb3c78b 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { RuntimeVersions } from "../operationsInterfaces";
+import { RuntimeVersions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
RuntimeVersionsListRuntimeVersionsOptionalParams,
RuntimeVersionsListRuntimeVersionsResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing RuntimeVersions operations. */
export class RuntimeVersionsImpl implements RuntimeVersions {
diff --git a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts
index c438e5bbc349..e364c7a9444b 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/serviceRegistries.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ServiceRegistries } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ServiceRegistries } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ServiceRegistryResource,
ServiceRegistriesListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
ServiceRegistriesCreateOrUpdateResponse,
ServiceRegistriesDeleteOptionalParams,
ServiceRegistriesListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ServiceRegistries operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts
index b833ff76d271..b506f280a68c 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/services.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Services } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Services } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SupportedApmType,
ServicesListSupportedApmTypesNextOptionalParams,
@@ -66,7 +66,7 @@ import {
ServicesListBySubscriptionNextResponse,
ServicesListNextResponse,
ServicesListSupportedServerVersionsNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Services operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/skus.ts b/sdk/appplatform/arm-appplatform/src/operations/skus.ts
index c49a190801bf..6624daa0d41c 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/skus.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/skus.ts
@@ -7,19 +7,19 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Skus } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Skus } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
ResourceSku,
SkusListNextOptionalParams,
SkusListOptionalParams,
SkusListResponse,
SkusListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Skus operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operations/storages.ts b/sdk/appplatform/arm-appplatform/src/operations/storages.ts
index d60dc52c4b0a..7daa1dd3aac8 100644
--- a/sdk/appplatform/arm-appplatform/src/operations/storages.ts
+++ b/sdk/appplatform/arm-appplatform/src/operations/storages.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Storages } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Storages } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AppPlatformManagementClient } from "../appPlatformManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AppPlatformManagementClient } from "../appPlatformManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
StorageResource,
StoragesListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
StoragesCreateOrUpdateResponse,
StoragesDeleteOptionalParams,
StoragesListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Storages operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts
index 9e680d05593d..8faa15754829 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortalCustomDomains.ts
@@ -16,7 +16,7 @@ import {
ApiPortalCustomDomainsCreateOrUpdateOptionalParams,
ApiPortalCustomDomainsCreateOrUpdateResponse,
ApiPortalCustomDomainsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApiPortalCustomDomains. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts
index bf5f1584605d..a2b70bf7adbf 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apiPortals.ts
@@ -19,7 +19,7 @@ import {
CustomDomainValidatePayload,
ApiPortalsValidateDomainOptionalParams,
ApiPortalsValidateDomainResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApiPortals. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts
index da3e1d3a5a27..c83fae0b5163 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apms.ts
@@ -19,7 +19,7 @@ import {
ApmsDeleteResponse,
ApmsListSecretKeysOptionalParams,
ApmsListSecretKeysResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Apms. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts
index 936ecf154f08..f2eeeac691aa 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationAccelerators.ts
@@ -17,7 +17,7 @@ import {
ApplicationAcceleratorsCreateOrUpdateResponse,
ApplicationAcceleratorsDeleteOptionalParams,
ApplicationAcceleratorsDeleteResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApplicationAccelerators. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts
index 503d638848c1..30d7a92cc2c0 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/applicationLiveViews.ts
@@ -17,7 +17,7 @@ import {
ApplicationLiveViewsCreateOrUpdateResponse,
ApplicationLiveViewsDeleteOptionalParams,
ApplicationLiveViewsDeleteResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApplicationLiveViews. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts
index 5ac6340b3770..2989e2e62e71 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/apps.ts
@@ -26,7 +26,7 @@ import {
CustomDomainValidatePayload,
AppsValidateDomainOptionalParams,
AppsValidateDomainResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Apps. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts
index d1a6795dbbef..34a9ab7854f2 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/bindings.ts
@@ -18,7 +18,7 @@ import {
BindingsDeleteOptionalParams,
BindingsUpdateOptionalParams,
BindingsUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Bindings. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts
index ccc9f5e51dfb..b9f67c4b2bdd 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceAgentPool.ts
@@ -15,7 +15,7 @@ import {
BuildServiceAgentPoolGetResponse,
BuildServiceAgentPoolUpdatePutOptionalParams,
BuildServiceAgentPoolUpdatePutResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BuildServiceAgentPool. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts
index d1b0230ae6a0..a47a8c6eaefc 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceBuilder.ts
@@ -18,7 +18,7 @@ import {
BuildServiceBuilderDeleteOptionalParams,
BuildServiceBuilderListDeploymentsOptionalParams,
BuildServiceBuilderListDeploymentsResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BuildServiceBuilder. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts
index d707ac9f3205..8f364a31c96a 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildServiceOperations.ts
@@ -39,7 +39,7 @@ import {
BuildServiceListSupportedStacksResponse,
BuildServiceGetSupportedStackOptionalParams,
BuildServiceGetSupportedStackResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BuildServiceOperations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts
index 2cc7e7b5fb6d..3177fac1056d 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/buildpackBinding.ts
@@ -17,7 +17,7 @@ import {
BuildpackBindingCreateOrUpdateOptionalParams,
BuildpackBindingCreateOrUpdateResponse,
BuildpackBindingDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BuildpackBinding. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts
index 28f9df258d2a..97160a2349a4 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/certificates.ts
@@ -16,7 +16,7 @@ import {
CertificatesCreateOrUpdateOptionalParams,
CertificatesCreateOrUpdateResponse,
CertificatesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Certificates. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts
index de4c5903e4c5..02a586dfd292 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configServers.ts
@@ -18,7 +18,7 @@ import {
ConfigServerSettings,
ConfigServersValidateOptionalParams,
ConfigServersValidateResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a ConfigServers. */
export interface ConfigServers {
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts
index daa754e97998..6504f0881a0b 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/configurationServices.ts
@@ -21,7 +21,7 @@ import {
ConfigurationServicesValidateResponse,
ConfigurationServicesValidateResourceOptionalParams,
ConfigurationServicesValidateResourceResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ConfigurationServices. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts
index 73113ead1689..74047b3bb59e 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/containerRegistries.ts
@@ -20,7 +20,7 @@ import {
ContainerRegistryProperties,
ContainerRegistriesValidateOptionalParams,
ContainerRegistriesValidateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ContainerRegistries. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts
index ac16ed99f213..5bc34f423462 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customDomains.ts
@@ -18,7 +18,7 @@ import {
CustomDomainsDeleteOptionalParams,
CustomDomainsUpdateOptionalParams,
CustomDomainsUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a CustomDomains. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts
index c9e2d1c3bb69..081fd3504394 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/customizedAccelerators.ts
@@ -20,7 +20,7 @@ import {
CustomizedAcceleratorProperties,
CustomizedAcceleratorsValidateOptionalParams,
CustomizedAcceleratorsValidateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a CustomizedAccelerators. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts
index 194c736f5b98..fca382c6192e 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/deployments.ts
@@ -34,7 +34,7 @@ import {
DeploymentsGenerateHeapDumpOptionalParams,
DeploymentsGenerateThreadDumpOptionalParams,
DeploymentsStartJFROptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Deployments. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts
index 5e83a4cf2a61..f8bec2d9ec38 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/devToolPortals.ts
@@ -17,7 +17,7 @@ import {
DevToolPortalsCreateOrUpdateResponse,
DevToolPortalsDeleteOptionalParams,
DevToolPortalsDeleteResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DevToolPortals. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts
index a8d6f0142066..e5715a96384d 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayCustomDomains.ts
@@ -16,7 +16,7 @@ import {
GatewayCustomDomainsCreateOrUpdateOptionalParams,
GatewayCustomDomainsCreateOrUpdateResponse,
GatewayCustomDomainsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a GatewayCustomDomains. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts
index cc5ef107f081..e6e4c9b13094 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gatewayRouteConfigs.ts
@@ -16,7 +16,7 @@ import {
GatewayRouteConfigsCreateOrUpdateOptionalParams,
GatewayRouteConfigsCreateOrUpdateResponse,
GatewayRouteConfigsDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a GatewayRouteConfigs. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts
index 505bb7ebcb2a..021fe539b1ba 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/gateways.ts
@@ -22,7 +22,7 @@ import {
CustomDomainValidatePayload,
GatewaysValidateDomainOptionalParams,
GatewaysValidateDomainResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Gateways. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts
index c8565fe39e2e..370bbfd7b42a 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/index.ts
@@ -6,33 +6,33 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./services";
-export * from "./apms";
-export * from "./configServers";
-export * from "./configurationServices";
-export * from "./serviceRegistries";
-export * from "./applicationLiveViews";
-export * from "./devToolPortals";
-export * from "./containerRegistries";
-export * from "./buildServiceOperations";
-export * from "./buildpackBinding";
-export * from "./buildServiceBuilder";
-export * from "./buildServiceAgentPool";
-export * from "./monitoringSettings";
-export * from "./apps";
-export * from "./bindings";
-export * from "./storages";
-export * from "./certificates";
-export * from "./customDomains";
-export * from "./deployments";
-export * from "./operations";
-export * from "./runtimeVersions";
-export * from "./skus";
-export * from "./gateways";
-export * from "./gatewayRouteConfigs";
-export * from "./gatewayCustomDomains";
-export * from "./apiPortals";
-export * from "./apiPortalCustomDomains";
-export * from "./applicationAccelerators";
-export * from "./customizedAccelerators";
-export * from "./predefinedAccelerators";
+export * from "./services.js";
+export * from "./apms.js";
+export * from "./configServers.js";
+export * from "./configurationServices.js";
+export * from "./serviceRegistries.js";
+export * from "./applicationLiveViews.js";
+export * from "./devToolPortals.js";
+export * from "./containerRegistries.js";
+export * from "./buildServiceOperations.js";
+export * from "./buildpackBinding.js";
+export * from "./buildServiceBuilder.js";
+export * from "./buildServiceAgentPool.js";
+export * from "./monitoringSettings.js";
+export * from "./apps.js";
+export * from "./bindings.js";
+export * from "./storages.js";
+export * from "./certificates.js";
+export * from "./customDomains.js";
+export * from "./deployments.js";
+export * from "./operations.js";
+export * from "./runtimeVersions.js";
+export * from "./skus.js";
+export * from "./gateways.js";
+export * from "./gatewayRouteConfigs.js";
+export * from "./gatewayCustomDomains.js";
+export * from "./apiPortals.js";
+export * from "./apiPortalCustomDomains.js";
+export * from "./applicationAccelerators.js";
+export * from "./customizedAccelerators.js";
+export * from "./predefinedAccelerators.js";
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts
index dbc21c803ba7..6f09294a480c 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/monitoringSettings.ts
@@ -15,7 +15,7 @@ import {
MonitoringSettingsUpdatePutResponse,
MonitoringSettingsUpdatePatchOptionalParams,
MonitoringSettingsUpdatePatchResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a MonitoringSettings. */
export interface MonitoringSettings {
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts
index 733857ef7fe7..dc33e25b2df2 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/operations.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { OperationDetail, OperationsListOptionalParams } from "../models";
+import { OperationDetail, OperationsListOptionalParams } from "../models/index.js";
///
/** Interface representing a Operations. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts
index 1aaacedd49b6..752f4b8ebe5a 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/predefinedAccelerators.ts
@@ -15,7 +15,7 @@ import {
PredefinedAcceleratorsGetResponse,
PredefinedAcceleratorsDisableOptionalParams,
PredefinedAcceleratorsEnableOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PredefinedAccelerators. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts
index a35327a41b7e..7ef40fb106fc 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/runtimeVersions.ts
@@ -9,7 +9,7 @@
import {
RuntimeVersionsListRuntimeVersionsOptionalParams,
RuntimeVersionsListRuntimeVersionsResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a RuntimeVersions. */
export interface RuntimeVersions {
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts
index a8a1c5b99d19..3146c40e081a 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/serviceRegistries.ts
@@ -16,7 +16,7 @@ import {
ServiceRegistriesCreateOrUpdateOptionalParams,
ServiceRegistriesCreateOrUpdateResponse,
ServiceRegistriesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ServiceRegistries. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts
index b524e3afd6b6..17e2fe122f8b 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/services.ts
@@ -43,7 +43,7 @@ import {
NameAvailabilityParameters,
ServicesCheckNameAvailabilityOptionalParams,
ServicesCheckNameAvailabilityResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Services. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts
index 1e610564d6db..9d3836707b71 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/skus.ts
@@ -7,7 +7,7 @@
*/
import { PagedAsyncIterableIterator } from "@azure/core-paging";
-import { ResourceSku, SkusListOptionalParams } from "../models";
+import { ResourceSku, SkusListOptionalParams } from "../models/index.js";
///
/** Interface representing a Skus. */
diff --git a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts
index 0c567cc50b2f..e0d66791d935 100644
--- a/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts
+++ b/sdk/appplatform/arm-appplatform/src/operationsInterfaces/storages.ts
@@ -16,7 +16,7 @@ import {
StoragesCreateOrUpdateOptionalParams,
StoragesCreateOrUpdateResponse,
StoragesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Storages. */
diff --git a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts b/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
index 53bb5fa08c15..1a558d32de51 100644
--- a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
+++ b/sdk/appplatform/arm-appplatform/test/appplatform_examples.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 { AppPlatformManagementClient } from "../src/appPlatformManagementClient";
+import { AppPlatformManagementClient } from "../src/appPlatformManagementClient.js";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -46,8 +44,8 @@ describe("AppPlatform test", () => {
let serviceName: string;
let appName: 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
@@ -64,35 +62,9 @@ describe("AppPlatform test", () => {
});
it("services create test", async function () {
- const res = await client.services.beginCreateOrUpdateAndWait(resourceGroup, serviceName, {
- sku: {
- name: "B0",
- tier: "Basic"
- },
- tags: {
- key1: "value1"
- },
- location: location
- }, testPollingOptions);
});
it("apps create test", async function () {
- const res = await client.apps.beginCreateOrUpdateAndWait(resourceGroup, serviceName, appName, {
- properties: {
- public: true,
- // activeDeploymentName: "mydeployment1",
- fqdn: "myapp.mydomain.com",
- httpsOnly: false,
- temporaryDisk: {
- sizeInGB: 2,
- mountPath: "/mytemporarydisk"
- },
- persistentDisk: {
- sizeInGB: 1,
- mountPath: "/mypersistentdisk"
- }
- }
- }, testPollingOptions);
});
it("services get test", async function () {
@@ -122,7 +94,6 @@ describe("AppPlatform test", () => {
});
it("apps delete test", async function () {
- const res = await client.apps.beginDeleteAndWait(resourceGroup, serviceName, appName, testPollingOptions);
const resArray = new Array();
for await (let item of client.apps.list(resourceGroup, serviceName)) {
resArray.push(item);
@@ -131,7 +102,6 @@ describe("AppPlatform test", () => {
});
it("services delete test", async function () {
- const res = await client.services.beginDeleteAndWait(resourceGroup, serviceName, testPollingOptions);
const resArray = new Array();
for await (let item of client.services.list(resourceGroup)) {
resArray.push(item);
From ebe491cad03d217f7e293801ebeb844015ab3bf2 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:02 +0800
Subject: [PATCH 53/68] Migration: Apply codemod: "fixTestingImports"
---
sdk/appplatform/arm-appplatform/test/appplatform_examples.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts b/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
index 1a558d32de51..47a9e473e62a 100644
--- a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
+++ b/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
@@ -13,8 +13,8 @@ import {
isPlaybackMode,
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
-import { assert } from "chai";
import { AppPlatformManagementClient } from "../src/appPlatformManagementClient.js";
+import { assert } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
From d11520c305c0b16becf0249ff642a111bb8a2ec0 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:04 +0800
Subject: [PATCH 54/68] Migration: Apply codemod: "replaceAssertIsRejected"
From 89a4b07b323e0032b4063c30da131a67f06a5221 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:05 +0800
Subject: [PATCH 55/68] Migration: Apply codemod: "replaceSinonStub"
From a5600f6b80ced670f0362a407effd6f94b5cb20a Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:07 +0800
Subject: [PATCH 56/68] Migration: Apply codemod: "addViHelper"
From b314a35ac0597507aef41935c21f75249098e8d8 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:09 +0800
Subject: [PATCH 57/68] Migration: Apply codemod: "replaceSupportTracing"
From d1324545742bef0bcddeaab1259b9f993896b304 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:10 +0800
Subject: [PATCH 58/68] Migration: Apply codemod: "replaceTestUtils"
From 9f434a5af41b49d92ab0dbfe01163526429014c4 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 16:58:17 +0800
Subject: [PATCH 59/68] Migration: rushx format
From 9b0be24b3506bdf678ce3a1fdc1d5506baa15c5b Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Tue, 24 Dec 2024 17:24:54 +0800
Subject: [PATCH 60/68] update
---
common/config/rush/pnpm-lock.yaml | 36 +++++++++++++-------
sdk/appplatform/arm-appplatform/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 f0ee83b799cb..289a34d2e970 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -102,7 +102,7 @@ importers:
version: file:projects/arm-appinsights.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-appplatform':
specifier: file:./projects/arm-appplatform.tgz
- version: file:projects/arm-appplatform.tgz
+ version: file:projects/arm-appplatform.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-appservice':
specifier: file:./projects/arm-appservice.tgz
version: file:projects/arm-appservice.tgz
@@ -2607,7 +2607,7 @@ packages:
version: 0.0.0
'@rush-temp/arm-appplatform@file:projects/arm-appplatform.tgz':
- resolution: {integrity: sha512-zlR5o37FGQzlJUhxajIFyhm0AG380+mhYDfUiLExrAe8Hq/6cqgBUBoo5eVetCbWE4EbrKQLj6moq6+B9hIH6g==, tarball: file:projects/arm-appplatform.tgz}
+ resolution: {integrity: sha512-pYseTBkUlllHoClzDUz/xb69DkVEtB8s8qyu5nIqp6AWSiKH39yq8x2rx+EAFkS6AATaZS2rCAZK6E/3wwTLSQ==, tarball: file:projects/arm-appplatform.tgz}
version: 0.0.0
'@rush-temp/arm-appservice-1@file:projects/arm-appservice-1.tgz':
@@ -10707,25 +10707,37 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-appplatform@file:projects/arm-appplatform.tgz':
+ '@rush-temp/arm-appplatform@file:projects/arm-appplatform.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-appservice-1@file:projects/arm-appservice-1.tgz':
dependencies:
diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json
index 0c5ba956ef0a..c5ccc4cce6df 100644
--- a/sdk/appplatform/arm-appplatform/package.json
+++ b/sdk/appplatform/arm-appplatform/package.json
@@ -24,9 +24,9 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-appplatform.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 9cf11bb143854e4d689ef5a0ff465f018d730dcc Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 26 Dec 2024 10:17:54 +0800
Subject: [PATCH 61/68] update
---
.../test/{sampleTest.ts => sampleTest.spec.ts} | 4 +++-
.../{appplatform_examples.ts => appplatform_examples.spec.ts} | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
rename sdk/applicationinsights/arm-appinsights/test/{sampleTest.ts => sampleTest.spec.ts} (90%)
rename sdk/appplatform/arm-appplatform/test/{appplatform_examples.ts => appplatform_examples.spec.ts} (97%)
diff --git a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts b/sdk/applicationinsights/arm-appinsights/test/sampleTest.spec.ts
similarity index 90%
rename from sdk/applicationinsights/arm-appinsights/test/sampleTest.ts
rename to sdk/applicationinsights/arm-appinsights/test/sampleTest.spec.ts
index f0d6ea6885e4..e25d3db273e7 100644
--- a/sdk/applicationinsights/arm-appinsights/test/sampleTest.ts
+++ b/sdk/applicationinsights/arm-appinsights/test/sampleTest.spec.ts
@@ -8,7 +8,9 @@
import {
Recorder,
- RecorderStartOptions} from "@azure-tools/test-recorder";
+ RecorderStartOptions
+} from "@azure-tools/test-recorder";
+import { afterEach, beforeEach, describe, it } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
diff --git a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
similarity index 97%
rename from sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
rename to sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
index 47a9e473e62a..3028bbd8cec8 100644
--- a/sdk/appplatform/arm-appplatform/test/appplatform_examples.ts
+++ b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
@@ -14,7 +14,7 @@ import {
} from "@azure-tools/test-recorder";
import { createTestCredential } from "@azure-tools/test-credential";
import { AppPlatformManagementClient } from "../src/appPlatformManagementClient.js";
-import { assert } from "vitest";
+import { afterEach, assert, beforeEach, describe, it } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
From f436092821c96dbec18fc5d84f5d84a37329ee29 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 27 Dec 2024 16:32:10 +0800
Subject: [PATCH 62/68] update
---
.../arm-appcomplianceautomation/vitest.config.ts | 12 ++++++++++--
.../arm-appconfiguration/vitest.config.ts | 12 ++++++++++--
sdk/appcontainers/arm-appcontainers/vitest.config.ts | 12 ++++++++++--
.../arm-appinsights/vitest.config.ts | 12 ++++++++++--
sdk/appplatform/arm-appplatform/vitest.config.ts | 12 ++++++++++--
5 files changed, 50 insertions(+), 10 deletions(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/vitest.config.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/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/appconfiguration/arm-appconfiguration/vitest.config.ts b/sdk/appconfiguration/arm-appconfiguration/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/appconfiguration/arm-appconfiguration/vitest.config.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/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/appcontainers/arm-appcontainers/vitest.config.ts b/sdk/appcontainers/arm-appcontainers/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/appcontainers/arm-appcontainers/vitest.config.ts
+++ b/sdk/appcontainers/arm-appcontainers/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/applicationinsights/arm-appinsights/vitest.config.ts b/sdk/applicationinsights/arm-appinsights/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/applicationinsights/arm-appinsights/vitest.config.ts
+++ b/sdk/applicationinsights/arm-appinsights/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/appplatform/arm-appplatform/vitest.config.ts b/sdk/appplatform/arm-appplatform/vitest.config.ts
index cc5cd85d4131..2a4750c84292 100644
--- a/sdk/appplatform/arm-appplatform/vitest.config.ts
+++ b/sdk/appplatform/arm-appplatform/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,
+ },
+ }),
+);
From c7d0f530ac5a407e4bf6de32fb67d93c9a52e752 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 2 Jan 2025 16:00:06 +0800
Subject: [PATCH 63/68] Update appconfiguration_operations_test.spec.ts
---
.../test/appconfiguration_operations_test.spec.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
index 1da6a4fdaa3e..54ce39fe9b96 100644
--- a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
@@ -100,6 +100,7 @@ describe("AppConfiguration test", () => {
it("configurationStores delete test", async function () {
const resArray = new Array();
+ const res = await client.configurationStores.beginDeleteAndWait(resourceGroup, resourcename);
for await (let item of client.configurationStores.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
From caea249863ff0992c06fa16af926fbe595eb8760 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 2 Jan 2025 16:19:37 +0800
Subject: [PATCH 64/68] update
---
...mplianceautomation_operations_test.spec.ts | 7 -----
.../test/appcontainers_examples.spec.ts | 7 +++++
.../test/appplatform_examples.spec.ts | 30 +++++++++++++++++++
3 files changed, 37 insertions(+), 7 deletions(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
index 16ea1334bec5..8abbed100b71 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
@@ -36,9 +36,6 @@ describe("appcomplianceautomation test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: AppComplianceAutomationToolForMicrosoft365;
- let location: string;
- let resourceGroup: string;
- let resourcename: string;
beforeEach(async function (ctx) {
recorder = new Recorder(ctx);
@@ -47,10 +44,6 @@ describe("appcomplianceautomation test", () => {
// This is an example of how the environment variables are used
const credential = createTestCredential();
client = new AppComplianceAutomationToolForMicrosoft365(credential, recorder.configureClientOptions({}));
- location = "eastus";
- resourceGroup = "myjstest";
- resourcename = "resourcetest";
-
});
afterEach(async function () {
diff --git a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
index 15500f5ac7f1..2e59ea5a49db 100644
--- a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
+++ b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
@@ -105,9 +105,15 @@ describe("AppContainer test", () => {
});
it("containerapp list Secrets test", async function () {
+ const res = await client.containerApps.listSecrets(
+ resourceGroup,
+ containerAppName
+ );
+ assert.notEqual(res.length, 0)
});
it("containerapp delete test", async function () {
+ await client.containerApps.beginDeleteAndWait(resourceGroup, containerAppName, testPollingOptions);
const resArray = new Array();
for await (let item of client.containerApps.listByResourceGroup(resourceGroup)) {
resArray.push(item);
@@ -116,6 +122,7 @@ describe("AppContainer test", () => {
})
it("managedEnvironments delete test", async function () {
+ await client.managedEnvironments.beginDeleteAndWait(resourceGroup, environmentName, testPollingOptions);
const resArray = new Array();
for await (let item of client.managedEnvironments.listByResourceGroup(resourceGroup)) {
resArray.push(item);
diff --git a/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
index 3028bbd8cec8..af81a3ef5406 100644
--- a/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
+++ b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
@@ -62,9 +62,37 @@ describe("AppPlatform test", () => {
});
it("services create test", async function () {
+ const res = await client.services.beginCreateOrUpdateAndWait(resourceGroup, serviceName, {
+ sku: {
+ name: "B0",
+ tier: "Basic"
+ },
+ tags: {
+ key1: "value1"
+ },
+ location: location
+ }, testPollingOptions);
+ assert.equal(res.name, serviceName);
});
it("apps create test", async function () {
+ const res = await client.apps.beginCreateOrUpdateAndWait(resourceGroup, serviceName, appName, {
+ properties: {
+ public: true,
+ // activeDeploymentName: "mydeployment1",
+ fqdn: "myapp.mydomain.com",
+ httpsOnly: false,
+ temporaryDisk: {
+ sizeInGB: 2,
+ mountPath: "/mytemporarydisk"
+ },
+ persistentDisk: {
+ sizeInGB: 1,
+ mountPath: "/mypersistentdisk"
+ }
+ }
+ }, testPollingOptions);
+ assert.equal(res.name, serviceName);
});
it("services get test", async function () {
@@ -94,6 +122,7 @@ describe("AppPlatform test", () => {
});
it("apps delete test", async function () {
+ await client.apps.beginDeleteAndWait(resourceGroup, serviceName, appName, testPollingOptions);
const resArray = new Array();
for await (let item of client.apps.list(resourceGroup, serviceName)) {
resArray.push(item);
@@ -102,6 +131,7 @@ describe("AppPlatform test", () => {
});
it("services delete test", async function () {
+ await client.services.beginDeleteAndWait(resourceGroup, serviceName, testPollingOptions);
const resArray = new Array();
for await (let item of client.services.list(resourceGroup)) {
resArray.push(item);
From 084d85d76db1ee74568a9501c2c1c5ad672d9076 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Thu, 2 Jan 2025 17:17:27 +0800
Subject: [PATCH 65/68] update
---
.../test/appcomplianceautomation_operations_test.spec.ts | 2 --
.../test/appconfiguration_operations_test.spec.ts | 2 +-
.../arm-appcontainers/test/appcontainers_examples.spec.ts | 2 +-
.../arm-appplatform/test/appplatform_examples.spec.ts | 2 +-
4 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
index 8abbed100b71..aacc7c3643b5 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
@@ -34,13 +34,11 @@ export const testPollingOptions = {
describe("appcomplianceautomation test", () => {
let recorder: Recorder;
- let subscriptionId: string;
let client: AppComplianceAutomationToolForMicrosoft365;
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
const credential = createTestCredential();
client = new AppComplianceAutomationToolForMicrosoft365(credential, recorder.configureClientOptions({}));
diff --git a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
index 54ce39fe9b96..59ccfdc7729c 100644
--- a/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
+++ b/sdk/appconfiguration/arm-appconfiguration/test/appconfiguration_operations_test.spec.ts
@@ -100,7 +100,7 @@ describe("AppConfiguration test", () => {
it("configurationStores delete test", async function () {
const resArray = new Array();
- const res = await client.configurationStores.beginDeleteAndWait(resourceGroup, resourcename);
+ await client.configurationStores.beginDeleteAndWait(resourceGroup, resourcename);
for await (let item of client.configurationStores.listByResourceGroup(resourceGroup)) {
resArray.push(item);
}
diff --git a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
index 2e59ea5a49db..1c8362a3e547 100644
--- a/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
+++ b/sdk/appcontainers/arm-appcontainers/test/appcontainers_examples.spec.ts
@@ -109,7 +109,7 @@ describe("AppContainer test", () => {
resourceGroup,
containerAppName
);
- assert.notEqual(res.length, 0)
+ console.log(res);
});
it("containerapp delete test", async function () {
diff --git a/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
index af81a3ef5406..4202588d94ba 100644
--- a/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
+++ b/sdk/appplatform/arm-appplatform/test/appplatform_examples.spec.ts
@@ -92,7 +92,7 @@ describe("AppPlatform test", () => {
}
}
}, testPollingOptions);
- assert.equal(res.name, serviceName);
+ assert.equal(res.name, appName);
});
it("services get test", async function () {
From 0839cff9e1a69a58c52993f389b879326db2980c Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 3 Jan 2025 10:30:29 +0800
Subject: [PATCH 66/68] Update appcomplianceautomation_operations_test.spec.ts
---
.../test/appcomplianceautomation_operations_test.spec.ts | 1 -
1 file changed, 1 deletion(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
index aacc7c3643b5..2fc02214b715 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/test/appcomplianceautomation_operations_test.spec.ts
@@ -7,7 +7,6 @@
*/
import {
- env,
Recorder,
RecorderStartOptions,
isPlaybackMode,
From 7d8d42f0ad363b1f3beebfbaf55bce88cc0423d1 Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 3 Jan 2025 13:47:37 +0800
Subject: [PATCH 67/68] test browser test
---
sdk/appcontainers/arm-appcontainers/assets.json | 2 +-
sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/sdk/appcontainers/arm-appcontainers/assets.json b/sdk/appcontainers/arm-appcontainers/assets.json
index 77a10d3b7930..a907a1588e05 100644
--- a/sdk/appcontainers/arm-appcontainers/assets.json
+++ b/sdk/appcontainers/arm-appcontainers/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/appcontainers/arm-appcontainers",
- "Tag": "js/appcontainers/arm-appcontainers_6f9d1c8504"
+ "Tag": "js/appcontainers/arm-appcontainers_44aafabde5"
}
diff --git a/sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts b/sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts
index b48c61b2ef46..0ee1aecbc47e 100644
--- a/sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts
+++ b/sdk/appcontainers/arm-appcontainers/vitest.browser.config.ts
@@ -12,6 +12,8 @@ export default mergeConfig(
include: [
"dist-test/browser/test/**/*.spec.js",
],
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
},
}),
);
From c663c5d99e35fcf58f3cd9e8782ab93c4fcafd4f Mon Sep 17 00:00:00 2001
From: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 3 Jan 2025 14:09:39 +0800
Subject: [PATCH 68/68] update
---
.../arm-appcomplianceautomation/package.json | 2 +-
sdk/appconfiguration/arm-appconfiguration/package.json | 2 +-
sdk/appcontainers/arm-appcontainers/package.json | 2 +-
sdk/applicationinsights/arm-appinsights/package.json | 2 +-
sdk/appplatform/arm-appplatform/package.json | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
index 53a159a9fd39..5655d1c0a70d 100644
--- a/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
+++ b/sdk/appcomplianceautomation/arm-appcomplianceautomation/package.json
@@ -78,7 +78,7 @@
"test:browser": "echo skipped",
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+ "unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
diff --git a/sdk/appconfiguration/arm-appconfiguration/package.json b/sdk/appconfiguration/arm-appconfiguration/package.json
index 0bbdd2554ff2..fed6aff932ab 100644
--- a/sdk/appconfiguration/arm-appconfiguration/package.json
+++ b/sdk/appconfiguration/arm-appconfiguration/package.json
@@ -82,7 +82,7 @@
"test:browser": "echo skipped",
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+ "unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest"
},
"sideEffects": false,
diff --git a/sdk/appcontainers/arm-appcontainers/package.json b/sdk/appcontainers/arm-appcontainers/package.json
index 57a66b53e37d..e43070fa5bef 100644
--- a/sdk/appcontainers/arm-appcontainers/package.json
+++ b/sdk/appcontainers/arm-appcontainers/package.json
@@ -78,7 +78,7 @@
"test:browser": "echo skipped",
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+ "unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest"
},
"sideEffects": false,
diff --git a/sdk/applicationinsights/arm-appinsights/package.json b/sdk/applicationinsights/arm-appinsights/package.json
index 3cf8f68435e9..909706ad753e 100644
--- a/sdk/applicationinsights/arm-appinsights/package.json
+++ b/sdk/applicationinsights/arm-appinsights/package.json
@@ -75,7 +75,7 @@
"test:browser": "echo skipped",
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+ "unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json
index c5ccc4cce6df..48c22abe23af 100644
--- a/sdk/appplatform/arm-appplatform/package.json
+++ b/sdk/appplatform/arm-appplatform/package.json
@@ -77,7 +77,7 @@
"test:browser": "echo skipped",
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
- "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
+ "unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},