storageAccount 属性指定向其传输诊断数据的存储帐户的名称。 protectedSettings 中的属性(有时称为专用配置)可设置,但在设置之后无法读回。 protectedSettings 的只写性质使其非常适合存储类似存储帐户密钥(写入诊断数据的位置)的密码。 将诊断存储帐户指定为参数 上述诊断扩展 json 代码片段采用两个参数:existing...
-ResourceGroupName$rgname-Name$storageAccountName)[0].Value$settings= @{"xmlCfg"=$xmlCfg; ` "storageAccount"=$storageAccountName}$exname="Microsoft.Insights.VMDiagnosticsSettings"$publisher="Microsoft.OSTCExtensions"$type="LinuxDiagnostic"$typeHandlerVersion="2.3"$protectedSettings= @{"storageAccountN...
在导出的模板上,搜索protectedSettings。 将导出的受保护设置对象替换为新的对象,其中包括所需的扩展参数以及每个参数的值。 以IaasDiagnostic扩展为例,新的受保护设置配置将如以下示例所示: JSON "protectedSettings": {"storageAccountName":"[parameters('storageAccountName')]","storageAccountKey":"[parameters('...
如果未在诊断配置中指定 StorageAccount,需要将 StorageAccountName 参数传递给 cmdlet。 如果指定了 StorageAccountName 参数,则 cmdlet 会始终使用该参数中指定的存储帐户,而不使用诊断配置文件中指定的存储帐户。如果诊断存储帐户与 VM 属于不同的订阅,则必须将 StorageAccountName 和StorageAccountKey 参数显式传递给 ...
Diagnostic events are sent to Log Analytics when completed.Log Analytics only reports in these intermediate states for connection activities:Started: when a user selects and connects to an app or desktop in the Remote Desktop client. Connected: when the user successfully connects to the VM where ...
Select the VM Under Monitoring section, right click the chart Select Edit Chart Select Time Range and list of KPIs to display See sample below Since all of the diagnostic data collected was saved in a user storage account that we configured in step 3, we can access it using any of our ...
接下来稍微浏览一下这台虚拟机。首先打开"我的电脑",可以看到Windows Azure VM包含三个盘符:C盘、D盘和E盘(我截图里有4个是因为mount上了Azure Drive)。 C盘保存了Windows Azure文件,包括配置文件、Local Storage文件和Diagnostic Monitor临时文件等 D盘是系统盘,包含操作系统、IIS和.NET Framework等 ...
{ "storageAccountType": "Premium_LRS", "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myOsDisk" }, "diskSizeGB": 30 }, "dataDisks": [] }, "osProfile": { "computerName": "myVM", "adminUsername": "admin", "windowsConfiguration"...
DeleteOptions Specify what happens to the public IP 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 ...
account for exVM."$vm=Set-AZVMOSDisk-VM$vm-Name($vmName+"-OS")-DiskSizeInGB128-CreateOptionFromImage-StorageAccountType"Standard_LRS"$vm=Set-AZVMOperatingSystem-VM$vm-Windows-ComputerName$vmName-Credential$cred-ProvisionVMAgent-EnableAutoUpdate$vm=Set-AZVMSourceImage-VM$vm-PublisherName...