Yes, you can add the information to your ARM Template using DSC or CSE but the ksy is what in the script. Below is sample information that should be in the script, enableDump.ps1
# Setup the Guest OS to collect a kernel dump on an OS crash event
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -name CrashDumpEnabled -Type DWord -force -Value 2
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -name DumpFile -Type ExpandString -force -Value "%SystemRoot%\MEMORY.DMP"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -name NMICrashDump -Type DWord -force -Value 1
You cant do that with ARM Template, you can, however, use script or powershell dsc extension (as part of the arm template) to configure that. examples of those extensions:
Yes, you can add the information to your ARM Template using DSC or CSE but the ksy is what in the script. Below is sample information that should be in the script,
enableDump.ps1
Reference to values in script; https://support.microsoft.com/en-us/help/254649/overview-of-memory-dump-file-options-for-windows
CustomScript setting in Arm Template can be as simple as;
Hope this helps.
You cant do that with ARM Template, you can, however, use script or powershell dsc extension (as part of the arm template) to configure that. examples of those extensions:
Reading:
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview