How to Export Azure DevOps Service Connection Details using PowerShell

I’ve recently been looking to report on and remove old unneeded Azure Service Connections found in Azure DevOps and found that any actual information on how to do this or existing scripts to do it for me were sorely lacking. As such I’ve developed a working example, which can be found in the article below.

Continue reading “How to Export Azure DevOps Service Connection Details using PowerShell”

Unable to Break Lease on Azure Blob Storage due to attached Virtual Machine

I recently came across a situation whereby I wasn’t able to break a lease on an old .vhd file within Blob Storage. The issue was caused by a Virtual Machine which had since been deleted but still retained a lease lock on the file.

Azure will helpfully tell you which resource has the file leased and give the error message “All selected blobs are currently leased as virtual machine disks. Breaking the leases on these blobs is not supported.”, as in the image below, but this is only so much use when the Portal refuses to actually break the lease for you.

Continue reading “Unable to Break Lease on Azure Blob Storage due to attached Virtual Machine”

OneDrive B2B Guest Sharing – Sorry, OneDrive can’t add your folder right now

Short article today, so we’ve been dealing with the new OneDrive guest B2B Sync which is a feature currently in preview, we followed all of the initial setup instructions yet it still wouldn’t work.

We would constantly receive “Sorry, OneDrive can’t add your folder right now” when trying to sync a library which the guest user had full access to. After 4 hours on a call with Microsoft support and verifying every setting we could possibly think of I noticed a limitation which we had initially missed.

The reason turned out to be fairly simple and an oversight on our part, but it’s something many of you can easily fall into if you are following the latest Microsoft best security practices.

Continue reading “OneDrive B2B Guest Sharing – Sorry, OneDrive can’t add your folder right now”

Migrating Azure VM’s from AD to AAD Domain Services (AAD DS)

This will be a fairly short article on my experience migrating Azure Virtual Machines that were connected to our On-Premise Domain Controllers to Azure Active Directory Domain Services (DS). Luckily most of the servers had been configured in such a way as to reduce the usage of any domain users which simplified the process greatly, but I will cover what things to check below. Firstly, … Continue reading Migrating Azure VM’s from AD to AAD Domain Services (AAD DS)

How to Easily Migrate your Entire On-Prem DNS to Azure

So as with many companies we’re shifting to a Cloud environment from aging physical systems, as part of this I came across a requirement to migrate our entire On-Premise DNS System which is hosted on a Windows Server into Azure.

I wasn’t about to start migrating a few hundred individual DNS Zones in this case as that doesn’t sound like a whole lot of fun when it’s a seemingly repetitive task that I could instead script up so that’s what I did.

The instructions and code below are meant to get you in the right direction, the script is not necessarily production ready and could be improved greatly, if you take the time to do so please comment with any alterations you make and I’ll include them in this article.

Continue reading “How to Easily Migrate your Entire On-Prem DNS to Azure”

AZ-100/AZ-103 – Implement and manage hybrid identities – Study Notes #20

This article covers the “Implement and manage hybrid identities” section of the AZ-100 and AZ-103 Exams and is part of my AZ-100 Study Notes series. Install and configure Azure AD Connect Azure AD Connect allows you to connect and sync between an On-Premise Active Directory and AAD. Detailed information on setting up Azure AD Connect can be found at – https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-get-started-express Configure federation and single … Continue reading AZ-100/AZ-103 – Implement and manage hybrid identities – Study Notes #20

AZ-100/AZ-103 – Manage Azure AD objects (users, groups, and devices) – Study Notes #19

This article covers the “Manage Azure AD objects (users, groups, and devices)” section of the AZ-100 and AZ-103 Exams and is part of my AZ-100 Study Notes series. Create users and groups Creating users and groups is fairly straightforward, navigate to Azure Active Directory and then select either Users or Groups as required. To create users – Select “New users” Provide the name and the … Continue reading AZ-100/AZ-103 – Manage Azure AD objects (users, groups, and devices) – Study Notes #19

AZ-103 – Configure a Network Security Group (NSG) – Study Notes #17

This article covers the “Create and configure a Network Security Group (NSG)” section of the AZ-100 and AZ-103 Exams and is part of my AZ-100 Study Notes series. A Network Security Group is basically a network filter/firewall that allows you to restrict access to resources within a VNET, they are associated with Subnets or NIC’s rather than to VM’s directly. Create security rules Rules are … Continue reading AZ-103 – Configure a Network Security Group (NSG) – Study Notes #17