Skip to content

Commit 697e741

Browse files
authored
Merge pull request #9035 from MicrosoftDocs/main
Sync to live
2 parents 70fdf46 + e24d55b commit 697e741

File tree

6 files changed

+362
-36
lines changed

6 files changed

+362
-36
lines changed

support/azure/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ productDirectory:
5959
- url: kubernetes-fleet/welcome-azure-kubernetes-fleet.yml
6060
text: Troubleshooting articles for Azure Kubernetes Fleet Manager
6161
- title: Azure Logic Apps
62-
imageSrc: "https://learn.microsoft.com/static/ui/media/product/azure/logic-apps.svg"
62+
imageSrc: "https://static.docs.com/ui/media/product/azure/logic-apps.svg"
6363
links:
6464
- url: logic-apps/index.yml
6565
text: Troubleshooting articles for Azure Logic Apps
208 KB
Loading

support/azure/virtual-machines/windows/performance-diagnostics-vm-extension.md

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.collection: windows
1111
ms.workload: infrastructure-services
1212
ms.tgt_pltfrm: vm-windows
1313
ms.topic: troubleshooting
14-
ms.date: 08/02/2024
14+
ms.date: 02/18/2025
1515
ms.author: genli
1616
ms.custom: sap:VM Performance
1717
---
@@ -39,7 +39,9 @@ This extension can be installed on:
3939

4040
## Extension schema
4141

42-
The following JSON shows the schema for Azure Performance Diagnostics VM Extension. This extension requires the name and key for a storage account to store the diagnostics output and report. These values are sensitive. Storage account key should be stored inside a protected setting configuration. Azure VM extension protected setting data is encrypted, and it is only decrypted on the target virtual machine. Note that **storageAccountName** and **storageAccountKey** are case-sensitive. Other required parameters are listed in the following section.
42+
The following JSON shows the schema for Azure Performance Diagnostics VM Extension. This extension requires the name for a storage account to store the diagnostics output and report. These values are sensitive. Storage account key should be stored inside a protected setting configuration. Azure VM extension protected setting data is encrypted, and it is only decrypted on the target virtual machine. Note that **storageAccountName** and **storageAccountKey** are case-sensitive. Other required parameters are listed in the following section.
43+
44+
Specify the authentication type in the JSON file. If no authentication type is specified, the default authentication type is system-assigned managed identity and user needs to pass a storage account key.
4345

4446
```JSON
4547
{
@@ -65,7 +67,10 @@ The following JSON shows the schema for Azure Performance Diagnostics VM Extensi
6567
"resourceId": "[resourceId('Microsoft.Compute/virtualMachines', parameters('vmName'))]"
6668
},
6769
"protectedSettings": {
68-
"storageAccountKey": "[parameters('storageAccountKey')]"
70+
"authenticationType": "[parameters('authenticationType')]",
71+
"storageAccountKey": "[parameters('storageAccountKey')]",
72+
"managedIdentityClientId": "[parameters('managedIdentityClientId')]",
73+
6974
}
7075
}
7176
}
@@ -91,6 +96,8 @@ The following JSON shows the schema for Azure Performance Diagnostics VM Extensi
9196
| resourceId | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} | The unique identifier of a VM. |
9297
| storageAccountName | mystorageaccount | The name of the storage account to store the diagnostics logs and results. |
9398
| storageAccountKey | lDuVvxuZB28NNP…hAiRF3voADxLBTcc== | The key for the storage account. |
99+
|authenticationType|systemmanagedidentity|The authentication type used to connect to the storage account. Valid values are `systemmanagedidentity`, `usermanagedidentity`, and `storagekeys`.|
100+
|managedIdentityClientId|f81d4afe-7ced-11d0-a765-00a0c91c6bf6|The client ID of the user-managed identity to be used for authenticating to the storage account.|
94101

95102
## Install the extension
96103

@@ -192,7 +199,15 @@ Azure virtual machine extensions can be deployed with Azure Resource Manager tem
192199
"requestTimeUtc": {
193200
"type": "string",
194201
"defaultValue": "10/2/2017 11:06:00 PM"
195-
}
202+
},
203+
"authenticationType": {
204+
"type": "string",
205+
"defaultValue": "SystemManagedIdentity"
206+
},
207+
"managedIdentityClientId": {
208+
"type": "string",
209+
"defaultValue": ""
210+
}
196211
},
197212
"resources": [
198213
{
@@ -230,20 +245,40 @@ Azure virtual machine extensions can be deployed with Azure Resource Manager tem
230245

231246
Use the `Set-AzVMExtension` command to deploy Azure Performance Diagnostics VM Extension to an existing virtual machine:
232247

233-
```powershell
234-
$PublicSettings = @{ "storageAccountName"="mystorageaccount";"performanceScenario"="basic"; "enableContinuousDiagnostics" : $False;"traceDurationInSeconds"=300;"perfCounterTrace"="p";"networkTrace"="";"xperfTrace"="";"storPortTrace"="";"srNumber"="";"requestTimeUtc"="2017-09-28T22:08:53.736Z";"resourceId"="VMResourceId" }
235-
$ProtectedSettings = @{"storageAccountKey"="mystoragekey" }
236-
237-
Set-AzVMExtension -ExtensionName "AzurePerformanceDiagnostics" -ResourceGroupName "myResourceGroup" -VMName "myVM" -Publisher "Microsoft.Azure.Performance.Diagnostics" -ExtensionType "AzurePerformanceDiagnostics" -TypeHandlerVersion 1.0 -Settings $PublicSettings -ProtectedSettings $ProtectedSettings -Location WestUS
238-
```
248+
- System-assigned managed identity
249+
250+
```powershell
251+
$PublicSettings = @{ "storageAccountName"="mystorageaccount";"performanceScenario"="basic"; "enableContinuousDiagnostics" : $False;"traceDurationInSeconds"=300;"perfCounterTrace"="p";"networkTrace"="";"xperfTrace"="";"storPortTrace"="";"srNumber"="";"requestTimeUtc"="2024-10-20T22:08:53.736Z";"resourceId"="VMResourceId" }
252+
$ProtectedSettings = @{"storageAccountName"="mystorageaccount";"authenticationType"="SystemManagedIdentity" }
253+
254+
Set-AzVMExtension -ExtensionName "AzurePerformanceDiagnostics" -ResourceGroupName "myResourceGroup" -VMName "myVM" -Publisher "Microsoft.Azure.Performance.Diagnostics" -ExtensionType "AzurePerformanceDiagnostics" -TypeHandlerVersion 1.0 -Settings $PublicSettings -ProtectedSettings $ProtectedSettings -Location WestUS
255+
```
256+
257+
- User-assigned managed identity
258+
259+
```powershell
260+
$PublicSettings = @{ "storageAccountName"="mystorageaccount";"performanceScenario"="basic"; "enableContinuousDiagnostics" : $False;"traceDurationInSeconds"=300;"perfCounterTrace"="p";"networkTrace"="";"xperfTrace"="";"storPortTrace"="";"srNumber"="";"requestTimeUtc"="2024-10-20T22:08:53.736Z";"resourceId"="VMResourceId" }
261+
$ProtectedSettings = @{"storageAccountName"="mystorageaccount";"authenticationType"="UserManagedIdentity";"managedIdentityClientId"="myUserManagedIdentityClientId"}
262+
263+
Set-AzVMExtension -ExtensionName "AzurePerformanceDiagnostics" -ResourceGroupName "myResourceGroup" -VMName "myVM" -Publisher "Microsoft.Azure.Performance.Diagnostics" -ExtensionType "AzurePerformanceDiagnostics" -TypeHandlerVersion 1.0 -Settings $PublicSettings -ProtectedSettings $ProtectedSettings -Location WestUS
264+
```
265+
266+
- Storage account access keys
267+
268+
```powershell
269+
$PublicSettings = @{ "storageAccountName"="mystorageaccount";"performanceScenario"="basic"; "enableContinuousDiagnostics" : $False;"traceDurationInSeconds"=300;"perfCounterTrace"="p";"networkTrace"="";"xperfTrace"="";"storPortTrace"="";"srNumber"="";"requestTimeUtc"="2024-10-20T22:08:53.736Z";"resourceId"="VMResourceId" }
270+
$ProtectedSettings = @{"storageAccountKey"="mystoragekey" }
271+
272+
Set-AzVMExtension -ExtensionName "AzurePerformanceDiagnostics" -ResourceGroupName "myResourceGroup" -VMName "myVM" -Publisher "Microsoft.Azure.Performance.Diagnostics" -ExtensionType "AzurePerformanceDiagnostics" -TypeHandlerVersion 1.0 -Settings $PublicSettings -ProtectedSettings $ProtectedSettings -Location WestUS
273+
```
239274

240275
## Information on the data captured
241276

242277
The PerfInsights tool collects various logs, configuration, and diagnostic data, depending on the selected scenario. For more information, see the [PerfInsights documentation](./how-to-use-perfinsights.md).
243278

244279
## View and share the results
245280

246-
Output from the extension can be found in a zip file that uploaded to the storage account specified during the installation and is shared for 30 days by using [Shared Access Signatures (SAS)](/azure/storage/common/storage-sas-overview). This zip file contains diagnostic logs and a report with findings and recommendations. A SAS link to the output zip file can be found inside a text file named *zipfilename*_saslink.txt under the folder **C:\Packages\Plugins\Microsoft.Azure.Performance.Diagnostics.AzurePerformanceDiagnostics\\\<version>**. Anyone who has this link is able to download the zip file.
281+
Output from the extension can be found in a zip file that uploaded to the storage account specified during the installation and is shared for 30 days by using Shared Access Signatures (SAS). This zip file contains diagnostic logs and a report with findings and recommendations. A SAS link to the output zip file can be found inside a text file named *zipfilename*_saslink.txt under the folder **C:\Packages\Plugins\Microsoft.Azure.Performance.Diagnostics.AzurePerformanceDiagnostics\\\<version>**. Anyone who has this link is able to download the zip file.
247282

248283
To assist the support engineer working on your support ticket, Microsoft might use this SAS link to download the diagnostics data.
249284

0 commit comments

Comments
 (0)