Azure Archives - Page 14 of 16 - - Page 14

Category Archives: Azure

Application Insights – Monitoring Azure Function App

Posted On December 8, 2020 by Sandip Patel Posted in

In this blog we will learn how to monitor Azure function app using application insights. Below we will dive into these topics Overview of Application Insights Create Application Insights Configure Application Insights into Azure function app Viewing Application Insights Azure Application Insights: Azure Application Insights is an extensible Application Performance Management (APM) service. Used to monitor live web application. It will automatically detect performance anomalies. It includes powerful analytics tools to help diagnose issues and to understand what users do with the app. It’s designed to help continuously improve performance and usability. It works for apps on a wide variety of platforms including .NET, Node.js and Java EE, hosted on-premises, hybrid, or any public cloud. It integrates with your DevOps process, and has connection points to a variety of development tools. It provides benefits as: Exceptions and performance diagnostics. Interactive data analysis. Azure diagnostics. Proactive detection. Create Application Insights: Step 1: To create a new Application insight, sign into the Azure portal. In the upper-left corner of the home page, select Create a resource. In the Search the Marketplace box, enter Application insights and select and press enter. Step 2: Select Application Insights from the search results, and then select Create. Step 3: Click on create button and enter required information and also configure log analytics workspace. Step 4: Once you click on Create button, your application insights is ready to use. Configure Application Insights into Azure function app: Step 1: To create a new Function app, sign into the Azure portal. In the upper-left corner of the home page, select Create a resource. In the Search the Marketplace box, enter Function app and select and press enter Step 2: Select Function app from the search results, and then select Create. Step 3: Click on create button and enter basic required information as per below screenshot. Step 4: Click on Monitoring tab and enable Application insights that you have created previously. Step 5: Click on Create button, your function app is ready to use. Step 6: Click on left navigation pane, select settings >> Application insights. Create a Azure Function App via VS 2019: The Azure Functions project template in Visual Studio creates a project that you can publish to a function app in Azure. From the Visual Studio menu, select File > New > Project. In Create a new project, enter functions in the search box, choose the Azure Functions template, and then select Next. In Configure your new project, enter a Project name for your project, and then select Create. The function app name must be valid as a C# namespace, so don’t use underscores, hyphens, or any other nonalphanumeric characters. 4. Select Create to create the function project and HTTP trigger function. C# code : 5. Publish this function app on azure portal, as per below screenshot. Viewing Application Insights: Step 1: Select function app that you have publish and click on function app test run as per below screenshot and also open app insights on other tab to view the logs. Step 2: App insights result gave the information that you have logged in your function app. Hope this will help.

Share Story :

How to connect Azure App configuration using connection string with C# .NET core – Part 1

Posted On November 28, 2020 by Sandip Patel Posted in

In this blog we will learn how to connect Azure app configuration via connection string with C# .NET core. Below we will dive into these topics What is Azure App Configuration Create an App Configuration store Create a function app Connect to an App configuration store Azure App Configuration: Azure App Configuration is a managed service that helps developers centralize their application configuration and feature settings simply and securely. Use Azure App Configuration to store and secure configuration settings for your application in a single location. App configuration offer the following benefits. A fully managed service that can be set up in minutes Flexible key representations and mappings Tagging with labels Point-in-time replay of settings Dedicated UI for feature flag management Create an Azure App Configuration: Step 1: To create a new App Configuration store, sign into the Azure portal. In the upper-left corner of the home page, select Create a resource. In the Search the Marketplace box, enter App Configuration and select and press enter Step 2: Select App Configuration from the search results, and then select Create. Step 3: Click on create button and enter required information. Step 4: Once your app configuration is created, select “configuration explorer” in the left navigation and click on create button to add a new entry. I’m going to add a couple of example entries, all with the same key “AzfApp:Description”, but with different values and Labels. Step 5: Select “Access Keys” in the left navigation pane and copy connection string and paste it into notepad++ later this will used in function app to read the value from app configuration. Create a Azure Function App: The Azure Functions project template in Visual Studio creates a project that you can publish to a function app in Azure. From the Visual Studio menu, select File > New > Project. In Create a new project, enter functions in the search box, choose the Azure Functions template, and then select Next. In Configure your new project, enter a Project name for your project, and then select Create. The function app name must be valid as a C# namespace, so don’t use underscores, hyphens, or any other nonalphanumeric characters. Select Create to create the function project and HTTP trigger function. Connect to App configuration store: Right-click your project, and select Manage NuGet Packages. On the Browse tab, search for and add the Microsoft.Extensions.Configuration.AzureAppConfiguration NuGet package to your project. Open Function1.cs, and add the namespaces of the .NET Core configuration and the App Configuration configuration provider. C# code : using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration.AzureAppConfiguration; Add below code to read the app configuration value using connection string. Press F5 to test your function. If prompted, accept the request from Visual Studio to download and install Azure Functions Core (CLI) tools.  Copy the URL of your function from the Azure Functions runtime output. 6. Paste the URL for the HTTP request into your browser’s address bar. The following image shows the response in the browser to the local GET request returned by the function. Hope this will help.

Share Story :

How to connect Azure App configuration using Managed Identity with C# .NET core – Part 2

Posted On November 28, 2020 by Sandip Patel Posted in

In this blog we will learn how to connect Azure app configuration via Managed Identity with C# .NET core. Below, we will dive into these topics What is Azure App Configuration Create an App Configuration store Create a function app Connect to an App configuration store Azure App Configuration: Azure App Configuration is a managed service that helps developers centralize their application configuration and feature settings simply and securely. Use Azure App Configuration to store and secure configuration settings for your application in a single location. App configuration offer the following benefits. A fully managed service that can be set up in minutes Flexible key representations and mappings Tagging with labels Point-in-time replay of settings Dedicated UI for feature flag management Create an Azure App Configuration: Step 1: To create a new App Configuration store, sign into the Azure portal. In the upper-left corner of the home page, select Create a resource. In the Search the Marketplace box, enter App Configuration and select and press enter Step 2: Select App Configuration from the search results, and then select Create. Step 3: Click on create button and enter required information. Step 4: Once your app configuration is created, select “configuration explorer” in the left navigation and click on create button to add a new entry. I’m going to add a couple of example entries, all with the same key “AzfApp:Description”, but with different values and Labels. Step 5: Select “Access Keys” in the left navigation pane and copy endpoint and paste it into notepad++ later this will used in function app to read the value from app configuration. Create a Azure Function App: The Azure Functions project template in Visual Studio creates a project that you can publish to a function app in Azure. From the Visual Studio menu, select File > New > Project. In Create a new project, enter functions in the search box, choose the Azure Functions template, and then select Next. In Configure your new project, enter a Project name for your project, and then select Create. The function app name must be valid as a C# namespace, so don’t use underscores, hyphens, or any other nonalphanumeric characters. Select Create to create the function project and HTTP trigger function. Connect to App configuration store: Right-click your project, and select Manage NuGet Packages. On the Browse tab, search for and add the Microsoft.Extensions.Configuration.AzureAppConfiguration NuGet package to your project and also add Azure.Identity package to your project. Open Azf_Final_Test_MgmtIdentity.cs, and add the namespaces of the .NET Core configuration and the App Configuration configuration provider. C# code: using Azure.Identity; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration.AzureAppConfiguration; Add below code to read the app configuration value using managed identity. Now build the project if build successful then right click the project and publish in Azure portal.  Navigate in the Azure portal to your azure function app that you have just published, select “Identity” from the let navigation pane and click on enable that you want to use. Once you’ve got your identity enabled, make a note of the name (the same name as your app service), which you’ll need in the next step. From your App Configuration service, select “Access control (IAM)” from left navigation pane and click on “Add a role assignment” From the drawer that flies in on the right-hand side, select what fits your scenario. I’m going for “Reader” access only, and since it’s a Function App I select that in the drop down and then it will list all Managed Identities that exist on my App Services: In the list I select: Reader role. I only want to allow my Function App to actually READ data. In the drop-down, I select Function App under the Managed Identities header, which then filters the list by Function App where Managed Identity is enabled. I will see the name of my Function App here, and can select it. Done! We have now successfully configured Managed Identity for our App Configuration service, and the Function App that I just configured can, without credentials since it’s now running under its own identity, access configuration data from this App Configuration store. Now, its time to test the function app, click on Code + Test from left navigation pane and click on Test/Run to check the output. The following image shows the response in the output window returned by the function. Hope this will help.

Share Story :

Service Bus Topic Filters Basics

Learn the Importance of Azure Service Bus Topic Filters with this Blog.

Share Story :

How to Apply Service Bus Topic Subscription Filters?

Learn how to use the SQL and Co-relation Filters for Azure Service Bus Topic Subscription.

Share Story :

How to solve CORs Error

This Blog will guide you on solving the CORs Error. It is a common issue faced by many while configuring and testing their first API in API Management. Few Setting will solve this Problem for you.

Share Story :

Create Azure Logic Apps

Posted On September 3, 2020 by Admin Posted in Tagged in ,

Login to https://portal.azure.com/ Search for logic app in search bar in top header. Click on Add. After clicking on Add, a new form opens. Select Subscription, here I selected Pay-As-You-Go. Select Resource group, here I created new Resource group with name AzureLogicAppLearning. Enter Logic App name in my case it is SendEmailOnAccountCreation. Select the location, here I selected Southeast Asia. Now, click Review + Create. After, clicking Create Deployment of app starts. Post deployment completion you will be redirected to App overview page.

Share Story :

Setting Up Notifications in Azure API management Service

`Read this Blog to understand how you can configure API Management notification settings for Users to receive notifications for new subscriptions

Share Story :

How to read files from SharePoint and store in Azure Blob Storage

This blog will help you resolve common errors that one might come across while integration between SharPoint and Azure Blob and will also guide you through how it is achieved.

Share Story :

SEARCH BLOGS:

FOLLOW CLOUDFRONTS BLOG :


Secured By miniOrange