Search code examples
azureazure-storageazure-virtual-machineazure-powershellazureportal

Change the boot diagnostic storage account of azure virtual machine


I have enabled a diagnostic storage account for my virtual machine. Now I want to change the diagnostic storage account. How do I do it in portal / PowerShell?

I can see that we have a cmdlet - "Set-AzureRmVMBootDiagnostics", however, this is not updating the diagnostic storage account to a new one.

In specific: My current diagnostic storage is "ibmngeus2" and I would like to change to "sqlbackupacct".


Solution

  • In the Azure portal, you should be able to click on the boot diagnostics section of the virtual machine, and then click the settings, and then click the storage account section to change the storage account. Keep in mind that the new storage account you want to use must be in the same subscription and location or it will not show up as one you can choose.

    enter image description here