Tag: azure

PowerShell modul for Azure Blueprint

Today Microsoft releasted the first powershell module for Azure blueprints (at long last 🙂 ).

This first version 0.1.0, has some basic commands like “Get-AzBlueprint”, “Get-AzBlueprintAssignment” , “Remove-AzBlueprintAssignment”, “Set-AzBlueprintAssignment” and “New-AzBlueprintAssignment”.

To install the new module, just do a “install-module -Name az.blueprint”, you will need new Azure PowerShell Az module

To do a Blueprint assigment you would do something like this :

$blueprintName = “TestBluePrint2”
$subscriptionId = “00000000-1111-0000-1111-000000000000″‘
$AssignmentName = “BP-Assignment”
$myBluerpint = Get-AzBlueprint -Name $blueprintName -LatestPublished
$rg = @{ResourceGroup=@{name=’RG-BP-TEST1′}}

New-AzBlueprintAssignment -Name $AssignmentName -Blueprint $myBluerpint -SubscriptionId $subscriptionId -Location “West US” -ResourceGroupParameter $rg

This is a simple Blueprint that creates a resource group and nothing more.

If you want to use a managed identity you just add -UserAssignedIdentity “/subscriptions/00000000-1111-0000-1111-0000000 00000/resourceGroups/my-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/my-user-defined-identity” the default is to use system-assigned identity.
If your blueprint uses parameter eg. in a ARM template, then you can use the -Parameter @{P1=”v1″; P2=”v2″} parameter.

I think this is a great tool for deploying Azure blueprint and I will be following this closely.

Update management, inventory, and change tracking in Azure Automation

 It is now possible in Azure Automation to use update management, inventory, and change tracking directly from the Azure VM. One of the cool things I found was the ability to create scheduled deployment of windows updates within a defined maintenance windows. You can see the status of update deployment directly on the VM, just like you can in OMS. Nice work Azure Team. All this is still in Preview, but I suspect it will go GA soon. 🙂
 For more about the new Update management, inventory, and change tracking in Azure Automation see this blog post from the Azure team, and the Microsoft doc on how to set this up.