import type { ApplicationInsightsManagementClient } from '@azure/arm-appinsights' ; import type { WebSiteManagementClient } from '@azure/arm-appservice' ; import type { ResourceGraphClient } from '@azure/arm-resourcegraph' ; import type { ResourceManagementClient } from '@azure/arm-resources' ; import { AzExtClientContext , createAzureClient , createAzureSubscriptionClient } from 'vscode-azureextensionui' ; 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 ) ; } export async function createResourceClient ( context ) { return createAzureClient ( context , ( await import ( '@azure/arm-resources' ) ) . ResourceManagementClient ) ; } export async function createResourceGraphClient ( context ) { return createAzureSubscriptionClient ( context , ( await import ( '@azure/arm-resourcegraph' ) ) . ResourceGraphClient ) ; }