My goal is similar to the dynamic infrastructure scenario from your blog article here and the deployment process steps are as follows:
- Deploy ARM Template
- Create Deployment Target
- Create Deployment Slot
- Deploy FunctionApp
- Swap Deployment Slot
Pleease note, I am deploying FunctionApp not WebApp and my Deployment step customised version of the already existing template here.
Since I am creating the deployment target on the fly it’s role is not known for the deployment step 4, where I can not use a variable for a “target role” I am deploying to?
I am not sure how to deploy to a dynamically created “target role”… step 4 doesn’t take variable?!
I have already reviewed similar questions like Target role as a variable and Azure Web app deployment - use a variable rather than target role but failed to come-up with modeling solution to acheive my goal…
Thanks for your help in advance!