Hendelser
17. mars, 21 - 21. mars, 10
Bli med i meetup-serien for å bygge skalerbare AI-løsninger basert på virkelige brukstilfeller med andre utviklere og eksperter.
Registrer deg nåDenne nettleseren støttes ikke lenger.
Oppgrader til Microsoft Edge for å dra nytte av de nyeste funksjonene, sikkerhetsoppdateringene og den nyeste tekniske støtten.
When you use Application Insights Profiler for .NET or Snapshot Debugger, artifacts generated by your application are uploaded by default into Azure Storage accounts over the public internet. For these artifacts and storage accounts, Microsoft controls and covers the cost for:
Meanwhile, when you "bring your own storage" (BYOS), artifacts are uploaded into a storage account that only you control and cover the cost for:
Obs!
BYOS is required if you're enabling Azure Private Link or customer-managed keys.
In this guide, you learn how to:
A BYOS storage account is linked to an Application Insights resource. Start by granting the Storage Blob Data Contributor
role to the Microsoft Entra application named Diagnostic Services Trusted Storage Access
via the Access Control (IAM) page in your storage account.
Select Access control (IAM).
Select Add > Add role assignment to open the Add role assignment page.
Assign the following role.
Setting | Value |
---|---|
Role | Storage Blob Data Contributor |
Assign access to | User, group, or service principal |
Members | Diagnostic Services Trusted Storage Access |
Once assigned, you can see the role under the Role assignments section.
Obs!
If you're also using Private Link, one more configuration is required to allow connection to our Trusted Microsoft Service from your virtual network. For more information, see Storage network security documentation.
You have three options for configuring BYOS for code-level diagnostics like the .NET Profiler and Snapshot Debugger:
Before you begin, install Azure PowerShell 4.2.0 or greater.
Install the Application Insights PowerShell extension.
Install-Module -Name Az.ApplicationInsights -Force
Sign in with your Azure account subscription.
Connect-AzAccount -Subscription "{subscription_id}"
For more information on how to sign in, see the Connect-AzAccount documentation.
Remove any previous storage account linked to your Application Insights resource.
Pattern:
Get-AzApplicationInsights -ResourceGroupName "{resource_group_name}" -Name "{application_insights_name}" | Remove-AzApplicationInsightsLinkedStorageAccount
Example:
Get-AzApplicationInsights -ResourceGroupName "byos-test" -Name "byos-test-westus2-ai" | Remove-AzApplicationInsightsLinkedStorageAccount
Connect your storage account with your Application Insights resource.
Pattern:
$storageAccount = Get-AzStorageAccount -ResourceGroupName "{resource_group_name}" -Name "{storage_account_name}"
Get-AzApplicationInsights -ResourceGroupName "{resource_group_name}" -Name "{application_insights_name}" | New-AzApplicationInsightsLinkedStorageAccount -LinkedStorageAccountResourceId $storageAccount.Id
Example:
$storageAccount = Get-AzStorageAccount -ResourceGroupName "byos-test" -Name "byosteststoragewestus2"
Get-AzApplicationInsights -ResourceGroupName "byos-test" -Name "byos-test-westus2-ai" | New-AzApplicationInsightsLinkedStorageAccount -LinkedStorageAccountResourceId $storageAccount.Id
Troubleshoot common issues in configuring BYOS.
You received an error similar to the following example:
New-AzResourceGroupDeployment : 11:53:49 AM - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'Template schema
'https://schema.management.azure.com/schemas/2020-01-01/deploymentTemplate.json#' is not supported. Supported versions are
'2014-04-01-preview,2015-01-01,2018-05-01,2019-04-01,2019-08-01'. Please see https://aka.ms/arm-template for usage details.'.
Make sure that the $schema
property of the template is valid. It must follow this pattern:
https://schema.management.azure.com/schemas/{schema_version}/deploymentTemplate.json#
Make sure that the schema_version
of the template is within valid values: 2014-04-01-preview, 2015-01-01, 2018-05-01, 2019-04-01, 2019-08-01
.
You received an error similar to the following example:
New-AzResourceGroupDeployment : 6:18:03 PM - Resource microsoft.insights/components 'byos-test-westus2-ai' failed with message '{
"error": {
"code": "NoRegisteredProviderFound",
"message": "No registered resource provider found for location 'westus2' and API version '2020-03-01-preview' for type 'components'. The supported api-versions are '2014-04-01,
2014-08-01, 2014-12-01-preview, 2015-05-01, 2018-05-01-preview'. The supported locations are ', eastus, southcentralus, northeurope, westeurope, southeastasia, westus2, uksouth,
canadacentral, centralindia, japaneast, australiaeast, koreacentral, francecentral, centralus, eastus2, eastasia, westus, southafricanorth, northcentralus, brazilsouth, switzerlandnorth,
australiasoutheast'."
}
}'
apiVersion
of the resource microsoft.insights/components
is 2015-05-01
.apiVersion
of the resource linkedStorageAccount
is 2020-03-01-preview
.You received an error similar to the following example:
New-AzResourceGroupDeployment : 1:01:12 PM - Resource microsoft.insights/components/linkedStorageAccounts 'byos-test-centralus-ai/serviceprofiler' failed with message '{
"error": {
"code": "BadRequest",
"message": "Storage account location should match AI component location",
"innererror": {
"trace": [
"System.ArgumentException"
]
}
}
}'
Make sure that the location of the Application Insights resource is the same as the storage account.
This section provides answers to common questions about configuring BYOS for .NET Profiler and Snapshot Debugger.
No, it won't.
Yes. To be precise, BYOS is a requirement to have the .NET Profiler/Snapshot Debugger enabled with customer-manager keys.
Yes. BYOS is a requirement for isolated network scenarios.
Yes, it's possible.
Yes, you can, but we don't currently support data migration from your BYOS.
Yes.
Agents running in your virtual machines or Azure App Service upload artifacts (profiles, snapshots, and symbols) to blob containers in your account.
This process involves contacting the .NET Profiler or Snapshot Debugger to obtain a shared access signature token to a new blob in your storage account.
The .NET Profiler or Snapshot Debugger:
Depending on available compute capacity, this process might occur anytime after upload.
When you view Profiler traces or Snapshot Debugger analysis, the service fetches the analysis results from blob storage.
Hendelser
17. mars, 21 - 21. mars, 10
Bli med i meetup-serien for å bygge skalerbare AI-løsninger basert på virkelige brukstilfeller med andre utviklere og eksperter.
Registrer deg nåOpplæring
Læringsbane
Use advance techniques in canvas apps to perform custom updates and optimization - Training
Use advance techniques in canvas apps to perform custom updates and optimization
Sertifisering
Microsoft Certified: Azure Administrator Associate - Certifications
Veranschaulichen Sie wichtige Qualifikationen zum Konfigurieren, Verwalten, Schützen und Verwalten wichtiger professioneller Funktionen in Microsoft Azure.
Dokumentasjon
Sammlung von Application Insights-IP-Adressen - Azure Monitor
Vorgehensweise von Application Insights beim Verarbeiten von IP-Adressen und der Geolocation
Azure-App lizenzierung Insights Profiler
Müssen Sie Leistungsdaten zu Ihren Azure-Apps sammeln, während sie in der Produktion ausgeführt werden? DevDiv Azure Services PM Chuck Weininger zeigt uns, wie dies mithilfe des Azure-App lication Insights Profiler zu tun ist. Weitere Informationen finden Sie unter Profilproduktionsanwendungen in Azure mit Application Insights
Application Insights-Verfügbarkeitstests - Azure Monitor
Richten Sie wiederkehrende Webtests ein, um die Verfügbarkeit und Reaktionsfähigkeit Ihrer App oder Website zu überwachen.