Using Console
Using CLI
<resource-group-name>
: The name of the resource group that contains the virtual machine.<vm-name>
: The name of the virtual machine.<sink-name>
: The name of the sink that will receive the performance data.<storage-account-uri>
: The URI of the storage account that will receive the performance data.<sas-token>
: The SAS token for the storage account.<category>
: The category of the performance counter.<counter-specifier>
: The name of the performance counter.<sampling-interval>
: The sampling interval for the performance counter.<unit>
: The unit of the performance counter.<resource-group-name>
and <vm-name>
with the actual resource group and virtual machine names.
The command will return the default configuration for the virtual machine. Verify that the performance counters are included in the configuration.
Using Python
ComputeManagementClient
object using the authenticated credentials:<your tenant id>
, <your client id>
, <your client secret>
, <your subscription id>
, <your resource group name>
, <your virtual machine name>
, and <your storage account uri>
with the appropriate values.These steps will enable Performance Diagnostics for the specified Azure Virtual Machine.