Microsoft Azure List all subscriptions under a management group with Azure Resource Graph It is not a secret anymore that I really like Azure Resource Graph. Today I wanted to list all the subscriptions under a management group and had to adjust because
Microsoft Azure Effective ways to delete resources in a resource group on Azure in 2021 In Azure, resource groups are very helpful to logically hold together a set of resources. For many reasons, at some point, you'll want to get rid of these
PowerShell My ScriptCenter's Azure scripts has moved to Github Over the years I posted a few scripts that have been useful for me in Azure on ScriptCenter. Time has come to move them on a newer platform since ScriptCenter
Microsoft Azure How to detect expiring certificates in Azure Application Gateway We've been on a mission lately at work to find expiring credentials and certificates in our Azure environments. One of the resources we had on our radar is
Microsoft Azure Tenant and Subscription display names now available in Azure Resource Graph command lines I love Azure Resource Graph but one of the things I deeply wanted since its launch is a native way to get the subscription or tenant names, not just the
Microsoft Azure How to use Office 365 Exchange PowerShell module in Azure Automation We had to do automation around Office 365 mailboxes a couple of days ago and struggled to do it. We looked around and found the solution in a sea of
Microsoft Azure How Azure Resource Graph is gonna change the way you search and script Azure Resource Graph has been announced a while ago (Ignite 2018) and I immediately understood this would be a game changer in terms of querying and data digging for the
Microsoft Azure How to audit expiring soon Azure AD application credentials (keys/passwords/certificates) How bad the feeling is when someone comes rush onto your desk because something in production stopped working overnight. This can happen if you don't take seriously the
Microsoft Azure How to audit an Azure subscription Role Based Access Control (RBAC) assignments In the last year it occurred several times that I needed to audit and validate Role Based Access Control (RBAC) assignments for an Azure subscription. Using what is available in
Microsoft Azure How to safely replace Find-AzureRmResource -ResourceType calls in Azure PowerShell 6.x+ UPDATE: 2018-06-28 - Added resourcegroup ODataFilter example. Starting with version 6.0 of Azure PowerShell, Find-AzureRmResource have been removed and Get-AzureRmResource is supposed to be the workaround. My first reflex
Microsoft Azure Prepare data disks for stability & consistency in Azure throughout virtual machines and scale sets lifecycle When dealing with Windows virtual machines from the marketplace on Azure, sometimes a CD-ROM will temporarily be present in the first moments in the lifetime of a virtual machine or
Azure Resource Manager Migrate your classic storage account to Azure Resource Manager using PowerShell Azure v5.0.x I've been working to convert a lot of classic resources on Azure lately, a lot of fun I assure you! Many of the scenarios I faced implied virtual
Azure Resource Manager List all App Service web apps outbound IP addresses used in a subscription If you want to perform IP whitelisting against an App Service, you'll discover that on public instances of App Service (not App Service Environment) you have 4 or
Microsoft Azure How to easily and silently obtain AccessToken (Bearer) from an existing Azure PowerShell session More than often I need to call the Azure RM REST API to perform a variety of thing. Pretty much the only way you'll find to do it
Microsoft Azure Azure automation runbook invocation error when declaring array, Unable to cast object of type... to System.Object[] Today I was implementing a snapshot/restore mechanism for virtual machines with the help of Azure Automation. After importing my script in Azure Automation, I encountered an error while invoking
PowerShell Breaking change with Get-AzureRmStorageAccountKey in AzureRM.Storage v1.1.0 - AzureRM v1.4.0 A nasty breaking change has slipped into version 1.1.0 of AzureRM.Storage which coincide with the release v1.4.0 of AzureRM module. If you use the return
Microsoft Azure HowTo: Purge an Azure CDN endpoint using Azure PowerShell v1.x Not long ago, one of my colleagues asked me how he could automate the purge of an Azure CDN endpoint. I browsed around a bit with him and the only
PowerShell Azure DSC Extension error - A previous attempt to install Win8.1AndW2K12R2-KB3066437-x64.msu failed Sometimes you make stupid mistakes that cost you a lot of time and today was a day like this. The context We wanted to use a fixed version of the
PowerShell HowTo: Perform POST call to Azure REST API using Invoke-AzureRmResourceAction PowerShell command Not long ago, one of my colleagues asked me how we could automate an action that was not quite available in the Azure PowerShell cmdlets. Sure we can use Azure
Microsoft Azure How to refer an Azure Key Vault secret in an Azure Resource Manager deployment template We live in a world where data and security is not to be taken lightly. Having to create or maintain a system that enable you to keep secrets and/or
Microsoft Azure Effective ways to delete resources in a resource group on Azure Under Azure Resource Manager, resource groups are very helpful to logically hold together a set of resources. For many reasons, at some point, you'll want to get rid
PowerShell WMF 5.0 (PowerShell 5.0) RTM is back and available! After being temporarily removed in December 2015 due to a nasty bug that could resets your PowerShell module environment during installation, the Windows Management Framework 5.0 (PowerShell 5.0)
Microsoft Azure Create an Azure Key Vault using an ARM template (api version 2015-06-01) and Azure PowerShell v1.0.4 We live in a world where data and security is not to be taken lightly. Having to create or maintain a system that enable you to keep secrets and/or
PowerShell How to get the status of a Virtual Machine under the v2 compute model in Azure PowerShell v1.0.x Getting the status of a virtual machine is really handy because once you have that information you can then take decisions and perform several actions on your virtual machines like
Microsoft Azure How to use Azure PowerShell v1.0.x to capture your own custom virtual machine image under Azure Resource Manager You have a v2 Azure Virtual Machine that has been generalized and are ready to capture it using Azure PowerShell v1.0.x? All right, buckle your seat belt and