import type { WebSiteManagementModels } from '@azure/arm-appservice' ; import { createKuduClient } from '../createKuduClient' ; import { ParsedSite } from '../SiteClient' ; import { delayFirstWebAppDeploy } from './delayFirstWebAppDeploy' ; import { IDeployContext } from './IDeployContext' ; import { runWithZipStream } from './runWithZipStream' ; import { waitForDeploymentToComplete } from './waitForDeploymentToComplete' ; export async function deployZip ( context , site , fsPath , aspPromise , pathFileMap ? ) { const kuduClient = await createKuduClient ( context , site ) ; await runWithZipStream ( context , { fsPath , site , pathFileMap , callback : async ( zipStream ) => { await kuduClient . pushDeployment . zipPushDeploy ( ( ) => zipStream , { isAsync : true , author : 'VS Code' } ) ; } } ) ; await waitForDeploymentToComplete ( context , site ) ; await delayFirstWebAppDeploy ( context , site , aspPromise ) ; }