要在Windows 虚拟机上启用诊断扩展,需要将该扩展添加为资源管理器模板中的 VM 资源。 对于基于 Resource Manager 的简单虚拟机,请将扩展配置添加到该虚拟机的 resources 数组: JSON 复制 "resources": [ { "name": "Microsoft.Insights.VMDiagnosticsSettings", "type": "extensions", "location": "[resourceGr...
{"name":"Microsoft.Insights.VMDiagnosticsSettings","type":"extensions","location":"[resourceGroup().location]","apiVersion":"2015-06-15","dependsOn": ["[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"],"tags": {"displayName":"AzureDiagnostics"},"properties": {"publi...
Login-AzureRmAccount #source resource group and virtual machine to take the diagnostic settings from. $rg = 'resourcegroup1 $vm = 'vm1' $diag = (Get-AzureRmVMDiagnosticsExtension -ResourceGroupName $rg -VMName $vm).publicsettings $path = 'c:\users\joknight\diag.json' $dia...
"storageAccount"=$storageAccountName}$exname="Microsoft.Insights.VMDiagnosticsSettings"$publisher="Microsoft.OSTCExtensions"$type="LinuxDiagnostic"$typeHandlerVersion="2.3"$protectedSettings= @{"storageAccountName"=$storageAccountName;` "storageAccountKey"=$storageAccountKey; ` "storageAccountEndPoint"="htt...
在VM 上啟用診斷擴充功能之後,您就可以使用Get-AzVmDiagnosticsExtensionCmdlet 取得目前的設定。 Azure PowerShell Get-AzVMDiagnosticsExtension-ResourceGroupName$vm_resourcegroup-VMName$vm_name Cmdlet 會傳回包含診斷設定的PublicSettings。 系統支援兩種設定,WadCfg 和 xmlCfg。 WadCfg 為 JSON 設定,xmlCfg 則是...
Note 1:This post covers Windows VMs only. For Linux Azure VMs, reference –Using Linux Diagnostic Extension to Monitor Linux VM's performance and diagnostic data. Note 2:The capabilities described are only supported on the new Azure portal; which is currently under preview. If you’re logged ...
Note 1:This post covers Windows VMs only. For Linux Azure VMs, reference –Using Linux Diagnostic Extension to Monitor Linux VM's performance and diagnostic data. Note 2:The capabilities described are only supported on the new Azure portal; which is currently under preview. If you’re logged ...
Files for Linux IaaS VM disks Files for FreeBSD VM disks Contact us for help Applies to: ✔️ Linux VMs ✔️ Windows VMs Original KB number: 3137442 This article lists the Microsoft Azure IaaS VM logs and diagnostic information that's collected during troubleshooting by Microsoft Sup...
Specify what happens to the network interface when the VM is deleted DiagnosticsProfile Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. DiffDiskOptions Specifies the ephemeral disk settings for operating system disk. DiffDiskPlacement Specifies the ephemeral disk pla...
useProxyServerConfigure Azure Diagnostics to use the proxy server settings as set in Internet Explorer settings. sinksAdded in 1.5. Optional. Points to a sink location to also send diagnostic data for all child elements that support sinks. Sink example is Application Insights or Event Hubs. Note...