forked from radius-project/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-vm-windows-diagnostics.bicep
20 lines (20 loc) · 2.68 KB
/
res-vm-windows-diagnostics.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Diagnostics Extension for a Windows Virtual Machine
resource /*${1:windowsVMDiagnostics}*/windowsVMDiagnostics 'Microsoft.Compute/virtualMachines/extensions@2020-12-01' = {
name: /*${2:'name'}*/'windowsVM/Diagnostics'
location: /*${3:location}*/'location'
properties: {
publisher: 'Microsoft.Azure.Diagnostics'
type: 'IaaSDiagnostics'
typeHandlerVersion: '1.5'
autoUpgradeMinorVersion: true
settings: {
xmlCfg: base64('<WadCfg> <DiagnosticMonitorConfiguration overallQuotaInMB="4096" xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"> <DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Error"/> <Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Error" /> <Directories scheduledTransferPeriod="PT1M"> <IISLogs containerName ="wad-iis-logfiles" /> <FailedRequestLogs containerName ="wad-failedrequestlogs" /> </Directories> <WindowsEventLog scheduledTransferPeriod="PT1M" > <DataSource name="Application!*" /> </WindowsEventLog> <CrashDumps containerName="wad-crashdumps" dumpType="Mini"> <CrashDumpConfiguration processName="WaIISHost.exe"/> <CrashDumpConfiguration processName="WaWorkerHost.exe"/> <CrashDumpConfiguration processName="w3wp.exe"/> </CrashDumps> <PerformanceCounters scheduledTransferPeriod="PT1M"> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\Memory\\\\\\\\Available MBytes" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\Web Service(_Total)\\\\\\\\ISAPI Extension Requests/sec" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\Web Service(_Total)\\\\\\\\Bytes Total/Sec" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\ASP.NET Applications(__Total__)\\\\\\\\Requests/Sec" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\ASP.NET Applications(__Total__)\\\\\\\\Errors Total/Sec" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\ASP.NET\\\\\\\\Requests Queued" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\ASP.NET\\\\\\\\Requests Rejected" sampleRate="PT3M" /> <PerformanceCounterConfiguration counterSpecifier="\\\\\\\\Processor(_Total)\\\\\\\\% Processor Time" sampleRate="PT3M" /> </PerformanceCounters> </DiagnosticMonitorConfiguration> </WadCfg>')
storageAccount: /*${4:'storageAccount'}*/'storageAccount'
}
protectedSettings: {
storageAccountName: /*${5:'storageAccountName'}*/'storageAccountName'
storageAccountKey: /*${6:'storageAccountKey'}*/'storageAccountKey'
storageAccountEndPoint: /*${7:'storageAccountEndPoint'}*/'storageAccountEndPoint'
}
}
}