Streamlining Azure Quota Management using PowerShell

Managing Azure resources efficiently requires a keen eye on various factors, one of the more critical being quota limits. Azure quotas dictate the maximum number of resources you can provision within your subscription. While these limits are set to ensure resource availability and performance, they can sometimes hinder your operations if not managed effectively.

In this blog post, I’ll cover how you can streamline the process of monitoring them. Traditional methods of reviewing quota limits through the Azure portal can be time-consuming, especially when dealing with multiple subscriptions. Each category must be loaded individually, leading to tedious navigation and potential oversight.

Fortunately, there’s a solution. I’ve created a PowerShell script designed to simplify and expedite the process of generating a comprehensive report on Azure quota limits. The script allows users to effortlessly gather data on quota limits, current usage, and identify any limits that are approaching or exceeding a predefined threshold.

Continue reading “Streamlining Azure Quota Management using PowerShell”

Enhancing Azure Security: Exporting a Role Assignments Report Easily

Ensuring the security of your Azure resources is paramount. With the ever-evolving threat landscape and the increasing complexity of cloud deployments, maintaining visibility and control over access permissions is crucial for safeguarding sensitive data and preventing unauthorized actions.

Regularly auditing Azure role assignments is a fundamental aspect of maintaining a robust security posture in Azure environments. By reviewing and validating who has access to what resources, organizations can identify and mitigate potential security risks, comply with regulatory requirements, and maintain accountability across their cloud infrastructure.

However, auditing Azure role assignments manually via the portal can be a time-consuming and error-prone process, especially in large-scale deployments with numerous users and resources. This is where automation comes to the rescue.

Continue reading “Enhancing Azure Security: Exporting a Role Assignments Report Easily”

How to Auto-expand Azure Navigation Menu’s

In a somewhat bizarre change, Microsoft have taken the decision to auto-minify all of the navigations menu’s found across the portal. Causing many additional clicks to get to the same areas and if you’re anything like me, confusing your muscle memory.

Luckily this is a very simple change to roll back thanks to a new setting found in Appearance + startup views.

Continue reading “How to Auto-expand Azure Navigation Menu’s”

How to Update Azure Resource Group Tags using a CSV & PowerShell

As businesses scale their operations in the Azure ecosystem, ensuring Resource Groups are appropriately tagged becomes a strategic imperative. Yet, merely tagging resources once isn’t enough; regular audits are necessary to maintain alignment with your policies and processes.

Moreover, streamlining this process through automation can significantly enhance operational agility and resource optimization.

Rather than inventing an entirely new tool, why not use the established tools that almost every business already has to hand and which most staff are familiar with?

In this brief article, I’ll cover how to export a list of all Resource Groups and their currently assigned Tags to an Excel CSV file where you can then easily and quickly review it collaboratively with your various resource owners, before using a short PowerShell script to enact any changes across your Azure environment.

Continue reading “How to Update Azure Resource Group Tags using a CSV & PowerShell”

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”