Azure Centric

0

Auto shutdown an Azure VM with PowerShell

At one of my costumers, after starting the process of Azure Governance, it come to my attention the following scenario, the majority of the Virtual Machines on the DevTest Labs were with no auto shutdown configuration. That can be setup easily, although we want to make sure that we wanted to introduce a mechanism that will enforce the shutdown of those virtual machine, even if that configuration is not setup....

0

Moving to Azure Series – How to get the Azure VM Unique ID

On this series, I want to explore all the situations that you might encounter when you are moving your workloads to the cloud, specially to Azure. On this post I will cover how to get the Unique ID from an Azure VM. Why is that important? When you migrate your workload from on premise to Azure, in some occasions the license of your application is attached to the server. Usually...

0

How to migrate Azure Managed Disk to different subscription and region – Part II

On the previous post I describe what need to do to move Azure Managed Disks between subscriptions and after that between regions (see link HERE). Although I didn’t explore the steps mention to move between regions. Here are the step-by-steps of each stage, mention on the previous post, of how to move the Azure Managed Disk between Azure Regions: 1. Stop the virtual machine from migrating 1. Navigate to the...

0

How to migrate Azure Managed Disk to different subscription and region – Part I

On a recent project, I was asked to help move some virtual machines from a MSDN Subscription to a CSP subscription. With this move, we use the opportunity to consolidate on a different region as well. This last aspect makes the move a little more complex that was described on the Move resources to new resource group or subscription documentation. The migration of resources between different or within the same...

0

How to overwrite Tags on an Azure Resource

With the limitation of 15 Tags per resource, you will reach a point that you need to intervene and either remove some of the tags or reuse them. On my previous post (How to update specified tag from a resource) I showed a way to update a specific tag in a Azure Resource. Some time that will be enough, other time you need to overwrite what is implemented by a...

1

How to update specified tag from a resource

The usage of Tags on Azure resources is a very common and very useful for several reasons that I will not cover on this post. Although in some occasions, if you need to update a Tag from a resource, because either it’s not suitable anymore or you are reaching the limit of the number of Tags allowed by Azure. In this case the idea is reuse the Tag Shutdown, although...

0

How to get Tags for all the resources on the same Resource Group

When you heavily use Tags on your Azure Resources, is very easy to reach the limits of the Tags that Azure allow to use on each resource. On the other hand, to be consistent on the Tags applied on those resources is key to a good Tag implementation. The way that I like to do is to create an Azure Automation runbook, so when it runs you will have the...

0

How to access Azure Blob Storage container via a SAS token

Today I received an email, from a colleague ask me if it’s there is a way that you can download the entire blob container having a SAS token via PowerShell. After research, I found that it’s possible and I found 2 ways. One is through PowerShell and the other one is through AzCopy. Please find bellow the example of the code required to download the whole content of a blob...

0

Azure Policy – Auditing public blob storage

In a Governance project, one of the most common policy to implement is the one that you don’t allow any blob storage to be public. That usually could be a major information breach. When you make a blob storage in Azure public, you are giving at least reading privilege to the world. In this case, the idea is to audit what blob storage are public. This policy is not denying...

0

Azure Policy – Allowing only define VM sizes

Azure Policy is the big step to start to have some sort of governance on your Azure environment. It’s really easy to implement, efficient and powerful. With Azure Policies, you can control how and what you allow users to deploy. It’s important to have such policies to control the cost of the subscription, special when you have a monthly budget like mine. On other hand, you are limiting the number...