I followed this tutorial (Build DevOps CI/CD pipeline for Python Flask with Azure DevOps ). In the step 3 (Create Continuous Deployment Release pipeline) of the tutorial I have to create an "Azure resource group deployment" task in a release.
I couldn't find a task with "Azure resource group deployment" name. But I found "ARM Template Deployment" task. Since it's settings was similar to "Azure resource group deployment" task, I assumed they are the same, and it might have been changed since the tutorial's date.
This is the YAML of my task:
steps:
- task: AzureResourceManagerTemplateDeployment@3
displayName: 'ARM Template deployment: Resource Group scope'
inputs:
azureResourceManagerConnection: ####
subscriptionId: ####
resourceGroupName: ###
location: 'North Europe'
csmFile: '**/windows-webapp-template.json'
overrideParameters: '-webAppName "####" -hostingPlanName "####" -appInsightsLocation "North Europe" -sku "S1 Standard"'
The release build breaks on this task with the following error:
Error: Could not find any file matching the template file pattern
This is the structure of the folders:
-Application
-ArmTemplate
-windows-webapp-template.json
-Tests
I have tried all the solutions given in other stackoverflow pages about this condition. I have tried all following paths:
'ArmTemplates/windows-webapp-template.json'
'ArmTemplates\windows-webapp-template.json'
'**/windows-webapp-template.json'
'**\windows-webapp-template.json'
'$(System.DefaultWorkingDirectory)/**/windows-webapp-template.json'
'$(System.DefaultWorkingDirectory)\**\windows-webapp-template.json'
'$(System.DefaultWorkingDirectory)/ArmTemplates/windows-webapp-template.json'
'$(System.DefaultWorkingDirectory)\ArmTemplates\windows-webapp-template.json'
None of the solutions works for me. Could some one please help me?