Category: Azure

0

Infrastructure as a Code (IaC) Series – The beginning!

From the past months, I’ve been upgrading all my scripts that I have been using along the years to a platform that allows me to be more productive, reusing all the IP that I have been gathering and creating along the years. But in what way I should enhance/improve this? Then I got stroked by a light! What I was doing from all of those years was kind of an...

0

Considerations on using Load Balancing with Azure VMs

During this week, I had to design a solution using Azure Load Balance to build, to host a significant amount of content that requires a lot of bandwidth. From what I could find, the size and the series of the VMs in Azure impacts on the output of the bandwidth, and directly impacts on the performance of the solution. So, after careful calculation we decide to go with the F-Series....

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

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...