Disable Azure diagnostic agent for Azure VM diagnostic logs using ARM template

321 Views Asked by At

We have managed to get the diagnostic extension installed using quick start ARM template here and it appears to be working fine, however is there any way to keep it turned off while provisioning so that it does not start pushing collected data to storage sink unless it is explicitly enabled manually later whenever needed e.g. using Azure portal?

enter image description here

Use case is - we would want to spin up several Azure VMs using ARM template with diagnostic settings extension added but disabled, it would only be enabled for select VMs later if required. Is it possible to achieve using ARM template?

0

There are 0 best solutions below