Archive for category powershell

Automating #Azure VM stop and start

This is an old topic, but at the same time a big ask for Azure IaaS deployments. It would be great to be able to start and stop Virtual Machines based on a weekly schedule, and let’s add the option to run a specific script before shutdown or after startup. I just published an automation […]

,

Leave a comment

Batch convert your #Azure VMs to #manageddisks

AS you may know managed disks have been released a couple of weeks ago, your current virtual machines can be converted to managed disks with just a reboot and a limited downtime. The following is a quick script to batch convert all the virtual machines in a subscription. Things to know: do it at your […]

,

3 Comments

#Azure powershell and the Run Login-AzureRmAccount to login issue

I use Azure powershell almost every day, as a matter of fact I constantly keep it updated using the powershell integrated oneget module (i.e. the ability to use the install-module and update-module cmdlets). I’m literally working with 10s of tenants and much subscriptions, switching back and forth with the proper credentials. Not a nice experience, […]

,

Leave a comment

Quickly add #Azure diagnostics to #MSOMS

A quick one to add Azure Diagnostics (with the exception of the compute resource type) to Log Analytics workspace. For more information in what you’re about to do see. ** Update if you want to batch ingest Automation Accounts here you go Happy diagnostics ingestion.

2 Comments

#Azure: ARM templates, Automation, DSC and more. Travel notes

It’s been a long time since my last post, I actually have a ton of materials to work on, but hardly found the time to settle down and share it in my blog. Recently I’ve been involved in a demo run, proof of concept session, for a prospect involving end to end management of a […]

2 Comments