I've created an app service using a bicep resource shown below
name: '${appName}'
location: location
kind: 'linux,container,fnapp'
properties: {
serverFarmId: servicePlan.id
siteConfig: {
linuxFxVersion: 'DOCKER|${dockerLocation}'
healthCheckPath: '/api/healthcheck'
alwaysOn: true
appSettings: [
...
]
}
}
}
Which works as expected, however I'd like to get the url for that app service to use as a backend url for my apim service.
I'm currently using var fnAppUrl = 'https://${fnApp.name}.azurewebsites.net/api'
. Is there any way I can get the default url from the direct output of the function app resource i.e. var fnAppUrl = fnApp.url
or something similar?
TIA