Enable VMSS diagnostic logs #1797
Labels
fixed
Something works now, yay!
high priority
Important!
infrastructure
Related to repository automation
We've been informed that there's a Microsoft policy requiring us to enable diagnostic logs for our Virtual Machine Scale Sets. As we regularly create new VMSSes (every time there's a new VS Preview), we need to make this part of our script
azure-devops/create-vmss.ps1
. We received the following instructions:These instructions were in terms of Azure CLI, but I believe they can be translated to Azure PowerShell.
az vmss diagnostics set
appears to beAdd-AzVmssDiagnosticsExtension
. I can't seem to find an analogue ofaz vmss diagnostics get-default-config
but it sounds like we could generate it once with Azure CLI and commitvmssconfig.json
, or perhaps we could run Azure CLI from PowerShell.I assume that we would need to somehow store the "SAS token" in a shared secret, or we would need to add checklist instructions to generate it once and store it in a gitignored file (much like the Status Chart instructions for
.env
) which would be much easier.The text was updated successfully, but these errors were encountered: