From e569cc3e2b76281092a3c250116e910a1882c83d Mon Sep 17 00:00:00 2001
From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com>
Date: Fri, 3 Jan 2025 15:48:51 +0800
Subject: [PATCH] [mgmt] migrate mgmt package to esm 3 (#32358)
https://github.com/Azure/azure-sdk-for-js/issues/32184
@azure/arm-azurestack
@azure/arm-azurestackhci
@azure/arm-baremetalinfrastructure
@azure/arm-batch
@azure/arm-billing
---
common/config/rush/pnpm-lock.yaml | 180 ++++++++++++------
.../arm-azurestack/api-extractor.json | 6 +-
sdk/azurestack/arm-azurestack/package.json | 84 +++++---
.../src/azureStackManagementClient.ts | 6 +-
sdk/azurestack/arm-azurestack/src/index.ts | 8 +-
.../arm-azurestack/src/models/parameters.ts | 2 +-
.../src/operations/cloudManifestFile.ts | 10 +-
.../src/operations/customerSubscriptions.ts | 12 +-
.../arm-azurestack/src/operations/index.ts | 12 +-
.../src/operations/linkedSubscriptions.ts | 12 +-
.../src/operations/operations.ts | 12 +-
.../arm-azurestack/src/operations/products.ts | 12 +-
.../src/operations/registrations.ts | 12 +-
.../operationsInterfaces/cloudManifestFile.ts | 2 +-
.../customerSubscriptions.ts | 2 +-
.../src/operationsInterfaces/index.ts | 12 +-
.../linkedSubscriptions.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/products.ts | 2 +-
.../src/operationsInterfaces/registrations.ts | 2 +-
.../{sampleTest.ts => sampleTest.spec.ts} | 10 +-
.../tsconfig.browser.config.json | 17 ++
sdk/azurestack/arm-azurestack/tsconfig.json | 40 +---
.../arm-azurestack/tsconfig.samples.json | 10 +
.../arm-azurestack/tsconfig.src.json | 3 +
.../arm-azurestack/tsconfig.test.json | 6 +
.../arm-azurestack/vitest.browser.config.ts | 17 ++
.../arm-azurestack/vitest.config.ts | 15 ++
.../arm-azurestack/vitest.esm.config.ts | 12 ++
.../arm-azurestackhci/api-extractor.json | 6 +-
.../arm-azurestackhci/package.json | 84 +++++---
...onsentAndInstallDefaultExtensionsSample.ts | 4 +-
.../arcSettingsCreateIdentitySample.ts | 4 +-
.../samples-dev/arcSettingsCreateSample.ts | 4 +-
.../samples-dev/arcSettingsDeleteSample.ts | 4 +-
.../arcSettingsGeneratePasswordSample.ts | 4 +-
.../samples-dev/arcSettingsGetSample.ts | 4 +-
...cSettingsInitializeDisableProcessSample.ts | 4 +-
.../arcSettingsListByClusterSample.ts | 4 +-
.../samples-dev/arcSettingsUpdateSample.ts | 4 +-
.../clustersConfigureRemoteSupportSample.ts | 4 +-
.../clustersCreateIdentitySample.ts | 4 +-
.../samples-dev/clustersCreateSample.ts | 4 +-
.../samples-dev/clustersDeleteSample.ts | 4 +-
...ersExtendSoftwareAssuranceBenefitSample.ts | 4 +-
.../samples-dev/clustersGetSample.ts | 4 +-
.../clustersListByResourceGroupSample.ts | 4 +-
.../clustersListBySubscriptionSample.ts | 4 +-
.../clustersTriggerLogCollectionSample.ts | 4 +-
.../samples-dev/clustersUpdateSample.ts | 4 +-
.../clustersUploadCertificateSample.ts | 4 +-
.../deploymentSettingsCreateOrUpdateSample.ts | 4 +-
.../deploymentSettingsDeleteSample.ts | 4 +-
.../deploymentSettingsGetSample.ts | 4 +-
.../deploymentSettingsListByClustersSample.ts | 4 +-
.../edgeDevicesCreateOrUpdateSample.ts | 4 +-
.../samples-dev/edgeDevicesDeleteSample.ts | 4 +-
.../samples-dev/edgeDevicesGetSample.ts | 4 +-
.../samples-dev/edgeDevicesListSample.ts | 4 +-
.../samples-dev/edgeDevicesValidateSample.ts | 4 +-
.../samples-dev/extensionsCreateSample.ts | 4 +-
.../samples-dev/extensionsDeleteSample.ts | 4 +-
.../samples-dev/extensionsGetSample.ts | 4 +-
.../extensionsListByArcSettingSample.ts | 4 +-
.../samples-dev/extensionsUpdateSample.ts | 4 +-
.../samples-dev/extensionsUpgradeSample.ts | 4 +-
.../samples-dev/offersGetSample.ts | 4 +-
.../samples-dev/offersListByClusterSample.ts | 4 +-
.../offersListByPublisherSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../samples-dev/publishersGetSample.ts | 4 +-
.../publishersListByClusterSample.ts | 4 +-
.../securitySettingsCreateOrUpdateSample.ts | 4 +-
.../securitySettingsDeleteSample.ts | 4 +-
.../samples-dev/securitySettingsGetSample.ts | 4 +-
.../securitySettingsListByClustersSample.ts | 4 +-
.../samples-dev/skusGetSample.ts | 4 +-
.../samples-dev/skusListByOfferSample.ts | 4 +-
.../samples-dev/updateRunsDeleteSample.ts | 4 +-
.../samples-dev/updateRunsGetSample.ts | 4 +-
.../samples-dev/updateRunsListSample.ts | 4 +-
.../samples-dev/updateRunsPutSample.ts | 4 +-
.../updateSummariesDeleteSample.ts | 4 +-
.../samples-dev/updateSummariesGetSample.ts | 4 +-
.../samples-dev/updateSummariesListSample.ts | 4 +-
.../samples-dev/updateSummariesPutSample.ts | 4 +-
.../samples-dev/updatesDeleteSample.ts | 4 +-
.../samples-dev/updatesGetSample.ts | 4 +-
.../samples-dev/updatesListSample.ts | 4 +-
.../samples-dev/updatesPostSample.ts | 4 +-
.../samples-dev/updatesPutSample.ts | 4 +-
...onsentAndInstallDefaultExtensionsSample.ts | 4 +-
.../src/arcSettingsCreateIdentitySample.ts | 4 +-
.../typescript/src/arcSettingsCreateSample.ts | 4 +-
.../typescript/src/arcSettingsDeleteSample.ts | 4 +-
.../src/arcSettingsGeneratePasswordSample.ts | 4 +-
.../typescript/src/arcSettingsGetSample.ts | 4 +-
...cSettingsInitializeDisableProcessSample.ts | 4 +-
.../src/arcSettingsListByClusterSample.ts | 4 +-
.../typescript/src/arcSettingsUpdateSample.ts | 4 +-
.../clustersConfigureRemoteSupportSample.ts | 4 +-
.../src/clustersCreateIdentitySample.ts | 4 +-
.../typescript/src/clustersCreateSample.ts | 4 +-
.../typescript/src/clustersDeleteSample.ts | 4 +-
...ersExtendSoftwareAssuranceBenefitSample.ts | 4 +-
.../typescript/src/clustersGetSample.ts | 4 +-
.../src/clustersListByResourceGroupSample.ts | 4 +-
.../src/clustersListBySubscriptionSample.ts | 4 +-
.../src/clustersTriggerLogCollectionSample.ts | 4 +-
.../typescript/src/clustersUpdateSample.ts | 4 +-
.../src/clustersUploadCertificateSample.ts | 4 +-
.../deploymentSettingsCreateOrUpdateSample.ts | 4 +-
.../src/deploymentSettingsDeleteSample.ts | 4 +-
.../src/deploymentSettingsGetSample.ts | 4 +-
.../deploymentSettingsListByClustersSample.ts | 4 +-
.../src/edgeDevicesCreateOrUpdateSample.ts | 4 +-
.../typescript/src/edgeDevicesDeleteSample.ts | 4 +-
.../typescript/src/edgeDevicesGetSample.ts | 4 +-
.../typescript/src/edgeDevicesListSample.ts | 4 +-
.../src/edgeDevicesValidateSample.ts | 4 +-
.../typescript/src/extensionsCreateSample.ts | 4 +-
.../typescript/src/extensionsDeleteSample.ts | 4 +-
.../typescript/src/extensionsGetSample.ts | 4 +-
.../src/extensionsListByArcSettingSample.ts | 4 +-
.../typescript/src/extensionsUpdateSample.ts | 4 +-
.../typescript/src/extensionsUpgradeSample.ts | 4 +-
.../v4-beta/typescript/src/offersGetSample.ts | 4 +-
.../src/offersListByClusterSample.ts | 4 +-
.../src/offersListByPublisherSample.ts | 4 +-
.../typescript/src/operationsListSample.ts | 4 +-
.../typescript/src/publishersGetSample.ts | 4 +-
.../src/publishersListByClusterSample.ts | 4 +-
.../securitySettingsCreateOrUpdateSample.ts | 4 +-
.../src/securitySettingsDeleteSample.ts | 4 +-
.../src/securitySettingsGetSample.ts | 4 +-
.../securitySettingsListByClustersSample.ts | 4 +-
.../v4-beta/typescript/src/skusGetSample.ts | 4 +-
.../typescript/src/skusListByOfferSample.ts | 4 +-
.../typescript/src/updateRunsDeleteSample.ts | 4 +-
.../typescript/src/updateRunsGetSample.ts | 4 +-
.../typescript/src/updateRunsListSample.ts | 4 +-
.../typescript/src/updateRunsPutSample.ts | 4 +-
.../src/updateSummariesDeleteSample.ts | 4 +-
.../src/updateSummariesGetSample.ts | 4 +-
.../src/updateSummariesListSample.ts | 4 +-
.../src/updateSummariesPutSample.ts | 4 +-
.../typescript/src/updatesDeleteSample.ts | 4 +-
.../typescript/src/updatesGetSample.ts | 4 +-
.../typescript/src/updatesListSample.ts | 4 +-
.../typescript/src/updatesPostSample.ts | 4 +-
.../typescript/src/updatesPutSample.ts | 4 +-
.../src/azureStackHCIClient.ts | 6 +-
.../arm-azurestackhci/src/index.ts | 8 +-
.../src/models/parameters.ts | 2 +-
.../src/operations/arcSettings.ts | 14 +-
.../src/operations/clusters.ts | 14 +-
.../src/operations/deploymentSettings.ts | 14 +-
.../src/operations/edgeDevices.ts | 14 +-
.../src/operations/extensions.ts | 14 +-
.../arm-azurestackhci/src/operations/index.ts | 26 +--
.../src/operations/offers.ts | 12 +-
.../src/operations/operations.ts | 10 +-
.../src/operations/publishers.ts | 12 +-
.../src/operations/securitySettings.ts | 14 +-
.../arm-azurestackhci/src/operations/skus.ts | 12 +-
.../src/operations/updateRuns.ts | 14 +-
.../operations/updateSummariesOperations.ts | 14 +-
.../src/operations/updates.ts | 14 +-
.../src/operationsInterfaces/arcSettings.ts | 2 +-
.../src/operationsInterfaces/clusters.ts | 2 +-
.../deploymentSettings.ts | 2 +-
.../src/operationsInterfaces/edgeDevices.ts | 2 +-
.../src/operationsInterfaces/extensions.ts | 2 +-
.../src/operationsInterfaces/index.ts | 26 +--
.../src/operationsInterfaces/offers.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../src/operationsInterfaces/publishers.ts | 2 +-
.../operationsInterfaces/securitySettings.ts | 2 +-
.../src/operationsInterfaces/skus.ts | 2 +-
.../src/operationsInterfaces/updateRuns.ts | 2 +-
.../updateSummariesOperations.ts | 2 +-
.../src/operationsInterfaces/updates.ts | 2 +-
.../azurestackhci_operations_test.spec.ts | 17 +-
.../tsconfig.browser.config.json | 17 ++
.../arm-azurestackhci/tsconfig.json | 40 +---
.../arm-azurestackhci/tsconfig.samples.json | 10 +
.../arm-azurestackhci/tsconfig.src.json | 3 +
.../arm-azurestackhci/tsconfig.test.json | 6 +
.../vitest.browser.config.ts | 17 ++
.../arm-azurestackhci/vitest.config.ts | 15 ++
.../arm-azurestackhci/vitest.esm.config.ts | 12 ++
.../api-extractor.json | 6 +-
.../arm-baremetalinfrastructure/package.json | 84 +++++---
.../azureBareMetalInstancesGetSample.ts | 4 +-
...MetalInstancesListByResourceGroupSample.ts | 4 +-
...eMetalInstancesListBySubscriptionSample.ts | 4 +-
.../azureBareMetalInstancesRestartSample.ts | 4 +-
.../azureBareMetalInstancesShutdownSample.ts | 4 +-
.../azureBareMetalInstancesStartSample.ts | 4 +-
.../azureBareMetalInstancesUpdateSample.ts | 4 +-
...reBareMetalStorageInstancesCreateSample.ts | 4 +-
...reBareMetalStorageInstancesDeleteSample.ts | 4 +-
...azureBareMetalStorageInstancesGetSample.ts | 4 +-
...orageInstancesListByResourceGroupSample.ts | 4 +-
...torageInstancesListBySubscriptionSample.ts | 4 +-
...reBareMetalStorageInstancesUpdateSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../src/azureBareMetalInstancesGetSample.ts | 4 +-
...MetalInstancesListByResourceGroupSample.ts | 4 +-
...eMetalInstancesListBySubscriptionSample.ts | 4 +-
.../azureBareMetalInstancesRestartSample.ts | 4 +-
.../azureBareMetalInstancesShutdownSample.ts | 4 +-
.../src/azureBareMetalInstancesStartSample.ts | 4 +-
.../azureBareMetalInstancesUpdateSample.ts | 4 +-
...reBareMetalStorageInstancesCreateSample.ts | 4 +-
...reBareMetalStorageInstancesDeleteSample.ts | 4 +-
...azureBareMetalStorageInstancesGetSample.ts | 4 +-
...orageInstancesListByResourceGroupSample.ts | 4 +-
...torageInstancesListBySubscriptionSample.ts | 4 +-
...reBareMetalStorageInstancesUpdateSample.ts | 4 +-
.../typescript/src/operationsListSample.ts | 4 +-
.../src/azureBareMetalInstancesGetSample.ts | 4 +-
...MetalInstancesListByResourceGroupSample.ts | 4 +-
...eMetalInstancesListBySubscriptionSample.ts | 4 +-
.../azureBareMetalInstancesUpdateSample.ts | 4 +-
.../v1/typescript/src/operationsListSample.ts | 4 +-
.../src/bareMetalInfrastructureClient.ts | 6 +-
.../arm-baremetalinfrastructure/src/index.ts | 8 +-
.../src/models/parameters.ts | 2 +-
.../src/operations/azureBareMetalInstances.ts | 14 +-
.../azureBareMetalStorageInstances.ts | 12 +-
.../src/operations/index.ts | 6 +-
.../src/operations/operations.ts | 10 +-
.../azureBareMetalInstances.ts | 2 +-
.../azureBareMetalStorageInstances.ts | 2 +-
.../src/operationsInterfaces/index.ts | 6 +-
.../src/operationsInterfaces/operations.ts | 2 +-
...etalinfrastructure_operations_test.spec.ts | 17 +-
.../tsconfig.browser.config.json | 17 ++
.../arm-baremetalinfrastructure/tsconfig.json | 40 +---
.../tsconfig.samples.json | 10 +
.../tsconfig.src.json | 3 +
.../tsconfig.test.json | 6 +
.../vitest.browser.config.ts | 17 ++
.../vitest.config.ts | 15 ++
.../vitest.esm.config.ts | 12 ++
sdk/batch/arm-batch/api-extractor.json | 6 +-
sdk/batch/arm-batch/package.json | 84 +++++---
.../samples-dev/applicationCreateSample.ts | 4 +-
.../samples-dev/applicationDeleteSample.ts | 4 +-
.../samples-dev/applicationGetSample.ts | 4 +-
.../samples-dev/applicationListSample.ts | 4 +-
.../applicationPackageActivateSample.ts | 4 +-
.../applicationPackageCreateSample.ts | 4 +-
.../applicationPackageDeleteSample.ts | 4 +-
.../applicationPackageGetSample.ts | 4 +-
.../applicationPackageListSample.ts | 4 +-
.../samples-dev/applicationUpdateSample.ts | 4 +-
.../samples-dev/batchAccountCreateSample.ts | 4 +-
.../samples-dev/batchAccountDeleteSample.ts | 4 +-
.../batchAccountGetDetectorSample.ts | 4 +-
.../samples-dev/batchAccountGetKeysSample.ts | 4 +-
.../samples-dev/batchAccountGetSample.ts | 4 +-
.../batchAccountListByResourceGroupSample.ts | 4 +-
.../batchAccountListDetectorsSample.ts | 4 +-
...boundNetworkDependenciesEndpointsSample.ts | 4 +-
.../samples-dev/batchAccountListSample.ts | 4 +-
.../batchAccountRegenerateKeySample.ts | 4 +-
...AccountSynchronizeAutoStorageKeysSample.ts | 4 +-
.../samples-dev/batchAccountUpdateSample.ts | 4 +-
.../certificateCancelDeletionSample.ts | 4 +-
.../samples-dev/certificateCreateSample.ts | 4 +-
.../samples-dev/certificateDeleteSample.ts | 4 +-
.../samples-dev/certificateGetSample.ts | 4 +-
.../certificateListByBatchAccountSample.ts | 4 +-
.../samples-dev/certificateUpdateSample.ts | 4 +-
.../locationCheckNameAvailabilitySample.ts | 4 +-
.../samples-dev/locationGetQuotasSample.ts | 4 +-
...onListSupportedVirtualMachineSkusSample.ts | 4 +-
...SecurityPerimeterGetConfigurationSample.ts | 4 +-
...curityPerimeterListConfigurationsSample.ts | 4 +-
...tyPerimeterReconcileConfigurationSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../arm-batch/samples-dev/poolCreateSample.ts | 4 +-
.../arm-batch/samples-dev/poolDeleteSample.ts | 4 +-
.../samples-dev/poolDisableAutoScaleSample.ts | 4 +-
.../arm-batch/samples-dev/poolGetSample.ts | 4 +-
.../poolListByBatchAccountSample.ts | 4 +-
.../samples-dev/poolStopResizeSample.ts | 4 +-
.../arm-batch/samples-dev/poolUpdateSample.ts | 4 +-
.../privateEndpointConnectionDeleteSample.ts | 4 +-
.../privateEndpointConnectionGetSample.ts | 4 +-
...pointConnectionListByBatchAccountSample.ts | 4 +-
.../privateEndpointConnectionUpdateSample.ts | 4 +-
.../privateLinkResourceGetSample.ts | 4 +-
...ateLinkResourceListByBatchAccountSample.ts | 4 +-
.../typescript/src/applicationCreateSample.ts | 4 +-
.../typescript/src/applicationDeleteSample.ts | 4 +-
.../typescript/src/applicationGetSample.ts | 4 +-
.../typescript/src/applicationListSample.ts | 4 +-
.../src/applicationPackageActivateSample.ts | 4 +-
.../src/applicationPackageCreateSample.ts | 4 +-
.../src/applicationPackageDeleteSample.ts | 4 +-
.../src/applicationPackageGetSample.ts | 4 +-
.../src/applicationPackageListSample.ts | 4 +-
.../typescript/src/applicationUpdateSample.ts | 4 +-
.../src/batchAccountCreateSample.ts | 4 +-
.../src/batchAccountDeleteSample.ts | 4 +-
.../src/batchAccountGetDetectorSample.ts | 4 +-
.../src/batchAccountGetKeysSample.ts | 4 +-
.../typescript/src/batchAccountGetSample.ts | 4 +-
.../batchAccountListByResourceGroupSample.ts | 4 +-
.../src/batchAccountListDetectorsSample.ts | 4 +-
...boundNetworkDependenciesEndpointsSample.ts | 4 +-
.../typescript/src/batchAccountListSample.ts | 4 +-
.../src/batchAccountRegenerateKeySample.ts | 4 +-
...AccountSynchronizeAutoStorageKeysSample.ts | 4 +-
.../src/batchAccountUpdateSample.ts | 4 +-
.../src/certificateCancelDeletionSample.ts | 4 +-
.../typescript/src/certificateCreateSample.ts | 4 +-
.../typescript/src/certificateDeleteSample.ts | 4 +-
.../typescript/src/certificateGetSample.ts | 4 +-
.../certificateListByBatchAccountSample.ts | 4 +-
.../typescript/src/certificateUpdateSample.ts | 4 +-
.../locationCheckNameAvailabilitySample.ts | 4 +-
.../typescript/src/locationGetQuotasSample.ts | 4 +-
...onListSupportedVirtualMachineSkusSample.ts | 4 +-
...SecurityPerimeterGetConfigurationSample.ts | 4 +-
...curityPerimeterListConfigurationsSample.ts | 4 +-
...tyPerimeterReconcileConfigurationSample.ts | 4 +-
.../typescript/src/operationsListSample.ts | 4 +-
.../v10/typescript/src/poolCreateSample.ts | 4 +-
.../v10/typescript/src/poolDeleteSample.ts | 4 +-
.../src/poolDisableAutoScaleSample.ts | 4 +-
.../v10/typescript/src/poolGetSample.ts | 4 +-
.../src/poolListByBatchAccountSample.ts | 4 +-
.../typescript/src/poolStopResizeSample.ts | 4 +-
.../v10/typescript/src/poolUpdateSample.ts | 4 +-
.../privateEndpointConnectionDeleteSample.ts | 4 +-
.../src/privateEndpointConnectionGetSample.ts | 4 +-
...pointConnectionListByBatchAccountSample.ts | 4 +-
.../privateEndpointConnectionUpdateSample.ts | 4 +-
.../src/privateLinkResourceGetSample.ts | 4 +-
...ateLinkResourceListByBatchAccountSample.ts | 4 +-
.../arm-batch/src/batchManagementClient.ts | 6 +-
sdk/batch/arm-batch/src/index.ts | 8 +-
sdk/batch/arm-batch/src/models/parameters.ts | 2 +-
.../src/operations/applicationOperations.ts | 12 +-
.../applicationPackageOperations.ts | 12 +-
.../src/operations/batchAccountOperations.ts | 14 +-
.../src/operations/certificateOperations.ts | 14 +-
sdk/batch/arm-batch/src/operations/index.ts | 20 +-
.../arm-batch/src/operations/location.ts | 12 +-
.../networkSecurityPerimeterOperations.ts | 14 +-
.../arm-batch/src/operations/operations.ts | 12 +-
.../src/operations/poolOperations.ts | 14 +-
.../privateEndpointConnectionOperations.ts | 14 +-
.../privateLinkResourceOperations.ts | 12 +-
.../applicationOperations.ts | 2 +-
.../applicationPackageOperations.ts | 2 +-
.../batchAccountOperations.ts | 2 +-
.../certificateOperations.ts | 2 +-
.../src/operationsInterfaces/index.ts | 20 +-
.../src/operationsInterfaces/location.ts | 2 +-
.../networkSecurityPerimeterOperations.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../operationsInterfaces/poolOperations.ts | 2 +-
.../privateEndpointConnectionOperations.ts | 2 +-
.../privateLinkResourceOperations.ts | 2 +-
...tch_examples.ts => batch_examples.spec.ts} | 24 ++-
.../arm-batch/tsconfig.browser.config.json | 17 ++
sdk/batch/arm-batch/tsconfig.json | 40 +---
sdk/batch/arm-batch/tsconfig.samples.json | 10 +
sdk/batch/arm-batch/tsconfig.src.json | 3 +
sdk/batch/arm-batch/tsconfig.test.json | 6 +
sdk/batch/arm-batch/vitest.browser.config.ts | 17 ++
sdk/batch/arm-batch/vitest.config.ts | 15 ++
sdk/batch/arm-batch/vitest.esm.config.ts | 12 ++
sdk/billing/arm-billing/api-extractor.json | 6 +-
sdk/billing/arm-billing/package.json | 84 +++++---
.../samples-dev/addressValidateSample.ts | 4 +-
.../samples-dev/agreementsGetSample.ts | 4 +-
.../agreementsListByBillingAccountSample.ts | 4 +-
.../associatedTenantsCreateOrUpdateSample.ts | 4 +-
.../associatedTenantsDeleteSample.ts | 4 +-
.../samples-dev/associatedTenantsGetSample.ts | 4 +-
...ciatedTenantsListByBillingAccountSample.ts | 4 +-
...ilableBalancesGetByBillingAccountSample.ts | 4 +-
...ilableBalancesGetByBillingProfileSample.ts | 4 +-
.../billingAccountsAddPaymentTermsSample.ts | 4 +-
...billingAccountsCancelPaymentTermsSample.ts | 4 +-
.../billingAccountsConfirmTransitionSample.ts | 4 +-
.../samples-dev/billingAccountsGetSample.ts | 4 +-
...onsByCreateSubscriptionPermissionSample.ts | 4 +-
.../samples-dev/billingAccountsListSample.ts | 4 +-
.../billingAccountsUpdateSample.ts | 4 +-
...llingAccountsValidatePaymentTermsSample.ts | 4 +-
...ssionsCheckAccessByBillingAccountSample.ts | 4 +-
...ssionsCheckAccessByBillingProfileSample.ts | 4 +-
...gPermissionsCheckAccessByCustomerSample.ts | 4 +-
...ermissionsCheckAccessByDepartmentSample.ts | 4 +-
...onsCheckAccessByEnrollmentAccountSample.ts | 4 +-
...ssionsCheckAccessByInvoiceSectionSample.ts | 4 +-
...ngPermissionsListByBillingAccountSample.ts | 4 +-
...ngPermissionsListByBillingProfileSample.ts | 4 +-
...onsListByCustomerAtBillingAccountSample.ts | 4 +-
.../billingPermissionsListByCustomerSample.ts | 4 +-
...illingPermissionsListByDepartmentSample.ts | 4 +-
...ermissionsListByEnrollmentAccountSample.ts | 4 +-
...ngPermissionsListByInvoiceSectionSample.ts | 4 +-
.../billingProfilesCreateOrUpdateSample.ts | 4 +-
.../billingProfilesDeleteSample.ts | 4 +-
.../samples-dev/billingProfilesGetSample.ts | 4 +-
...llingProfilesListByBillingAccountSample.ts | 4 +-
...ProfilesValidateDeleteEligibilitySample.ts | 4 +-
.../samples-dev/billingPropertyGetSample.ts | 4 +-
.../billingPropertyUpdateSample.ts | 4 +-
.../billingRequestsCreateOrUpdateSample.ts | 4 +-
.../samples-dev/billingRequestsGetSample.ts | 4 +-
...llingRequestsListByBillingAccountSample.ts | 4 +-
...llingRequestsListByBillingProfileSample.ts | 4 +-
.../billingRequestsListByCustomerSample.ts | 4 +-
...llingRequestsListByInvoiceSectionSample.ts | 4 +-
.../billingRequestsListByUserSample.ts | 4 +-
...AssignmentsCreateByBillingAccountSample.ts | 4 +-
...AssignmentsCreateByBillingProfileSample.ts | 4 +-
...ngRoleAssignmentsCreateByCustomerSample.ts | 4 +-
...AssignmentsCreateByInvoiceSectionSample.ts | 4 +-
...ntsCreateOrUpdateByBillingAccountSample.ts | 4 +-
...gnmentsCreateOrUpdateByDepartmentSample.ts | 4 +-
...CreateOrUpdateByEnrollmentAccountSample.ts | 4 +-
...AssignmentsDeleteByBillingAccountSample.ts | 4 +-
...AssignmentsDeleteByBillingProfileSample.ts | 4 +-
...ngRoleAssignmentsDeleteByCustomerSample.ts | 4 +-
...RoleAssignmentsDeleteByDepartmentSample.ts | 4 +-
...ignmentsDeleteByEnrollmentAccountSample.ts | 4 +-
...AssignmentsDeleteByInvoiceSectionSample.ts | 4 +-
...oleAssignmentsGetByBillingAccountSample.ts | 4 +-
...oleAssignmentsGetByBillingProfileSample.ts | 4 +-
...llingRoleAssignmentsGetByCustomerSample.ts | 4 +-
...ingRoleAssignmentsGetByDepartmentSample.ts | 4 +-
...AssignmentsGetByEnrollmentAccountSample.ts | 4 +-
...oleAssignmentsGetByInvoiceSectionSample.ts | 4 +-
...leAssignmentsListByBillingAccountSample.ts | 4 +-
...leAssignmentsListByBillingProfileSample.ts | 4 +-
...lingRoleAssignmentsListByCustomerSample.ts | 4 +-
...ngRoleAssignmentsListByDepartmentSample.ts | 4 +-
...ssignmentsListByEnrollmentAccountSample.ts | 4 +-
...leAssignmentsListByInvoiceSectionSample.ts | 4 +-
...ssignmentsResolveByBillingAccountSample.ts | 4 +-
...ssignmentsResolveByBillingProfileSample.ts | 4 +-
...gRoleAssignmentsResolveByCustomerSample.ts | 4 +-
...ssignmentsResolveByInvoiceSectionSample.ts | 4 +-
...RoleDefinitionGetByBillingAccountSample.ts | 4 +-
...RoleDefinitionGetByBillingProfileSample.ts | 4 +-
...illingRoleDefinitionGetByCustomerSample.ts | 4 +-
...lingRoleDefinitionGetByDepartmentSample.ts | 4 +-
...eDefinitionGetByEnrollmentAccountSample.ts | 4 +-
...RoleDefinitionGetByInvoiceSectionSample.ts | 4 +-
...oleDefinitionListByBillingAccountSample.ts | 4 +-
...oleDefinitionListByBillingProfileSample.ts | 4 +-
...llingRoleDefinitionListByCustomerSample.ts | 4 +-
...ingRoleDefinitionListByDepartmentSample.ts | 4 +-
...DefinitionListByEnrollmentAccountSample.ts | 4 +-
...oleDefinitionListByInvoiceSectionSample.ts | 4 +-
...ubscriptionsAliasesCreateOrUpdateSample.ts | 4 +-
.../billingSubscriptionsAliasesGetSample.ts | 4 +-
...ptionsAliasesListByBillingAccountSample.ts | 4 +-
.../billingSubscriptionsCancelSample.ts | 4 +-
.../billingSubscriptionsDeleteSample.ts | 4 +-
...gSubscriptionsGetByBillingProfileSample.ts | 4 +-
.../billingSubscriptionsGetSample.ts | 4 +-
...SubscriptionsListByBillingAccountSample.ts | 4 +-
...SubscriptionsListByBillingProfileSample.ts | 4 +-
...onsListByCustomerAtBillingAccountSample.ts | 4 +-
...illingSubscriptionsListByCustomerSample.ts | 4 +-
...scriptionsListByEnrollmentAccountSample.ts | 4 +-
...SubscriptionsListByInvoiceSectionSample.ts | 4 +-
.../billingSubscriptionsMergeSample.ts | 4 +-
.../billingSubscriptionsMoveSample.ts | 4 +-
.../billingSubscriptionsSplitSample.ts | 4 +-
.../billingSubscriptionsUpdateSample.ts | 4 +-
...scriptionsValidateMoveEligibilitySample.ts | 4 +-
.../customersGetByBillingAccountSample.ts | 4 +-
.../samples-dev/customersGetSample.ts | 4 +-
.../customersListByBillingAccountSample.ts | 4 +-
.../customersListByBillingProfileSample.ts | 4 +-
.../samples-dev/departmentsGetSample.ts | 4 +-
.../departmentsListByBillingAccountSample.ts | 4 +-
...enrollmentAccountsGetByDepartmentSample.ts | 4 +-
.../enrollmentAccountsGetSample.ts | 4 +-
...lmentAccountsListByBillingAccountSample.ts | 4 +-
...nrollmentAccountsListByDepartmentSample.ts | 4 +-
.../invoiceSectionsCreateOrUpdateSample.ts | 4 +-
.../invoiceSectionsDeleteSample.ts | 4 +-
.../samples-dev/invoiceSectionsGetSample.ts | 4 +-
...voiceSectionsListByBillingProfileSample.ts | 4 +-
...SectionsValidateDeleteEligibilitySample.ts | 4 +-
.../samples-dev/invoicesAmendSample.ts | 4 +-
.../invoicesDownloadByBillingAccountSample.ts | 4 +-
...icesDownloadByBillingSubscriptionSample.ts | 4 +-
...DownloadDocumentsByBillingAccountSample.ts | 4 +-
...oadDocumentsByBillingSubscriptionSample.ts | 4 +-
...esDownloadSummaryByBillingAccountSample.ts | 4 +-
.../invoicesGetByBillingAccountSample.ts | 4 +-
.../invoicesGetByBillingSubscriptionSample.ts | 4 +-
.../samples-dev/invoicesGetSample.ts | 4 +-
.../invoicesListByBillingAccountSample.ts | 4 +-
.../invoicesListByBillingProfileSample.ts | 4 +-
...invoicesListByBillingSubscriptionSample.ts | 4 +-
.../samples-dev/operationsListSample.ts | 4 +-
.../partnerTransfersCancelSample.ts | 4 +-
.../samples-dev/partnerTransfersGetSample.ts | 4 +-
.../partnerTransfersInitiateSample.ts | 4 +-
.../samples-dev/partnerTransfersListSample.ts | 4 +-
.../paymentMethodsDeleteByUserSample.ts | 4 +-
...paymentMethodsGetByBillingAccountSample.ts | 4 +-
...paymentMethodsGetByBillingProfileSample.ts | 4 +-
.../paymentMethodsGetByUserSample.ts | 4 +-
...aymentMethodsListByBillingAccountSample.ts | 4 +-
...aymentMethodsListByBillingProfileSample.ts | 4 +-
.../paymentMethodsListByUserSample.ts | 4 +-
...iesCreateOrUpdateByBillingAccountSample.ts | 4 +-
...iesCreateOrUpdateByBillingProfileSample.ts | 4 +-
...rUpdateByCustomerAtBillingAccountSample.ts | 4 +-
.../policiesCreateOrUpdateByCustomerSample.ts | 4 +-
.../policiesGetByBillingAccountSample.ts | 4 +-
.../policiesGetByBillingProfileSample.ts | 4 +-
...ciesGetByCustomerAtBillingAccountSample.ts | 4 +-
.../policiesGetByCustomerSample.ts | 4 +-
.../policiesGetBySubscriptionSample.ts | 4 +-
.../samples-dev/productsGetSample.ts | 4 +-
.../productsListByBillingAccountSample.ts | 4 +-
.../productsListByBillingProfileSample.ts | 4 +-
.../productsListByCustomerSample.ts | 4 +-
.../productsListByInvoiceSectionSample.ts | 4 +-
.../samples-dev/productsMoveSample.ts | 4 +-
.../samples-dev/productsUpdateSample.ts | 4 +-
.../productsValidateMoveEligibilitySample.ts | 4 +-
.../recipientTransfersAcceptSample.ts | 4 +-
.../recipientTransfersDeclineSample.ts | 4 +-
.../recipientTransfersGetSample.ts | 4 +-
.../recipientTransfersListSample.ts | 4 +-
.../recipientTransfersValidateSample.ts | 4 +-
...ervationOrdersGetByBillingAccountSample.ts | 4 +-
...rvationOrdersListByBillingAccountSample.ts | 4 +-
...reservationsGetByReservationOrderSample.ts | 4 +-
.../reservationsListByBillingAccountSample.ts | 4 +-
.../reservationsListByBillingProfileSample.ts | 4 +-
...eservationsListByReservationOrderSample.ts | 4 +-
...eservationsUpdateByBillingAccountSample.ts | 4 +-
...ingsPlanOrdersGetByBillingAccountSample.ts | 4 +-
...ngsPlanOrdersListByBillingAccountSample.ts | 4 +-
.../savingsPlansGetByBillingAccountSample.ts | 4 +-
.../savingsPlansListByBillingAccountSample.ts | 4 +-
...avingsPlansListBySavingsPlanOrderSample.ts | 4 +-
...avingsPlansUpdateByBillingAccountSample.ts | 4 +-
...ansValidateUpdateByBillingAccountSample.ts | 4 +-
...onsGetTransactionSummaryByInvoiceSample.ts | 4 +-
.../transactionsListByBillingProfileSample.ts | 4 +-
.../transactionsListByCustomerSample.ts | 4 +-
.../transactionsListByInvoiceSample.ts | 4 +-
.../transactionsListByInvoiceSectionSample.ts | 4 +-
...ionsTransactionsDownloadByInvoiceSample.ts | 4 +-
.../samples-dev/transfersCancelSample.ts | 4 +-
.../samples-dev/transfersGetSample.ts | 4 +-
.../samples-dev/transfersInitiateSample.ts | 4 +-
.../samples-dev/transfersListSample.ts | 4 +-
.../typescript/src/addressValidateSample.ts | 4 +-
.../v5/typescript/src/agreementsGetSample.ts | 4 +-
.../agreementsListByBillingAccountSample.ts | 4 +-
.../associatedTenantsCreateOrUpdateSample.ts | 4 +-
.../src/associatedTenantsDeleteSample.ts | 4 +-
.../src/associatedTenantsGetSample.ts | 4 +-
...ciatedTenantsListByBillingAccountSample.ts | 4 +-
...ilableBalancesGetByBillingAccountSample.ts | 4 +-
...ilableBalancesGetByBillingProfileSample.ts | 4 +-
.../billingAccountsAddPaymentTermsSample.ts | 4 +-
...billingAccountsCancelPaymentTermsSample.ts | 4 +-
.../billingAccountsConfirmTransitionSample.ts | 4 +-
.../src/billingAccountsGetSample.ts | 4 +-
...onsByCreateSubscriptionPermissionSample.ts | 4 +-
.../src/billingAccountsListSample.ts | 4 +-
.../src/billingAccountsUpdateSample.ts | 4 +-
...llingAccountsValidatePaymentTermsSample.ts | 4 +-
...ssionsCheckAccessByBillingAccountSample.ts | 4 +-
...ssionsCheckAccessByBillingProfileSample.ts | 4 +-
...gPermissionsCheckAccessByCustomerSample.ts | 4 +-
...ermissionsCheckAccessByDepartmentSample.ts | 4 +-
...onsCheckAccessByEnrollmentAccountSample.ts | 4 +-
...ssionsCheckAccessByInvoiceSectionSample.ts | 4 +-
...ngPermissionsListByBillingAccountSample.ts | 4 +-
...ngPermissionsListByBillingProfileSample.ts | 4 +-
...onsListByCustomerAtBillingAccountSample.ts | 4 +-
.../billingPermissionsListByCustomerSample.ts | 4 +-
...illingPermissionsListByDepartmentSample.ts | 4 +-
...ermissionsListByEnrollmentAccountSample.ts | 4 +-
...ngPermissionsListByInvoiceSectionSample.ts | 4 +-
.../billingProfilesCreateOrUpdateSample.ts | 4 +-
.../src/billingProfilesDeleteSample.ts | 4 +-
.../src/billingProfilesGetSample.ts | 4 +-
...llingProfilesListByBillingAccountSample.ts | 4 +-
...ProfilesValidateDeleteEligibilitySample.ts | 4 +-
.../src/billingPropertyGetSample.ts | 4 +-
.../src/billingPropertyUpdateSample.ts | 4 +-
.../billingRequestsCreateOrUpdateSample.ts | 4 +-
.../src/billingRequestsGetSample.ts | 4 +-
...llingRequestsListByBillingAccountSample.ts | 4 +-
...llingRequestsListByBillingProfileSample.ts | 4 +-
.../billingRequestsListByCustomerSample.ts | 4 +-
...llingRequestsListByInvoiceSectionSample.ts | 4 +-
.../src/billingRequestsListByUserSample.ts | 4 +-
...AssignmentsCreateByBillingAccountSample.ts | 4 +-
...AssignmentsCreateByBillingProfileSample.ts | 4 +-
...ngRoleAssignmentsCreateByCustomerSample.ts | 4 +-
...AssignmentsCreateByInvoiceSectionSample.ts | 4 +-
...ntsCreateOrUpdateByBillingAccountSample.ts | 4 +-
...gnmentsCreateOrUpdateByDepartmentSample.ts | 4 +-
...CreateOrUpdateByEnrollmentAccountSample.ts | 4 +-
...AssignmentsDeleteByBillingAccountSample.ts | 4 +-
...AssignmentsDeleteByBillingProfileSample.ts | 4 +-
...ngRoleAssignmentsDeleteByCustomerSample.ts | 4 +-
...RoleAssignmentsDeleteByDepartmentSample.ts | 4 +-
...ignmentsDeleteByEnrollmentAccountSample.ts | 4 +-
...AssignmentsDeleteByInvoiceSectionSample.ts | 4 +-
...oleAssignmentsGetByBillingAccountSample.ts | 4 +-
...oleAssignmentsGetByBillingProfileSample.ts | 4 +-
...llingRoleAssignmentsGetByCustomerSample.ts | 4 +-
...ingRoleAssignmentsGetByDepartmentSample.ts | 4 +-
...AssignmentsGetByEnrollmentAccountSample.ts | 4 +-
...oleAssignmentsGetByInvoiceSectionSample.ts | 4 +-
...leAssignmentsListByBillingAccountSample.ts | 4 +-
...leAssignmentsListByBillingProfileSample.ts | 4 +-
...lingRoleAssignmentsListByCustomerSample.ts | 4 +-
...ngRoleAssignmentsListByDepartmentSample.ts | 4 +-
...ssignmentsListByEnrollmentAccountSample.ts | 4 +-
...leAssignmentsListByInvoiceSectionSample.ts | 4 +-
...ssignmentsResolveByBillingAccountSample.ts | 4 +-
...ssignmentsResolveByBillingProfileSample.ts | 4 +-
...gRoleAssignmentsResolveByCustomerSample.ts | 4 +-
...ssignmentsResolveByInvoiceSectionSample.ts | 4 +-
...RoleDefinitionGetByBillingAccountSample.ts | 4 +-
...RoleDefinitionGetByBillingProfileSample.ts | 4 +-
...illingRoleDefinitionGetByCustomerSample.ts | 4 +-
...lingRoleDefinitionGetByDepartmentSample.ts | 4 +-
...eDefinitionGetByEnrollmentAccountSample.ts | 4 +-
...RoleDefinitionGetByInvoiceSectionSample.ts | 4 +-
...oleDefinitionListByBillingAccountSample.ts | 4 +-
...oleDefinitionListByBillingProfileSample.ts | 4 +-
...llingRoleDefinitionListByCustomerSample.ts | 4 +-
...ingRoleDefinitionListByDepartmentSample.ts | 4 +-
...DefinitionListByEnrollmentAccountSample.ts | 4 +-
...oleDefinitionListByInvoiceSectionSample.ts | 4 +-
...ubscriptionsAliasesCreateOrUpdateSample.ts | 4 +-
.../billingSubscriptionsAliasesGetSample.ts | 4 +-
...ptionsAliasesListByBillingAccountSample.ts | 4 +-
.../src/billingSubscriptionsCancelSample.ts | 4 +-
.../src/billingSubscriptionsDeleteSample.ts | 4 +-
...gSubscriptionsGetByBillingProfileSample.ts | 4 +-
.../src/billingSubscriptionsGetSample.ts | 4 +-
...SubscriptionsListByBillingAccountSample.ts | 4 +-
...SubscriptionsListByBillingProfileSample.ts | 4 +-
...onsListByCustomerAtBillingAccountSample.ts | 4 +-
...illingSubscriptionsListByCustomerSample.ts | 4 +-
...scriptionsListByEnrollmentAccountSample.ts | 4 +-
...SubscriptionsListByInvoiceSectionSample.ts | 4 +-
.../src/billingSubscriptionsMergeSample.ts | 4 +-
.../src/billingSubscriptionsMoveSample.ts | 4 +-
.../src/billingSubscriptionsSplitSample.ts | 4 +-
.../src/billingSubscriptionsUpdateSample.ts | 4 +-
...scriptionsValidateMoveEligibilitySample.ts | 4 +-
.../src/customersGetByBillingAccountSample.ts | 4 +-
.../v5/typescript/src/customersGetSample.ts | 4 +-
.../customersListByBillingAccountSample.ts | 4 +-
.../customersListByBillingProfileSample.ts | 4 +-
.../v5/typescript/src/departmentsGetSample.ts | 4 +-
.../departmentsListByBillingAccountSample.ts | 4 +-
...enrollmentAccountsGetByDepartmentSample.ts | 4 +-
.../src/enrollmentAccountsGetSample.ts | 4 +-
...lmentAccountsListByBillingAccountSample.ts | 4 +-
...nrollmentAccountsListByDepartmentSample.ts | 4 +-
.../invoiceSectionsCreateOrUpdateSample.ts | 4 +-
.../src/invoiceSectionsDeleteSample.ts | 4 +-
.../src/invoiceSectionsGetSample.ts | 4 +-
...voiceSectionsListByBillingProfileSample.ts | 4 +-
...SectionsValidateDeleteEligibilitySample.ts | 4 +-
.../v5/typescript/src/invoicesAmendSample.ts | 4 +-
.../invoicesDownloadByBillingAccountSample.ts | 4 +-
...icesDownloadByBillingSubscriptionSample.ts | 4 +-
...DownloadDocumentsByBillingAccountSample.ts | 4 +-
...oadDocumentsByBillingSubscriptionSample.ts | 4 +-
...esDownloadSummaryByBillingAccountSample.ts | 4 +-
.../src/invoicesGetByBillingAccountSample.ts | 4 +-
.../invoicesGetByBillingSubscriptionSample.ts | 4 +-
.../v5/typescript/src/invoicesGetSample.ts | 4 +-
.../src/invoicesListByBillingAccountSample.ts | 4 +-
.../src/invoicesListByBillingProfileSample.ts | 4 +-
...invoicesListByBillingSubscriptionSample.ts | 4 +-
.../v5/typescript/src/operationsListSample.ts | 4 +-
.../src/partnerTransfersCancelSample.ts | 4 +-
.../src/partnerTransfersGetSample.ts | 4 +-
.../src/partnerTransfersInitiateSample.ts | 4 +-
.../src/partnerTransfersListSample.ts | 4 +-
.../src/paymentMethodsDeleteByUserSample.ts | 4 +-
...paymentMethodsGetByBillingAccountSample.ts | 4 +-
...paymentMethodsGetByBillingProfileSample.ts | 4 +-
.../src/paymentMethodsGetByUserSample.ts | 4 +-
...aymentMethodsListByBillingAccountSample.ts | 4 +-
...aymentMethodsListByBillingProfileSample.ts | 4 +-
.../src/paymentMethodsListByUserSample.ts | 4 +-
...iesCreateOrUpdateByBillingAccountSample.ts | 4 +-
...iesCreateOrUpdateByBillingProfileSample.ts | 4 +-
...rUpdateByCustomerAtBillingAccountSample.ts | 4 +-
.../policiesCreateOrUpdateByCustomerSample.ts | 4 +-
.../src/policiesGetByBillingAccountSample.ts | 4 +-
.../src/policiesGetByBillingProfileSample.ts | 4 +-
...ciesGetByCustomerAtBillingAccountSample.ts | 4 +-
.../src/policiesGetByCustomerSample.ts | 4 +-
.../src/policiesGetBySubscriptionSample.ts | 4 +-
.../v5/typescript/src/productsGetSample.ts | 4 +-
.../src/productsListByBillingAccountSample.ts | 4 +-
.../src/productsListByBillingProfileSample.ts | 4 +-
.../src/productsListByCustomerSample.ts | 4 +-
.../src/productsListByInvoiceSectionSample.ts | 4 +-
.../v5/typescript/src/productsMoveSample.ts | 4 +-
.../v5/typescript/src/productsUpdateSample.ts | 4 +-
.../productsValidateMoveEligibilitySample.ts | 4 +-
.../src/recipientTransfersAcceptSample.ts | 4 +-
.../src/recipientTransfersDeclineSample.ts | 4 +-
.../src/recipientTransfersGetSample.ts | 4 +-
.../src/recipientTransfersListSample.ts | 4 +-
.../src/recipientTransfersValidateSample.ts | 4 +-
...ervationOrdersGetByBillingAccountSample.ts | 4 +-
...rvationOrdersListByBillingAccountSample.ts | 4 +-
...reservationsGetByReservationOrderSample.ts | 4 +-
.../reservationsListByBillingAccountSample.ts | 4 +-
.../reservationsListByBillingProfileSample.ts | 4 +-
...eservationsListByReservationOrderSample.ts | 4 +-
...eservationsUpdateByBillingAccountSample.ts | 4 +-
...ingsPlanOrdersGetByBillingAccountSample.ts | 4 +-
...ngsPlanOrdersListByBillingAccountSample.ts | 4 +-
.../savingsPlansGetByBillingAccountSample.ts | 4 +-
.../savingsPlansListByBillingAccountSample.ts | 4 +-
...avingsPlansListBySavingsPlanOrderSample.ts | 4 +-
...avingsPlansUpdateByBillingAccountSample.ts | 4 +-
...ansValidateUpdateByBillingAccountSample.ts | 4 +-
...onsGetTransactionSummaryByInvoiceSample.ts | 4 +-
.../transactionsListByBillingProfileSample.ts | 4 +-
.../src/transactionsListByCustomerSample.ts | 4 +-
.../src/transactionsListByInvoiceSample.ts | 4 +-
.../transactionsListByInvoiceSectionSample.ts | 4 +-
...ionsTransactionsDownloadByInvoiceSample.ts | 4 +-
.../typescript/src/transfersCancelSample.ts | 4 +-
.../v5/typescript/src/transfersGetSample.ts | 4 +-
.../typescript/src/transfersInitiateSample.ts | 4 +-
.../v5/typescript/src/transfersListSample.ts | 4 +-
.../src/billingManagementClient.ts | 6 +-
sdk/billing/arm-billing/src/index.ts | 8 +-
.../arm-billing/src/models/parameters.ts | 2 +-
.../arm-billing/src/operations/address.ts | 10 +-
.../arm-billing/src/operations/agreements.ts | 12 +-
.../src/operations/associatedTenants.ts | 14 +-
.../src/operations/availableBalances.ts | 10 +-
.../src/operations/billingAccounts.ts | 14 +-
.../src/operations/billingPermissions.ts | 12 +-
.../src/operations/billingProfiles.ts | 14 +-
.../operations/billingPropertyOperations.ts | 10 +-
.../src/operations/billingRequests.ts | 14 +-
.../src/operations/billingRoleAssignments.ts | 14 +-
.../billingRoleDefinitionOperations.ts | 12 +-
.../src/operations/billingSubscriptions.ts | 14 +-
.../operations/billingSubscriptionsAliases.ts | 14 +-
.../arm-billing/src/operations/customers.ts | 12 +-
.../arm-billing/src/operations/departments.ts | 12 +-
.../src/operations/enrollmentAccounts.ts | 12 +-
.../arm-billing/src/operations/index.ts | 60 +++---
.../src/operations/invoiceSections.ts | 14 +-
.../arm-billing/src/operations/invoices.ts | 14 +-
.../arm-billing/src/operations/operations.ts | 12 +-
.../src/operations/partnerTransfers.ts | 12 +-
.../src/operations/paymentMethods.ts | 12 +-
.../arm-billing/src/operations/policies.ts | 12 +-
.../arm-billing/src/operations/products.ts | 14 +-
.../src/operations/recipientTransfers.ts | 12 +-
.../src/operations/reservationOrders.ts | 12 +-
.../src/operations/reservations.ts | 14 +-
.../src/operations/savingsPlanOrders.ts | 12 +-
.../src/operations/savingsPlans.ts | 14 +-
.../src/operations/transactions.ts | 14 +-
.../arm-billing/src/operations/transfers.ts | 12 +-
.../src/operationsInterfaces/address.ts | 2 +-
.../src/operationsInterfaces/agreements.ts | 2 +-
.../operationsInterfaces/associatedTenants.ts | 2 +-
.../operationsInterfaces/availableBalances.ts | 2 +-
.../operationsInterfaces/billingAccounts.ts | 2 +-
.../billingPermissions.ts | 2 +-
.../operationsInterfaces/billingProfiles.ts | 2 +-
.../billingPropertyOperations.ts | 2 +-
.../operationsInterfaces/billingRequests.ts | 2 +-
.../billingRoleAssignments.ts | 2 +-
.../billingRoleDefinitionOperations.ts | 2 +-
.../billingSubscriptions.ts | 2 +-
.../billingSubscriptionsAliases.ts | 2 +-
.../src/operationsInterfaces/customers.ts | 2 +-
.../src/operationsInterfaces/departments.ts | 2 +-
.../enrollmentAccounts.ts | 2 +-
.../src/operationsInterfaces/index.ts | 60 +++---
.../operationsInterfaces/invoiceSections.ts | 2 +-
.../src/operationsInterfaces/invoices.ts | 2 +-
.../src/operationsInterfaces/operations.ts | 2 +-
.../operationsInterfaces/partnerTransfers.ts | 2 +-
.../operationsInterfaces/paymentMethods.ts | 2 +-
.../src/operationsInterfaces/policies.ts | 2 +-
.../src/operationsInterfaces/products.ts | 2 +-
.../recipientTransfers.ts | 2 +-
.../operationsInterfaces/reservationOrders.ts | 2 +-
.../src/operationsInterfaces/reservations.ts | 2 +-
.../operationsInterfaces/savingsPlanOrders.ts | 2 +-
.../src/operationsInterfaces/savingsPlans.ts | 2 +-
.../src/operationsInterfaces/transactions.ts | 2 +-
.../src/operationsInterfaces/transfers.ts | 2 +-
.../test/billing_operations_test.spec.ts | 17 +-
sdk/billing/arm-billing/test/sampleTest.ts | 47 -----
.../arm-billing/tsconfig.browser.config.json | 17 ++
sdk/billing/arm-billing/tsconfig.json | 40 +---
sdk/billing/arm-billing/tsconfig.samples.json | 10 +
sdk/billing/arm-billing/tsconfig.src.json | 3 +
sdk/billing/arm-billing/tsconfig.test.json | 6 +
.../arm-billing/vitest.browser.config.ts | 17 ++
sdk/billing/arm-billing/vitest.config.ts | 15 ++
sdk/billing/arm-billing/vitest.esm.config.ts | 12 ++
831 files changed, 2142 insertions(+), 2960 deletions(-)
rename sdk/azurestack/arm-azurestack/test/{sampleTest.ts => sampleTest.spec.ts} (85%)
create mode 100644 sdk/azurestack/arm-azurestack/tsconfig.browser.config.json
create mode 100644 sdk/azurestack/arm-azurestack/tsconfig.samples.json
create mode 100644 sdk/azurestack/arm-azurestack/tsconfig.src.json
create mode 100644 sdk/azurestack/arm-azurestack/tsconfig.test.json
create mode 100644 sdk/azurestack/arm-azurestack/vitest.browser.config.ts
create mode 100644 sdk/azurestack/arm-azurestack/vitest.config.ts
create mode 100644 sdk/azurestack/arm-azurestack/vitest.esm.config.ts
create mode 100644 sdk/azurestackhci/arm-azurestackhci/tsconfig.browser.config.json
create mode 100644 sdk/azurestackhci/arm-azurestackhci/tsconfig.samples.json
create mode 100644 sdk/azurestackhci/arm-azurestackhci/tsconfig.src.json
create mode 100644 sdk/azurestackhci/arm-azurestackhci/tsconfig.test.json
create mode 100644 sdk/azurestackhci/arm-azurestackhci/vitest.browser.config.ts
create mode 100644 sdk/azurestackhci/arm-azurestackhci/vitest.config.ts
create mode 100644 sdk/azurestackhci/arm-azurestackhci/vitest.esm.config.ts
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.browser.config.json
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.samples.json
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.src.json
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.test.json
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.browser.config.ts
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.config.ts
create mode 100644 sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.esm.config.ts
rename sdk/batch/arm-batch/test/{batch_examples.ts => batch_examples.spec.ts} (92%)
create mode 100644 sdk/batch/arm-batch/tsconfig.browser.config.json
create mode 100644 sdk/batch/arm-batch/tsconfig.samples.json
create mode 100644 sdk/batch/arm-batch/tsconfig.src.json
create mode 100644 sdk/batch/arm-batch/tsconfig.test.json
create mode 100644 sdk/batch/arm-batch/vitest.browser.config.ts
create mode 100644 sdk/batch/arm-batch/vitest.config.ts
create mode 100644 sdk/batch/arm-batch/vitest.esm.config.ts
delete mode 100644 sdk/billing/arm-billing/test/sampleTest.ts
create mode 100644 sdk/billing/arm-billing/tsconfig.browser.config.json
create mode 100644 sdk/billing/arm-billing/tsconfig.samples.json
create mode 100644 sdk/billing/arm-billing/tsconfig.src.json
create mode 100644 sdk/billing/arm-billing/tsconfig.test.json
create mode 100644 sdk/billing/arm-billing/vitest.browser.config.ts
create mode 100644 sdk/billing/arm-billing/vitest.config.ts
create mode 100644 sdk/billing/arm-billing/vitest.esm.config.ts
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index 5c3335a845ea..3aaa32330a46 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -138,19 +138,19 @@ importers:
version: file:projects/arm-azureadexternalidentities.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-azurestack':
specifier: file:./projects/arm-azurestack.tgz
- version: file:projects/arm-azurestack.tgz
+ version: file:projects/arm-azurestack.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-azurestackhci':
specifier: file:./projects/arm-azurestackhci.tgz
- version: file:projects/arm-azurestackhci.tgz
+ version: file:projects/arm-azurestackhci.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-baremetalinfrastructure':
specifier: file:./projects/arm-baremetalinfrastructure.tgz
- version: file:projects/arm-baremetalinfrastructure.tgz
+ version: file:projects/arm-baremetalinfrastructure.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-batch':
specifier: file:./projects/arm-batch.tgz
- version: file:projects/arm-batch.tgz
+ version: file:projects/arm-batch.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-billing':
specifier: file:./projects/arm-billing.tgz
- version: file:projects/arm-billing.tgz
+ version: file:projects/arm-billing.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-billingbenefits':
specifier: file:./projects/arm-billingbenefits.tgz
version: file:projects/arm-billingbenefits.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))
@@ -2631,23 +2631,23 @@ packages:
version: 0.0.0
'@rush-temp/arm-azurestack@file:projects/arm-azurestack.tgz':
- resolution: {integrity: sha512-i4GdDXeN9agaOWrGtA7jKiRPzujIbdvHowUW74nPkCV+mzHG3oVV//UNIi0qWW2YsnjrTIQ2l4d8jD0Hkk6qog==, tarball: file:projects/arm-azurestack.tgz}
+ resolution: {integrity: sha512-EJBsJteFl0XnsNo7YVZtlZ60+qvzHdki4NwGV9oB/GSpTGm96Z56sTHRKBkax+ochWRGtaQnROFYrooKWrcJpg==, tarball: file:projects/arm-azurestack.tgz}
version: 0.0.0
'@rush-temp/arm-azurestackhci@file:projects/arm-azurestackhci.tgz':
- resolution: {integrity: sha512-+eCjFkQNSkQE+FhgJKVgUaBLNZQehgkl0MSmFOLLXTc0a/pKPqz0qD1g/M2pnzwPVw7UaIwTB1keYd0z87KSzQ==, tarball: file:projects/arm-azurestackhci.tgz}
+ resolution: {integrity: sha512-8CVRoh6m+rO3RCtiy6IpaGoAtAbaZWLVT8BLwE7XQUiyDfi3jNaWnBUbZmKVJ83LomSdYBYXQCr5wnWus1HfiQ==, tarball: file:projects/arm-azurestackhci.tgz}
version: 0.0.0
'@rush-temp/arm-baremetalinfrastructure@file:projects/arm-baremetalinfrastructure.tgz':
- resolution: {integrity: sha512-ECVogeEBV8qOKhSKt0HbGmXpTHc7QEevuNWO8j1qmXnFG2UaJ8Pj+Xpyvk1JxxqNQ06YnxgWlwcnfEvgZeSVcQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz}
+ resolution: {integrity: sha512-e1Uq4wcVQjn7MN+7dJsxfFFGtSxFAVbjSLCQIx9egoEJZ7bejMSU/oErA0TJtaOIFRaN5rLxGhBFLv6a7LFnJQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz}
version: 0.0.0
'@rush-temp/arm-batch@file:projects/arm-batch.tgz':
- resolution: {integrity: sha512-hoilBPbg1zn0QZHbNNpOo/cOlibJ6b10j/3qUyUX9+MXToxYG82ncoLN149qGbxpkaqjQQcpnxAI7ZmPp4NLoQ==, tarball: file:projects/arm-batch.tgz}
+ resolution: {integrity: sha512-ojmUUZIRJJcd7WtFU90Mrz3ThZB7fZlcMLCDFjzS/ZL0tTae7J1XL6KjTfsZJUkGb81etIRqFjOazytPHtK73g==, tarball: file:projects/arm-batch.tgz}
version: 0.0.0
'@rush-temp/arm-billing@file:projects/arm-billing.tgz':
- resolution: {integrity: sha512-rwfFX1uECqzJKcx0ecW7xEqZK2S8Y345lE2lm6Z4N8M44hyhv7wVMDf/VarcyLtTSPNaJqba/4x5wL7NKTU+hg==, tarball: file:projects/arm-billing.tgz}
+ resolution: {integrity: sha512-vptaeXMZQzFieZKSD2Be3qTH+nxFbCwQuHmYkIG+SrNKEnFkijyRrf7sZoO8USOlWZLkiL8p+I5VjgM1+OpcYw==, tarball: file:projects/arm-billing.tgz}
version: 0.0.0
'@rush-temp/arm-billingbenefits@file:projects/arm-billingbenefits.tgz':
@@ -11005,103 +11005,163 @@ snapshots:
- vite
- webdriverio
- '@rush-temp/arm-azurestack@file:projects/arm-azurestack.tgz':
+ '@rush-temp/arm-azurestack@file:projects/arm-azurestack.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-azurestackhci@file:projects/arm-azurestackhci.tgz':
+ '@rush-temp/arm-azurestackhci@file:projects/arm-azurestackhci.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-baremetalinfrastructure@file:projects/arm-baremetalinfrastructure.tgz':
+ '@rush-temp/arm-baremetalinfrastructure@file:projects/arm-baremetalinfrastructure.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-batch@file:projects/arm-batch.tgz':
+ '@rush-temp/arm-batch@file:projects/arm-batch.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-billing@file:projects/arm-billing.tgz':
+ '@rush-temp/arm-billing@file:projects/arm-billing.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-billingbenefits@file:projects/arm-billingbenefits.tgz(msw@2.7.0(@types/node@22.7.9)(typescript@5.7.2))(vite@5.4.11(@types/node@22.7.9))':
dependencies:
diff --git a/sdk/azurestack/arm-azurestack/api-extractor.json b/sdk/azurestack/arm-azurestack/api-extractor.json
index 5a533a7a9294..d3dbc935921b 100644
--- a/sdk/azurestack/arm-azurestack/api-extractor.json
+++ b/sdk/azurestack/arm-azurestack/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-azurestack.d.ts"
+ "publicTrimmedFilePath": "dist/arm-azurestack.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/azurestack/arm-azurestack/package.json b/sdk/azurestack/arm-azurestack/package.json
index dd2426b22fa2..d6bf6105ea14 100644
--- a/sdk/azurestack/arm-azurestack/package.json
+++ b/sdk/azurestack/arm-azurestack/package.json
@@ -22,21 +22,21 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-azurestack.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.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/azurestack/arm-azurestack",
"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",
@@ -86,7 +76,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -106,5 +96,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-azurestack?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",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
}
}
diff --git a/sdk/azurestack/arm-azurestack/src/azureStackManagementClient.ts b/sdk/azurestack/arm-azurestack/src/azureStackManagementClient.ts
index a4fd519ce04b..8c875edfb2cb 100644
--- a/sdk/azurestack/arm-azurestack/src/azureStackManagementClient.ts
+++ b/sdk/azurestack/arm-azurestack/src/azureStackManagementClient.ts
@@ -21,7 +21,7 @@ import {
ProductsImpl,
RegistrationsImpl,
LinkedSubscriptionsImpl
-} from "./operations";
+} from "./operations/index.js";
import {
Operations,
CloudManifestFile,
@@ -29,8 +29,8 @@ import {
Products,
Registrations,
LinkedSubscriptions
-} from "./operationsInterfaces";
-import { AzureStackManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AzureStackManagementClientOptionalParams } from "./models/index.js";
export class AzureStackManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/azurestack/arm-azurestack/src/index.ts b/sdk/azurestack/arm-azurestack/src/index.ts
index 07d97fa841c2..69c927770401 100644
--- a/sdk/azurestack/arm-azurestack/src/index.ts
+++ b/sdk/azurestack/arm-azurestack/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AzureStackManagementClient } from "./azureStackManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AzureStackManagementClient } from "./azureStackManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/azurestack/arm-azurestack/src/models/parameters.ts b/sdk/azurestack/arm-azurestack/src/models/parameters.ts
index d06c11f1e495..765fddb71129 100644
--- a/sdk/azurestack/arm-azurestack/src/models/parameters.ts
+++ b/sdk/azurestack/arm-azurestack/src/models/parameters.ts
@@ -17,7 +17,7 @@ import {
MarketplaceProductLogUpdate as MarketplaceProductLogUpdateMapper,
RegistrationParameter as RegistrationParameterMapper,
LinkedSubscriptionParameter as LinkedSubscriptionParameterMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/azurestack/arm-azurestack/src/operations/cloudManifestFile.ts b/sdk/azurestack/arm-azurestack/src/operations/cloudManifestFile.ts
index 0116975b41b2..b0577956978b 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/cloudManifestFile.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/cloudManifestFile.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudManifestFile } from "../operationsInterfaces";
+import { CloudManifestFile } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
CloudManifestFileListOptionalParams,
CloudManifestFileListResponse,
CloudManifestFileGetOptionalParams,
CloudManifestFileGetResponse
-} from "../models";
+} from "../models/index.js";
/** Class containing CloudManifestFile operations. */
export class CloudManifestFileImpl implements CloudManifestFile {
diff --git a/sdk/azurestack/arm-azurestack/src/operations/customerSubscriptions.ts b/sdk/azurestack/arm-azurestack/src/operations/customerSubscriptions.ts
index f30acc325f7a..ad78425694b7 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/customerSubscriptions.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/customerSubscriptions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { CustomerSubscriptions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { CustomerSubscriptions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
CustomerSubscription,
CustomerSubscriptionsListNextOptionalParams,
@@ -24,7 +24,7 @@ import {
CustomerSubscriptionsCreateOptionalParams,
CustomerSubscriptionsCreateResponse,
CustomerSubscriptionsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing CustomerSubscriptions operations. */
diff --git a/sdk/azurestack/arm-azurestack/src/operations/index.ts b/sdk/azurestack/arm-azurestack/src/operations/index.ts
index a1fbeecf7ca7..06cf38913dff 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/index.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/index.ts
@@ -6,9 +6,9 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./cloudManifestFile";
-export * from "./customerSubscriptions";
-export * from "./products";
-export * from "./registrations";
-export * from "./linkedSubscriptions";
+export * from "./operations.js";
+export * from "./cloudManifestFile.js";
+export * from "./customerSubscriptions.js";
+export * from "./products.js";
+export * from "./registrations.js";
+export * from "./linkedSubscriptions.js";
diff --git a/sdk/azurestack/arm-azurestack/src/operations/linkedSubscriptions.ts b/sdk/azurestack/arm-azurestack/src/operations/linkedSubscriptions.ts
index 70be7e3ef1c2..5f5dab19fe03 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/linkedSubscriptions.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/linkedSubscriptions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { LinkedSubscriptions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { LinkedSubscriptions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
LinkedSubscription,
LinkedSubscriptionsListByResourceGroupNextOptionalParams,
@@ -31,7 +31,7 @@ import {
LinkedSubscriptionsUpdateResponse,
LinkedSubscriptionsListByResourceGroupNextResponse,
LinkedSubscriptionsListBySubscriptionNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing LinkedSubscriptions operations. */
diff --git a/sdk/azurestack/arm-azurestack/src/operations/operations.ts b/sdk/azurestack/arm-azurestack/src/operations/operations.ts
index bdda228fab40..a5ef8304f9d4 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/operations.ts
+++ b/sdk/azurestack/arm-azurestack/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 { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/azurestack/arm-azurestack/src/operations/products.ts b/sdk/azurestack/arm-azurestack/src/operations/products.ts
index 56a1e000395b..c5da6d246589 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/products.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/products.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Products } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Products } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
Product,
ProductsListNextOptionalParams,
@@ -29,7 +29,7 @@ import {
ProductsUploadLogOptionalParams,
ProductsUploadLogResponse,
ProductsListNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Products operations. */
diff --git a/sdk/azurestack/arm-azurestack/src/operations/registrations.ts b/sdk/azurestack/arm-azurestack/src/operations/registrations.ts
index 7487ccb86f74..76576dfcce82 100644
--- a/sdk/azurestack/arm-azurestack/src/operations/registrations.ts
+++ b/sdk/azurestack/arm-azurestack/src/operations/registrations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Registrations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Registrations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackManagementClient } from "../azureStackManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackManagementClient } from "../azureStackManagementClient.js";
import {
Registration,
RegistrationsListNextOptionalParams,
@@ -34,7 +34,7 @@ import {
RegistrationsEnableRemoteManagementOptionalParams,
RegistrationsListNextResponse,
RegistrationsListBySubscriptionNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Registrations operations. */
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/cloudManifestFile.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/cloudManifestFile.ts
index bbe29081bc77..a8ea8b3e63e9 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/cloudManifestFile.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/cloudManifestFile.ts
@@ -11,7 +11,7 @@ import {
CloudManifestFileListResponse,
CloudManifestFileGetOptionalParams,
CloudManifestFileGetResponse
-} from "../models";
+} from "../models/index.js";
/** Interface representing a CloudManifestFile. */
export interface CloudManifestFile {
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/customerSubscriptions.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/customerSubscriptions.ts
index 9746c71eaf90..3842ddb0f91c 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/customerSubscriptions.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/customerSubscriptions.ts
@@ -15,7 +15,7 @@ import {
CustomerSubscriptionsDeleteOptionalParams,
CustomerSubscriptionsCreateOptionalParams,
CustomerSubscriptionsCreateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a CustomerSubscriptions. */
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/index.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/index.ts
index a1fbeecf7ca7..06cf38913dff 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/index.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/index.ts
@@ -6,9 +6,9 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./operations";
-export * from "./cloudManifestFile";
-export * from "./customerSubscriptions";
-export * from "./products";
-export * from "./registrations";
-export * from "./linkedSubscriptions";
+export * from "./operations.js";
+export * from "./cloudManifestFile.js";
+export * from "./customerSubscriptions.js";
+export * from "./products.js";
+export * from "./registrations.js";
+export * from "./linkedSubscriptions.js";
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/linkedSubscriptions.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/linkedSubscriptions.ts
index 9047155c8e8d..3a6f5b3c60a5 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/linkedSubscriptions.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/linkedSubscriptions.ts
@@ -19,7 +19,7 @@ import {
LinkedSubscriptionsCreateOrUpdateResponse,
LinkedSubscriptionsUpdateOptionalParams,
LinkedSubscriptionsUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a LinkedSubscriptions. */
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/operations.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/operations.ts
index 0549c8b282f2..5c881cb45356 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/operations.ts
+++ b/sdk/azurestack/arm-azurestack/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/azurestack/arm-azurestack/src/operationsInterfaces/products.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/products.ts
index b13423f1af26..85843bad028f 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/products.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/products.ts
@@ -20,7 +20,7 @@ import {
ProductsGetProductResponse,
ProductsUploadLogOptionalParams,
ProductsUploadLogResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Products. */
diff --git a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/registrations.ts b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/registrations.ts
index 746b806a27a5..e86d4985410f 100644
--- a/sdk/azurestack/arm-azurestack/src/operationsInterfaces/registrations.ts
+++ b/sdk/azurestack/arm-azurestack/src/operationsInterfaces/registrations.ts
@@ -22,7 +22,7 @@ import {
RegistrationsGetActivationKeyOptionalParams,
RegistrationsGetActivationKeyResponse,
RegistrationsEnableRemoteManagementOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Registrations. */
diff --git a/sdk/azurestack/arm-azurestack/test/sampleTest.ts b/sdk/azurestack/arm-azurestack/test/sampleTest.spec.ts
similarity index 85%
rename from sdk/azurestack/arm-azurestack/test/sampleTest.ts
rename to sdk/azurestack/arm-azurestack/test/sampleTest.spec.ts
index 8ff7deb0acbe..e25d3db273e7 100644
--- a/sdk/azurestack/arm-azurestack/test/sampleTest.ts
+++ b/sdk/azurestack/arm-azurestack/test/sampleTest.spec.ts
@@ -8,11 +8,9 @@
import {
Recorder,
- RecorderStartOptions,
- env
+ RecorderStartOptions
} from "@azure-tools/test-recorder";
-import { assert } from "chai";
-import { Context } from "mocha";
+import { afterEach, beforeEach, describe, it } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -32,8 +30,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);
});
diff --git a/sdk/azurestack/arm-azurestack/tsconfig.browser.config.json b/sdk/azurestack/arm-azurestack/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/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/azurestack/arm-azurestack/tsconfig.json b/sdk/azurestack/arm-azurestack/tsconfig.json
index 6d19a52ae487..19ceb382b521 100644
--- a/sdk/azurestack/arm-azurestack/tsconfig.json
+++ b/sdk/azurestack/arm-azurestack/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-azurestack": [
- "./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/azurestack/arm-azurestack/tsconfig.samples.json b/sdk/azurestack/arm-azurestack/tsconfig.samples.json
new file mode 100644
index 000000000000..897324486112
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-azurestack": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/azurestack/arm-azurestack/tsconfig.src.json b/sdk/azurestack/arm-azurestack/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/azurestack/arm-azurestack/tsconfig.test.json b/sdk/azurestack/arm-azurestack/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
diff --git a/sdk/azurestack/arm-azurestack/vitest.browser.config.ts b/sdk/azurestack/arm-azurestack/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/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/azurestack/arm-azurestack/vitest.config.ts b/sdk/azurestack/arm-azurestack/vitest.config.ts
new file mode 100644
index 000000000000..2a4750c84292
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/vitest.config.ts
@@ -0,0 +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 mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/azurestack/arm-azurestack/vitest.esm.config.ts b/sdk/azurestack/arm-azurestack/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/azurestack/arm-azurestack/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
+);
diff --git a/sdk/azurestackhci/arm-azurestackhci/api-extractor.json b/sdk/azurestackhci/arm-azurestackhci/api-extractor.json
index 99968ce148cc..92265812faee 100644
--- a/sdk/azurestackhci/arm-azurestackhci/api-extractor.json
+++ b/sdk/azurestackhci/arm-azurestackhci/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-azurestackhci.d.ts"
+ "publicTrimmedFilePath": "dist/arm-azurestackhci.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/azurestackhci/arm-azurestackhci/package.json b/sdk/azurestackhci/arm-azurestackhci/package.json
index 980bb8544a19..4026725f97ab 100644
--- a/sdk/azurestackhci/arm-azurestackhci/package.json
+++ b/sdk/azurestackhci/arm-azurestackhci/package.json
@@ -24,23 +24,23 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-azurestackhci.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.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",
@@ -89,7 +79,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -110,5 +100,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-azurestackhci?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",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
}
}
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
index e8eadbc5e57e..44b641358c93 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Add consent time for default extensions and initiate extensions installation
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts
index 643d67f5aacd..d9c3e2adfd79 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateIdentitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create Aad identity for arc settings.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts
index 8afe21e00a5b..b6ecadf0d19d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ArcSetting, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create ArcSetting for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts
index cd6bf4495047..a8a3e69dac7f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete ArcSetting resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts
index dea65a148d03..8813bced3098 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGeneratePasswordSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate password for arc settings.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts
index 87b541e2f3ae..293f6cff95c2 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get ArcSetting resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts
index 33e0326759dd..ebbc3b7384cf 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsInitializeDisableProcessSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Initializes ARC Disable process on the cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts
index eaf77506f760..5080db17fffe 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get ArcSetting resources of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts
index 22711fe4dd4d..e5dbe67b2e28 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/arcSettingsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update ArcSettings for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts
index f3c42d6ebc5a..53b2191dedf8 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersConfigureRemoteSupportSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Configure RemoteSupport on a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts
index a48a07291d10..e21af358cac1 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateIdentitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create cluster identity.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts
index 1250c055985c..239d45f8be72 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Cluster, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts
index f045ee941e5f..d82a09043f1e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts
index b7ab2269d2df..9d695df542c3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersExtendSoftwareAssuranceBenefitSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Extends Software Assurance Benefit to a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts
index 90252091ea88..885c9e322eb2 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts
index 1fcebcbc2349..b7120554bf79 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all HCI clusters in a resource group.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts
index f92df39b1410..f1602c196e4e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all HCI clusters in a subscription.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts
index bf328fd778a4..62d981f9683e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersTriggerLogCollectionSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Trigger Log Collection on a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts
index ae266ace7a7d..9be82a5ae846 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ClusterPatch, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts
index f90ce862f6b4..3e14ae67323f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/clustersUploadCertificateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Upload certificate.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts
index cb919901796f..119e4840d818 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts
index 1eb628c29fee..088479b0c80a 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts
index 7e992bb0321b..418121db5faa 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts
index 630d3e4dac1f..004c78ea880e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/deploymentSettingsListByClustersSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List DeploymentSetting resources by Clusters
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts
index 97b87dd264b9..c47f771d8748 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { HciEdgeDevice, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts
index f04723a13b1a..d0ada2b1676b 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts
index d96e7e9fc23b..5b6f4851e507 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts
index c8b48ede3a69..a5aa108e378a 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List EdgeDevice resources by parent
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts
index ee23402381fa..e779f7a45464 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/edgeDevicesValidateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ValidateRequest, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to A long-running resource action.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts
index dc3094d312ad..59018fcb8884 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Extension, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create Extension for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts
index 1fc1138c52dc..985b6fc5d1d4 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts
index a09fcf3f9b01..3509505fcda9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts
index 01ab3f654efa..7924492fa1e9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsListByArcSettingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Extensions under ArcSetting resource.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts
index 33f188125977..3f359ad89851 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ExtensionPatch, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update Extension for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts
index 6505f35c9abb..718a7e95c702 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/extensionsUpgradeSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Upgrade a particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts
index 55f6acc9673e..8bce22805838 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get Offer resource details within a publisher of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts
index 74e6bd830464..7df6b37cd632 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Offers available across publishers for the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts
index 29a6c6bbdd21..9948e23ec80d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/offersListByPublisherSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Offers available for a publisher within the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts
index c481db3105cf..bdf89548a7a0 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all available Microsoft.AzureStackHCI provider operations
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts
index 6c5d5ebae2b5..5a8101d831e5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get Publisher resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts
index 3e04c91d4b6e..528628d49d5e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/publishersListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Publishers available for the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts
index cb0be689e991..8f5f46f1728e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { SecuritySetting, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a security setting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts
index fd9c339daf2b..d65768f504d3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a SecuritySetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts
index 77cd73eb85d9..7e39d7c18fb7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a SecuritySetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts
index b323f9f95b0e..9afeec9cea28 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/securitySettingsListByClustersSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List SecuritySetting resources by Clusters
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts
index 08dcec3b7646..6c20664cce5c 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get SKU resource details within a offer of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts
index cc3da426291f..c1b7910927c6 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/skusListByOfferSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Skus available for a offer within the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts
index d77aa5429ed6..1760cde05b8d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specified Update Run
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts
index e29761d978b7..4c0d49ab5074 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Update run for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts
index 352adffe507d..ff2477b8ce95 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Update runs for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts
index c2422ca143c6..b41747323aa5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateRunsPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { UpdateRun, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put Update runs for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts
index 02cb12194e55..211f26a3a929 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete Update Summaries
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts
index 25f316579e9d..9eeaf9939129 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts
index 23fa3eb1ecba..70bffd115ce7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts
index 4be4a7eabfeb..0d2fb1b40c76 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updateSummariesPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { UpdateSummaries, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts
index bc02e64d6465..d7e3e6bc7b7f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts
index 17e00b0d9813..5b83c80db65e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts
index 5c3c177dd74b..a034c970de4d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Updates
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts
index ecae658319d6..b7649aaf17c3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPostSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Apply Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts
index 92712fe38afb..7450d030325f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples-dev/updatesPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Update, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
index e8eadbc5e57e..44b641358c93 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsConsentAndInstallDefaultExtensionsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Add consent time for default extensions and initiate extensions installation
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts
index 643d67f5aacd..d9c3e2adfd79 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateIdentitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create Aad identity for arc settings.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts
index 8afe21e00a5b..b6ecadf0d19d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ArcSetting, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create ArcSetting for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts
index cd6bf4495047..a8a3e69dac7f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete ArcSetting resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts
index dea65a148d03..8813bced3098 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGeneratePasswordSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Generate password for arc settings.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts
index 87b541e2f3ae..293f6cff95c2 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get ArcSetting resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts
index 33e0326759dd..ebbc3b7384cf 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsInitializeDisableProcessSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Initializes ARC Disable process on the cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts
index eaf77506f760..5080db17fffe 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get ArcSetting resources of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts
index 22711fe4dd4d..e5dbe67b2e28 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/arcSettingsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update ArcSettings for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts
index f3c42d6ebc5a..53b2191dedf8 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersConfigureRemoteSupportSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Configure RemoteSupport on a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts
index a48a07291d10..e21af358cac1 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateIdentitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create cluster identity.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts
index 1250c055985c..239d45f8be72 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Cluster, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts
index f045ee941e5f..d82a09043f1e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts
index b7ab2269d2df..9d695df542c3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersExtendSoftwareAssuranceBenefitSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Extends Software Assurance Benefit to a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts
index 90252091ea88..885c9e322eb2 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts
index 1fcebcbc2349..b7120554bf79 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all HCI clusters in a resource group.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts
index f92df39b1410..f1602c196e4e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all HCI clusters in a subscription.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts
index bf328fd778a4..62d981f9683e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersTriggerLogCollectionSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Trigger Log Collection on a cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts
index ae266ace7a7d..9be82a5ae846 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ClusterPatch, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update an HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts
index f90ce862f6b4..3e14ae67323f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/clustersUploadCertificateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Upload certificate.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts
index cb919901796f..119e4840d818 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts
index 1eb628c29fee..088479b0c80a 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts
index 7e992bb0321b..418121db5faa 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a DeploymentSetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts
index 630d3e4dac1f..004c78ea880e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/deploymentSettingsListByClustersSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List DeploymentSetting resources by Clusters
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts
index 97b87dd264b9..c47f771d8748 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { HciEdgeDevice, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts
index f04723a13b1a..d0ada2b1676b 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts
index d96e7e9fc23b..5b6f4851e507 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a EdgeDevice
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts
index c8b48ede3a69..a5aa108e378a 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List EdgeDevice resources by parent
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts
index ee23402381fa..e779f7a45464 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/edgeDevicesValidateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ValidateRequest, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to A long-running resource action.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts
index dc3094d312ad..59018fcb8884 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Extension, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create Extension for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts
index 1fc1138c52dc..985b6fc5d1d4 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts
index a09fcf3f9b01..3509505fcda9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts
index 01ab3f654efa..7924492fa1e9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsListByArcSettingSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Extensions under ArcSetting resource.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts
index 33f188125977..3f359ad89851 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ExtensionPatch, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update Extension for HCI cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts
index 6505f35c9abb..718a7e95c702 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/extensionsUpgradeSample.ts
@@ -13,9 +13,7 @@ import {
AzureStackHCIClient,
} from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Upgrade a particular Arc Extension of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts
index 55f6acc9673e..8bce22805838 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get Offer resource details within a publisher of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts
index 74e6bd830464..7df6b37cd632 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Offers available across publishers for the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts
index 29a6c6bbdd21..9948e23ec80d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/offersListByPublisherSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Offers available for a publisher within the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts
index c481db3105cf..bdf89548a7a0 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all available Microsoft.AzureStackHCI provider operations
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts
index 6c5d5ebae2b5..5a8101d831e5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get Publisher resource details of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts
index 3e04c91d4b6e..528628d49d5e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/publishersListByClusterSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Publishers available for the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts
index cb0be689e991..8f5f46f1728e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { SecuritySetting, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create a security setting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts
index fd9c339daf2b..d65768f504d3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete a SecuritySetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts
index 77cd73eb85d9..7e39d7c18fb7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a SecuritySetting
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts
index b323f9f95b0e..9afeec9cea28 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/securitySettingsListByClustersSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List SecuritySetting resources by Clusters
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts
index 08dcec3b7646..6c20664cce5c 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get SKU resource details within a offer of HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts
index cc3da426291f..c1b7910927c6 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/skusListByOfferSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Skus available for a offer within the HCI Cluster.
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts
index d77aa5429ed6..1760cde05b8d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specified Update Run
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts
index e29761d978b7..4c0d49ab5074 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the Update run for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts
index 352adffe507d..ff2477b8ce95 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Update runs for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts
index c2422ca143c6..b41747323aa5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateRunsPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { UpdateRun, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put Update runs for a specified update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts
index 02cb12194e55..211f26a3a929 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete Update Summaries
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts
index 25f316579e9d..9eeaf9939129 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get all Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts
index 23fa3eb1ecba..70bffd115ce7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts
index 4be4a7eabfeb..0d2fb1b40c76 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updateSummariesPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { UpdateSummaries, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put Update summaries under the HCI cluster
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts
index bc02e64d6465..d7e3e6bc7b7f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts
index 17e00b0d9813..5b83c80db65e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts
index 5c3c177dd74b..a034c970de4d 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Updates
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts
index ecae658319d6..b7649aaf17c3 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPostSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Apply Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts
index 92712fe38afb..7450d030325f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/samples/v4-beta/typescript/src/updatesPutSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Update, AzureStackHCIClient } from "@azure/arm-azurestackhci";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Put specified Update
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts
index fb49024f967e..d3a0a4ab7be9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts
@@ -28,7 +28,7 @@ import {
UpdateRunsImpl,
UpdateSummariesOperationsImpl,
UpdatesImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
ArcSettings,
Clusters,
@@ -43,8 +43,8 @@ import {
UpdateRuns,
UpdateSummariesOperations,
Updates,
-} from "./operationsInterfaces";
-import { AzureStackHCIClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { AzureStackHCIClientOptionalParams } from "./models/index.js";
export class AzureStackHCIClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/index.ts
index c2b676fc7b57..2e8835e42147 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/index.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { AzureStackHCIClient } from "./azureStackHCIClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { AzureStackHCIClient } from "./azureStackHCIClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts
index 01bf7cf2b011..b2540e97821f 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts
@@ -30,7 +30,7 @@ import {
UpdateRun as UpdateRunMapper,
UpdateSummaries as UpdateSummariesMapper,
Update as UpdateMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/arcSettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/arcSettings.ts
index c1380736f0ef..e44578a90ee5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/arcSettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/arcSettings.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ArcSettings } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ArcSettings } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ArcSetting,
ArcSettingsListByClusterNextOptionalParams,
@@ -40,7 +40,7 @@ import {
ArcSettingsConsentAndInstallDefaultExtensionsResponse,
ArcSettingsInitializeDisableProcessOptionalParams,
ArcSettingsListByClusterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ArcSettings operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts
index c594254d7249..ea9b33a97524 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Clusters } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Clusters } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Cluster,
ClustersListBySubscriptionNextOptionalParams,
@@ -50,7 +50,7 @@ import {
ClustersConfigureRemoteSupportResponse,
ClustersListBySubscriptionNextResponse,
ClustersListByResourceGroupNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Clusters operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/deploymentSettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/deploymentSettings.ts
index fe661e74b513..8306efa96428 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/deploymentSettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/deploymentSettings.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { DeploymentSettings } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { DeploymentSettings } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
DeploymentSetting,
DeploymentSettingsListByClustersNextOptionalParams,
@@ -31,7 +31,7 @@ import {
DeploymentSettingsDeleteOptionalParams,
DeploymentSettingsDeleteResponse,
DeploymentSettingsListByClustersNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing DeploymentSettings operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts
index c67ed8ff2e5d..154ff1f5e260 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { EdgeDevices } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { EdgeDevices } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
EdgeDeviceUnion,
EdgeDevicesListNextOptionalParams,
@@ -34,7 +34,7 @@ import {
EdgeDevicesValidateOptionalParams,
EdgeDevicesValidateResponse,
EdgeDevicesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing EdgeDevices operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/extensions.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/extensions.ts
index be66f6912786..205fa8e8f3f7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/extensions.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/extensions.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Extensions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Extensions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Extension,
ExtensionsListByArcSettingNextOptionalParams,
@@ -35,7 +35,7 @@ import {
ExtensionUpgradeParameters,
ExtensionsUpgradeOptionalParams,
ExtensionsListByArcSettingNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Extensions operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts
index 78ea1734ec44..f550e62ccd66 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./arcSettings";
-export * from "./clusters";
-export * from "./deploymentSettings";
-export * from "./edgeDevices";
-export * from "./extensions";
-export * from "./offers";
-export * from "./operations";
-export * from "./publishers";
-export * from "./securitySettings";
-export * from "./skus";
-export * from "./updateRuns";
-export * from "./updateSummariesOperations";
-export * from "./updates";
+export * from "./arcSettings.js";
+export * from "./clusters.js";
+export * from "./deploymentSettings.js";
+export * from "./edgeDevices.js";
+export * from "./extensions.js";
+export * from "./offers.js";
+export * from "./operations.js";
+export * from "./publishers.js";
+export * from "./securitySettings.js";
+export * from "./skus.js";
+export * from "./updateRuns.js";
+export * from "./updateSummariesOperations.js";
+export * from "./updates.js";
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/offers.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/offers.ts
index 462e09dd421d..57b6fd2bfb3a 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/offers.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/offers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Offers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Offers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
Offer,
OffersListByPublisherNextOptionalParams,
@@ -25,7 +25,7 @@ import {
OffersGetResponse,
OffersListByPublisherNextResponse,
OffersListByClusterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Offers operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/operations.ts
index 605ed8684c3e..5f53ef211b3e 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/operations.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/operations.ts
@@ -6,15 +6,15 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Operations } from "../operationsInterfaces";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
OperationsListOptionalParams,
OperationsListResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Operations operations. */
export class OperationsImpl implements Operations {
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/publishers.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/publishers.ts
index 2157021f13ac..d4e9753c64e5 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/publishers.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/publishers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Publishers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Publishers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
Publisher,
PublishersListByClusterNextOptionalParams,
@@ -21,7 +21,7 @@ import {
PublishersGetOptionalParams,
PublishersGetResponse,
PublishersListByClusterNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Publishers operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/securitySettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/securitySettings.ts
index 0aff519fece8..d5b8842c8937 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/securitySettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/securitySettings.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { SecuritySettings } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { SecuritySettings } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SecuritySetting,
SecuritySettingsListByClustersNextOptionalParams,
@@ -31,7 +31,7 @@ import {
SecuritySettingsDeleteOptionalParams,
SecuritySettingsDeleteResponse,
SecuritySettingsListByClustersNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing SecuritySettings operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/skus.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/skus.ts
index 46b5419f4918..2f1282e0c9ce 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/skus.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/skus.ts
@@ -7,12 +7,12 @@
*/
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 { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
Sku,
SkusListByOfferNextOptionalParams,
@@ -21,7 +21,7 @@ import {
SkusGetOptionalParams,
SkusGetResponse,
SkusListByOfferNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Skus operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/updateRuns.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/updateRuns.ts
index 81c18476ab2d..0c98aad7f711 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/updateRuns.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/updateRuns.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { UpdateRuns } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { UpdateRuns } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
UpdateRun,
UpdateRunsListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
UpdateRunsGetOptionalParams,
UpdateRunsGetResponse,
UpdateRunsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing UpdateRuns operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/updateSummariesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/updateSummariesOperations.ts
index c9df9f87d3e5..79e334518f51 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/updateSummariesOperations.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/updateSummariesOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { UpdateSummariesOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { UpdateSummariesOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
UpdateSummaries,
UpdateSummariesListNextOptionalParams,
@@ -30,7 +30,7 @@ import {
UpdateSummariesGetOptionalParams,
UpdateSummariesGetResponse,
UpdateSummariesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing UpdateSummariesOperations operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/updates.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/updates.ts
index f395f158ba91..793e3eff6609 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operations/updates.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/updates.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Updates } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Updates } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { AzureStackHCIClient } from "../azureStackHCIClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { AzureStackHCIClient } from "../azureStackHCIClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Update,
UpdatesListNextOptionalParams,
@@ -31,7 +31,7 @@ import {
UpdatesGetOptionalParams,
UpdatesGetResponse,
UpdatesListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Updates operations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/arcSettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/arcSettings.ts
index 4c8902ef9ddd..c219ae32a0f7 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/arcSettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/arcSettings.ts
@@ -26,7 +26,7 @@ import {
ArcSettingsConsentAndInstallDefaultExtensionsOptionalParams,
ArcSettingsConsentAndInstallDefaultExtensionsResponse,
ArcSettingsInitializeDisableProcessOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ArcSettings. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts
index f63139be77db..9fb5cc89f264 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts
@@ -33,7 +33,7 @@ import {
RemoteSupportRequest,
ClustersConfigureRemoteSupportOptionalParams,
ClustersConfigureRemoteSupportResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Clusters. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/deploymentSettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/deploymentSettings.ts
index 97197461c097..7f5cf20f0f4c 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/deploymentSettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/deploymentSettings.ts
@@ -17,7 +17,7 @@ import {
DeploymentSettingsCreateOrUpdateResponse,
DeploymentSettingsDeleteOptionalParams,
DeploymentSettingsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a DeploymentSettings. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts
index dbd09d825610..a3155077ad59 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts
@@ -20,7 +20,7 @@ import {
ValidateRequest,
EdgeDevicesValidateOptionalParams,
EdgeDevicesValidateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a EdgeDevices. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/extensions.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/extensions.ts
index 3c6cd6f2ed76..61f623ad4f44 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/extensions.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/extensions.ts
@@ -21,7 +21,7 @@ import {
ExtensionsDeleteOptionalParams,
ExtensionUpgradeParameters,
ExtensionsUpgradeOptionalParams,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Extensions. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts
index 78ea1734ec44..f550e62ccd66 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./arcSettings";
-export * from "./clusters";
-export * from "./deploymentSettings";
-export * from "./edgeDevices";
-export * from "./extensions";
-export * from "./offers";
-export * from "./operations";
-export * from "./publishers";
-export * from "./securitySettings";
-export * from "./skus";
-export * from "./updateRuns";
-export * from "./updateSummariesOperations";
-export * from "./updates";
+export * from "./arcSettings.js";
+export * from "./clusters.js";
+export * from "./deploymentSettings.js";
+export * from "./edgeDevices.js";
+export * from "./extensions.js";
+export * from "./offers.js";
+export * from "./operations.js";
+export * from "./publishers.js";
+export * from "./securitySettings.js";
+export * from "./skus.js";
+export * from "./updateRuns.js";
+export * from "./updateSummariesOperations.js";
+export * from "./updates.js";
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/offers.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/offers.ts
index d53b3c9f1b22..d696dc39aa83 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/offers.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/offers.ts
@@ -13,7 +13,7 @@ import {
OffersListByClusterOptionalParams,
OffersGetOptionalParams,
OffersGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Offers. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/operations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/operations.ts
index ef57ec81d340..294eec2abfbe 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/operations.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/operations.ts
@@ -9,7 +9,7 @@
import {
OperationsListOptionalParams,
OperationsListResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Operations. */
export interface Operations {
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/publishers.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/publishers.ts
index 9d4c2db98fc5..3cbd258ea5f8 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/publishers.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/publishers.ts
@@ -12,7 +12,7 @@ import {
PublishersListByClusterOptionalParams,
PublishersGetOptionalParams,
PublishersGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Publishers. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/securitySettings.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/securitySettings.ts
index 8665510564ff..a596deda0981 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/securitySettings.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/securitySettings.ts
@@ -17,7 +17,7 @@ import {
SecuritySettingsCreateOrUpdateResponse,
SecuritySettingsDeleteOptionalParams,
SecuritySettingsDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a SecuritySettings. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/skus.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/skus.ts
index 2236e9598cee..ef642318bf70 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/skus.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/skus.ts
@@ -12,7 +12,7 @@ import {
SkusListByOfferOptionalParams,
SkusGetOptionalParams,
SkusGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Skus. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateRuns.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateRuns.ts
index add3b0425147..c9b9b4f54cc0 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateRuns.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateRuns.ts
@@ -16,7 +16,7 @@ import {
UpdateRunsPutResponse,
UpdateRunsGetOptionalParams,
UpdateRunsGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a UpdateRuns. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateSummariesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateSummariesOperations.ts
index 3f2fdc4b8d9a..6888a598ab37 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateSummariesOperations.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updateSummariesOperations.ts
@@ -16,7 +16,7 @@ import {
UpdateSummariesPutResponse,
UpdateSummariesGetOptionalParams,
UpdateSummariesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a UpdateSummariesOperations. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updates.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updates.ts
index 5a18275a6ce0..c2e3fcc613f9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updates.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/updates.ts
@@ -17,7 +17,7 @@ import {
UpdatesPutResponse,
UpdatesGetOptionalParams,
UpdatesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Updates. */
diff --git a/sdk/azurestackhci/arm-azurestackhci/test/azurestackhci_operations_test.spec.ts b/sdk/azurestackhci/arm-azurestackhci/test/azurestackhci_operations_test.spec.ts
index 5980cfc6e849..996618ca81e9 100644
--- a/sdk/azurestackhci/arm-azurestackhci/test/azurestackhci_operations_test.spec.ts
+++ b/sdk/azurestackhci/arm-azurestackhci/test/azurestackhci_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 { AzureStackHCIClient } from "../src/azureStackHCIClient";
+import { AzureStackHCIClient } from "../src/azureStackHCIClient.js";
+import { describe, it, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -41,21 +39,14 @@ describe("AzureStackHCI test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: AzureStackHCIClient;
- let location: string;
- 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
const credential = createTestCredential();
client = new AzureStackHCIClient(credential, subscriptionId, recorder.configureClientOptions({}));
- location = "eastus";
- resourceGroup = "myjstest";
- resourcename = "resourcetest";
-
});
afterEach(async function () {
diff --git a/sdk/azurestackhci/arm-azurestackhci/tsconfig.browser.config.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/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/azurestackhci/arm-azurestackhci/tsconfig.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.json
index ebe661af00c2..19ceb382b521 100644
--- a/sdk/azurestackhci/arm-azurestackhci/tsconfig.json
+++ b/sdk/azurestackhci/arm-azurestackhci/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-azurestackhci": [
- "./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/azurestackhci/arm-azurestackhci/tsconfig.samples.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.samples.json
new file mode 100644
index 000000000000..1a7304a01372
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-azurestackhci": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/azurestackhci/arm-azurestackhci/tsconfig.src.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/azurestackhci/arm-azurestackhci/tsconfig.test.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
diff --git a/sdk/azurestackhci/arm-azurestackhci/vitest.browser.config.ts b/sdk/azurestackhci/arm-azurestackhci/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/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/azurestackhci/arm-azurestackhci/vitest.config.ts b/sdk/azurestackhci/arm-azurestackhci/vitest.config.ts
new file mode 100644
index 000000000000..2a4750c84292
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/vitest.config.ts
@@ -0,0 +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 mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/azurestackhci/arm-azurestackhci/vitest.esm.config.ts b/sdk/azurestackhci/arm-azurestackhci/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/azurestackhci/arm-azurestackhci/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
+);
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/api-extractor.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/api-extractor.json
index d210fb5f2bbf..b458cad2afa8 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/api-extractor.json
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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-baremetalinfrastructure.d.ts"
+ "publicTrimmedFilePath": "dist/arm-baremetalinfrastructure.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/package.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/package.json
index dd591b0a0b18..30b15f0543d1 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/package.json
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/package.json
@@ -24,22 +24,22 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-baremetalinfrastructure.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.d.ts",
"devDependencies": {
- "@azure-tools/test-credential": "^1.0.0",
- "@azure-tools/test-recorder": "^3.0.0",
+ "@azure-tools/test-credential": "^2.0.0",
+ "@azure-tools/test-recorder": "^4.1.0",
+ "@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
- "@types/chai": "^4.2.8",
- "@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
- "chai": "^4.2.0",
+ "@vitest/browser": "^2.1.8",
+ "@vitest/coverage-istanbul": "^2.1.8",
"dotenv": "^16.0.0",
- "mocha": "^11.0.2",
- "ts-node": "^10.0.0",
- "typescript": "~5.7.2"
+ "playwright": "^1.49.1",
+ "typescript": "~5.7.2",
+ "vitest": "^2.1.8"
},
"repository": {
"type": "git",
@@ -49,24 +49,14 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
- "dist/**/*.js",
- "dist/**/*.js.map",
- "dist/**/*.d.ts",
- "dist/**/*.d.ts.map",
- "dist-esm/**/*.js",
- "dist-esm/**/*.js.map",
- "dist-esm/**/*.d.ts",
- "dist-esm/**/*.d.ts.map",
- "src/**/*.ts",
+ "dist/",
"README.md",
"LICENSE",
- "tsconfig.json",
- "review/*",
- "CHANGELOG.md",
- "types/*"
+ "review/",
+ "CHANGELOG.md"
],
"scripts": {
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
"build:browser": "echo skipped",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
@@ -78,7 +68,7 @@
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
- "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
+ "integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
@@ -88,7 +78,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -109,5 +99,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-baremetalinfrastructure?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",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
}
}
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesGetSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesGetSample.ts
index c76a370493e8..3da6ab1b3dda 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesGetSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListByResourceGroupSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListByResourceGroupSample.ts
index e40a04accd72..75dde1c01e34 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListByResourceGroupSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListBySubscriptionSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListBySubscriptionSample.ts
index 79130c2e49e2..86bc94d692a5 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListBySubscriptionSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesRestartSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesRestartSample.ts
index f1e17774cce8..306942b3b5c4 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesRestartSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to restart an Azure Bare Metal Instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesShutdownSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesShutdownSample.ts
index de4fee5bbe2e..fce7d0633177 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesShutdownSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesShutdownSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to shutdown an Azure Bare Metal Instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesStartSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesStartSample.ts
index 7ab0b6e7d953..a8e96d764743 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesStartSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to start an Azure Bare Metal instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesUpdateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesUpdateSample.ts
index 604a39afe693..9ebfbbeef2f2 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesUpdateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalInstancesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesCreateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesCreateSample.ts
index a7a8ce3cd207..3e338320a937 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesCreateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesCreateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create an azure bare metal storage resource.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesDeleteSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesDeleteSample.ts
index b6749f7919a1..e7a267de29c7 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesDeleteSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AzureBareMetalStorageInstance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesGetSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesGetSample.ts
index 5dab9a5149cb..d3882aa2993f 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesGetSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.ts
index baae017af16c..8bea6242234e 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.ts
index 14bed1102687..a5cbef5efc40 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesUpdateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesUpdateSample.ts
index 3c75097518b3..8f59e453e720 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesUpdateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/azureBareMetalStorageInstancesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/operationsListSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/operationsListSample.ts
index 55e666e334ba..16dc1f781263 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/operationsListSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetal management operations.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesGetSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesGetSample.ts
index c76a370493e8..3da6ab1b3dda 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesGetSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
index e40a04accd72..75dde1c01e34 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
index 79130c2e49e2..86bc94d692a5 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesRestartSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesRestartSample.ts
index f1e17774cce8..306942b3b5c4 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesRestartSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesRestartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to restart an Azure Bare Metal Instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesShutdownSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesShutdownSample.ts
index de4fee5bbe2e..fce7d0633177 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesShutdownSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesShutdownSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to shutdown an Azure Bare Metal Instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesStartSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesStartSample.ts
index 7ab0b6e7d953..a8e96d764743 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesStartSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesStartSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The operation to start an Azure Bare Metal instance
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesUpdateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesUpdateSample.ts
index 604a39afe693..9ebfbbeef2f2 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesUpdateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalInstancesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesCreateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesCreateSample.ts
index a7a8ce3cd207..3e338320a937 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesCreateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesCreateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create an azure bare metal storage resource.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesDeleteSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesDeleteSample.ts
index b6749f7919a1..e7a267de29c7 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesDeleteSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Delete an AzureBareMetalStorageInstance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesGetSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesGetSample.ts
index 5dab9a5149cb..d3882aa2993f 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesGetSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListByResourceGroupSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListByResourceGroupSample.ts
index baae017af16c..8bea6242234e 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListByResourceGroupSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetalStorage instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListBySubscriptionSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListBySubscriptionSample.ts
index 14bed1102687..a5cbef5efc40 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListBySubscriptionSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetalStorage instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesUpdateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesUpdateSample.ts
index 3c75097518b3..8f59e453e720 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesUpdateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/azureBareMetalStorageInstancesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches the Tags field of a Azure Bare Metal Storage instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts
index 55e666e334ba..16dc1f781263 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1-beta/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetal management operations.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesGetSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesGetSample.ts
index ff30154ed5f9..852587b9f89b 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesGetSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
index 6c74de6b1c0c..1e05a22e0e3c 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
index 1f0b24204712..72da72278552 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesListBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each Azure BareMetal instance.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesUpdateSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesUpdateSample.ts
index 085a8c12cd48..8e65d83769ee 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesUpdateSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/azureBareMetalInstancesUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BareMetalInfrastructureClient
} from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/operationsListSample.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/operationsListSample.ts
index 89879978cc5e..667e8710555a 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/operationsListSample.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/samples/v1/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BareMetalInfrastructureClient } from "@azure/arm-baremetalinfrastructure";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a list of AzureBareMetal management operations.
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/bareMetalInfrastructureClient.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/bareMetalInfrastructureClient.ts
index fcc0900dac97..5451562f5b2a 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/bareMetalInfrastructureClient.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/bareMetalInfrastructureClient.ts
@@ -18,13 +18,13 @@ import {
AzureBareMetalInstancesImpl,
OperationsImpl,
AzureBareMetalStorageInstancesImpl
-} from "./operations";
+} from "./operations/index.js";
import {
AzureBareMetalInstances,
Operations,
AzureBareMetalStorageInstances
-} from "./operationsInterfaces";
-import { BareMetalInfrastructureClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { BareMetalInfrastructureClientOptionalParams } from "./models/index.js";
export class BareMetalInfrastructureClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/index.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/index.ts
index 66631943617f..20bc8595a98d 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/index.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { BareMetalInfrastructureClient } from "./bareMetalInfrastructureClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/models/parameters.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/models/parameters.ts
index c8d158d60f28..6cc067060c3b 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/models/parameters.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/models/parameters.ts
@@ -15,7 +15,7 @@ import {
ForceState as ForceStateMapper,
Tags as TagsMapper,
AzureBareMetalStorageInstance as AzureBareMetalStorageInstanceMapper
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalInstances.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalInstances.ts
index 70da7fababc5..481970d4c1e8 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalInstances.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalInstances.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AzureBareMetalInstances } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AzureBareMetalInstances } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
AzureBareMetalInstance,
AzureBareMetalInstancesListBySubscriptionNextOptionalParams,
@@ -40,7 +40,7 @@ import {
AzureBareMetalInstancesUpdateResponse,
AzureBareMetalInstancesListBySubscriptionNextResponse,
AzureBareMetalInstancesListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AzureBareMetalInstances operations. */
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalStorageInstances.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalStorageInstances.ts
index 171c5e8f02ff..e05beaecbf3f 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalStorageInstances.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/azureBareMetalStorageInstances.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AzureBareMetalStorageInstances } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AzureBareMetalStorageInstances } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient.js";
import {
AzureBareMetalStorageInstance,
AzureBareMetalStorageInstancesListBySubscriptionNextOptionalParams,
@@ -31,7 +31,7 @@ import {
AzureBareMetalStorageInstancesDeleteOptionalParams,
AzureBareMetalStorageInstancesListBySubscriptionNextResponse,
AzureBareMetalStorageInstancesListByResourceGroupNextResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AzureBareMetalStorageInstances operations. */
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/index.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/index.ts
index 4b5f5d7c1e87..70d8026899c1 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/index.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/index.ts
@@ -6,6 +6,6 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./azureBareMetalInstances";
-export * from "./operations";
-export * from "./azureBareMetalStorageInstances";
+export * from "./azureBareMetalInstances.js";
+export * from "./operations.js";
+export * from "./azureBareMetalStorageInstances.js";
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/operations.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/operations.ts
index d7e3a24d0541..be19b44313ed 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/operations.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operations/operations.ts
@@ -7,16 +7,16 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { Operations } from "../operationsInterfaces";
+import { Operations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BareMetalInfrastructureClient } from "../bareMetalInfrastructureClient.js";
import {
Operation,
OperationsListOptionalParams,
OperationsListResponse
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalInstances.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalInstances.ts
index 8d6b253cd5ba..9af6bab43189 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalInstances.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalInstances.ts
@@ -23,7 +23,7 @@ import {
Tags,
AzureBareMetalInstancesUpdateOptionalParams,
AzureBareMetalInstancesUpdateResponse
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AzureBareMetalInstances. */
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalStorageInstances.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalStorageInstances.ts
index a4724be7e5bd..45ccbf6ce755 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalStorageInstances.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/azureBareMetalStorageInstances.ts
@@ -19,7 +19,7 @@ import {
AzureBareMetalStorageInstancesUpdateOptionalParams,
AzureBareMetalStorageInstancesUpdateResponse,
AzureBareMetalStorageInstancesDeleteOptionalParams
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AzureBareMetalStorageInstances. */
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/index.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/index.ts
index 4b5f5d7c1e87..70d8026899c1 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/index.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/index.ts
@@ -6,6 +6,6 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./azureBareMetalInstances";
-export * from "./operations";
-export * from "./azureBareMetalStorageInstances";
+export * from "./azureBareMetalInstances.js";
+export * from "./operations.js";
+export * from "./azureBareMetalStorageInstances.js";
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/operations.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/operations.ts
index b0bcf412621d..f77c79c625ba 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/src/operationsInterfaces/operations.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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/baremetalinfrastructure/arm-baremetalinfrastructure/test/baremetalinfrastructure_operations_test.spec.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/test/baremetalinfrastructure_operations_test.spec.ts
index 6ef58f1aa88d..d0675431ebbb 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/test/baremetalinfrastructure_operations_test.spec.ts
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/test/baremetalinfrastructure_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 { BareMetalInfrastructureClient } from "../src/bareMetalInfrastructureClient";
+import { BareMetalInfrastructureClient } from "../src/bareMetalInfrastructureClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
AZURE_CLIENT_ID: "azure_client_id",
@@ -41,12 +39,9 @@ describe("baremetalinfrastructure test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: BareMetalInfrastructureClient;
- let location: string;
- 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
@@ -55,10 +50,6 @@ describe("baremetalinfrastructure test", () => {
// endpoint: "https://eastus2euap.management.azure.com/",
// credentialScopes: "https://management.azure.com/.default"
}));
- location = "eastus";
- resourceGroup = "myjstest";
- resourcename = "resourcetest";
-
});
afterEach(async function () {
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.browser.config.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.json
index 3a02f0e14a51..19ceb382b521 100644
--- a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.json
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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-baremetalinfrastructure": [
- "./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/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.samples.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.samples.json
new file mode 100644
index 000000000000..6ced448c9038
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-baremetalinfrastructure": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.src.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.test.json b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.browser.config.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.config.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.config.ts
new file mode 100644
index 000000000000..2a4750c84292
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.config.ts
@@ -0,0 +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 mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.esm.config.ts b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/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
+);
diff --git a/sdk/batch/arm-batch/api-extractor.json b/sdk/batch/arm-batch/api-extractor.json
index d6617ba118c0..ba8aa762eef2 100644
--- a/sdk/batch/arm-batch/api-extractor.json
+++ b/sdk/batch/arm-batch/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-batch.d.ts"
+ "publicTrimmedFilePath": "dist/arm-batch.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/batch/arm-batch/package.json b/sdk/batch/arm-batch/package.json
index 3e3e43430cb4..3ebe69814a2c 100644
--- a/sdk/batch/arm-batch/package.json
+++ b/sdk/batch/arm-batch/package.json
@@ -24,24 +24,24 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-batch.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.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/arm-storage": "^18.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.2.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",
@@ -51,24 +51,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.",
@@ -80,7 +70,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",
@@ -90,7 +80,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -111,5 +101,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-batch?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",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
}
}
diff --git a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts
index 59b74af9a9a0..30cc276251b3 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts
@@ -14,9 +14,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds an application to the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts
index 695920dad939..06c15cfdcd43 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an application.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts
index 4edb18ecff20..31c7b90fca1f 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified application.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts
index c7e80a80cdb8..d5c68f69071c 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the applications in the specified account.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts
index 1311e235e978..2fd5f2fa12e7 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts
index 8534120dbc62..ca63590a3073 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts
index ad424dcfcfeb..0c71b7dfaf7a 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an application package record and its associated binary file.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts
index 23ad2ebcf661..cf43ada96111 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified application package.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts
index 35336369c511..088db0149482 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the application packages in the specified application.
diff --git a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts
index fa6ed6b93715..552535ab2779 100644
--- a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Application, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates settings for the specified application.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts
index e7e61d01c5e3..5381f12b31ae 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts
index 0f38ac8faea6..3cdc719077a8 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts
index 7514c4639286..317e96d2ad27 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts
index 7e32a7f05fe6..a772bf634938 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts
index 8168081e0f46..5d2023a2325c 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts
index b65899f8aca8..bd3586b02a7f 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts
index c2a0acc42028..6629da1a8247 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
index efe61b368e71..3e279329535b 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts
index e0c62e39cae5..8048decfd907 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts
index 26514e232f0e..d39b8138f565 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts
index bf934f055e09..55e67db2a8b6 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts
index 75ce08ed4a0f..be15bba79762 100644
--- a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing Batch account.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts
index e922951534af..67ccd3244f9d 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts
index 4fae60d2115e..ee5b022c0588 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts
index 45210af63585..e174ed8eb543 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts
index 67bca50c728b..30871a58423a 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts
index 8ad35f177c88..1b8b175f3c07 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts
index f0f82615d959..33f9a6ff7c6c 100644
--- a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts
index 374fb01e3e0c..ee2ac5a2cc87 100644
--- a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts
+++ b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
diff --git a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts
index 2bb0477d2de7..9e4a4a24e24e 100644
--- a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts
index 087a6ae9d482..db3b26354920 100644
--- a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
diff --git a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterGetConfigurationSample.ts b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterGetConfigurationSample.ts
index 57302d826d2f..3e34148557d4 100644
--- a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterGetConfigurationSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterGetConfigurationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified NSP configuration.
diff --git a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterListConfigurationsSample.ts b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterListConfigurationsSample.ts
index 42e4f9c039b4..96a23b0b8e3c 100644
--- a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterListConfigurationsSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterListConfigurationsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the NSP configurations in the specified account.
diff --git a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts
index ada3f1858702..707bd550cec9 100644
--- a/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Reconciles the specified NSP configuration.
diff --git a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts
index 4ab6b1faee9c..4ccdb073459d 100644
--- a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
diff --git a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts
index 642c6cfb2042..3a5142fc6239 100644
--- a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
diff --git a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts
index 0d8aa301a699..1492ccf6538f 100644
--- a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified pool.
diff --git a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts
index e7988b7356bf..2461aed60070 100644
--- a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disables automatic scaling for a pool.
diff --git a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts
index a6c64c0b223a..91ba93c8a574 100644
--- a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified pool.
diff --git a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts
index c1291c85887f..200d7e6d8b3c 100644
--- a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the pools in the specified account.
diff --git a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts
index 8e3c9f5362fc..9e8aa37bafd4 100644
--- a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
diff --git a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts
index 10f72e92dfeb..f5ebc10b1d1b 100644
--- a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing pool.
diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts
index 7506e1fb4233..07aa384b1260 100644
--- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts
index 4836386afe9a..14aedd788381 100644
--- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts
index c28c4f171f69..449bf858e524 100644
--- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the private endpoint connections in the specified account.
diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts
index 9a61d990c6df..6cffb39712d5 100644
--- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts
index 2c2175c87699..60e9716f6b2f 100644
--- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified private link resource.
diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts
index 981160259053..93e8e8db051e 100644
--- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the private link resources in the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationCreateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationCreateSample.ts
index 59b74af9a9a0..30cc276251b3 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationCreateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationCreateSample.ts
@@ -14,9 +14,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds an application to the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationDeleteSample.ts
index 695920dad939..06c15cfdcd43 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an application.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationGetSample.ts
index 4edb18ecff20..31c7b90fca1f 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified application.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationListSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationListSample.ts
index c7e80a80cdb8..d5c68f69071c 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationListSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the applications in the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageActivateSample.ts
index 1311e235e978..2fd5f2fa12e7 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageActivateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageActivateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageCreateSample.ts
index 8534120dbc62..ca63590a3073 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageCreateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageDeleteSample.ts
index ad424dcfcfeb..0c71b7dfaf7a 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an application package record and its associated binary file.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageGetSample.ts
index 23ad2ebcf661..cf43ada96111 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified application package.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageListSample.ts
index 35336369c511..088db0149482 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageListSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationPackageListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the application packages in the specified application.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationUpdateSample.ts
index fa6ed6b93715..552535ab2779 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/applicationUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/applicationUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Application, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates settings for the specified application.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountCreateSample.ts
index e7e61d01c5e3..5381f12b31ae 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountCreateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountCreateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountDeleteSample.ts
index 0f38ac8faea6..3cdc719077a8 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetDetectorSample.ts
index 7514c4639286..317e96d2ad27 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetDetectorSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetDetectorSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the given detector for a given Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetKeysSample.ts
index 7e32a7f05fe6..a772bf634938 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetKeysSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetSample.ts
index 8168081e0f46..5d2023a2325c 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListByResourceGroupSample.ts
index b65899f8aca8..bd3586b02a7f 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListByResourceGroupSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListByResourceGroupSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListDetectorsSample.ts
index c2a0acc42028..6629da1a8247 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListDetectorsSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListDetectorsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the detectors available for a given Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
index efe61b368e71..3e279329535b 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListSample.ts
index e0c62e39cae5..8048decfd907 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountRegenerateKeySample.ts
index 26514e232f0e..d39b8138f565 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountRegenerateKeySample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountRegenerateKeySample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts
index bf934f055e09..55e67db2a8b6 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountUpdateSample.ts
index 75ce08ed4a0f..be15bba79762 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/batchAccountUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing Batch account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCancelDeletionSample.ts
index e922951534af..67ccd3244f9d 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCancelDeletionSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCancelDeletionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCreateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCreateSample.ts
index 4fae60d2115e..ee5b022c0588 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCreateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateCreateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateDeleteSample.ts
index 45210af63585..e174ed8eb543 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateGetSample.ts
index 67bca50c728b..30871a58423a 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateListByBatchAccountSample.ts
index 8ad35f177c88..1b8b175f3c07 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateListByBatchAccountSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateUpdateSample.ts
index f0f82615d959..33f9a6ff7c6c 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/certificateUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/certificateUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/locationCheckNameAvailabilitySample.ts
index 374fb01e3e0c..ee2ac5a2cc87 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/locationCheckNameAvailabilitySample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/locationCheckNameAvailabilitySample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/locationGetQuotasSample.ts
index 2bb0477d2de7..9e4a4a24e24e 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/locationGetQuotasSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/locationGetQuotasSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/locationListSupportedVirtualMachineSkusSample.ts
index 087a6ae9d482..db3b26354920 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/locationListSupportedVirtualMachineSkusSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/locationListSupportedVirtualMachineSkusSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterGetConfigurationSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterGetConfigurationSample.ts
index 57302d826d2f..3e34148557d4 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterGetConfigurationSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterGetConfigurationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified NSP configuration.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterListConfigurationsSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterListConfigurationsSample.ts
index 42e4f9c039b4..96a23b0b8e3c 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterListConfigurationsSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterListConfigurationsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the NSP configurations in the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterReconcileConfigurationSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterReconcileConfigurationSample.ts
index ada3f1858702..707bd550cec9 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterReconcileConfigurationSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/networkSecurityPerimeterReconcileConfigurationSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Reconciles the specified NSP configuration.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/operationsListSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/operationsListSample.ts
index 4ab6b1faee9c..4ccdb073459d 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/operationsListSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolCreateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolCreateSample.ts
index 642c6cfb2042..3a5142fc6239 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolCreateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolCreateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates a new pool inside the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolDeleteSample.ts
index 0d8aa301a699..1492ccf6538f 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified pool.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolDisableAutoScaleSample.ts
index e7988b7356bf..2461aed60070 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolDisableAutoScaleSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolDisableAutoScaleSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Disables automatic scaling for a pool.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolGetSample.ts
index a6c64c0b223a..91ba93c8a574 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified pool.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolListByBatchAccountSample.ts
index c1291c85887f..200d7e6d8b3c 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolListByBatchAccountSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the pools in the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolStopResizeSample.ts
index 8e3c9f5362fc..9e8aa37bafd4 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolStopResizeSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolStopResizeSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/poolUpdateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/poolUpdateSample.ts
index 10f72e92dfeb..f5ebc10b1d1b 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/poolUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/poolUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Pool, BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing pool.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionDeleteSample.ts
index 7506e1fb4233..07aa384b1260 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionDeleteSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes the specified private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionGetSample.ts
index 4836386afe9a..14aedd788381 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts
index c28c4f171f69..449bf858e524 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the private endpoint connections in the specified account.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionUpdateSample.ts
index 9a61d990c6df..6cffb39712d5 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionUpdateSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateEndpointConnectionUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BatchManagementClient,
} from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of an existing private endpoint connection.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceGetSample.ts
index 2c2175c87699..60e9716f6b2f 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceGetSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets information about the specified private link resource.
diff --git a/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceListByBatchAccountSample.ts
index 981160259053..93e8e8db051e 100644
--- a/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceListByBatchAccountSample.ts
+++ b/sdk/batch/arm-batch/samples/v10/typescript/src/privateLinkResourceListByBatchAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BatchManagementClient } from "@azure/arm-batch";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists all of the private link resources in the specified account.
diff --git a/sdk/batch/arm-batch/src/batchManagementClient.ts b/sdk/batch/arm-batch/src/batchManagementClient.ts
index 073803941523..93f391b27d59 100644
--- a/sdk/batch/arm-batch/src/batchManagementClient.ts
+++ b/sdk/batch/arm-batch/src/batchManagementClient.ts
@@ -25,7 +25,7 @@ import {
PrivateEndpointConnectionOperationsImpl,
PoolOperationsImpl,
NetworkSecurityPerimeterOperationsImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
BatchAccountOperations,
ApplicationPackageOperations,
@@ -37,8 +37,8 @@ import {
PrivateEndpointConnectionOperations,
PoolOperations,
NetworkSecurityPerimeterOperations,
-} from "./operationsInterfaces";
-import { BatchManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { BatchManagementClientOptionalParams } from "./models/index.js";
export class BatchManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/batch/arm-batch/src/index.ts b/sdk/batch/arm-batch/src/index.ts
index cd1b671b16cf..05bc29a213b6 100644
--- a/sdk/batch/arm-batch/src/index.ts
+++ b/sdk/batch/arm-batch/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { BatchManagementClient } from "./batchManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { BatchManagementClient } from "./batchManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/batch/arm-batch/src/models/parameters.ts b/sdk/batch/arm-batch/src/models/parameters.ts
index 188c8f43c319..b75f773b4ff5 100644
--- a/sdk/batch/arm-batch/src/models/parameters.ts
+++ b/sdk/batch/arm-batch/src/models/parameters.ts
@@ -22,7 +22,7 @@ import {
CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper,
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
Pool as PoolMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const contentType: OperationParameter = {
parameterPath: ["options", "contentType"],
diff --git a/sdk/batch/arm-batch/src/operations/applicationOperations.ts b/sdk/batch/arm-batch/src/operations/applicationOperations.ts
index 7746f9c21924..8d5c419aba5c 100644
--- a/sdk/batch/arm-batch/src/operations/applicationOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/applicationOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApplicationOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApplicationOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
Application,
ApplicationListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
ApplicationUpdateOptionalParams,
ApplicationUpdateResponse,
ApplicationListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApplicationOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts
index 414725719472..21cc4dc4721d 100644
--- a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ApplicationPackageOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ApplicationPackageOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
ApplicationPackage,
ApplicationPackageListNextOptionalParams,
@@ -27,7 +27,7 @@ import {
ApplicationPackageGetOptionalParams,
ApplicationPackageGetResponse,
ApplicationPackageListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ApplicationPackageOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts
index f20ea46f8698..3c248e097b7c 100644
--- a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BatchAccountOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BatchAccountOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BatchAccount,
BatchAccountListNextOptionalParams,
@@ -56,7 +56,7 @@ import {
BatchAccountListByResourceGroupNextResponse,
BatchAccountListDetectorsNextResponse,
BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BatchAccountOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/certificateOperations.ts b/sdk/batch/arm-batch/src/operations/certificateOperations.ts
index 476b5ff3a10e..cfbfd9f60aa8 100644
--- a/sdk/batch/arm-batch/src/operations/certificateOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/certificateOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { CertificateOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { CertificateOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Certificate,
CertificateListByBatchAccountNextOptionalParams,
@@ -35,7 +35,7 @@ import {
CertificateCancelDeletionOptionalParams,
CertificateCancelDeletionResponse,
CertificateListByBatchAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing CertificateOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/index.ts b/sdk/batch/arm-batch/src/operations/index.ts
index 8f66d1328fc5..1ed08c05a609 100644
--- a/sdk/batch/arm-batch/src/operations/index.ts
+++ b/sdk/batch/arm-batch/src/operations/index.ts
@@ -6,13 +6,13 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./batchAccountOperations";
-export * from "./applicationPackageOperations";
-export * from "./applicationOperations";
-export * from "./location";
-export * from "./operations";
-export * from "./certificateOperations";
-export * from "./privateLinkResourceOperations";
-export * from "./privateEndpointConnectionOperations";
-export * from "./poolOperations";
-export * from "./networkSecurityPerimeterOperations";
+export * from "./batchAccountOperations.js";
+export * from "./applicationPackageOperations.js";
+export * from "./applicationOperations.js";
+export * from "./location.js";
+export * from "./operations.js";
+export * from "./certificateOperations.js";
+export * from "./privateLinkResourceOperations.js";
+export * from "./privateEndpointConnectionOperations.js";
+export * from "./poolOperations.js";
+export * from "./networkSecurityPerimeterOperations.js";
diff --git a/sdk/batch/arm-batch/src/operations/location.ts b/sdk/batch/arm-batch/src/operations/location.ts
index cdd41cc0d268..b5e52f1f63a4 100644
--- a/sdk/batch/arm-batch/src/operations/location.ts
+++ b/sdk/batch/arm-batch/src/operations/location.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Location } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Location } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SupportedSku,
LocationListSupportedVirtualMachineSkusNextOptionalParams,
@@ -24,7 +24,7 @@ import {
LocationCheckNameAvailabilityOptionalParams,
LocationCheckNameAvailabilityResponse,
LocationListSupportedVirtualMachineSkusNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Location operations. */
diff --git a/sdk/batch/arm-batch/src/operations/networkSecurityPerimeterOperations.ts b/sdk/batch/arm-batch/src/operations/networkSecurityPerimeterOperations.ts
index 099153f5e79f..8701db592a2a 100644
--- a/sdk/batch/arm-batch/src/operations/networkSecurityPerimeterOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/networkSecurityPerimeterOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { NetworkSecurityPerimeterOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { NetworkSecurityPerimeterOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
NetworkSecurityPerimeterConfiguration,
NetworkSecurityPerimeterListConfigurationsNextOptionalParams,
@@ -29,7 +29,7 @@ import {
NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
NetworkSecurityPerimeterReconcileConfigurationResponse,
NetworkSecurityPerimeterListConfigurationsNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing NetworkSecurityPerimeterOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/operations.ts b/sdk/batch/arm-batch/src/operations/operations.ts
index a52f58db23c0..e88bbde3a59d 100644
--- a/sdk/batch/arm-batch/src/operations/operations.ts
+++ b/sdk/batch/arm-batch/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 { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/poolOperations.ts b/sdk/batch/arm-batch/src/operations/poolOperations.ts
index f86c261cf03d..642c6acb2fdb 100644
--- a/sdk/batch/arm-batch/src/operations/poolOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/poolOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PoolOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PoolOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Pool,
PoolListByBatchAccountNextOptionalParams,
@@ -36,7 +36,7 @@ import {
PoolStopResizeOptionalParams,
PoolStopResizeResponse,
PoolListByBatchAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PoolOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts
index fa382ce0dd81..961e65d8c27d 100644
--- a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PrivateEndpointConnectionOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PrivateEndpointConnectionOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
PrivateEndpointConnection,
PrivateEndpointConnectionListByBatchAccountNextOptionalParams,
@@ -31,7 +31,7 @@ import {
PrivateEndpointConnectionDeleteOptionalParams,
PrivateEndpointConnectionDeleteResponse,
PrivateEndpointConnectionListByBatchAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateEndpointConnectionOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts
index d623320f73d5..b373e1ee06e9 100644
--- a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts
+++ b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PrivateLinkResourceOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PrivateLinkResourceOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BatchManagementClient } from "../batchManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BatchManagementClient } from "../batchManagementClient.js";
import {
PrivateLinkResource,
PrivateLinkResourceListByBatchAccountNextOptionalParams,
@@ -21,7 +21,7 @@ import {
PrivateLinkResourceGetOptionalParams,
PrivateLinkResourceGetResponse,
PrivateLinkResourceListByBatchAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PrivateLinkResourceOperations operations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts
index 54afaa1c9773..f8269b94d074 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts
@@ -17,7 +17,7 @@ import {
ApplicationGetResponse,
ApplicationUpdateOptionalParams,
ApplicationUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApplicationOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts
index 51b1989f82d0..7081407b27db 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts
@@ -18,7 +18,7 @@ import {
ApplicationPackageDeleteOptionalParams,
ApplicationPackageGetOptionalParams,
ApplicationPackageGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ApplicationPackageOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts
index 51b0b03865a8..db0823dbf886 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts
@@ -33,7 +33,7 @@ import {
BatchAccountGetKeysResponse,
BatchAccountGetDetectorOptionalParams,
BatchAccountGetDetectorResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BatchAccountOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts
index a4bc93abed5f..87b0a0f7feef 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts
@@ -21,7 +21,7 @@ import {
CertificateGetResponse,
CertificateCancelDeletionOptionalParams,
CertificateCancelDeletionResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a CertificateOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/index.ts b/sdk/batch/arm-batch/src/operationsInterfaces/index.ts
index 8f66d1328fc5..1ed08c05a609 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/index.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/index.ts
@@ -6,13 +6,13 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./batchAccountOperations";
-export * from "./applicationPackageOperations";
-export * from "./applicationOperations";
-export * from "./location";
-export * from "./operations";
-export * from "./certificateOperations";
-export * from "./privateLinkResourceOperations";
-export * from "./privateEndpointConnectionOperations";
-export * from "./poolOperations";
-export * from "./networkSecurityPerimeterOperations";
+export * from "./batchAccountOperations.js";
+export * from "./applicationPackageOperations.js";
+export * from "./applicationOperations.js";
+export * from "./location.js";
+export * from "./operations.js";
+export * from "./certificateOperations.js";
+export * from "./privateLinkResourceOperations.js";
+export * from "./privateEndpointConnectionOperations.js";
+export * from "./poolOperations.js";
+export * from "./networkSecurityPerimeterOperations.js";
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts
index f185f74c1156..2f1a08d65b97 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts
@@ -15,7 +15,7 @@ import {
CheckNameAvailabilityParameters,
LocationCheckNameAvailabilityOptionalParams,
LocationCheckNameAvailabilityResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Location. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/networkSecurityPerimeterOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/networkSecurityPerimeterOperations.ts
index 354cbfef6c32..8d4622eb51d9 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/networkSecurityPerimeterOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/networkSecurityPerimeterOperations.ts
@@ -15,7 +15,7 @@ import {
NetworkSecurityPerimeterGetConfigurationResponse,
NetworkSecurityPerimeterReconcileConfigurationOptionalParams,
NetworkSecurityPerimeterReconcileConfigurationResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a NetworkSecurityPerimeterOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts
index e0110fed929d..dd7dca3cac17 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts
+++ b/sdk/batch/arm-batch/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/batch/arm-batch/src/operationsInterfaces/poolOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts
index 39c49e4cab1a..2da186f6bc5d 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts
@@ -22,7 +22,7 @@ import {
PoolDisableAutoScaleResponse,
PoolStopResizeOptionalParams,
PoolStopResizeResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PoolOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts
index 5edc5ba3ade6..81241a55fd56 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts
@@ -17,7 +17,7 @@ import {
PrivateEndpointConnectionUpdateResponse,
PrivateEndpointConnectionDeleteOptionalParams,
PrivateEndpointConnectionDeleteResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateEndpointConnectionOperations. */
diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts
index 75252ea84733..ec9d2c203f11 100644
--- a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts
+++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts
@@ -12,7 +12,7 @@ import {
PrivateLinkResourceListByBatchAccountOptionalParams,
PrivateLinkResourceGetOptionalParams,
PrivateLinkResourceGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PrivateLinkResourceOperations. */
diff --git a/sdk/batch/arm-batch/test/batch_examples.ts b/sdk/batch/arm-batch/test/batch_examples.spec.ts
similarity index 92%
rename from sdk/batch/arm-batch/test/batch_examples.ts
rename to sdk/batch/arm-batch/test/batch_examples.spec.ts
index 6a02ecd7607f..b5053b601cba 100644
--- a/sdk/batch/arm-batch/test/batch_examples.ts
+++ b/sdk/batch/arm-batch/test/batch_examples.spec.ts
@@ -10,15 +10,13 @@ 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 { BatchManagementClient } from "../src/batchManagementClient";
-import { fakeTestPasswordPlaceholder, fakeTestCertData } from "./fakeTestSecrets";
+import { BatchManagementClient } from "../src/batchManagementClient.js";
+import { fakeTestPasswordPlaceholder, fakeTestCertData } from "./fakeTestSecrets.js";
import { StorageManagementClient, StorageAccountCreateParameters } from "@azure/arm-storage";
+import { afterEach, assert, beforeEach, describe, it } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "azure_subscription_id"
@@ -64,8 +62,8 @@ describe("Batch test", () => {
let certificateName: string;
let poolName: 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
@@ -110,7 +108,7 @@ describe("Batch test", () => {
key2: "value2",
}
}
- const res = await storage_client.storageAccounts.beginCreateAndWait(resourceGroup, storageaccountName, parameter, testPollingOptions);
+ await storage_client.storageAccounts.beginCreateAndWait(resourceGroup, storageaccountName, parameter, testPollingOptions);
};
it("batchAccountOperations create test", async function () {
@@ -299,7 +297,7 @@ describe("Batch test", () => {
});
it("poolOperations delete test", async function () {
- const res = await client.poolOperations.beginDeleteAndWait(resourceGroup, accountName, poolName, testPollingOptions);
+ await client.poolOperations.beginDeleteAndWait(resourceGroup, accountName, poolName, testPollingOptions);
const resArray = new Array();
for await (let item of client.poolOperations.listByBatchAccount(resourceGroup, accountName)) {
resArray.push(item);
@@ -308,7 +306,7 @@ describe("Batch test", () => {
});
it("certificateOperations delete test", async function () {
- const res = await client.certificateOperations.beginDeleteAndWait(resourceGroup, accountName, certificateName, testPollingOptions);
+ await client.certificateOperations.beginDeleteAndWait(resourceGroup, accountName, certificateName, testPollingOptions);
const resArray = new Array();
for await (let item of client.certificateOperations.listByBatchAccount(resourceGroup, accountName)) {
resArray.push(item);
@@ -317,7 +315,7 @@ describe("Batch test", () => {
});
it("applicationOperations delete test", async function () {
- const res = await client.applicationOperations.delete(resourceGroup, accountName, applicationName);
+ await client.applicationOperations.delete(resourceGroup, accountName, applicationName);
const resArray = new Array();
for await (let item of client.applicationOperations.list(resourceGroup, accountName)) {
resArray.push(item);
@@ -326,12 +324,12 @@ describe("Batch test", () => {
});
it("batchAccountOperations delete test", async function () {
- const res = await client.batchAccountOperations.beginDeleteAndWait(resourceGroup, accountName, testPollingOptions);
+ await client.batchAccountOperations.beginDeleteAndWait(resourceGroup, accountName, testPollingOptions);
const resArray = new Array();
for await (let item of client.batchAccountOperations.list()) {
resArray.push(item);
}
assert.equal(resArray.length, 0);
- const res1 = await storage_client.storageAccounts.delete(resourceGroup, storageaccountName);
+ await storage_client.storageAccounts.delete(resourceGroup, storageaccountName);
});
});
diff --git a/sdk/batch/arm-batch/tsconfig.browser.config.json b/sdk/batch/arm-batch/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/batch/arm-batch/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/batch/arm-batch/tsconfig.json b/sdk/batch/arm-batch/tsconfig.json
index 0e82052bd8fa..19ceb382b521 100644
--- a/sdk/batch/arm-batch/tsconfig.json
+++ b/sdk/batch/arm-batch/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-batch": [
- "./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/batch/arm-batch/tsconfig.samples.json b/sdk/batch/arm-batch/tsconfig.samples.json
new file mode 100644
index 000000000000..8cc8f319ac29
--- /dev/null
+++ b/sdk/batch/arm-batch/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-batch": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/batch/arm-batch/tsconfig.src.json b/sdk/batch/arm-batch/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/batch/arm-batch/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/batch/arm-batch/tsconfig.test.json b/sdk/batch/arm-batch/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/batch/arm-batch/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
diff --git a/sdk/batch/arm-batch/vitest.browser.config.ts b/sdk/batch/arm-batch/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/batch/arm-batch/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/batch/arm-batch/vitest.config.ts b/sdk/batch/arm-batch/vitest.config.ts
new file mode 100644
index 000000000000..2a4750c84292
--- /dev/null
+++ b/sdk/batch/arm-batch/vitest.config.ts
@@ -0,0 +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 mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/batch/arm-batch/vitest.esm.config.ts b/sdk/batch/arm-batch/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/batch/arm-batch/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
+);
diff --git a/sdk/billing/arm-billing/api-extractor.json b/sdk/billing/arm-billing/api-extractor.json
index eb563b1c2f58..5d503cf6952c 100644
--- a/sdk/billing/arm-billing/api-extractor.json
+++ b/sdk/billing/arm-billing/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-billing.d.ts"
+ "publicTrimmedFilePath": "dist/arm-billing.d.ts"
},
"messages": {
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/sdk/billing/arm-billing/package.json b/sdk/billing/arm-billing/package.json
index 65cb6985108d..be1bac1c5506 100644
--- a/sdk/billing/arm-billing/package.json
+++ b/sdk/billing/arm-billing/package.json
@@ -24,23 +24,23 @@
"isomorphic"
],
"license": "MIT",
- "main": "./dist/index.js",
- "module": "./dist-esm/src/index.js",
- "types": "./types/arm-billing.d.ts",
+ "main": "./dist/commonjs/index.js",
+ "module": "./dist/esm/index.js",
+ "types": "./dist/commonjs/index.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.2.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",
@@ -89,7 +79,7 @@
"test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
- "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:node": "dev-tool run test:vitest",
"update-snippets": "echo skipped"
},
"sideEffects": false,
@@ -110,5 +100,45 @@
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-billing?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",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "browser": {
+ "types": "./dist/browser/index.d.ts",
+ "default": "./dist/browser/index.js"
+ },
+ "react-native": {
+ "types": "./dist/react-native/index.d.ts",
+ "default": "./dist/react-native/index.js"
+ },
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
}
}
diff --git a/sdk/billing/arm-billing/samples-dev/addressValidateSample.ts b/sdk/billing/arm-billing/samples-dev/addressValidateSample.ts
index a7fcdaee3ade..87c47e8adf49 100644
--- a/sdk/billing/arm-billing/samples-dev/addressValidateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/addressValidateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AddressDetails, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.
diff --git a/sdk/billing/arm-billing/samples-dev/agreementsGetSample.ts b/sdk/billing/arm-billing/samples-dev/agreementsGetSample.ts
index 4bc72afb1a3f..28addb912892 100644
--- a/sdk/billing/arm-billing/samples-dev/agreementsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/agreementsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an agreement by ID.
diff --git a/sdk/billing/arm-billing/samples-dev/agreementsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/agreementsListByBillingAccountSample.ts
index 8c2616a5d341..d9fd82900479 100644
--- a/sdk/billing/arm-billing/samples-dev/agreementsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/agreementsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the agreements for a billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/associatedTenantsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/associatedTenantsCreateOrUpdateSample.ts
index 5e472e7264ca..3af35c1c5d38 100644
--- a/sdk/billing/arm-billing/samples-dev/associatedTenantsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/associatedTenantsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AssociatedTenant, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an associated tenant for the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/associatedTenantsDeleteSample.ts b/sdk/billing/arm-billing/samples-dev/associatedTenantsDeleteSample.ts
index 7ea79852d50e..3a9d00f1db93 100644
--- a/sdk/billing/arm-billing/samples-dev/associatedTenantsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/associatedTenantsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an associated tenant for a billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/associatedTenantsGetSample.ts b/sdk/billing/arm-billing/samples-dev/associatedTenantsGetSample.ts
index ba8048a2b301..8541e886f2f8 100644
--- a/sdk/billing/arm-billing/samples-dev/associatedTenantsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/associatedTenantsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an associated tenant by ID.
diff --git a/sdk/billing/arm-billing/samples-dev/associatedTenantsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/associatedTenantsListByBillingAccountSample.ts
index ea933921e919..36e66b9b1e04 100644
--- a/sdk/billing/arm-billing/samples-dev/associatedTenantsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/associatedTenantsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.
diff --git a/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingAccountSample.ts
index 06bd9aa2fc58..72725b4d1030 100644
--- a/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The Available Credit or Payment on Account Balance for a billing account. The credit balance can be used to settle due or past due invoices and is supported for billing accounts with agreement type Microsoft Customer Agreement. The payment on account balance is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Online Services Program.
diff --git a/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingProfileSample.ts
index 86b75a1c3b96..bbcc0270a130 100644
--- a/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/availableBalancesGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The Available Credit or Payment on Account Balance for a billing profile. The credit balance can be used to settle due or past due invoices and is supported for billing accounts with agreement type Microsoft Customer Agreement. The payment on account balance is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsAddPaymentTermsSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsAddPaymentTermsSample.ts
index 04d666172963..1d554c234cf3 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsAddPaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsAddPaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PaymentTerm, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsCancelPaymentTermsSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsCancelPaymentTermsSample.ts
index 44cf645955ba..a0632ef99e39 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsCancelPaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsCancelPaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsConfirmTransitionSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsConfirmTransitionSample.ts
index 90ae8eeaf536..28b54f3ac067 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsConfirmTransitionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsConfirmTransitionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsGetSample.ts
index 049f8ea3eda2..481d3cb207c8 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing account by its ID.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
index e74124e19809..6ee44f9e32fc 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsListSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsListSample.ts
index e68b46daed1a..283722378c1a 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsListSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsListSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing accounts that a user has access to.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsUpdateSample.ts
index 7eecd8edd93a..89c420b82a50 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingAccountsValidatePaymentTermsSample.ts b/sdk/billing/arm-billing/samples-dev/billingAccountsValidatePaymentTermsSample.ts
index 3cbf3ca9be37..0bcbb8f130cf 100644
--- a/sdk/billing/arm-billing/samples-dev/billingAccountsValidatePaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingAccountsValidatePaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PaymentTerm, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingAccountSample.ts
index 511a516950bc..0b4b93ef23b4 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingProfileSample.ts
index dd697f0a896b..b00652dde1d9 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a billing profile.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByCustomerSample.ts
index 5c4935a3b925..61d134aea2e8 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a customer.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByDepartmentSample.ts
index 269641df9f54..a3f52a1aec3e 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByDepartmentSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a department.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
index 945abfc76c12..d518dc7ef931 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for an enrollment account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByInvoiceSectionSample.ts
index c4b87d49819f..bd7d05be112c 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsCheckAccessByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for an invoice section.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingAccountSample.ts
index f414fe38902f..e0fb5ab75a53 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has on a billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingProfileSample.ts
index fc8b76061da2..3e9d665efacf 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has on a billing profile.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerAtBillingAccountSample.ts
index 857fef954195..7e17d80ecd1b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a customer at billing account level.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerSample.ts
index 7268ce0ea0cf..116abc557b66 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a customer.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByDepartmentSample.ts
index 6920bc8cdda4..fb3bb2698cb6 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a department.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByEnrollmentAccountSample.ts
index 5fc496625281..ab5131f07534 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for an enrollment account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByInvoiceSectionSample.ts
index 1ea4ca78c93c..f7687c505adc 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPermissionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPermissionsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for an invoice section.
diff --git a/sdk/billing/arm-billing/samples-dev/billingProfilesCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingProfilesCreateOrUpdateSample.ts
index 9bdaca39956e..06d53e5ad84f 100644
--- a/sdk/billing/arm-billing/samples-dev/billingProfilesCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingProfilesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingProfile, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.
diff --git a/sdk/billing/arm-billing/samples-dev/billingProfilesDeleteSample.ts b/sdk/billing/arm-billing/samples-dev/billingProfilesDeleteSample.ts
index 9c4bc74377e1..0e3ffb6eb960 100644
--- a/sdk/billing/arm-billing/samples-dev/billingProfilesDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingProfilesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingProfilesGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingProfilesGetSample.ts
index 5629bbecf259..e99cafb32016 100644
--- a/sdk/billing/arm-billing/samples-dev/billingProfilesGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingProfilesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingProfilesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingProfilesListByBillingAccountSample.ts
index bff24c0728d3..95b7a07c07c7 100644
--- a/sdk/billing/arm-billing/samples-dev/billingProfilesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingProfilesListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingProfilesValidateDeleteEligibilitySample.ts b/sdk/billing/arm-billing/samples-dev/billingProfilesValidateDeleteEligibilitySample.ts
index d12626474c0f..008a3a935c59 100644
--- a/sdk/billing/arm-billing/samples-dev/billingProfilesValidateDeleteEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingProfilesValidateDeleteEligibilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingPropertyGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingPropertyGetSample.ts
index 1540619ac4c1..5770d0c4219d 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPropertyGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPropertyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the billing properties for a subscription
diff --git a/sdk/billing/arm-billing/samples-dev/billingPropertyUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingPropertyUpdateSample.ts
index b2e3c9543954..e758a01aa5f1 100644
--- a/sdk/billing/arm-billing/samples-dev/billingPropertyUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingPropertyUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingProperty, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsCreateOrUpdateSample.ts
index 22228cc29fad..d7111e434338 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingRequest, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing request.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsGetSample.ts
index 99ded34a0a2c..a5be9fb9cef5 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing request by its ID.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingAccountSample.ts
index f63f81c5b96f..5555efdb8a42 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingProfileSample.ts
index 22a3392c7e15..3ceb194cf9df 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the billing profile.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsListByCustomerSample.ts
index 71757effb9cb..f967e3104400 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the customer.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsListByInvoiceSectionSample.ts
index d8de94919baf..9ff355483593 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the invoice section.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRequestsListByUserSample.ts b/sdk/billing/arm-billing/samples-dev/billingRequestsListByUserSample.ts
index 73cad45676ea..cb96e5546113 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRequestsListByUserSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRequestsListByUserSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted by a user.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingAccountSample.ts
index e976e8220c45..9eaccacd3ba0 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingProfileSample.ts
index a2220c7af760..5975758ca082 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByCustomerSample.ts
index dffe25ba06b0..3caadba6673b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
index a0b063085006..1a7841983ad6 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
index 3cdec0ef4268..7e2d537c5f77 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
index da024f8caa60..9ee02975268e 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
index a1c4ea22baf2..95a135231fe2 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts
index 5eba27cbaf4d..053bf0f1caad 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts
index 002fe77e54aa..d6d84379bbd8 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByCustomerSample.ts
index 72e0db2af976..7c165e4e5e4b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByDepartmentSample.ts
index 3caf755bdc87..3b225cd74dc2 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
index 4733265f550d..862b01828d41 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
index 5b74decf0e4f..8b9bb1fa9e8e 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.ts
index 18e79133fee2..ac31fe21d3e9 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.ts
index 9bd564bad462..04d20c023a28 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByCustomerSample.ts
index 38125293f9c2..4cf541d4ad10 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByDepartmentSample.ts
index e1ae159003d9..50ed253657b7 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
index 65e5802f4e17..7d8803adcdd2 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.ts
index d9fb09ae6ca6..14a00fc224f6 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsGetByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingAccountSample.ts
index 38869fac24fc..6fa44ae6af87 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingProfileSample.ts
index 8b29f2474507..083a580ced2a 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByCustomerSample.ts
index 20008cc4835e..275fa6fd072c 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByDepartmentSample.ts
index cfacc23f2f9e..4f0bacf7fbdc 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a department. The operation is supported for billing accounts of type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByEnrollmentAccountSample.ts
index 4ddcf093ed9c..96635395982f 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a enrollment account. The operation is supported for billing accounts of type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.ts
index 2f565c8d3843..4cbab5027d65 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingAccountSample.ts
index 40576790479a..def71340534a 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing account while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingProfileSample.ts
index ac33a1a8ad9c..584d8f21143f 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an billing profile while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByCustomerSample.ts
index 591db02a6e34..65d627fd5083 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a customer while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
index c09ea8111e78..a146710e04c4 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an invoice section while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingAccountSample.ts
index fa03e7a78964..67738a0ba0db 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingProfileSample.ts
index 135693bd47a2..0761f55e136e 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByCustomerSample.ts
index dc8a0d52f40f..537e5764a69b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByDepartmentSample.ts
index a7607aebe8b6..90aca7a0571a 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByEnrollmentAccountSample.ts
index b0097ae3075f..b652ecb48e15 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByInvoiceSectionSample.ts
index 72c47b18fdba..06989974b6e0 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionGetByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingAccountSample.ts
index fe658e921155..bfa904c380c0 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingProfileSample.ts
index 14c624b4612d..0d88125f135f 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByCustomerSample.ts
index da7e25018add..230ff798e81e 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByDepartmentSample.ts
index 35bf36da212f..d7f4573f49b3 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the definition for a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByEnrollmentAccountSample.ts
index 5142398e98b3..763f742ff964 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the definition for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByInvoiceSectionSample.ts
index f51a75c1efe6..079a54d1d661 100644
--- a/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingRoleDefinitionListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesCreateOrUpdateSample.ts
index 0a953558368b..e351b48bba71 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesGetSample.ts
index 2766819c14c8..26d6d2c99579 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesListByBillingAccountSample.ts
index fc0a67ce769e..45d956bcad23 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsAliasesListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsCancelSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsCancelSample.ts
index c7d6ce2d4153..35a09b89ca2d 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsCancelSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsCancelSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsDeleteSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsDeleteSample.ts
index cee2ff823efb..61a162adb810 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetByBillingProfileSample.ts
index ffaf46aa3bb4..acf7eb126d5a 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetSample.ts
index 4943eddecc9f..dac850ce8de2 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement, and Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingAccountSample.ts
index 000f29be1827..28907bcf5d7c 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingProfileSample.ts
index 2b4654bda71e..cf5a85ba5fbe 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
index 7a131ffbf082..397b0a6b180b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a customer at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerSample.ts
index f4926c0831d5..4325917d1866 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByEnrollmentAccountSample.ts
index 21c2df37a518..e7c4ae28011b 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByInvoiceSectionSample.ts
index 40cbce5287c5..c83940922e0d 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMergeSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMergeSample.ts
index 968357285c2e..0bd6981dd526 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMergeSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMergeSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Merges the billing subscription provided in the request with a target billing subscription.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMoveSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMoveSample.ts
index f6dfadef2312..adf4ee4c0239 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMoveSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsMoveSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsSplitSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsSplitSample.ts
index f4d322fa4a03..b8ab95b439aa 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsSplitSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsSplitSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsUpdateSample.ts
index 654632050a23..a237fc16f4b9 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a billing subscription.
diff --git a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsValidateMoveEligibilitySample.ts b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsValidateMoveEligibilitySample.ts
index 3d714036f537..6fd148de24cb 100644
--- a/sdk/billing/arm-billing/samples-dev/billingSubscriptionsValidateMoveEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples-dev/billingSubscriptionsValidateMoveEligibilitySample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if charges for a subscription can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/customersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/customersGetByBillingAccountSample.ts
index 7011606342f1..8ba28fa8de09 100644
--- a/sdk/billing/arm-billing/samples-dev/customersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/customersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a customer by its ID at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/customersGetSample.ts b/sdk/billing/arm-billing/samples-dev/customersGetSample.ts
index a8a6457d1969..aaf7d2eb0e90 100644
--- a/sdk/billing/arm-billing/samples-dev/customersGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/customersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/customersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/customersListByBillingAccountSample.ts
index f786b59ac088..939f328c5870 100644
--- a/sdk/billing/arm-billing/samples-dev/customersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/customersListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/customersListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/customersListByBillingProfileSample.ts
index dd6226261973..824ef11fae6d 100644
--- a/sdk/billing/arm-billing/samples-dev/customersListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/customersListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/departmentsGetSample.ts b/sdk/billing/arm-billing/samples-dev/departmentsGetSample.ts
index 5bfd9e7863c0..ef0408024760 100644
--- a/sdk/billing/arm-billing/samples-dev/departmentsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/departmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/departmentsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/departmentsListByBillingAccountSample.ts
index 7e762d2b4371..6135e3bc8f32 100644
--- a/sdk/billing/arm-billing/samples-dev/departmentsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/departmentsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetByDepartmentSample.ts
index ec08f7a84c72..101343a4b8ca 100644
--- a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an enrollment account by department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetSample.ts b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetSample.ts
index 2ec371c37a7f..d1e95931e1f9 100644
--- a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an enrollment account by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByBillingAccountSample.ts
index 856e235a6b7e..f53333cd0437 100644
--- a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the enrollment accounts for a billing account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByDepartmentSample.ts
index fc6655fb690c..b8d34b3fcc12 100644
--- a/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/enrollmentAccountsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the enrollment accounts for a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoiceSectionsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/invoiceSectionsCreateOrUpdateSample.ts
index d653bb560d03..d7730c588bd0 100644
--- a/sdk/billing/arm-billing/samples-dev/invoiceSectionsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoiceSectionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { InvoiceSection, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoiceSectionsDeleteSample.ts b/sdk/billing/arm-billing/samples-dev/invoiceSectionsDeleteSample.ts
index 269822fd4345..b6ff46adafc1 100644
--- a/sdk/billing/arm-billing/samples-dev/invoiceSectionsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoiceSectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoiceSectionsGetSample.ts b/sdk/billing/arm-billing/samples-dev/invoiceSectionsGetSample.ts
index 0a765bf9df24..d754d19fb758 100644
--- a/sdk/billing/arm-billing/samples-dev/invoiceSectionsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoiceSectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoiceSectionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/invoiceSectionsListByBillingProfileSample.ts
index 53dd633dda92..9f51070d11b4 100644
--- a/sdk/billing/arm-billing/samples-dev/invoiceSectionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoiceSectionsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoiceSectionsValidateDeleteEligibilitySample.ts b/sdk/billing/arm-billing/samples-dev/invoiceSectionsValidateDeleteEligibilitySample.ts
index 67ec027455ec..3e97adfdb167 100644
--- a/sdk/billing/arm-billing/samples-dev/invoiceSectionsValidateDeleteEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoiceSectionsValidateDeleteEligibilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesAmendSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesAmendSample.ts
index 6f4c95ae39d3..db45fae63113 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesAmendSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesAmendSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingAccountSample.ts
index a14bc79c0ecb..ee138cb8be20 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingSubscriptionSample.ts
index 50a16c03739e..4ebb98506545 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesDownloadByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingAccountSample.ts
index 4f6db811d352..9d2d40089d3d 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
index 9212dd3e78ad..fdc59b2b8302 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesDownloadSummaryByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesDownloadSummaryByBillingAccountSample.ts
index 5ec5766ceb07..0d692f617477 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesDownloadSummaryByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesDownloadSummaryByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingAccountSample.ts
index 02cd7af9d246..036a651dcd76 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by billing account name and ID. The operation is supported for all billing account types.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingSubscriptionSample.ts
index 0efc6d8cea72..ba0e3c5919ae 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesGetByBillingSubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesGetSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesGetSample.ts
index 8a843e70a749..f44524669412 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingAccountSample.ts
index 89705b58b9c3..8a7afd7cc087 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a billing account for a given start date and end date. The operation is supported for all billing account types.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingProfileSample.ts
index 55cf14bd8665..237682421d63 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingSubscriptionSample.ts
index 018cb26e46fa..4df5e9bb33fd 100644
--- a/sdk/billing/arm-billing/samples-dev/invoicesListByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/invoicesListByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/operationsListSample.ts b/sdk/billing/arm-billing/samples-dev/operationsListSample.ts
index c790edee1579..897693ec29be 100644
--- a/sdk/billing/arm-billing/samples-dev/operationsListSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List of operations supported by provider.
diff --git a/sdk/billing/arm-billing/samples-dev/partnerTransfersCancelSample.ts b/sdk/billing/arm-billing/samples-dev/partnerTransfersCancelSample.ts
index e7d14d81fff0..76411b46d833 100644
--- a/sdk/billing/arm-billing/samples-dev/partnerTransfersCancelSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/partnerTransfersCancelSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/partnerTransfersGetSample.ts b/sdk/billing/arm-billing/samples-dev/partnerTransfersGetSample.ts
index d4eafd19627f..2633382c4c14 100644
--- a/sdk/billing/arm-billing/samples-dev/partnerTransfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/partnerTransfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/partnerTransfersInitiateSample.ts b/sdk/billing/arm-billing/samples-dev/partnerTransfersInitiateSample.ts
index 0e7a9600b2c3..9d6567aea9b7 100644
--- a/sdk/billing/arm-billing/samples-dev/partnerTransfersInitiateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/partnerTransfersInitiateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Sends a request to a user in a customer's billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/partnerTransfersListSample.ts b/sdk/billing/arm-billing/samples-dev/partnerTransfersListSample.ts
index 1d57eb44299c..af17ab2116c4 100644
--- a/sdk/billing/arm-billing/samples-dev/partnerTransfersListSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/partnerTransfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests sent to a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsDeleteByUserSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsDeleteByUserSample.ts
index 4cc97666db08..cab8a1825f8d 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsDeleteByUserSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsDeleteByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a payment method owned by the caller.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingAccountSample.ts
index 0575dff89d64..d9ac9f8c3d95 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingProfileSample.ts
index c8aadec228f9..9c74f2c68cb5 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByUserSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByUserSample.ts
index bf4cb0cdecf7..7c30e2fe8514 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByUserSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsGetByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method owned by the caller.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingAccountSample.ts
index 5d1ca643e0c8..e1aed952224f 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingProfileSample.ts
index 9f35135d7b8f..29aa7729cb59 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByUserSample.ts b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByUserSample.ts
index e82bc7b4082d..184e366e2303 100644
--- a/sdk/billing/arm-billing/samples-dev/paymentMethodsListByUserSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/paymentMethodsListByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the payment methods owned by the caller.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingAccountSample.ts
index 8b71e24a4ebb..49d4c0c4232d 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the policies for a billing account of Enterprise Agreement type.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingProfileSample.ts
index 27fb777d0fd8..dbe75cf35000 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
index 6908e5bfad4b..7c546050fef2 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CustomerPolicy, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerSample.ts
index c6d3be5eca24..dc7827ec7689 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesCreateOrUpdateByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CustomerPolicy, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/policiesGetByBillingAccountSample.ts
index 2c2f5e573653..ba9fc2555dd1 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the policies for a billing account of Enterprise Agreement type.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/policiesGetByBillingProfileSample.ts
index 14a0df488a9e..45e57814b627 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerAtBillingAccountSample.ts
index 64847b524eba..ad875d6ed4e0 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerSample.ts
index 6f4e264e10b2..cc4dc01e9066 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/policiesGetBySubscriptionSample.ts b/sdk/billing/arm-billing/samples-dev/policiesGetBySubscriptionSample.ts
index 0435f633437b..f79ac9d1f5a8 100644
--- a/sdk/billing/arm-billing/samples-dev/policiesGetBySubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/policiesGetBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsGetSample.ts b/sdk/billing/arm-billing/samples-dev/productsGetSample.ts
index 6c37643450b0..bed2dbeb11ea 100644
--- a/sdk/billing/arm-billing/samples-dev/productsGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/productsListByBillingAccountSample.ts
index acfb1f1c54ff..e467f50491fc 100644
--- a/sdk/billing/arm-billing/samples-dev/productsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/productsListByBillingProfileSample.ts
index 0bdd38a14d85..1d3eb8781f83 100644
--- a/sdk/billing/arm-billing/samples-dev/productsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/productsListByCustomerSample.ts
index 7322e339dfdc..b6610eea91b8 100644
--- a/sdk/billing/arm-billing/samples-dev/productsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/productsListByInvoiceSectionSample.ts
index 7ed2b73a3e76..2a195c8364cd 100644
--- a/sdk/billing/arm-billing/samples-dev/productsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for an invoice section. These don't include products billed based on usage. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsMoveSample.ts b/sdk/billing/arm-billing/samples-dev/productsMoveSample.ts
index fb37db5168d8..1da942fea83a 100644
--- a/sdk/billing/arm-billing/samples-dev/productsMoveSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsMoveSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsUpdateSample.ts b/sdk/billing/arm-billing/samples-dev/productsUpdateSample.ts
index 6100ab1618ee..526477b833b4 100644
--- a/sdk/billing/arm-billing/samples-dev/productsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProductPatch, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/productsValidateMoveEligibilitySample.ts b/sdk/billing/arm-billing/samples-dev/productsValidateMoveEligibilitySample.ts
index 0bf5bf566280..f429b058af56 100644
--- a/sdk/billing/arm-billing/samples-dev/productsValidateMoveEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples-dev/productsValidateMoveEligibilitySample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/recipientTransfersAcceptSample.ts b/sdk/billing/arm-billing/samples-dev/recipientTransfersAcceptSample.ts
index c5365f989b58..20d4b104f8d3 100644
--- a/sdk/billing/arm-billing/samples-dev/recipientTransfersAcceptSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/recipientTransfersAcceptSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Accepts a transfer request.
diff --git a/sdk/billing/arm-billing/samples-dev/recipientTransfersDeclineSample.ts b/sdk/billing/arm-billing/samples-dev/recipientTransfersDeclineSample.ts
index a6d3113a1c15..f664162a92a3 100644
--- a/sdk/billing/arm-billing/samples-dev/recipientTransfersDeclineSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/recipientTransfersDeclineSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Declines a transfer request.
diff --git a/sdk/billing/arm-billing/samples-dev/recipientTransfersGetSample.ts b/sdk/billing/arm-billing/samples-dev/recipientTransfersGetSample.ts
index 82fa1021eeb0..4f11c906a3bc 100644
--- a/sdk/billing/arm-billing/samples-dev/recipientTransfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/recipientTransfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The caller must be the recipient of the transfer request.
diff --git a/sdk/billing/arm-billing/samples-dev/recipientTransfersListSample.ts b/sdk/billing/arm-billing/samples-dev/recipientTransfersListSample.ts
index ab50513a59aa..91d672a6cf35 100644
--- a/sdk/billing/arm-billing/samples-dev/recipientTransfersListSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/recipientTransfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests received by the caller.
diff --git a/sdk/billing/arm-billing/samples-dev/recipientTransfersValidateSample.ts b/sdk/billing/arm-billing/samples-dev/recipientTransfersValidateSample.ts
index d6bbefd90a7a..c5c9143a0640 100644
--- a/sdk/billing/arm-billing/samples-dev/recipientTransfersValidateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/recipientTransfersValidateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if a subscription or a reservation can be transferred. Use this operation to validate your subscriptions or reservation before using the accept transfer operation.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationOrdersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/reservationOrdersGetByBillingAccountSample.ts
index 4634d18fcf44..9c1a2a9cee12 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationOrdersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationOrdersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the details of the ReservationOrder in the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationOrdersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/reservationOrdersListByBillingAccountSample.ts
index 8cbb4870936b..fbfc039851ad 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationOrdersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationOrdersListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the `ReservationOrders in the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationsGetByReservationOrderSample.ts b/sdk/billing/arm-billing/samples-dev/reservationsGetByReservationOrderSample.ts
index e95b6ebdfa8f..189d170b31b9 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationsGetByReservationOrderSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationsGetByReservationOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get specific Reservation details in the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/reservationsListByBillingAccountSample.ts
index d278319eb23b..95177f2e3f7e 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the reservations in the billing account and the roll up counts of reservations group by provisioning states.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/reservationsListByBillingProfileSample.ts
index 70bb8a0a8436..3fc133196d6b 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationsListByReservationOrderSample.ts b/sdk/billing/arm-billing/samples-dev/reservationsListByReservationOrderSample.ts
index 827f0e104532..c1cf92b6bc6d 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationsListByReservationOrderSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationsListByReservationOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Reservations within a single ReservationOrder in the billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/reservationsUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/reservationsUpdateByBillingAccountSample.ts
index 6587732341cc..b7c5f9f8973d 100644
--- a/sdk/billing/arm-billing/samples-dev/reservationsUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/reservationsUpdateByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Patch, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update reservation by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersGetByBillingAccountSample.ts
index 75db1560fb06..6d20c999ec14 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a savings plan order by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersListByBillingAccountSample.ts
index 0c457b8b02b6..1422e00a0390 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlanOrdersListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Savings plan orders by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlansGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlansGetByBillingAccountSample.ts
index e8d29ee95dc3..a97ce4850214 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlansGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlansGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get savings plan by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlansListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlansListByBillingAccountSample.ts
index c5aeed42fad7..0deff77ae021 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlansListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlansListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List savings plans by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlansListBySavingsPlanOrderSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlansListBySavingsPlanOrderSample.ts
index ac22acece5bc..0d9f4aafdaf3 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlansListBySavingsPlanOrderSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlansListBySavingsPlanOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List savings plans in an order by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlansUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlansUpdateByBillingAccountSample.ts
index 210c41a46aeb..db6930075b7d 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlansUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlansUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update savings plan by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/savingsPlansValidateUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples-dev/savingsPlansValidateUpdateByBillingAccountSample.ts
index 18dec86111ec..6a9bb31993f6 100644
--- a/sdk/billing/arm-billing/samples-dev/savingsPlansValidateUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/savingsPlansValidateUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validate savings plan patch by billing account.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsGetTransactionSummaryByInvoiceSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsGetTransactionSummaryByInvoiceSample.ts
index 980362f0269b..53a2f1e55218 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsGetTransactionSummaryByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsGetTransactionSummaryByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the transaction summary for an invoice. Transactions include purchases, refunds and Azure usage charges.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsListByBillingProfileSample.ts
index 92ad172a2f0d..dcb7be965f54 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by billing profile name for given start and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsListByCustomerSample.ts
index ae5dab890733..7bbcd257af96 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsListByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by customer id for given start date and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSample.ts
index 73b659b31ef0..07eee5b49a83 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage charges.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSectionSample.ts
index 32e73cd2dc69..dc7795c21728 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsListByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by invoice section name for given start date and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples-dev/transactionsTransactionsDownloadByInvoiceSample.ts b/sdk/billing/arm-billing/samples-dev/transactionsTransactionsDownloadByInvoiceSample.ts
index cfd458275051..97c4bd86c9fb 100644
--- a/sdk/billing/arm-billing/samples-dev/transactionsTransactionsDownloadByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transactionsTransactionsDownloadByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download the transactions document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/transfersCancelSample.ts b/sdk/billing/arm-billing/samples-dev/transfersCancelSample.ts
index ee03c0156764..ff455febb2d7 100644
--- a/sdk/billing/arm-billing/samples-dev/transfersCancelSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transfersCancelSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/transfersGetSample.ts b/sdk/billing/arm-billing/samples-dev/transfersGetSample.ts
index 523b297eb915..3615ae622425 100644
--- a/sdk/billing/arm-billing/samples-dev/transfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/transfersInitiateSample.ts b/sdk/billing/arm-billing/samples-dev/transfersInitiateSample.ts
index daf7372bbe26..f96547ea7a70 100644
--- a/sdk/billing/arm-billing/samples-dev/transfersInitiateSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transfersInitiateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples-dev/transfersListSample.ts b/sdk/billing/arm-billing/samples-dev/transfersListSample.ts
index 72aa697d9ee9..daae84745b1e 100644
--- a/sdk/billing/arm-billing/samples-dev/transfersListSample.ts
+++ b/sdk/billing/arm-billing/samples-dev/transfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests for an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/addressValidateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/addressValidateSample.ts
index a7fcdaee3ade..87c47e8adf49 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/addressValidateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/addressValidateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AddressDetails, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsGetSample.ts
index 4bc72afb1a3f..28addb912892 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an agreement by ID.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsListByBillingAccountSample.ts
index 8c2616a5d341..d9fd82900479 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/agreementsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the agreements for a billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsCreateOrUpdateSample.ts
index 5e472e7264ca..3af35c1c5d38 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { AssociatedTenant, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update an associated tenant for the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsDeleteSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsDeleteSample.ts
index 7ea79852d50e..3a9d00f1db93 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an associated tenant for a billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsGetSample.ts
index ba8048a2b301..8541e886f2f8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an associated tenant by ID.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsListByBillingAccountSample.ts
index ea933921e919..36e66b9b1e04 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/associatedTenantsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingAccountSample.ts
index 06bd9aa2fc58..72725b4d1030 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The Available Credit or Payment on Account Balance for a billing account. The credit balance can be used to settle due or past due invoices and is supported for billing accounts with agreement type Microsoft Customer Agreement. The payment on account balance is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Online Services Program.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingProfileSample.ts
index 86b75a1c3b96..bbcc0270a130 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/availableBalancesGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The Available Credit or Payment on Account Balance for a billing profile. The credit balance can be used to settle due or past due invoices and is supported for billing accounts with agreement type Microsoft Customer Agreement. The payment on account balance is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsAddPaymentTermsSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsAddPaymentTermsSample.ts
index 04d666172963..1d554c234cf3 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsAddPaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsAddPaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PaymentTerm, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsCancelPaymentTermsSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsCancelPaymentTermsSample.ts
index 44cf645955ba..a0632ef99e39 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsCancelPaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsCancelPaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsConfirmTransitionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsConfirmTransitionSample.ts
index 90ae8eeaf536..28b54f3ac067 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsConfirmTransitionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsConfirmTransitionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsGetSample.ts
index 049f8ea3eda2..481d3cb207c8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing account by its ID.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
index e74124e19809..6ee44f9e32fc 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListInvoiceSectionsByCreateSubscriptionPermissionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListSample.ts
index e68b46daed1a..283722378c1a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsListSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing accounts that a user has access to.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsUpdateSample.ts
index 7eecd8edd93a..89c420b82a50 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsValidatePaymentTermsSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsValidatePaymentTermsSample.ts
index 3cbf3ca9be37..0bcbb8f130cf 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsValidatePaymentTermsSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingAccountsValidatePaymentTermsSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { PaymentTerm, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingAccountSample.ts
index 511a516950bc..0b4b93ef23b4 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingProfileSample.ts
index dd697f0a896b..b00652dde1d9 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a billing profile.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByCustomerSample.ts
index 5c4935a3b925..61d134aea2e8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a customer.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByDepartmentSample.ts
index 269641df9f54..a3f52a1aec3e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByDepartmentSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for a department.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
index 945abfc76c12..d518dc7ef931 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByEnrollmentAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for an enrollment account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByInvoiceSectionSample.ts
index c4b87d49819f..bd7d05be112c 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsCheckAccessByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Provides a list of check access response objects for an invoice section.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingAccountSample.ts
index f414fe38902f..e0fb5ab75a53 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has on a billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingProfileSample.ts
index fc8b76061da2..3e9d665efacf 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has on a billing profile.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerAtBillingAccountSample.ts
index 857fef954195..7e17d80ecd1b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a customer at billing account level.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerSample.ts
index 7268ce0ea0cf..116abc557b66 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a customer.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByDepartmentSample.ts
index 6920bc8cdda4..fb3bb2698cb6 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for a department.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByEnrollmentAccountSample.ts
index 5fc496625281..ab5131f07534 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for an enrollment account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByInvoiceSectionSample.ts
index 1ea4ca78c93c..f7687c505adc 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPermissionsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing permissions the caller has for an invoice section.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesCreateOrUpdateSample.ts
index 9bdaca39956e..06d53e5ad84f 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingProfile, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesDeleteSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesDeleteSample.ts
index 9c4bc74377e1..0e3ffb6eb960 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesGetSample.ts
index 5629bbecf259..e99cafb32016 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesListByBillingAccountSample.ts
index bff24c0728d3..95b7a07c07c7 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesValidateDeleteEligibilitySample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesValidateDeleteEligibilitySample.ts
index d12626474c0f..008a3a935c59 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesValidateDeleteEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingProfilesValidateDeleteEligibilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyGetSample.ts
index 1540619ac4c1..5770d0c4219d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the billing properties for a subscription
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyUpdateSample.ts
index b2e3c9543954..e758a01aa5f1 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingPropertyUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingProperty, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsCreateOrUpdateSample.ts
index 22228cc29fad..d7111e434338 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingRequest, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing request.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsGetSample.ts
index 99ded34a0a2c..a5be9fb9cef5 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a billing request by its ID.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingAccountSample.ts
index f63f81c5b96f..5555efdb8a42 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingProfileSample.ts
index 22a3392c7e15..3ceb194cf9df 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the billing profile.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByCustomerSample.ts
index 71757effb9cb..f967e3104400 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the customer.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByInvoiceSectionSample.ts
index d8de94919baf..9ff355483593 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted for the invoice section.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByUserSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByUserSample.ts
index 73cad45676ea..cb96e5546113 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByUserSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRequestsListByUserSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to The list of billing requests submitted by a user.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingAccountSample.ts
index e976e8220c45..9eaccacd3ba0 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingProfileSample.ts
index a2220c7af760..5975758ca082 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByCustomerSample.ts
index dffe25ba06b0..3caadba6673b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
index a0b063085006..1a7841983ad6 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Adds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
index 3cdec0ef4268..7e2d537c5f77 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
index da024f8caa60..9ee02975268e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByDepartmentSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
index a1c4ea22baf2..95a135231fe2 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsCreateOrUpdateByEnrollmentAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingAccountSample.ts
index 5eba27cbaf4d..053bf0f1caad 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingProfileSample.ts
index 002fe77e54aa..d6d84379bbd8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByCustomerSample.ts
index 72e0db2af976..7c165e4e5e4b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByDepartmentSample.ts
index 3caf755bdc87..3b225cd74dc2 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
index 4733265f550d..862b01828d41 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
index 5b74decf0e4f..8b9bb1fa9e8e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsDeleteByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingAccountSample.ts
index 18e79133fee2..ac31fe21d3e9 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingProfileSample.ts
index 9bd564bad462..04d20c023a28 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByCustomerSample.ts
index 38125293f9c2..4cf541d4ad10 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByDepartmentSample.ts
index e1ae159003d9..50ed253657b7 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
index 65e5802f4e17..7d8803adcdd2 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByInvoiceSectionSample.ts
index d9fb09ae6ca6..14a00fc224f6 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsGetByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingAccountSample.ts
index 38869fac24fc..6fa44ae6af87 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingProfileSample.ts
index 8b29f2474507..083a580ced2a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByCustomerSample.ts
index 20008cc4835e..275fa6fd072c 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByDepartmentSample.ts
index cfacc23f2f9e..4f0bacf7fbdc 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a department. The operation is supported for billing accounts of type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByEnrollmentAccountSample.ts
index 4ddcf093ed9c..96635395982f 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a enrollment account. The operation is supported for billing accounts of type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByInvoiceSectionSample.ts
index 2f565c8d3843..4cbab5027d65 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingAccountSample.ts
index 40576790479a..def71340534a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a billing account while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingProfileSample.ts
index ac33a1a8ad9c..584d8f21143f 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an billing profile while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByCustomerSample.ts
index 591db02a6e34..65d627fd5083 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on a customer while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
index c09ea8111e78..a146710e04c4 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleAssignmentsResolveByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role assignments for the caller on an invoice section while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingAccountSample.ts
index fa03e7a78964..67738a0ba0db 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingProfileSample.ts
index 135693bd47a2..0761f55e136e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByCustomerSample.ts
index dc8a0d52f40f..537e5764a69b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByDepartmentSample.ts
index a7607aebe8b6..90aca7a0571a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByEnrollmentAccountSample.ts
index b0097ae3075f..b652ecb48e15 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByInvoiceSectionSample.ts
index 72c47b18fdba..06989974b6e0 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionGetByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingAccountSample.ts
index fe658e921155..bfa904c380c0 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingProfileSample.ts
index 14c624b4612d..0d88125f135f 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByCustomerSample.ts
index da7e25018add..230ff798e81e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByDepartmentSample.ts
index 35bf36da212f..d7f4573f49b3 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the definition for a department. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByEnrollmentAccountSample.ts
index 5142398e98b3..763f742ff964 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List the definition for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByInvoiceSectionSample.ts
index f51a75c1efe6..079a54d1d661 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingRoleDefinitionListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesCreateOrUpdateSample.ts
index 0a953558368b..e351b48bba71 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesCreateOrUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates a billing subscription by its alias ID. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesGetSample.ts
index 2766819c14c8..26d6d2c99579 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its alias ID. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesListByBillingAccountSample.ts
index fc0a67ce769e..45d956bcad23 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsAliasesListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscription aliases for a billing account. The operation is supported for seat based billing subscriptions.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsCancelSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsCancelSample.ts
index c7d6ce2d4153..35a09b89ca2d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsCancelSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsCancelSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a usage-based subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsDeleteSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsDeleteSample.ts
index cee2ff823efb..61a162adb810 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a billing subscription. This operation is supported only for billing accounts of type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetByBillingProfileSample.ts
index ffaf46aa3bb4..acf7eb126d5a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its billing profile and ID. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetSample.ts
index 4943eddecc9f..dac850ce8de2 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement, Microsoft Partner Agreement, and Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingAccountSample.ts
index 000f29be1827..28907bcf5d7c 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingProfileSample.ts
index 2b4654bda71e..cf5a85ba5fbe 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
index 7a131ffbf082..397b0a6b180b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a customer at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerSample.ts
index f4926c0831d5..4325917d1866 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByEnrollmentAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByEnrollmentAccountSample.ts
index 21c2df37a518..e7c4ae28011b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByEnrollmentAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByEnrollmentAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions for an enrollment account. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByInvoiceSectionSample.ts
index 40cbce5287c5..c83940922e0d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMergeSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMergeSample.ts
index 968357285c2e..0bd6981dd526 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMergeSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMergeSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Merges the billing subscription provided in the request with a target billing subscription.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMoveSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMoveSample.ts
index f6dfadef2312..adf4ee4c0239 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMoveSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsMoveSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Moves charges for a subscription to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsSplitSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsSplitSample.ts
index f4d322fa4a03..b8ab95b439aa 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsSplitSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsSplitSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Splits a subscription into a new subscription with quantity less than current subscription quantity and not equal to 0.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsUpdateSample.ts
index 654632050a23..a237fc16f4b9 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsUpdateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a billing subscription.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsValidateMoveEligibilitySample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsValidateMoveEligibilitySample.ts
index 3d714036f537..6fd148de24cb 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsValidateMoveEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/billingSubscriptionsValidateMoveEligibilitySample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if charges for a subscription can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetByBillingAccountSample.ts
index 7011606342f1..8ba28fa8de09 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a customer by its ID at billing account level. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetSample.ts
index a8a6457d1969..aaf7d2eb0e90 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/customersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingAccountSample.ts
index f786b59ac088..939f328c5870 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingProfileSample.ts
index dd6226261973..824ef11fae6d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/customersListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsGetSample.ts
index 5bfd9e7863c0..ef0408024760 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsListByBillingAccountSample.ts
index 7e762d2b4371..6135e3bc8f32 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/departmentsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetByDepartmentSample.ts
index ec08f7a84c72..101343a4b8ca 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an enrollment account by department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetSample.ts
index 2ec371c37a7f..d1e95931e1f9 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an enrollment account by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByBillingAccountSample.ts
index 856e235a6b7e..f53333cd0437 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the enrollment accounts for a billing account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByDepartmentSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByDepartmentSample.ts
index fc6655fb690c..b8d34b3fcc12 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByDepartmentSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/enrollmentAccountsListByDepartmentSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the enrollment accounts for a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsCreateOrUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsCreateOrUpdateSample.ts
index d653bb560d03..d7730c588bd0 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsCreateOrUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsCreateOrUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { InvoiceSection, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsDeleteSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsDeleteSample.ts
index 269822fd4345..b6ff46adafc1 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsDeleteSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsDeleteSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsGetSample.ts
index 0a765bf9df24..d754d19fb758 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsListByBillingProfileSample.ts
index 53dd633dda92..9f51070d11b4 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsValidateDeleteEligibilitySample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsValidateDeleteEligibilitySample.ts
index 67ec027455ec..3e97adfdb167 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsValidateDeleteEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoiceSectionsValidateDeleteEligibilitySample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesAmendSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesAmendSample.ts
index 6f4c95ae39d3..db45fae63113 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesAmendSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesAmendSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Regenerate an invoice by billing account name and invoice name. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingAccountSample.ts
index a14bc79c0ecb..ee138cb8be20 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download an invoice document. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingSubscriptionSample.ts
index 50a16c03739e..4ebb98506545 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download an invoice by billing subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingAccountSample.ts
index 4f6db811d352..9d2d40089d3d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
index 9212dd3e78ad..fdc59b2b8302 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadDocumentsByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadSummaryByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadSummaryByBillingAccountSample.ts
index 5ec5766ceb07..0d692f617477 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadSummaryByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesDownloadSummaryByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download the summary document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingAccountSample.ts
index 02cd7af9d246..036a651dcd76 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by billing account name and ID. The operation is supported for all billing account types.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingSubscriptionSample.ts
index 0efc6d8cea72..ba0e3c5919ae 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetByBillingSubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetSample.ts
index 8a843e70a749..f44524669412 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingAccountSample.ts
index 89705b58b9c3..8a7afd7cc087 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a billing account for a given start date and end date. The operation is supported for all billing account types.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingProfileSample.ts
index 55cf14bd8665..237682421d63 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingSubscriptionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingSubscriptionSample.ts
index 018cb26e46fa..4df5e9bb33fd 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingSubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/invoicesListByBillingSubscriptionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the invoices for a subscription. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/operationsListSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/operationsListSample.ts
index c790edee1579..897693ec29be 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/operationsListSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/operationsListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List of operations supported by provider.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersCancelSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersCancelSample.ts
index e7d14d81fff0..76411b46d833 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersCancelSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersCancelSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersGetSample.ts
index d4eafd19627f..2633382c4c14 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersInitiateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersInitiateSample.ts
index 0e7a9600b2c3..9d6567aea9b7 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersInitiateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersInitiateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Sends a request to a user in a customer's billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersListSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersListSample.ts
index 1d57eb44299c..af17ab2116c4 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersListSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/partnerTransfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests sent to a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsDeleteByUserSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsDeleteByUserSample.ts
index 4cc97666db08..cab8a1825f8d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsDeleteByUserSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsDeleteByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Deletes a payment method owned by the caller.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingAccountSample.ts
index 0575dff89d64..d9ac9f8c3d95 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingProfileSample.ts
index c8aadec228f9..9c74f2c68cb5 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByUserSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByUserSample.ts
index bf4cb0cdecf7..7c30e2fe8514 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByUserSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsGetByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a payment method owned by the caller.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingAccountSample.ts
index 5d1ca643e0c8..e1aed952224f 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingProfileSample.ts
index 9f35135d7b8f..29aa7729cb59 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByUserSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByUserSample.ts
index e82bc7b4082d..184e366e2303 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByUserSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/paymentMethodsListByUserSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the payment methods owned by the caller.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingAccountSample.ts
index 8b71e24a4ebb..49d4c0c4232d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update the policies for a billing account of Enterprise Agreement type.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingProfileSample.ts
index 27fb777d0fd8..dbe75cf35000 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
index 6908e5bfad4b..7c546050fef2 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CustomerPolicy, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerSample.ts
index c6d3be5eca24..dc7827ec7689 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesCreateOrUpdateByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { CustomerPolicy, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingAccountSample.ts
index 2c2f5e573653..ba9fc2555dd1 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the policies for a billing account of Enterprise Agreement type.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingProfileSample.ts
index 14a0df488a9e..45e57814b627 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerAtBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerAtBillingAccountSample.ts
index 64847b524eba..ad875d6ed4e0 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerAtBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerAtBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerSample.ts
index 6f4e264e10b2..cc4dc01e9066 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetBySubscriptionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetBySubscriptionSample.ts
index 0435f633437b..f79ac9d1f5a8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetBySubscriptionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/policiesGetBySubscriptionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsGetSample.ts
index 6c37643450b0..bed2dbeb11ea 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingAccountSample.ts
index acfb1f1c54ff..e467f50491fc 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingProfileSample.ts
index 0bdd38a14d85..1d3eb8781f83 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByBillingProfileSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByCustomerSample.ts
index 7322e339dfdc..b6610eea91b8 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByCustomerSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByInvoiceSectionSample.ts
index 7ed2b73a3e76..2a195c8364cd 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsListByInvoiceSectionSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the products for an invoice section. These don't include products billed based on usage. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsMoveSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsMoveSample.ts
index fb37db5168d8..1da942fea83a 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsMoveSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsMoveSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsUpdateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsUpdateSample.ts
index 6100ab1618ee..526477b833b4 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsUpdateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsUpdateSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { ProductPatch, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/productsValidateMoveEligibilitySample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/productsValidateMoveEligibilitySample.ts
index 0bf5bf566280..f429b058af56 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/productsValidateMoveEligibilitySample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/productsValidateMoveEligibilitySample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersAcceptSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersAcceptSample.ts
index c5365f989b58..20d4b104f8d3 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersAcceptSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersAcceptSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Accepts a transfer request.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersDeclineSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersDeclineSample.ts
index a6d3113a1c15..f664162a92a3 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersDeclineSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersDeclineSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Declines a transfer request.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersGetSample.ts
index 82fa1021eeb0..4f11c906a3bc 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The caller must be the recipient of the transfer request.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersListSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersListSample.ts
index ab50513a59aa..91d672a6cf35 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersListSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests received by the caller.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersValidateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersValidateSample.ts
index d6bbefd90a7a..c5c9143a0640 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersValidateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/recipientTransfersValidateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validates if a subscription or a reservation can be transferred. Use this operation to validate your subscriptions or reservation before using the accept transfer operation.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersGetByBillingAccountSample.ts
index 4634d18fcf44..9c1a2a9cee12 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get the details of the ReservationOrder in the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersListByBillingAccountSample.ts
index 8cbb4870936b..fbfc039851ad 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationOrdersListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all the `ReservationOrders in the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsGetByReservationOrderSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsGetByReservationOrderSample.ts
index e95b6ebdfa8f..189d170b31b9 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsGetByReservationOrderSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsGetByReservationOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get specific Reservation details in the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingAccountSample.ts
index d278319eb23b..95177f2e3f7e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the reservations in the billing account and the roll up counts of reservations group by provisioning states.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingProfileSample.ts
index 70bb8a0a8436..3fc133196d6b 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByReservationOrderSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByReservationOrderSample.ts
index 827f0e104532..c1cf92b6bc6d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByReservationOrderSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsListByReservationOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List Reservations within a single ReservationOrder in the billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsUpdateByBillingAccountSample.ts
index 6587732341cc..b7c5f9f8973d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/reservationsUpdateByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { Patch, BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update reservation by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersGetByBillingAccountSample.ts
index 75db1560fb06..6d20c999ec14 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get a savings plan order by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersListByBillingAccountSample.ts
index 0c457b8b02b6..1422e00a0390 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlanOrdersListByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List all Savings plan orders by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansGetByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansGetByBillingAccountSample.ts
index e8d29ee95dc3..a97ce4850214 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansGetByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansGetByBillingAccountSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Get savings plan by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListByBillingAccountSample.ts
index c5aeed42fad7..0deff77ae021 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List savings plans by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListBySavingsPlanOrderSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListBySavingsPlanOrderSample.ts
index ac22acece5bc..0d9f4aafdaf3 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListBySavingsPlanOrderSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansListBySavingsPlanOrderSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to List savings plans in an order by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansUpdateByBillingAccountSample.ts
index 210c41a46aeb..db6930075b7d 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Update savings plan by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansValidateUpdateByBillingAccountSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansValidateUpdateByBillingAccountSample.ts
index 18dec86111ec..6a9bb31993f6 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansValidateUpdateByBillingAccountSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/savingsPlansValidateUpdateByBillingAccountSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Validate savings plan patch by billing account.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsGetTransactionSummaryByInvoiceSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsGetTransactionSummaryByInvoiceSample.ts
index 980362f0269b..53a2f1e55218 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsGetTransactionSummaryByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsGetTransactionSummaryByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets the transaction summary for an invoice. Transactions include purchases, refunds and Azure usage charges.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByBillingProfileSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByBillingProfileSample.ts
index 92ad172a2f0d..dcb7be965f54 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByBillingProfileSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByBillingProfileSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by billing profile name for given start and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByCustomerSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByCustomerSample.ts
index ae5dab890733..7bbcd257af96 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByCustomerSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByCustomerSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by customer id for given start date and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSample.ts
index 73b659b31ef0..07eee5b49a83 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage charges.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSectionSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSectionSample.ts
index 32e73cd2dc69..dc7795c21728 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSectionSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsListByInvoiceSectionSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the billed or unbilled transactions by invoice section name for given start date and end date. Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is generated.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsTransactionsDownloadByInvoiceSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsTransactionsDownloadByInvoiceSample.ts
index cfd458275051..97c4bd86c9fb 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsTransactionsDownloadByInvoiceSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transactionsTransactionsDownloadByInvoiceSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a URL to download the transactions document for an invoice. The operation is supported for billing accounts with agreement type Enterprise Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersCancelSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersCancelSample.ts
index ee03c0156764..ff455febb2d7 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersCancelSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersCancelSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Cancels a transfer request. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersGetSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersGetSample.ts
index 523b297eb915..3615ae622425 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersGetSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersGetSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Gets a transfer request by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersInitiateSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersInitiateSample.ts
index daf7372bbe26..f96547ea7a70 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersInitiateSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersInitiateSample.ts
@@ -13,9 +13,7 @@ import {
BillingManagementClient,
} from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Sends a request to a user in another billing account to transfer billing ownership of their subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersListSample.ts b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersListSample.ts
index 72aa697d9ee9..daae84745b1e 100644
--- a/sdk/billing/arm-billing/samples/v5/typescript/src/transfersListSample.ts
+++ b/sdk/billing/arm-billing/samples/v5/typescript/src/transfersListSample.ts
@@ -10,9 +10,7 @@
// Licensed under the MIT License.
import { BillingManagementClient } from "@azure/arm-billing";
import { DefaultAzureCredential } from "@azure/identity";
-import * as dotenv from "dotenv";
-
-dotenv.config();
+import "dotenv/config";
/**
* This sample demonstrates how to Lists the transfer requests for an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
diff --git a/sdk/billing/arm-billing/src/billingManagementClient.ts b/sdk/billing/arm-billing/src/billingManagementClient.ts
index d81596bf0963..566da4e4a64e 100644
--- a/sdk/billing/arm-billing/src/billingManagementClient.ts
+++ b/sdk/billing/arm-billing/src/billingManagementClient.ts
@@ -45,7 +45,7 @@ import {
TransfersImpl,
PartnerTransfersImpl,
RecipientTransfersImpl,
-} from "./operations";
+} from "./operations/index.js";
import {
Agreements,
AssociatedTenants,
@@ -77,8 +77,8 @@ import {
Transfers,
PartnerTransfers,
RecipientTransfers,
-} from "./operationsInterfaces";
-import { BillingManagementClientOptionalParams } from "./models";
+} from "./operationsInterfaces/index.js";
+import { BillingManagementClientOptionalParams } from "./models/index.js";
export class BillingManagementClient extends coreClient.ServiceClient {
$host: string;
diff --git a/sdk/billing/arm-billing/src/index.ts b/sdk/billing/arm-billing/src/index.ts
index acd282c978aa..8107f279a800 100644
--- a/sdk/billing/arm-billing/src/index.ts
+++ b/sdk/billing/arm-billing/src/index.ts
@@ -7,7 +7,7 @@
*/
///
-export { getContinuationToken } from "./pagingHelper";
-export * from "./models";
-export { BillingManagementClient } from "./billingManagementClient";
-export * from "./operationsInterfaces";
+export { getContinuationToken } from "./pagingHelper.js";
+export * from "./models/index.js";
+export { BillingManagementClient } from "./billingManagementClient.js";
+export * from "./operationsInterfaces/index.js";
diff --git a/sdk/billing/arm-billing/src/models/parameters.ts b/sdk/billing/arm-billing/src/models/parameters.ts
index d9a4dc39223b..e20bd2e51d9a 100644
--- a/sdk/billing/arm-billing/src/models/parameters.ts
+++ b/sdk/billing/arm-billing/src/models/parameters.ts
@@ -39,7 +39,7 @@ import {
InitiateTransferRequest as InitiateTransferRequestMapper,
PartnerInitiateTransferRequest as PartnerInitiateTransferRequestMapper,
AcceptTransferRequest as AcceptTransferRequestMapper,
-} from "../models/mappers";
+} from "../models/mappers.js";
export const accept: OperationParameter = {
parameterPath: "accept",
diff --git a/sdk/billing/arm-billing/src/operations/address.ts b/sdk/billing/arm-billing/src/operations/address.ts
index d55423f03506..1e9c81a58134 100644
--- a/sdk/billing/arm-billing/src/operations/address.ts
+++ b/sdk/billing/arm-billing/src/operations/address.ts
@@ -6,16 +6,16 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Address } from "../operationsInterfaces";
+import { Address } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
AddressDetails,
AddressValidateOptionalParams,
AddressValidateResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Address operations. */
export class AddressImpl implements Address {
diff --git a/sdk/billing/arm-billing/src/operations/agreements.ts b/sdk/billing/arm-billing/src/operations/agreements.ts
index b27a288e37db..0d4364cb5326 100644
--- a/sdk/billing/arm-billing/src/operations/agreements.ts
+++ b/sdk/billing/arm-billing/src/operations/agreements.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Agreements } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Agreements } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
Agreement,
AgreementsListByBillingAccountNextOptionalParams,
@@ -21,7 +21,7 @@ import {
AgreementsGetOptionalParams,
AgreementsGetResponse,
AgreementsListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Agreements operations. */
diff --git a/sdk/billing/arm-billing/src/operations/associatedTenants.ts b/sdk/billing/arm-billing/src/operations/associatedTenants.ts
index 77f6f5c72e9c..dcaa2f509f22 100644
--- a/sdk/billing/arm-billing/src/operations/associatedTenants.ts
+++ b/sdk/billing/arm-billing/src/operations/associatedTenants.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { AssociatedTenants } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { AssociatedTenants } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
AssociatedTenant,
AssociatedTenantsListByBillingAccountNextOptionalParams,
@@ -31,7 +31,7 @@ import {
AssociatedTenantsCreateOrUpdateOptionalParams,
AssociatedTenantsCreateOrUpdateResponse,
AssociatedTenantsListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing AssociatedTenants operations. */
diff --git a/sdk/billing/arm-billing/src/operations/availableBalances.ts b/sdk/billing/arm-billing/src/operations/availableBalances.ts
index f18971962778..aeced72509af 100644
--- a/sdk/billing/arm-billing/src/operations/availableBalances.ts
+++ b/sdk/billing/arm-billing/src/operations/availableBalances.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { AvailableBalances } from "../operationsInterfaces";
+import { AvailableBalances } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
AvailableBalancesGetByBillingAccountOptionalParams,
AvailableBalancesGetByBillingAccountResponse,
AvailableBalancesGetByBillingProfileOptionalParams,
AvailableBalancesGetByBillingProfileResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing AvailableBalances operations. */
export class AvailableBalancesImpl implements AvailableBalances {
diff --git a/sdk/billing/arm-billing/src/operations/billingAccounts.ts b/sdk/billing/arm-billing/src/operations/billingAccounts.ts
index 8def2b303186..6940347e5981 100644
--- a/sdk/billing/arm-billing/src/operations/billingAccounts.ts
+++ b/sdk/billing/arm-billing/src/operations/billingAccounts.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingAccounts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingAccounts } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
InvoiceSectionWithCreateSubPermission,
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,
@@ -44,7 +44,7 @@ import {
BillingAccountsUpdateResponse,
BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse,
BillingAccountsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingAccounts operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingPermissions.ts b/sdk/billing/arm-billing/src/operations/billingPermissions.ts
index 79c96139ad1f..5c97f9eb0c67 100644
--- a/sdk/billing/arm-billing/src/operations/billingPermissions.ts
+++ b/sdk/billing/arm-billing/src/operations/billingPermissions.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingPermissions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingPermissions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
BillingPermission,
BillingPermissionsListByBillingAccountNextOptionalParams,
@@ -56,7 +56,7 @@ import {
BillingPermissionsListByCustomerAtBillingAccountNextResponse,
BillingPermissionsListByDepartmentNextResponse,
BillingPermissionsListByEnrollmentAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingPermissions operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingProfiles.ts b/sdk/billing/arm-billing/src/operations/billingProfiles.ts
index be5fca63100f..d8c910797ef9 100644
--- a/sdk/billing/arm-billing/src/operations/billingProfiles.ts
+++ b/sdk/billing/arm-billing/src/operations/billingProfiles.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingProfiles } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingProfiles } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BillingProfile,
BillingProfilesListByBillingAccountNextOptionalParams,
@@ -33,7 +33,7 @@ import {
BillingProfilesCreateOrUpdateOptionalParams,
BillingProfilesCreateOrUpdateResponse,
BillingProfilesListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingProfiles operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts b/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts
index d33772848ba5..71706e29fd55 100644
--- a/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts
+++ b/sdk/billing/arm-billing/src/operations/billingPropertyOperations.ts
@@ -6,18 +6,18 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BillingPropertyOperations } from "../operationsInterfaces";
+import { BillingPropertyOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
BillingPropertyGetOptionalParams,
BillingPropertyGetResponse,
BillingProperty,
BillingPropertyUpdateOptionalParams,
BillingPropertyUpdateResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing BillingPropertyOperations operations. */
export class BillingPropertyOperationsImpl
diff --git a/sdk/billing/arm-billing/src/operations/billingRequests.ts b/sdk/billing/arm-billing/src/operations/billingRequests.ts
index 4a8a83669f70..3fb073dcad81 100644
--- a/sdk/billing/arm-billing/src/operations/billingRequests.ts
+++ b/sdk/billing/arm-billing/src/operations/billingRequests.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingRequests } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingRequests } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BillingRequest,
BillingRequestsListByBillingProfileNextOptionalParams,
@@ -45,7 +45,7 @@ import {
BillingRequestsListByInvoiceSectionNextResponse,
BillingRequestsListByBillingAccountNextResponse,
BillingRequestsListByUserNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingRequests operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts b/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts
index ac0eb6b1b9dc..657e6bf7275e 100644
--- a/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts
+++ b/sdk/billing/arm-billing/src/operations/billingRoleAssignments.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingRoleAssignments } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingRoleAssignments } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BillingRoleAssignment,
BillingRoleAssignmentsListByBillingProfileNextOptionalParams,
@@ -86,7 +86,7 @@ import {
BillingRoleAssignmentsListByBillingAccountNextResponse,
BillingRoleAssignmentsListByDepartmentNextResponse,
BillingRoleAssignmentsListByEnrollmentAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingRoleAssignments operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingRoleDefinitionOperations.ts b/sdk/billing/arm-billing/src/operations/billingRoleDefinitionOperations.ts
index 8c4b5e2d61a9..3e33a9b0d2d9 100644
--- a/sdk/billing/arm-billing/src/operations/billingRoleDefinitionOperations.ts
+++ b/sdk/billing/arm-billing/src/operations/billingRoleDefinitionOperations.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingRoleDefinitionOperations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingRoleDefinitionOperations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
BillingRoleDefinition,
BillingRoleDefinitionListByBillingProfileNextOptionalParams,
@@ -51,7 +51,7 @@ import {
BillingRoleDefinitionListByBillingAccountNextResponse,
BillingRoleDefinitionListByDepartmentNextResponse,
BillingRoleDefinitionListByEnrollmentAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingRoleDefinitionOperations operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts b/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts
index a29c5673ca4d..80d33a8afab8 100644
--- a/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts
+++ b/sdk/billing/arm-billing/src/operations/billingSubscriptions.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingSubscriptions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingSubscriptions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BillingSubscription,
BillingSubscriptionsListByBillingProfileNextOptionalParams,
@@ -68,7 +68,7 @@ import {
BillingSubscriptionsListByBillingAccountNextResponse,
BillingSubscriptionsListByCustomerAtBillingAccountNextResponse,
BillingSubscriptionsListByEnrollmentAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingSubscriptions operations. */
diff --git a/sdk/billing/arm-billing/src/operations/billingSubscriptionsAliases.ts b/sdk/billing/arm-billing/src/operations/billingSubscriptionsAliases.ts
index 9c16c6f0cfa0..dc7bac5b9fd3 100644
--- a/sdk/billing/arm-billing/src/operations/billingSubscriptionsAliases.ts
+++ b/sdk/billing/arm-billing/src/operations/billingSubscriptionsAliases.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { BillingSubscriptionsAliases } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { BillingSubscriptionsAliases } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
BillingSubscriptionAlias,
BillingSubscriptionsAliasesListByBillingAccountNextOptionalParams,
@@ -29,7 +29,7 @@ import {
BillingSubscriptionsAliasesCreateOrUpdateOptionalParams,
BillingSubscriptionsAliasesCreateOrUpdateResponse,
BillingSubscriptionsAliasesListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing BillingSubscriptionsAliases operations. */
diff --git a/sdk/billing/arm-billing/src/operations/customers.ts b/sdk/billing/arm-billing/src/operations/customers.ts
index fe6db5db2d81..8cd9b8deb9c1 100644
--- a/sdk/billing/arm-billing/src/operations/customers.ts
+++ b/sdk/billing/arm-billing/src/operations/customers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Customers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Customers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
Customer,
CustomersListByBillingProfileNextOptionalParams,
@@ -27,7 +27,7 @@ import {
CustomersGetByBillingAccountResponse,
CustomersListByBillingProfileNextResponse,
CustomersListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Customers operations. */
diff --git a/sdk/billing/arm-billing/src/operations/departments.ts b/sdk/billing/arm-billing/src/operations/departments.ts
index 52a69413afe9..6732e063a037 100644
--- a/sdk/billing/arm-billing/src/operations/departments.ts
+++ b/sdk/billing/arm-billing/src/operations/departments.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Departments } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Departments } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
Department,
DepartmentsListByBillingAccountNextOptionalParams,
@@ -21,7 +21,7 @@ import {
DepartmentsGetOptionalParams,
DepartmentsGetResponse,
DepartmentsListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Departments operations. */
diff --git a/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts b/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts
index d6f7605b05b3..2890bcb6399a 100644
--- a/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts
+++ b/sdk/billing/arm-billing/src/operations/enrollmentAccounts.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { EnrollmentAccounts } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { EnrollmentAccounts } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
EnrollmentAccount,
EnrollmentAccountsListByDepartmentNextOptionalParams,
@@ -27,7 +27,7 @@ import {
EnrollmentAccountsGetResponse,
EnrollmentAccountsListByDepartmentNextResponse,
EnrollmentAccountsListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing EnrollmentAccounts operations. */
diff --git a/sdk/billing/arm-billing/src/operations/index.ts b/sdk/billing/arm-billing/src/operations/index.ts
index 658119e77c6f..9515bcfaa54d 100644
--- a/sdk/billing/arm-billing/src/operations/index.ts
+++ b/sdk/billing/arm-billing/src/operations/index.ts
@@ -6,33 +6,33 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./agreements";
-export * from "./associatedTenants";
-export * from "./availableBalances";
-export * from "./billingAccounts";
-export * from "./address";
-export * from "./billingPermissions";
-export * from "./billingProfiles";
-export * from "./billingPropertyOperations";
-export * from "./billingRequests";
-export * from "./billingRoleAssignments";
-export * from "./billingRoleDefinitionOperations";
-export * from "./savingsPlanOrders";
-export * from "./savingsPlans";
-export * from "./billingSubscriptions";
-export * from "./billingSubscriptionsAliases";
-export * from "./customers";
-export * from "./departments";
-export * from "./enrollmentAccounts";
-export * from "./invoices";
-export * from "./invoiceSections";
-export * from "./operations";
-export * from "./paymentMethods";
-export * from "./policies";
-export * from "./products";
-export * from "./reservations";
-export * from "./reservationOrders";
-export * from "./transactions";
-export * from "./transfers";
-export * from "./partnerTransfers";
-export * from "./recipientTransfers";
+export * from "./agreements.js";
+export * from "./associatedTenants.js";
+export * from "./availableBalances.js";
+export * from "./billingAccounts.js";
+export * from "./address.js";
+export * from "./billingPermissions.js";
+export * from "./billingProfiles.js";
+export * from "./billingPropertyOperations.js";
+export * from "./billingRequests.js";
+export * from "./billingRoleAssignments.js";
+export * from "./billingRoleDefinitionOperations.js";
+export * from "./savingsPlanOrders.js";
+export * from "./savingsPlans.js";
+export * from "./billingSubscriptions.js";
+export * from "./billingSubscriptionsAliases.js";
+export * from "./customers.js";
+export * from "./departments.js";
+export * from "./enrollmentAccounts.js";
+export * from "./invoices.js";
+export * from "./invoiceSections.js";
+export * from "./operations.js";
+export * from "./paymentMethods.js";
+export * from "./policies.js";
+export * from "./products.js";
+export * from "./reservations.js";
+export * from "./reservationOrders.js";
+export * from "./transactions.js";
+export * from "./transfers.js";
+export * from "./partnerTransfers.js";
+export * from "./recipientTransfers.js";
diff --git a/sdk/billing/arm-billing/src/operations/invoiceSections.ts b/sdk/billing/arm-billing/src/operations/invoiceSections.ts
index 94d16541e543..1901f38642a0 100644
--- a/sdk/billing/arm-billing/src/operations/invoiceSections.ts
+++ b/sdk/billing/arm-billing/src/operations/invoiceSections.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { InvoiceSections } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { InvoiceSections } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
InvoiceSection,
InvoiceSectionsListByBillingProfileNextOptionalParams,
@@ -33,7 +33,7 @@ import {
InvoiceSectionsCreateOrUpdateOptionalParams,
InvoiceSectionsCreateOrUpdateResponse,
InvoiceSectionsListByBillingProfileNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing InvoiceSections operations. */
diff --git a/sdk/billing/arm-billing/src/operations/invoices.ts b/sdk/billing/arm-billing/src/operations/invoices.ts
index 63eab26f2297..af7617bf647e 100644
--- a/sdk/billing/arm-billing/src/operations/invoices.ts
+++ b/sdk/billing/arm-billing/src/operations/invoices.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Invoices } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Invoices } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Invoice,
InvoicesListByBillingProfileNextOptionalParams,
@@ -52,7 +52,7 @@ import {
InvoicesListByBillingProfileNextResponse,
InvoicesListByBillingAccountNextResponse,
InvoicesListByBillingSubscriptionNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Invoices operations. */
diff --git a/sdk/billing/arm-billing/src/operations/operations.ts b/sdk/billing/arm-billing/src/operations/operations.ts
index cb12cdd81806..9999ce4d7a3a 100644
--- a/sdk/billing/arm-billing/src/operations/operations.ts
+++ b/sdk/billing/arm-billing/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 { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
Operation,
OperationsListNextOptionalParams,
OperationsListOptionalParams,
OperationsListResponse,
OperationsListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Operations operations. */
diff --git a/sdk/billing/arm-billing/src/operations/partnerTransfers.ts b/sdk/billing/arm-billing/src/operations/partnerTransfers.ts
index 2891aadb9e24..3f2e03e7de30 100644
--- a/sdk/billing/arm-billing/src/operations/partnerTransfers.ts
+++ b/sdk/billing/arm-billing/src/operations/partnerTransfers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PartnerTransfers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PartnerTransfers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
PartnerTransferDetails,
PartnerTransfersListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
PartnerTransfersCancelOptionalParams,
PartnerTransfersCancelResponse,
PartnerTransfersListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PartnerTransfers operations. */
diff --git a/sdk/billing/arm-billing/src/operations/paymentMethods.ts b/sdk/billing/arm-billing/src/operations/paymentMethods.ts
index 9d5c88cda42e..b898cbb4325a 100644
--- a/sdk/billing/arm-billing/src/operations/paymentMethods.ts
+++ b/sdk/billing/arm-billing/src/operations/paymentMethods.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { PaymentMethods } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { PaymentMethods } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
PaymentMethodLink,
PaymentMethodsListByBillingProfileNextOptionalParams,
@@ -35,7 +35,7 @@ import {
PaymentMethodsListByBillingProfileNextResponse,
PaymentMethodsListByBillingAccountNextResponse,
PaymentMethodsListByUserNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing PaymentMethods operations. */
diff --git a/sdk/billing/arm-billing/src/operations/policies.ts b/sdk/billing/arm-billing/src/operations/policies.ts
index d57e5c1c3511..0ce01f64d98b 100644
--- a/sdk/billing/arm-billing/src/operations/policies.ts
+++ b/sdk/billing/arm-billing/src/operations/policies.ts
@@ -6,17 +6,17 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { Policies } from "../operationsInterfaces";
+import { Policies } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
ServiceDefinedResourceName,
PoliciesGetByCustomerOptionalParams,
@@ -40,7 +40,7 @@ import {
PoliciesCreateOrUpdateByBillingAccountResponse,
PoliciesGetBySubscriptionOptionalParams,
PoliciesGetBySubscriptionResponse,
-} from "../models";
+} from "../models/index.js";
/** Class containing Policies operations. */
export class PoliciesImpl implements Policies {
diff --git a/sdk/billing/arm-billing/src/operations/products.ts b/sdk/billing/arm-billing/src/operations/products.ts
index bb82f9eeb3bc..c855ddb370dc 100644
--- a/sdk/billing/arm-billing/src/operations/products.ts
+++ b/sdk/billing/arm-billing/src/operations/products.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Products } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Products } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Product,
ProductsListByInvoiceSectionNextOptionalParams,
@@ -47,7 +47,7 @@ import {
ProductsListByBillingProfileNextResponse,
ProductsListByCustomerNextResponse,
ProductsListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Products operations. */
diff --git a/sdk/billing/arm-billing/src/operations/recipientTransfers.ts b/sdk/billing/arm-billing/src/operations/recipientTransfers.ts
index 1686987b3be9..42d82f589acc 100644
--- a/sdk/billing/arm-billing/src/operations/recipientTransfers.ts
+++ b/sdk/billing/arm-billing/src/operations/recipientTransfers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { RecipientTransfers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { RecipientTransfers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
RecipientTransferDetails,
RecipientTransfersListNextOptionalParams,
@@ -28,7 +28,7 @@ import {
RecipientTransfersGetOptionalParams,
RecipientTransfersGetResponse,
RecipientTransfersListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing RecipientTransfers operations. */
diff --git a/sdk/billing/arm-billing/src/operations/reservationOrders.ts b/sdk/billing/arm-billing/src/operations/reservationOrders.ts
index 7d7ebdd0b4d5..69039d34f4b4 100644
--- a/sdk/billing/arm-billing/src/operations/reservationOrders.ts
+++ b/sdk/billing/arm-billing/src/operations/reservationOrders.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { ReservationOrders } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { ReservationOrders } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
ReservationOrder,
ReservationOrdersListByBillingAccountNextOptionalParams,
@@ -21,7 +21,7 @@ import {
ReservationOrdersGetByBillingAccountOptionalParams,
ReservationOrdersGetByBillingAccountResponse,
ReservationOrdersListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing ReservationOrders operations. */
diff --git a/sdk/billing/arm-billing/src/operations/reservations.ts b/sdk/billing/arm-billing/src/operations/reservations.ts
index a71bead5130f..44f470c81d2d 100644
--- a/sdk/billing/arm-billing/src/operations/reservations.ts
+++ b/sdk/billing/arm-billing/src/operations/reservations.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Reservations } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Reservations } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Reservation,
ReservationsListByBillingAccountNextOptionalParams,
@@ -38,7 +38,7 @@ import {
ReservationsListByBillingAccountNextResponse,
ReservationsListByBillingProfileNextResponse,
ReservationsListByReservationOrderNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Reservations operations. */
diff --git a/sdk/billing/arm-billing/src/operations/savingsPlanOrders.ts b/sdk/billing/arm-billing/src/operations/savingsPlanOrders.ts
index cc68f538cbe8..c4dcef17d957 100644
--- a/sdk/billing/arm-billing/src/operations/savingsPlanOrders.ts
+++ b/sdk/billing/arm-billing/src/operations/savingsPlanOrders.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { SavingsPlanOrders } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { SavingsPlanOrders } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SavingsPlanOrderModel,
SavingsPlanOrdersListByBillingAccountNextOptionalParams,
@@ -21,7 +21,7 @@ import {
SavingsPlanOrdersGetByBillingAccountOptionalParams,
SavingsPlanOrdersGetByBillingAccountResponse,
SavingsPlanOrdersListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing SavingsPlanOrders operations. */
diff --git a/sdk/billing/arm-billing/src/operations/savingsPlans.ts b/sdk/billing/arm-billing/src/operations/savingsPlans.ts
index a0ec362cb245..16d9523b5caa 100644
--- a/sdk/billing/arm-billing/src/operations/savingsPlans.ts
+++ b/sdk/billing/arm-billing/src/operations/savingsPlans.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { SavingsPlans } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { SavingsPlans } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
SavingsPlanModel,
SavingsPlansListBySavingsPlanOrderNextOptionalParams,
@@ -37,7 +37,7 @@ import {
SavingsPlansValidateUpdateByBillingAccountResponse,
SavingsPlansListBySavingsPlanOrderNextResponse,
SavingsPlansListByBillingAccountNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing SavingsPlans operations. */
diff --git a/sdk/billing/arm-billing/src/operations/transactions.ts b/sdk/billing/arm-billing/src/operations/transactions.ts
index 5267ac01a9f7..821087dcd57c 100644
--- a/sdk/billing/arm-billing/src/operations/transactions.ts
+++ b/sdk/billing/arm-billing/src/operations/transactions.ts
@@ -7,18 +7,18 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Transactions } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Transactions } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
SimplePollerLike,
OperationState,
createHttpPoller,
} from "@azure/core-lro";
-import { createLroSpec } from "../lroImpl";
+import { createLroSpec } from "../lroImpl.js";
import {
Transaction,
TransactionsListByCustomerNextOptionalParams,
@@ -42,7 +42,7 @@ import {
TransactionsListByInvoiceSectionNextResponse,
TransactionsListByBillingProfileNextResponse,
TransactionsListByInvoiceNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Transactions operations. */
diff --git a/sdk/billing/arm-billing/src/operations/transfers.ts b/sdk/billing/arm-billing/src/operations/transfers.ts
index 85892e811b8b..581a91ece662 100644
--- a/sdk/billing/arm-billing/src/operations/transfers.ts
+++ b/sdk/billing/arm-billing/src/operations/transfers.ts
@@ -7,12 +7,12 @@
*/
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
-import { setContinuationToken } from "../pagingHelper";
-import { Transfers } from "../operationsInterfaces";
+import { setContinuationToken } from "../pagingHelper.js";
+import { Transfers } from "../operationsInterfaces/index.js";
import * as coreClient from "@azure/core-client";
-import * as Mappers from "../models/mappers";
-import * as Parameters from "../models/parameters";
-import { BillingManagementClient } from "../billingManagementClient";
+import * as Mappers from "../models/mappers.js";
+import * as Parameters from "../models/parameters.js";
+import { BillingManagementClient } from "../billingManagementClient.js";
import {
TransferDetails,
TransfersListNextOptionalParams,
@@ -26,7 +26,7 @@ import {
TransfersCancelOptionalParams,
TransfersCancelResponse,
TransfersListNextResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Class containing Transfers operations. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/address.ts b/sdk/billing/arm-billing/src/operationsInterfaces/address.ts
index e5a66be00b42..85bf1988409e 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/address.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/address.ts
@@ -10,7 +10,7 @@ import {
AddressDetails,
AddressValidateOptionalParams,
AddressValidateResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Address. */
export interface Address {
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/agreements.ts b/sdk/billing/arm-billing/src/operationsInterfaces/agreements.ts
index 860d4ff6d2f3..44e4c2bb0b62 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/agreements.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/agreements.ts
@@ -12,7 +12,7 @@ import {
AgreementsListByBillingAccountOptionalParams,
AgreementsGetOptionalParams,
AgreementsGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Agreements. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/associatedTenants.ts b/sdk/billing/arm-billing/src/operationsInterfaces/associatedTenants.ts
index 558dfb5d1f1a..8149557682c1 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/associatedTenants.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/associatedTenants.ts
@@ -17,7 +17,7 @@ import {
AssociatedTenantsGetResponse,
AssociatedTenantsCreateOrUpdateOptionalParams,
AssociatedTenantsCreateOrUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a AssociatedTenants. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/availableBalances.ts b/sdk/billing/arm-billing/src/operationsInterfaces/availableBalances.ts
index f6aba7357858..9c875254a320 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/availableBalances.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/availableBalances.ts
@@ -11,7 +11,7 @@ import {
AvailableBalancesGetByBillingAccountResponse,
AvailableBalancesGetByBillingProfileOptionalParams,
AvailableBalancesGetByBillingProfileResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a AvailableBalances. */
export interface AvailableBalances {
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingAccounts.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingAccounts.ts
index 84872f9387eb..582451c67ec6 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingAccounts.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingAccounts.ts
@@ -27,7 +27,7 @@ import {
BillingAccountPatch,
BillingAccountsUpdateOptionalParams,
BillingAccountsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingAccounts. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingPermissions.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingPermissions.ts
index 50f889b5273f..985713c79ebb 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingPermissions.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingPermissions.ts
@@ -29,7 +29,7 @@ import {
BillingPermissionsCheckAccessByDepartmentResponse,
BillingPermissionsCheckAccessByEnrollmentAccountOptionalParams,
BillingPermissionsCheckAccessByEnrollmentAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingPermissions. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingProfiles.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingProfiles.ts
index bcce47f42772..0b203d0c473a 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingProfiles.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingProfiles.ts
@@ -19,7 +19,7 @@ import {
BillingProfilesGetResponse,
BillingProfilesCreateOrUpdateOptionalParams,
BillingProfilesCreateOrUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingProfiles. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingPropertyOperations.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingPropertyOperations.ts
index fe95ea7560c4..9ec46d29782a 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingPropertyOperations.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingPropertyOperations.ts
@@ -12,7 +12,7 @@ import {
BillingProperty,
BillingPropertyUpdateOptionalParams,
BillingPropertyUpdateResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a BillingPropertyOperations. */
export interface BillingPropertyOperations {
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingRequests.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingRequests.ts
index 41fd4199a0f7..21f0ad47c09a 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingRequests.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingRequests.ts
@@ -19,7 +19,7 @@ import {
BillingRequestsGetResponse,
BillingRequestsCreateOrUpdateOptionalParams,
BillingRequestsCreateOrUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingRequests. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleAssignments.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleAssignments.ts
index 64f6d201fb2c..376d4a73d9c5 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleAssignments.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleAssignments.ts
@@ -57,7 +57,7 @@ import {
BillingRoleAssignmentsCreateOrUpdateByEnrollmentAccountResponse,
BillingRoleAssignmentsResolveByBillingAccountOptionalParams,
BillingRoleAssignmentsResolveByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingRoleAssignments. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleDefinitionOperations.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleDefinitionOperations.ts
index c5f73157885e..7e40e9cbd2d1 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleDefinitionOperations.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingRoleDefinitionOperations.ts
@@ -27,7 +27,7 @@ import {
BillingRoleDefinitionGetByDepartmentResponse,
BillingRoleDefinitionGetByEnrollmentAccountOptionalParams,
BillingRoleDefinitionGetByEnrollmentAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingRoleDefinitionOperations. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptions.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptions.ts
index 2c5f301ad034..16daa6faea79 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptions.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptions.ts
@@ -39,7 +39,7 @@ import {
BillingSubscriptionPatch,
BillingSubscriptionsUpdateOptionalParams,
BillingSubscriptionsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingSubscriptions. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptionsAliases.ts b/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptionsAliases.ts
index ef1f20cf7587..65961ca92d30 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptionsAliases.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/billingSubscriptionsAliases.ts
@@ -15,7 +15,7 @@ import {
BillingSubscriptionsAliasesGetResponse,
BillingSubscriptionsAliasesCreateOrUpdateOptionalParams,
BillingSubscriptionsAliasesCreateOrUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a BillingSubscriptionsAliases. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/customers.ts b/sdk/billing/arm-billing/src/operationsInterfaces/customers.ts
index b3df692c20b7..80e36a746d0d 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/customers.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/customers.ts
@@ -15,7 +15,7 @@ import {
CustomersGetResponse,
CustomersGetByBillingAccountOptionalParams,
CustomersGetByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Customers. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/departments.ts b/sdk/billing/arm-billing/src/operationsInterfaces/departments.ts
index 25b2d4b0321a..7738f10787bc 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/departments.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/departments.ts
@@ -12,7 +12,7 @@ import {
DepartmentsListByBillingAccountOptionalParams,
DepartmentsGetOptionalParams,
DepartmentsGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Departments. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/enrollmentAccounts.ts b/sdk/billing/arm-billing/src/operationsInterfaces/enrollmentAccounts.ts
index 87f9ef35ad81..d0adb40f9b24 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/enrollmentAccounts.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/enrollmentAccounts.ts
@@ -15,7 +15,7 @@ import {
EnrollmentAccountsGetByDepartmentResponse,
EnrollmentAccountsGetOptionalParams,
EnrollmentAccountsGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a EnrollmentAccounts. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/index.ts b/sdk/billing/arm-billing/src/operationsInterfaces/index.ts
index 658119e77c6f..9515bcfaa54d 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/index.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/index.ts
@@ -6,33 +6,33 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export * from "./agreements";
-export * from "./associatedTenants";
-export * from "./availableBalances";
-export * from "./billingAccounts";
-export * from "./address";
-export * from "./billingPermissions";
-export * from "./billingProfiles";
-export * from "./billingPropertyOperations";
-export * from "./billingRequests";
-export * from "./billingRoleAssignments";
-export * from "./billingRoleDefinitionOperations";
-export * from "./savingsPlanOrders";
-export * from "./savingsPlans";
-export * from "./billingSubscriptions";
-export * from "./billingSubscriptionsAliases";
-export * from "./customers";
-export * from "./departments";
-export * from "./enrollmentAccounts";
-export * from "./invoices";
-export * from "./invoiceSections";
-export * from "./operations";
-export * from "./paymentMethods";
-export * from "./policies";
-export * from "./products";
-export * from "./reservations";
-export * from "./reservationOrders";
-export * from "./transactions";
-export * from "./transfers";
-export * from "./partnerTransfers";
-export * from "./recipientTransfers";
+export * from "./agreements.js";
+export * from "./associatedTenants.js";
+export * from "./availableBalances.js";
+export * from "./billingAccounts.js";
+export * from "./address.js";
+export * from "./billingPermissions.js";
+export * from "./billingProfiles.js";
+export * from "./billingPropertyOperations.js";
+export * from "./billingRequests.js";
+export * from "./billingRoleAssignments.js";
+export * from "./billingRoleDefinitionOperations.js";
+export * from "./savingsPlanOrders.js";
+export * from "./savingsPlans.js";
+export * from "./billingSubscriptions.js";
+export * from "./billingSubscriptionsAliases.js";
+export * from "./customers.js";
+export * from "./departments.js";
+export * from "./enrollmentAccounts.js";
+export * from "./invoices.js";
+export * from "./invoiceSections.js";
+export * from "./operations.js";
+export * from "./paymentMethods.js";
+export * from "./policies.js";
+export * from "./products.js";
+export * from "./reservations.js";
+export * from "./reservationOrders.js";
+export * from "./transactions.js";
+export * from "./transfers.js";
+export * from "./partnerTransfers.js";
+export * from "./recipientTransfers.js";
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/invoiceSections.ts b/sdk/billing/arm-billing/src/operationsInterfaces/invoiceSections.ts
index 74cffc96ce9f..cc69d34b8d49 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/invoiceSections.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/invoiceSections.ts
@@ -19,7 +19,7 @@ import {
InvoiceSectionsGetResponse,
InvoiceSectionsCreateOrUpdateOptionalParams,
InvoiceSectionsCreateOrUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a InvoiceSections. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/invoices.ts b/sdk/billing/arm-billing/src/operationsInterfaces/invoices.ts
index df38c0fb9334..243a55cfeb78 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/invoices.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/invoices.ts
@@ -32,7 +32,7 @@ import {
InvoicesGetByBillingSubscriptionResponse,
InvoicesGetOptionalParams,
InvoicesGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Invoices. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/operations.ts b/sdk/billing/arm-billing/src/operationsInterfaces/operations.ts
index ff9d59da1139..ded1da47e52b 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/operations.ts
+++ b/sdk/billing/arm-billing/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/billing/arm-billing/src/operationsInterfaces/partnerTransfers.ts b/sdk/billing/arm-billing/src/operationsInterfaces/partnerTransfers.ts
index 1d937fe3888e..2d0bdf76b844 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/partnerTransfers.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/partnerTransfers.ts
@@ -17,7 +17,7 @@ import {
PartnerTransfersInitiateResponse,
PartnerTransfersCancelOptionalParams,
PartnerTransfersCancelResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PartnerTransfers. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/paymentMethods.ts b/sdk/billing/arm-billing/src/operationsInterfaces/paymentMethods.ts
index 74adb18c6633..1580f04a6625 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/paymentMethods.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/paymentMethods.ts
@@ -20,7 +20,7 @@ import {
PaymentMethodsDeleteByUserOptionalParams,
PaymentMethodsGetByUserOptionalParams,
PaymentMethodsGetByUserResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a PaymentMethods. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/policies.ts b/sdk/billing/arm-billing/src/operationsInterfaces/policies.ts
index df5933b8b7cc..86fc17e93fcc 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/policies.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/policies.ts
@@ -30,7 +30,7 @@ import {
PoliciesCreateOrUpdateByBillingAccountResponse,
PoliciesGetBySubscriptionOptionalParams,
PoliciesGetBySubscriptionResponse,
-} from "../models";
+} from "../models/index.js";
/** Interface representing a Policies. */
export interface Policies {
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/products.ts b/sdk/billing/arm-billing/src/operationsInterfaces/products.ts
index 457b88958f60..25caccf6f0cb 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/products.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/products.ts
@@ -24,7 +24,7 @@ import {
ProductPatch,
ProductsUpdateOptionalParams,
ProductsUpdateResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Products. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/recipientTransfers.ts b/sdk/billing/arm-billing/src/operationsInterfaces/recipientTransfers.ts
index 66161cb151cf..cf040fe30d1a 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/recipientTransfers.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/recipientTransfers.ts
@@ -19,7 +19,7 @@ import {
RecipientTransfersDeclineResponse,
RecipientTransfersGetOptionalParams,
RecipientTransfersGetResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a RecipientTransfers. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/reservationOrders.ts b/sdk/billing/arm-billing/src/operationsInterfaces/reservationOrders.ts
index 63434f18abda..3be4028bad29 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/reservationOrders.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/reservationOrders.ts
@@ -12,7 +12,7 @@ import {
ReservationOrdersListByBillingAccountOptionalParams,
ReservationOrdersGetByBillingAccountOptionalParams,
ReservationOrdersGetByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a ReservationOrders. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/reservations.ts b/sdk/billing/arm-billing/src/operationsInterfaces/reservations.ts
index af770f0ad16c..41310aa38c5b 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/reservations.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/reservations.ts
@@ -18,7 +18,7 @@ import {
Patch,
ReservationsUpdateByBillingAccountOptionalParams,
ReservationsUpdateByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Reservations. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlanOrders.ts b/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlanOrders.ts
index 82f06001c843..50a0d735dc83 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlanOrders.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlanOrders.ts
@@ -12,7 +12,7 @@ import {
SavingsPlanOrdersListByBillingAccountOptionalParams,
SavingsPlanOrdersGetByBillingAccountOptionalParams,
SavingsPlanOrdersGetByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a SavingsPlanOrders. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlans.ts b/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlans.ts
index 5efbbb59e1ce..c3e12393f401 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlans.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/savingsPlans.ts
@@ -20,7 +20,7 @@ import {
SavingsPlanUpdateValidateRequest,
SavingsPlansValidateUpdateByBillingAccountOptionalParams,
SavingsPlansValidateUpdateByBillingAccountResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a SavingsPlans. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/transactions.ts b/sdk/billing/arm-billing/src/operationsInterfaces/transactions.ts
index 944838df17da..409de4129a95 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/transactions.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/transactions.ts
@@ -19,7 +19,7 @@ import {
TransactionsTransactionsDownloadByInvoiceResponse,
TransactionsGetTransactionSummaryByInvoiceOptionalParams,
TransactionsGetTransactionSummaryByInvoiceResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Transactions. */
diff --git a/sdk/billing/arm-billing/src/operationsInterfaces/transfers.ts b/sdk/billing/arm-billing/src/operationsInterfaces/transfers.ts
index 9f1f0cc3d390..b97c87a0804b 100644
--- a/sdk/billing/arm-billing/src/operationsInterfaces/transfers.ts
+++ b/sdk/billing/arm-billing/src/operationsInterfaces/transfers.ts
@@ -17,7 +17,7 @@ import {
TransfersInitiateResponse,
TransfersCancelOptionalParams,
TransfersCancelResponse,
-} from "../models";
+} from "../models/index.js";
///
/** Interface representing a Transfers. */
diff --git a/sdk/billing/arm-billing/test/billing_operations_test.spec.ts b/sdk/billing/arm-billing/test/billing_operations_test.spec.ts
index 8eab0d30dd91..56b0484f8baa 100644
--- a/sdk/billing/arm-billing/test/billing_operations_test.spec.ts
+++ b/sdk/billing/arm-billing/test/billing_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 { BillingManagementClient } from "../src/billingManagementClient";
+import { BillingManagementClient } from "../src/billingManagementClient.js";
+import { describe, it, assert, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record = {
SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888"
@@ -38,21 +36,14 @@ describe("Billing test", () => {
let recorder: Recorder;
let subscriptionId: string;
let client: BillingManagementClient;
- let location: string;
- 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
const credential = createTestCredential();
client = new BillingManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
- location = "eastus";
- resourceGroup = "myjstest";
- resourcename = "resourcetest";
-
});
afterEach(async function () {
diff --git a/sdk/billing/arm-billing/test/sampleTest.ts b/sdk/billing/arm-billing/test/sampleTest.ts
deleted file mode 100644
index 8ff7deb0acbe..000000000000
--- a/sdk/billing/arm-billing/test/sampleTest.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-import {
- Recorder,
- RecorderStartOptions,
- env
-} from "@azure-tools/test-recorder";
-import { assert } from "chai";
-import { Context } from "mocha";
-
-const replaceableVariables: Record = {
- AZURE_CLIENT_ID: "azure_client_id",
- AZURE_CLIENT_SECRET: "azure_client_secret",
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
- SUBSCRIPTION_ID: "azure_subscription_id"
-};
-
-const recorderOptions: RecorderStartOptions = {
- envSetupForPlayback: replaceableVariables,
- removeCentralSanitizers: [
- "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
- "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
- ],
-};
-
-describe("My test", () => {
- let recorder: Recorder;
-
- beforeEach(async function (this: Context) {
- recorder = new Recorder(this.currentTest);
- await recorder.start(recorderOptions);
- });
-
- afterEach(async function () {
- await recorder.stop();
- });
-
- it("sample test", async function () {
- console.log("Hi, I'm a test!");
- });
-});
diff --git a/sdk/billing/arm-billing/tsconfig.browser.config.json b/sdk/billing/arm-billing/tsconfig.browser.config.json
new file mode 100644
index 000000000000..b6586181d006
--- /dev/null
+++ b/sdk/billing/arm-billing/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/billing/arm-billing/tsconfig.json b/sdk/billing/arm-billing/tsconfig.json
index 9ae8a5150d1d..19ceb382b521 100644
--- a/sdk/billing/arm-billing/tsconfig.json
+++ b/sdk/billing/arm-billing/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-billing": [
- "./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/billing/arm-billing/tsconfig.samples.json b/sdk/billing/arm-billing/tsconfig.samples.json
new file mode 100644
index 000000000000..688013646945
--- /dev/null
+++ b/sdk/billing/arm-billing/tsconfig.samples.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../../../tsconfig.samples.base.json",
+ "compilerOptions": {
+ "paths": {
+ "@azure/arm-billing": [
+ "./dist/esm"
+ ]
+ }
+ }
+}
diff --git a/sdk/billing/arm-billing/tsconfig.src.json b/sdk/billing/arm-billing/tsconfig.src.json
new file mode 100644
index 000000000000..bae70752dd38
--- /dev/null
+++ b/sdk/billing/arm-billing/tsconfig.src.json
@@ -0,0 +1,3 @@
+{
+ "extends": "../../../tsconfig.lib.json"
+}
diff --git a/sdk/billing/arm-billing/tsconfig.test.json b/sdk/billing/arm-billing/tsconfig.test.json
new file mode 100644
index 000000000000..3c2b783a8c1b
--- /dev/null
+++ b/sdk/billing/arm-billing/tsconfig.test.json
@@ -0,0 +1,6 @@
+{
+ "extends": [
+ "./tsconfig.src.json",
+ "../../../tsconfig.test.base.json"
+ ]
+}
diff --git a/sdk/billing/arm-billing/vitest.browser.config.ts b/sdk/billing/arm-billing/vitest.browser.config.ts
new file mode 100644
index 000000000000..b48c61b2ef46
--- /dev/null
+++ b/sdk/billing/arm-billing/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/billing/arm-billing/vitest.config.ts b/sdk/billing/arm-billing/vitest.config.ts
new file mode 100644
index 000000000000..2a4750c84292
--- /dev/null
+++ b/sdk/billing/arm-billing/vitest.config.ts
@@ -0,0 +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 mergeConfig(
+ viteConfig,
+ defineConfig({
+ test: {
+ hookTimeout: 1200000,
+ testTimeout: 1200000,
+ },
+ }),
+);
diff --git a/sdk/billing/arm-billing/vitest.esm.config.ts b/sdk/billing/arm-billing/vitest.esm.config.ts
new file mode 100644
index 000000000000..a70127279fc9
--- /dev/null
+++ b/sdk/billing/arm-billing/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
+);