Forum Discussion
tutumon79
May 11, 2025Copper Contributor
Bicep Error While Integration API Management with Function App
Team, We are trying to automate the deployment of Azure Function App with Azure API Management so that when there is a schema change, we dont have to manually update the APIM with the functionApp s...
Kidd_Ip
May 13, 2025MVP
- Consider module instead of apiManagement
- Change apimanagement.bicep to Subscription Scope instead of resourceGroup
targetScope = 'subscription'
3. Modify module definition to specify the correct resource group:
module apimanagement 'modules/apimanagement.bicep' = {
name: 'apimdeploy'
scope: resourceGroup('rg-rxx-apim-${application}-${environment}')
params: {
application: application
environment: environment
}
}
4. Use dependsOn to ensure proper sequencing.