Przejdź do głównej zawartości

Posty

Wyświetlanie postów z 2018

Connect to Azure from command line on Windows

When working with Azure we could go two ways: 1) using Azure portal and work in UI from your web browser 2) Connect to Azure from command line and run commands by typing in text in CMD. I already wrote about option 1 but today I'll show you how to start with option 2 which is Command line. First we need to download MSI installer from Microsoft website After sucessfull instalation you're ready to test az command. Open CMD and type in 'az' Now let's log in with your Azure credentials. Just type in "az login" in cmd. You should be redirected from command line to web browser and prompted for username and account in web browser. When you confirm your identity you'll be presented the screen like this in command line:

Monitof your app with Live Metrics Stream on Azure

Today I'll show you a Live Metrics Stram, which is the Azure function that helps you monitor your services on the go. Before you have working application with Application Insights Nuget package insialled, You need to go to Azure Portal and create new Application Insights: Then click Create button: Then fill the form and specify the application name and type, a valid subscription, resource group and the region. Once you fill the form, click Create. Wait a few seconds for Azure to deploy the newly created Application Insights. Then go to Dashboard and search for your insights: When you have your application insights running and configured app, then you can go to web brower and request your page 5 times. After that your live metrics could looke something like this: Azure portal says this about Applications Insights: It's available if you install version 2.2.0 (or later) of the Application Insights SDK for ASP.NET in your app. If you work on older versions of packa