summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const resourceGroupName = "rg" ; const name = "testStaticSite0" ; const environmentName = "default" ; const functionAppName = "testFunctionApp" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . staticSites . getUserProvidedFunctionAppForStaticSiteBuild ( resourceGroupName , name , environmentName , functionAppName ) ; console . log ( result ) ; } getDetailsOfTheUserProvidedFunctionAppRegisteredWithAStaticSiteBuild ( ) . catch ( console . error ) ;