Azure Backup – How to . . .

Hello all, During over the last few years, in ransomware era, some of my clients had issues with data loss due to “ransomware attack”. Few of them didn’t have any kind of backup solution, as well in few situations they didn’t have valid and tested backups. In worst case scenarios, their backups were encrypted, as…

Read More

How to set static IP address for Virtual Machines

Hello all, By default, each Virtual Machine in Azure has a private IP address. That IP address comes from Virtual Network embedded DHCP and, by default, is configured as Dynamic. In some scenarios, private dynamic IP address is not appropriate and you need to configure private IP address to be static. In on-premise infrastructure,  you…

Read More

How to create and configure Network Security Group

Hello everyone, Network Security Group (NSG) is the main Azure resource that you need to use to control network traffic. Like as firewall in on premise networks, Azure NSG provides you ideal way to create and manage Access Control Lists (ACLs) for your virtual network. NSG can be assign on NIC level or subnet level…

Read More

How to create VM in Azure (Azure PowerShell)

Hello, This post is basically pretty old, but because script is updated, we can announce that post is new 🙂 In one of previous posts, you have learned how to create Azure VM using Azure Portal. Now, I will show you how you can do that using Azure PowerShell. Following script will: Create Resource Group…

Read More

Azure custom reporting

My team had a few Azure projects in the past couple of weeks and as for every good project, we had to create a documentation. This gave me an opportunity to write a script (ended as a function) that we could use in the future. Let’s see what we get out-of-the-box. If we run “Get-AzureRMVM”…

Read More

SharePoint migration

This was my first SharePoint migration – from On-Premise to O365. You can, of course, use SharePoint Migration Tool but I decided to find out how to do it with PowerShell 🙂 This task consist of 2 parts: # SharePoint 2013 Management Shell side (On-Premise) Export-SPWeb -Identity “https://SHAREPOINT_SITE_ROOT” -ItemUrl “SITE/LIST/LIBRARY_2Export” -Path c:\migration\export.cmp -NoFileCompression # SharePoint Online Management Shell side…

Read More

Migrating Exchange to O365 – Small headaches

I have done a couple of those in the past for different clients – from just a few users to a couple of hundreds of users. My team already has the best practice workbook and we don’t have issues in the process. This weekend I managed to have two different problems with one customer o.O First issue –…

Read More

PowerShell connecting to O365 services

This one is more a reminder for my self, but may come in handy for you too 🙂 When you want to manage O365 subscription with Powershell you first need to login to it: Connect-MsolService This command will open a new window for you to sign in to your subscription: After logging, you may execute…

Read More

AD heavy changes – Powershell 2 the rescue

Recently I have been assigned a task to populate/change AD users attribute called ProxyAddresses. Generally, that’s not so hard – a few clicks and a bit of writing. But this time, it had to be done for a couple of hundreds of users. It was time to spend some time and create a PowerShell script that…

Read More

Hyper-V and Powershell to save the day

If you are managing Virtualized infrastructure by using Hyper-V, this small script may come in handy (and save you from getting a headache). Few clients have a procedure to create VM Snapshot before making some big changes to the VM (I know, that’s not a backup solution but I can’t win all the battles). The problem…

Read More