Category Archives: Azure

Azure Bastion – Securely access your Azure VMs

As part of my Azure feature series lets take a look at Bastion (now in preview)

What is it?

Securing access to public facing cloud based VMs is a potentially risky and costly concern for businesses. Using services like JiT (Just in Time Access) to reduce the attack surface requires that your Security Center Service Plan has been upgraded to Standard as the service is not available on the Basic Service Plan.

Say hello to Azure Bastion

Now with Bastion you can remove the attack surface completely by allowing connections via port 443 for Windows and SSH for Linux integrated into the Azure Portal, thereby removing the risk of port scanning and removing the need for public facing IP addresses for your VMs.

Below are some of the key features currently available at this time:

Top-level Azure Bastion architecture

How to activate the Public Preview

The service is currently in preview, which means you need to activate it with the below steps:

  1. Make sure you are connected to the Azure Preview portal here
  2. Open Azure Shell and run the below three commands:
    (If you have the Az PowerShell module remember to change AzureRM to Az)
    • Register-AzureRmProviderFeature -FeatureName AllowBastionHost -ProviderNamespace Microsoft.Network
    • Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Network
    • Get-AzureRmProviderFeature -ProviderNamespace Microsoft.Network

Getting started

From the homepage of the Azure Preview Portal click + Create a resource and search for Bastion (Preview), then click create.

Choose your subscription and resource group, it is important to note that you have to create a subnet called AzureBastionSubnet. This value lets Azure know which subnet to deploy the Bastion resources to. It is recommend to use at least a /27 or larger subnet. Create the AzureBastionSubnet without any Network Security Groups, route tables, or delegations. Once done create the Bastion.

Once your Bastion is deployed, from the Azure Portal navigate to the VM you want to connect to and click connect, you will see a new option called BASTION next to the familiar RDP and SSH options. Enter the credentials and click Connect.

And there you have it, your VM is securely accessible through the Azure Portal without needing a public facing IP address.

Conclusion

Bastion is a fantastic and a much needed service which allows secure access to your cloud Windows and Linux VMs without any exposure of public IPs ultimately allowing the removal of the VM attack surface in your Azure environment.

Loading

Ding Dong it’s Azure Front Door

As part of my Azure feature series lets take a look at Front Door.

What is it?

Azure Front Door Service provides a scalable and secure entry point for fast delivery of your global web applications.

This essentially means that by placing a Front Door ahead of your application you gain increased performance and security.

Getting started

Setting up is straight forward, if you’d like to test Front door and you don’t have an application to use you can setup a sample web app using my previous article here .

First click New Resource in your Azure Portal and search for Front Door, then click Create

Choose your subscription ,resource group and Azure region. then click Next: Configuration

Now it’s a simple three step process

  1. Add a frontend host
  2. Configure backend pools
  3. Configure routing rules

Adding a Frontend Host

Click the + icon in the corner of the frontend host window and give you frontdoor a name and enable Session Affinity if required.

Adding a Backend Pool

Next click the + icon in the corner of the backend pool window. Give your pool a name, configure your load balancing and then click on add a backend.

Backend hosts can be various types in this example we are using an App Service, you can also use Cloud Service, Storage, Storage(Classic) or Custom host. Select your Subscription and backend host and click add and then add again.

Adding Routing Rules

Next click the + icon in the corner of the routing rules window. Give your rule a name, decide if it must accept HTTP or HTTPS or both and select your frontend host. Next configure the forwarder and enable caching if required, if your app uses lots of static content this will drastically improve load time performance, then click add.

click Review + Create and then Create

You should now be able to access your application using the frontdoor URL available on the top right hand side of the Overview blade.

How much better is it?

Below we have two speed test results one for my webapp API and one for my Frontdoor we can see a 53% improvement from 1.33 seconds to 710 milliseconds.

Webapp Load Test

Frondoor Load Test

Loading

The tale of the Bakery that helped me test Azure Application Insights

If you ever need to test Application insights or any of the other Azure features that need an application such as Front Door there is a simple way to create a test application baked into Azure.

In your Azure portal simple click on “New Resource” and search for Bakery and click Create

Now give the App a name, choose your subscription, resource group and an applicable App Service Plan. Remember the more robust the plan the higher the cost, there is a free limited Tier available called F1 Shared. Then click Create.

After a few minutes your application will be deployed and ready for use with Azure Features. select App Services in your Azure Portal and then click on your Bakery Application

You can find the URL for your new site at the top right of the Overview blade.

Browsing the URL you should see the below site.

For an extra tip if you need the site again you can turn it off instead of deleting it to save some costs. Just press stop in the application overview.

Loading

Create interactive reports with Azure Monitor workbooks

A new feature in Azure, Workbooks combine text, Analytics queries, Azure Metrics, and parameters into rich interactive reports. 

For those of your familiar with SCOM, think of workbooks as a pre-bundled set of metrics similar to the dashboards you are already familiar with. It offers a simple method to share useful dashboards which can also be copied and exported.

Let’s dive right in.

So how do I find them?

Simply navigate to Monitor in the Azure portal and click on Workbooks, currently in preview at the time of this article.

Whats available currently?

There are several pre-build templates out of the box as well as a GIT available as a repository for additional templates.

VM Metrics Example

Below are several sample outputs of the various workbooks, not only do they look good but they also contain rich useful information on every object in your subscription that is metric enabled.

Loading

SCOM CB: Updated Azure Management Pack v1.6.0.0

An update to the Azure management pack has been released get it here:

Changes and fixes:

  • Fixed false errors about required access to DataAccess service when monitor classic alert rules in the Gateway configuration
  • Improved names and descriptions for workflows that responsible for metricalerts presentation in Operations Manager Console
  • Updated section “Azure Alerts in Operations Manager” in Guide
  • Changed alert names for warning alerts created on dynamic monitors
  • Declare compatibility with System Center Operations Manager 1801
  • Implemented validation on “the given key not present in the dictionary” issue
  • It is possible to upgrade from 1.5.30.26 CTP, but user is recommended to re-create Azure MP template in Authoring section to obtain new changes and perform modifications

Loading

SCOM 1807: Updated Management Pack for Microsoft Azure v1.5.20.18

The Azure management pack has had an update get it here

This updated contains primarily new features.

Updates and features

  • Added the “Audience URI” field in the Endpoints Configuration for the Azure Subscriptions Wizard
  • Implemented monitoring of Non-classic storage account
  • Implemented monitoring of Application gateway
  • Fixed issue of obtaining data with Azure Data Factory
  • Implemented monitoring of Azure Data Factory
  • Metric collection for Classic storage account is not supported
  • Implemented monitoring of Service Bus in SPN mode
  • Implemented monitoring  support for Gateway Server

Loading

SCOM 2016: Updated MP for Microsoft Azure Stack v1.0.1.0

An updated management pack has been released for Microsoft Azure Stack, version 1.0.1.0 is available here.

Azure Stack is an extension of Azure, bringing the agility and fast-paced innovation of cloud computing to on-premises environments. Only Azure Stack lets you deliver Azure services from your organization’s datacenter, while balancing the right amount of flexibility and control—for truly-consistent hybrid cloud deployments.

New in this version:

  • Implemented “Edit Deployment” wizard.
  • Improved the authentication by means of Azure Active Directory (UPN authentication) and Active Directory Federation Services (UPN and AD FS SPN authentication).
  • Implemented UI improvements in “Add Deployment” wizard.
  • Implemented the Capacity Dashboard.
  • Implemented Auto Maintenance Mode Monitoring Rule that checks if any updates are run on Azure Stack regions and switches regions that are being updated to maintenance mode in Operations Manager. Implemented Turn Off Auto Maintenance Mode and Turn On Auto Maintenance Mode tasks to manually disable and enable the Auto Maintenance Mode.
  • Implemented improvements to reflect changes in the API.
  • Updated the display strings.
  • Added a workaround to support Alert names and descriptions to be displayed in the Operations Manager Reports as a plain text.

Loading

SCOM: Management Pack for Microsoft Azure (Technical Preview) v1.3.22.0

An update for the Azure MP technical preview has been releasd and is available here

New in this version

  • Fixed issue: due to deadlock of Storage Account Capacity Probe threads, Storage Account Size Performance Collection rule did not work, and the corresponding performance counters were not collected
  • Fixed issue: service type page did not display all instances in the authoring wizard when there were more than 1000 instances
  • Fixed issue: storage account state view did not display non-classic storage accounts
  • Fixed performance stability issue observed while monitoring large subscriptions (1000+ objects): all MP components (objects monitoring, objects discovery and counters collection) did not work.
  • Added support for China subscriptions; for details, see Azure in China and Azure for the US Government section
  • Fixed issue with “Add subscription” wizard pertaining to China subscriptions; added a corresponding guidance regarding the required user activity for China subscriptions monitoring, see the corresponding Note
  • Added monitoring of Azure Application Insights alerts for web tests; for more details, see Application Insights Configuration section
  • “Known Issues” section of the guide is updated
  • Updated information about Run As Profiles configuration: Run As Profile Proxy is to be configured manually; see Security Configuration section for details

Loading

SCOM: Updated MP for Azure SQL Database v1.6.1.0

An updated version of the MP for Azure SQL Database v1.6.1.0 is available here.

Updates and Fixes

  • Added a number of new monitors and rules, including the following:
  • CPU Usage (%)
  • Workers Usage (%)
  • Log write (%)
  • Data I/O (%)
  • Sessions (%)
  • Count Failed Connection
  • Count Successful Connection
  • Count Connection Blocked by Firewall
  • Count of Deadlock
  • Count Throttling long transaction
  • Count Connection Failed
  • XTP Storage (In-memory OLTP Storage, %)
  • Deprecated Collect Microsoft Azure SQL Database Internal/External Network Egress/Ingress performance rules
  • Deprecated Federation and Federation member workflows
  • Implemented rebranding: the management pack and some workflow names have been changed

 

 

Loading