After further investigation and following the instructions at this link: https://learn.microsoft.com/en-us/archive/blogs/najib/deploying-linked-arm-templates-with-vsts
I did edit the YMAL file by replacing "ARMTemplateForFactory.json" with "linkedTemplates/ArmTemplate_master.json".
I then replaced "ARMTemplateParametersForFactory.json" with "linkedTemplates/ArmTemplateParameters_master.json".
I then created the two GitHub Action Secrets called "CONTAINER_URI" and "CONTAINER_SAS_TOKEN".
I then added this to the "additionalParameters" as follows
containerUri=${{ secrets.CONTAINER_URI }}
containerSasToken=${{ secrets.CONTAINER_SAS_TOKEN }}'
Also, for the MANAGED IDENTITY called "ADF-UAMI", I added the following role assignments:
Contributor
Storage Blob Data Contributor
Storage Account Contributor
Storage Blob Data Owner
Storage Blob Data Reader
Also, I generated the SAS Token in the storage account as prescribed in the instructions.
At first, this seemed to have worked since it was able to find the "ArmTemplate_0.json" files.
But then I get the error "InvalidContentLink" and "Unable to download deployment content..."
For reference, below is the YAML code I used, and here is the complete error message:
ERROR: {"code": "InvalidContentLink", "message": "Unable to download deployment content from '/ArmTemplate_0.jsonsig=Sanitized Azure Storage Account Shared Access Signature'. The tracking Id is 'f6b674ad-7dbc-4434-96ea-6e56cb34daa6'. Please see https://aka.ms/arm-deploy-resources for usage details."
Can someone let me know why I'm getting this error message?
Any help is greatly appreciated.
Here's the updated code at the bottom for reference:
with:
resourceGroupName: JCG-EnterpriseDataWarehouse-00-rg
dataFactoryName: jcg-src-uat-00-adf
armTemplateFile: linkedTemplates/ArmTemplate_master.json
armTemplateParametersFile: linkedTemplates/ArmTemplateParameters_master.json
additionalParameters:
'factoryName=jcg-src-uat-00-adf containerUri=${{ secrets.CONTAINER_URI }} containerSasToken=${{ secrets.CONTAINER_SAS_TOKEN }}'