import { ApplicationInsightsManagementClient } from '@azure/arm-appinsights' ; import { WebSiteManagementClient } from '@azure/arm-appservice' ; import { CosmosDBManagementClient } from '@azure/arm-cosmosdb' ; import { EventHubManagementClient } from '@azure/arm-eventhub' ; import { ServiceBusManagementClient } from '@azure/arm-servicebus' ; import { StorageManagementClient } from '@azure/arm-storage' ; import { AzExtClientContext , createAzureClient } from 'vscode-azureextensionui' ; export async function createStorageClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-storage' ) ) . StorageManagementClient ) ; } export async function createCosmosDBClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-cosmosdb' ) ) . CosmosDBManagementClient ) ; } export async function createEventHubClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-eventhub' ) ) . EventHubManagementClient ) ; } export async function createServiceBusClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-servicebus' ) ) . ServiceBusManagementClient ) ; } export async function createWebSiteClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-appservice' ) ) . WebSiteManagementClient ) ; } export async function createAppInsightsClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-appinsights' ) ) . ApplicationInsightsManagementClient ) ; }