Inlägg

Visar inlägg från augusti, 2025

🚀 New PowerShell Script: Reveal Explicit Azure IAM Permissions 🔍🔐

🛡️ Azure IAM: Report Explicit Role Assignments This PowerShell script collects all explicit role assignments across your Azure environment – including Management Groups, Subscriptions, Resource Groups, and Resources – and generates an easy-to-read HTML report . ✅ What It Does: Skips inherited permissions – only shows direct (explicit) role assignments Lists user/group/service principal roles by scope Exports a local HTML report you can archive or review Explicit IAM Report – PowerShell Connect-AzAccount function Get-ExplicitRoleAssignments { param ([string]$Scope) Write-Host "Fetching role assignments for scope: $Scope" try { $roleAssignments = Get-AzRoleAssignment -Scope $Scope -ErrorAction Stop $explicitAssignments = $roleAssignments | Where-Object { $_.Scope -eq $Scope } return $explicitAssignments } catch { Write-Host "Error fetching assignments...

🔧 Expand Virtual Hard Disks on Azure Windows VMs

🔧 Expand Virtual Hard Disks on Azure Windows VMs 🚀 This guide helps you quickly understand how to expand virtual disks for Windows VMs on Azure. ✅ Applies to: Windows VMs Flexible Scale Sets 📌 Key Points: Default OS disk: 127 GiB Max OS disk: 4,095 GiB (limited to 2 TiB if MBR) Use GPT if you need more than 2 TiB on OS disk Cannot shrink existing disks 🕒 Expand Without Downtime (Data Disks Only): Works if disk is already > 4 TiB (Standard or Premium) Use Azure CLI, PowerShell, Portal, or ARM templates Not supported for OS disks or shared disks 📍 Resize via Azure Portal: Go to the VM and click Stop to deallocate (if required) Under Settings , click Disks Select the disk you want to resize Click Size + performance Select a new (larger) size and click Resize 🔄 After Resizing: Extend volume in Windows Disk Management If size is not visible: re...

Secure Your Azure VMs with Agentless Crash-Consistent Backup: A Step-by-Step Guide

Bild
 Want to protect your Azure virtual machines with a robust, agentless backup solution? This guide walks you through configuring agentless crash-consistent backup for a new Azure virtual machine (VM) with multiple disks and how to switch an existing VM from application/filesystem-consistent to crash-consistent backup. All steps are performed easily via the Azure portal using the Enhanced Policy. What is Agentless Crash-Consistent Backup? Azure Backup supports agentless backups for VMs by creating crash-consistent snapshots across multiple disks. This eliminates the need to install an agent on the VM, simplifying the process. Crash-consistent backups are ideal when application-consistent snapshots fail or when you prefer a streamlined approach. Note that this feature requires the Enhanced Policy , as application/filesystem-consistent backup is the default setting. Note : Check pricing details and supported scenarios before starting, as there may be limitations for certain VM config...