Facing issue while integrating Azure Application Insights with Azure API Management instance - azure

I have created an Azure Application Insights instance with the Application Type as General.
But when I try to integrate the Application Insight with an API Management service Instance through Monitoring -> Application Insights -> Add options in APIM instance, I am not getting any data of the Application Insights instances in the dropdown.
This is happening even though the APIM Instance and Application Insights locations are same.

Looks like this is a bug in the APIM Portal in Azure. To work around, go to
Directory + Subscription (at the top right corner of the portal window) and select only the subscription under which the App Insight resource was created.
Now, go back and try adding the Application Insights, you will see all the app insight resources that belongs to the selected subscription.

Related

Azure App Service - failed to retrieve available site extensions. please check the resource usage of your app

I have the attached error when I'm trying to add an extension to my Azure App Service. All metrics are normal for this app. Moreover, I am able to add an extension to another app service from the same subscription but different resource group.
Thank you.
I am able to add site Extensions to Azure App Service without any issues.
I have tried with two different Azure Apps in different Resource Groups.
For One Azure App Service which is having less memory usage, Iam able to add the Extension without any error.
Click on Accept legal terms and continue while adding extension.
For the second app service, which is low on memory, I got the below error.
Memory Usage
Check the memory usage of the App service Plan and Azure Web App.
In Azure App Service => Under App Service Plan click on Quotas
For App Service Plan
You can add Extensions even from KUDU Console.
In Azure portal => Your Azure App Service => Advanced Tools => Go => Site extensions => Click on Gallery
In Search box enter Datadog and click on Search
Related extensions will be displayed. Click on + symbol and continue to install.

Send Data from a azure webapp to 2 azure application insights in two different azure subscriptions

Hello I hope you can help me.
I have a azure webapp that is basically an api programmed in dotnet core, this is connected to an azure application insights, where we monitor the api, the problem I have is that only one person on the team has access to these two resources(webapp and app insights), basically the permission for all rest of the team is a bureaucratic management that does not end resolving.
I need the data stored in the application insights to be replicated in another insights application in a new azure subscription that we already created where all team members have access.
What can I do to solve this problem?

Slow notification hub registrations

I've implemented Azure Mobile App Service which uses Azure Mobile Apps .NET Server, connected it to the Notification Hub and it works.
However according to application insights my slowest calls are actually client registrations, for example:
PUT /push/installations/{installationId}
My app is deployed on azure under different resource group than notification hub. Can this be the cause?
Resource Group is just a container that holds the related Azure resources, and it would stores metadata about the resources, so the location for a resource group determines the data center for storing the metadata of the resources. Details you could follow here.
PUT /push/installations/{installationId}
This is the build-in endpoint for the mobile client to create / update the registration with the installation model. The server side code would be similar to the PutInstallation method under NotificationInstallationsController.cs.
As you commented that the data center for hosting your Notification Hub is North Europe. You need to check the location of your App Service plan for running your mobile app. Details about Azure App Service plan, you could follow here.
I would recommend you scale up your app service plan to a higher tier to check this issue. Also, you could try to make your Notification Hub and Mobile App under the same data center to narrow this issue. Additionally, you could provide the detailed comparison between the requests trace logging in your application insights for us to troubleshoot this issue.

Setting up run-time Application Insights on a Cloud Service

According to Microsoft's documentation, Application Insights is best deployed both at build time and run-time, and can be installed at run-time by "select[ing] Application Insights on the app's control panel in Azure". But I don't see it on the configuration for Cloud services, at least not in the new portal:
Is the documentation incorrect (necessitating the long process laid out elsewhere on SO still required)? If not, where should I be looking?
EDIT 3 You can supposedly set it while publishing from Visual Studio (if you upgrade the Azure SDK to 2.9 and "Add Diagnostic Configuration" in Visual Studio for the project):
but it still insists I download the Status Monitor:
In the Azure Portal, currently there is no Application InSights on the Cloud Service control panel. We could find the Application InSights on the Azure App Service. Azure App Service and Cloud Service are different services in Azure. The difference between Azure AppService and CloudService please refer to Azure App Service, Virtual Machines, Service Fabric, and Cloud Services comparison.
"select[ing] Application Insights on the app's control panel in Azure"
In the document that you mentioned, it is for Azure App service
Select Application Insights in the Azure control panel for your web app
For Cloud Service, please refer to document, there are more detail steps about how to setup Application Insights for each role .

How to create or see existing App Service Plans in Azure portal and modify them?

I am trying to determine Azure portal provides any option to create an App Service Plan in a separate step (not while creating the website) and to modify them.
Currently I am creating App Service Plans in the WebSite creation step and modify them in WebSite's Scale option.
Is there any way to create them separately and see a list of available
App Service Plans?
Do websites created within an App Service Plan share the resources in it (CPU, Memory etc)?
What exactly happens when there is an auto scale up?
a.) Will it create a new instance of the App Service Plan and replicate all the websites within it?
b.) or will it create a new instance of the website and share the resources of same App Service Plan?
I am confused because, the App Service Settings (pricing tiers, scale-up option etc) are seen in websites scale option.
Please clarify my doubts.
Thanks in advance.
See page 8 of Developing Microsoft Azure Solutions Exam Reference for 70-532.
"Web hosting plans are created as part of website creation and are not created directly"
Even though this book was published in Feb 2015 some of the terminology is already out of date. It's an "application service plan", not "web hosting plan". And they call what is now known as a "web app" a "website".
Here is an awesome blog post about setting up azure web apps and deployment slots and hosting plans. It goes over what's shared and how to migrate between application service plans about halfway through.
Found this article which explains about App Service Plans in detail.

Resources