2
votes

I am trying to deploy a Virtual Network, Log analytics workspace and a Kubernetes service on Azure with Azure Devops.

The deployment of the Kubernetes Service requires input of my Log Analytics workspaceID and subnetID. I can use the ARM Outputs task to get the outputs of these resources but how would I set them in my parameter file?

I know you can use linked templates for this but it requires a storage account which adds extra complexity.

1
I know it is not the direct answer to your question but have you considered using Terraform? Much simpler than ARM templates and is built into Cloud Shell bash shell. What you are trying to do is very easy when using Terraform. - phydeauxman
I am willing to invest some time in it but there are so many IaC tools that I'm not sure which one is "the best" - Dresse
Here is a decent article on CI/CD: open.microsoft.com/2018/05/22/… - phydeauxman
did you already find a solution to this ? - achahbar

1 Answers

0
votes

you dont actually need to set them in the parameters file or parameters themselves. you can just get outputs from previous deployments to the resource group if you know their name(s).

But honestly, most likely you should deploy everything (related to the same app) under the same template (set of templates) so this is more of a self imposed issue. You can also just use arm template outputs and use outputs as input to other templaes