How to configure Azure Bastion

Reading Time: 3 minutes

The Azure Bastion service is a great new fully platform managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your virtual machines directly in the Azure portal over SSL. When you connect via Azure Bastion, your virtual machines do not need a public IP address! So, you can basically connect to your virtual servers from the portal securely and internal to Azure. What a cool feature from Microsoft. The feature does require some pre-work before it can be used, such as an AzureBastionSubnet

At the time of writing this blog post, this feature was only available at the below regions:

  • West US
  • East US
  • East US 2
  • West Europe
  • South Central US
  • Australia East
  • Japan East

Below is a diagram demonstrating how Bastion works:

To try out this feature, I deployed a test VM in the East US 2 region

How to configure Azure Bastion:

1) Login to your Azure Portal
2) Click Bastions

3) Configure your Bastion service. As you can see from the screenshot below, the service is not available at all regions but Microsoft are working to push out this feature to all regions


4) If you have not created a AzureBastionSubnet with a prefix of at least /27, you will receive the below error. Ensure you have created a Subnet within your VNET.

5) Click create. It took approx. 5 minutes to deploy this service after clicking create

If you attempt to connect to your virtual server using Bastion whilst the service is still deploying, you will receive the below error

6) Now that we have deployed the service, lets connect to a VM located in the same VNET as the BastionSubnet. Because the Bastion service was not available within the UK region, I created a test VM in the East US 2 region.

7) Locate your VM, click Connect and select Bastion. Login with your credentials

Information: You may see a prompt to enable just-in-time access on this VM. This is a useful feature which is currently available as part of Security Center standard. If you have VM’s which are open to RDP, you can configure Just in Time so that RDP is always denied but opened for a small amount of time if an admin needs to logon to perform management tasks. Just In Time will automatically create an allow rule within your NSG/Azure Firewall when access is required. The rule will be removed when Just In Time access expires. A good feature you may want to look into at a later date.

8) Let’s continue with the demo. So once you have inputted your credentials, the VM will connect to the Bastion service

7) and we’re logged on securely!

How to enable Azure Security Defaults

Reading Time: < 1 minute

Microsoft have introduced a great new free feature for all new Azure tenants.

Security defaults in Azure Active Directory make it easier to be secure and help protect your organisation. Security defaults contain pre-configured security settings for common attacks.

One of the new features includes Multi Factor Authentication which can only be utilised using the Azure App. Conditional Access allows the use of any authentication method the administrator chooses to enable. See table below

The aim is to ensure that all organisations have a basic level of security enabled at no extra cost. You can turn on security defaults in the Azure portal.

Further details and things to watch out for before enabling Azure Security Defaults can be located here

To enable Azure Security Defaults:

  1. Logon in to the Azure portal at portal.azure.com
  2. Click Azure Active Directory, or search using the search box
  3. Click properties located in the left pane
  4. Browse to the bottom of the page, and click the link Manage Security Defaults
  5. Click Yes to switch on Security Defaults

How to enable Azure VM Disk Encryption

Reading Time: 3 minutes

As part of enabling Azure Disk Encryption you will be prompted to connect to or create a new Azure Key Vault. We will go through the process of enabling Azure Encryption and allowing the server access to a Key Vault.

Ensure your VM is powered on. A reboot of the VM will be required after disk encryption. Finally, ensure you have a back up of your server.

ok, let’s go through the process. Below is a screenshot of a 2019 virtual server I built earlier


Click on the VM and then click disks located on the left hand pane



Click encryption



If you receive the error below, ensure the virtual server is powered on. I had the VM set to power down every day at 7pm. Forgot to power it back on but I guess it’s good to demonstrate what you’ll see if the VM was powered down
Now that the VM is powered on, lets drop down and encrypt one of the disks. In this demo, I will be encrypting the OS disk

In the screenshot below you’ll be prompted for Key Vault details. Click ‘Select a key vault and key for encryption’


Select your Key Vault and click select

If the key vault has not been enabled for disk encryption, you will receive the message below and prompted to enable key vault for disk encryption. Click the button labelled ‘Enable key vault for disk encryption’ and click save

Note: Clicking the ‘Enable key vault for disk encryption’ button above will enable a policy within your key vault. To locate the policy, click key vaults or search from the search menu, locate and click your key vault, click access policies within the left hand pane. The option ‘Azure Disk Encryption for volume encryption’ is enabled as shown in the screenshot below. You could also enable this manually.

Click yes to confirm disk encryption process

Reboot the server when encryption has completed

Tenant to Tenant O365 Migration – things to keep in mind

Reading Time: 3 minutes


Below are things to consider when planning a tenant to tenant migration using MigrationWiz. MigrationWiz is a cloud service provided by BitTitan. There are other services out there that you can research.

1) URLs change for SharePoint Teams, and OneDrive so previously embedded links won’t work (e.g. in emails or documentation)

2) Team meeting URLs in Calendar meetings change (If the legacy tenant exists, users will have their meetings over there)

3) If users are unable to access Outlook client, use OWA in the meantime as a backup. OWA can easily be forgotten about 🙂

4) There will be downtime when you remove the domain from source tenant and add to destination. Plan this well

5) Make sure you have access to DNS, so you can add txt records to verify domain and amend MX records

6) You will require a global admin account at source tenant and destination tenant. This is required to create source and
destination end points on the MigrationWiz portal (Global account needs to use a onmicrosoft.com account at both ends)

7) Have enough O365 licenses at target tenant.

8) Not all migration tools take across SharePoint and OneDrive meta data and versions. You will lose this info

9) OneDrive for Business quotas need to be same, or higher in the target tenant

10) Don’t use the domain you are migrating in any mapping files. Make sure you use the .onmicrosoft.com alias.
If you were to use a non .onmicrosoft.com alias, the migration tools won’t recognise the user in the target when you remove the domain from source tenant

11) Mailbox delegation permissions don’t migrate so ensure you have a record of these details

12) Mailbox litigation hold don’t migrate so ensure you have a record of these details

13) Mailbox full permissions don’t migrate so ensure you have a record of these details

14) Mailbox Send As don’t migrate so ensure you have a record of these details

15) Password complexity needs to be the same or lower in the target

16) Beware of AAD Connect custom attributes and mappings

17) After the migration, remove licences from the source else you’ll continue to be charged

18) You will need to recreate guest accounts if they were in use at source tenant and there is a requirement for these at destination

19) Most recommend to avoid a staged/batched migration as coexistence is never easy or cheap. A cutover/big bang is sometimes the best option. Discuss this with your team

20) Always pre stage data using MigrationWiz or your tool of choice

21) Migrationwiz is a copying tool and not a syncing tool, if you copy data using MigrationWiz, and a user decides
to clean up their mailbox, those changes are not replicated to destination tenant. When the user is migrated, all that email will reappear

22) Pre stage emails older then 60 days and then come down to 30 days, and lower as you come closer to the cutover weekend. The pre cutover copy will be much faster if most of your data has already been copied

23) If you have a lot of data and in a rush to migrate users, you could migrate the latest 30 days of email, migrate and let the remaining emails trickle in as the users continue to use their mailboxes

24) ODfB/SP stage data older than 90 days

25) DeploymentPro provided by BitTitan (MigrationWiz) is a good tool to auto reconfigure user profiles if you have a large number of users. It can be configured to execute after the cutover. An agent needs to be deployed (DMA – Device Management Agent) to each machine. This can be pushed out via group policy or even sent via email to the user if they have the permissions to install. If you have a small number of users you could deal with outlook profiles manually

26) Don’t rush, sit down with your team and plan the process

27) If you’re migrating to a new tenant and a new infrastructure, such as a new deployment of mail filtering, AD, internet proxy etc, you could migrate a domain from source tenant which is not in use, to allow you to pilot, and ensure all your new services function (email filtering, Proxy, etc). This will allow you to prove the concept, migrate across some test users, test email flow, filtering, proxy etc before migrating across the live domain.

28) Use a different provider such as ShareGate for migrating SharePoint data. My personal opinion

29) A pilot test is recommended so you can have a feel of what features don’t come across and how you will resolve those issues.

30) O365 groups don’t migrate. These need to be recreated

31) Mail contacts don’t migrate

32) Mailbox Delegation don’t migrate (SendAs, Send on Behalf Of, and Full Access).

33) Mailbox permissions don’t migrate

34) User calendar permissions don’t migrate

For more info on a O365 tenant to tenant migration visit Tenant to Tenant O365 Migration

How to enable or disable Windows Defender

Reading Time: 2 minutes

If you have a requirement to disable the default Windows Defender installation on your server due to using a different AV solution such as McAfee, Sophos etc, here is a step by step guide on how to disable or enable Windows Defender. You may also find that when trying to disable Windows Defender, the feature is greyed out, so we will also go through the process of getting around this issue via Power Shell

Firstly, logon to your server, launch server manager and click ‘Manage’ as shown in the screenshot below

Click Add Roles and Features or Remove Roles and Features if you’re wanting to remove Windows Defender

Click next

and click next again

Leave the defaults and click next

Leave the defaults and click next

Scroll down to ‘Windows Defender Features’ and deselect or select if you are installing Windows Defender

If the option is greyed out, you will need to uninstall the feature via Power Shell.

Install or Uninstall Windows Defender via Power Shell

Launch Powershell as administrator (Right click on Powershell and click run as administrator)

To remove Windows Defender, type: Uninstall-WindowsFeature -Name Windows-Defender

To install Windows Defender, type the below:

Install-WindowsFeature -Name Windows-Defender