Thanks for the great video. If we want to provision an Azure function app with source deployed from azure devops with the use of Bicep how to create the bicep resource? Tried with the Microsoft.Web/sites/sourcecontrols, but no luck so far. Can you pls shed a light on this. Thanks in advance.
Thanks a lot for your kind comments. If I understand it right you are trying to deploy Function App using Bicep through ADO. I would recommend using the template below github.com/Azure/bicep/blob/main/docs/examples/101/function-app-create/main.bicep So my recommendations are: 1. Update parameters in GitHub template 2. Run template locally and test the deployment 3. Checkin ADO and use Microsoft hosted agents (Bicep latest version is already deployed here) Let me know if you still experience issues.
@@techscout7012 Thank you very much for the quick response. Creating the function app and the rest of the required resources are successful (storage account, hosting plan, and app insight). I have the function app in a separate repo (DevOps Repo) and want to create and connect the source control resource also as a part of the resource creation. Which keeps failing. Thank you in advance resource funcAppName_web 'Microsoft.Web/sites/sourcecontrols@2021-01-15' = { parent: azureFunction name: 'web' properties: { repoUrl: repoURL branch: AzureDevOpsBranch isManualIntegration: true } }
Great video Asif. Thanks for sharing it with the community. Hope to see more Bicep videos.
Thanks for writing back team
Thanks for the great video. If we want to provision an Azure function app with source deployed from azure devops with the use of Bicep how to create the bicep resource? Tried with the Microsoft.Web/sites/sourcecontrols, but no luck so far. Can you pls shed a light on this. Thanks in advance.
Thanks a lot for your kind comments. If I understand it right you are trying to deploy Function App using Bicep through ADO. I would recommend using the template below
github.com/Azure/bicep/blob/main/docs/examples/101/function-app-create/main.bicep
So my recommendations are:
1. Update parameters in GitHub template
2. Run template locally and test the deployment
3. Checkin ADO and use Microsoft hosted agents (Bicep latest version is already deployed here)
Let me know if you still experience issues.
@@techscout7012 Thank you very much for the quick response. Creating the function app and the rest of the required resources are successful (storage account, hosting plan, and app insight). I have the function app in a separate repo (DevOps Repo) and want to create and connect the source control resource also as a part of the resource creation. Which keeps failing. Thank you in advance
resource funcAppName_web 'Microsoft.Web/sites/sourcecontrols@2021-01-15' = {
parent: azureFunction
name: 'web'
properties: {
repoUrl: repoURL
branch: AzureDevOpsBranch
isManualIntegration: true
}
}