The short version
Variable substation is not taking place on files in my package when I use the Deploy an Azure Resource Manager template.
Is this expected, and if so how can I request that this feature be added?
The long version
I’m using the Deploy an Azure Resource Manager template step to successfully deploy an API Management API and several Named Values to Azure. My ‘Template Source’ for this is ‘File inside a package’.
In the same package as the ARM template and it’s associated parameters file, I have several XML Policy files, some of which contain Octopus variable substitution place holders. These files are uploaded to Blob Storage using a deployment script, which should run after variable substitution.
Here is an example of what I’m doing in the XML Policy files -
After the XML Policy files have been uploaded to Blob Storage, that same script also sets an Octopus variable using the
Set-OctopusVariable PowerShell Cmdlet, and that is used by the aforementioned ARM template to link to my XML Policy files at deployment time.
The deployment is successful, but variable substitution is not occurring in the XML Policy files.
There is no configurable feature to allow me to specify files in which variable substitution should take place, so I was expecting it to automatically occur on all files in the package.
Is the behavior that I have described expected, and if so how can I request that this feature be added?