I think it may be a problem related to the path to your ADF resource files ARMTemplateForFactory.json
and ARMTemplateParametersForFactory.json
which is not correctly specified in your pipeline YAML.
The warning about NameMismatch
might indicate that some resource names in your deployment are not consistent with expectations like case sensitivity or reserved words.
You can enable detailed logging for your pipeline to get more insights into what might be failing:
variables:
system.debug: true
Try also to vlone your repository and use the ADF management tools to manually generate ARM templates:
az datafactory export-arm-template \
--resource-group <ResourceGroupName> \
--factory-name <DataFactoryName> \
--output-folder <OutputFolderPath>
Verify that your YAML script includes the correct steps for validation and ARM template generation. For example:
- task: AzureCLI@2
displayName: 'Generate ARM Templates'
inputs:
azureSubscription: '<AzureSubscription>'
scriptType: 'ps'
scriptLocation: 'inlineScript'
inlineScript: |
az datafactory export-arm-template \
--resource-group $(ResourceGroup) \
--factory-name $(ADFName) \
--output-folder $(Build.ArtifactStagingDirectory)