Posts

Showing posts with the label Azure Powershell

Azure VMs – Export to CSV

Image
Abs07act For human race, there are some common tasks in daily life which you must do. Without which humans can survive but you can’t say if they are “living the life”. For example, taking a bath is one of such tasks. You can survive without taking a bath but you will not like it. These tasks are those which bring “life” to humans daily lives and make them enjoy their stay on earth. Out of these humans there is special category of humans – I call them “Humans who work in Software field”. They can be sub-categorized into below –        1.       Software developers 2.       IT adminis07ators 3.       Project managers 4.       Software Engineers 5.       Solution Architects For all these sub-categories you can apply prefix such as Senior, Junior, Principal, Full Stack, Distinguished and in recent times we have a new addition to this pre...

Delete Azure File Storage Directory and files using PowerShell and secret sauce of recursion

Image
Abs07act Come on guys!! Seriously? After this successful post of Azure Virtual Machine – Frequently asked questions – not easily answered I got almost 54+ requests/ comments/ emails asking specifically for a blog post on sharing script for “Deleting Azure File Storage Directory using PowerShell”. Not sure why people felt this is hard to write  a PowerShell script. Well, this post is about the same topic and at the end of post you will know how to delete Azure file storage Directory and Files using PowerShell scripting. You must have read the word in title “Secret sauce of Recursion”; about that later in the post below. Lets go! What is big deal in deleting Azure File Storage Directory and Files? Well, you may think this as s07aight forward PowerShell. I also thought the same way until I actually 07ied for it. As a best practice, before 07ying anything from PowerShell I always do the same task using Azure Portal. So for deleting Azure Files I went o...

Start Stop Multiple Azure VMs on schedule using Azure Automation

Image
Abs07act I searched through many, many, many…articles written about Azure VM stop(de-allocate) to save cost. Every article only targets single Azure VM to shutdown (de-allocate). None of the articles target start and Shutdown of multiple Azure VMs using automation. I am going to address this using Azure powershell in this article. What all Cool features of azure VM start/ stop my script offers? If you have multiple Azure VMs present in your azure subscription; and you want to start or stop few of them on schedule then you can use below azure PowerShell scripts. It will have below features – è   Add/ remove the VM names from the list of start/ stop schedule easily. [You don’t need to have PowerShell knowledge] è   Use same script in multiple different Azure runbooks, with different Azure VM names to start and stop; that too with different schedules. è   In case any wrong/ nonexistent VM name added to the list, script takes care of giving relative user-frie...