import type { ServiceClient } from '@azure/ms-rest-js' ; import { createGenericClient , IActionContext } from 'vscode-azureextensionui' ; import { ParsedSite } from './SiteClient' ; export async function pingFunctionApp ( context , site ) { const client = await site . createClient ( context ) ; const genericClient = await createGenericClient ( context , undefined ) ; await genericClient . sendRequest ( { method : 'GET' , url : `${ site . defaultHostUrl }/admin/host/status` , headers : { 'x-functions-key' : ( await client . listHostKeys ( ) ) . masterKey } } ) ; }