Get Azure logs using PowerShell script

Today I wanted to show you one of the method for getting Azure logs. In this case I was looking for information about start and stop action. Azure logs To connect to Azure resources and be able to check logs you need few things: Azure Credentials Environment TenantID Subscription Resource Group Name Below you can find example for converting your password to secure string and adding it with account ID …

Create Azure VM using Powershell

Create Azure VM using Powershell is simpler than you think. In this article I want to show you how to do it in less than 20 lines of code. Let’s do it 🙂 First of all you must login to Azure Account and select subscription in which you want to create new VM. In next define 3 variables which will be used for storage account name, resource group name and …

Powershell function to create VMWare snapshots

For those who wants automate VMWare snapshots creation, I’ve prepared short Powershell function. Script requires to have PowerCLI (available here https://my.vmware.com/web/vmware/details?downloadGroup=PCLI550&productId=352) installed on machine where it will be run. It’s not too long, but it works. Function can be used in situations when we need to create snapshots for big number of VMs. I hope you will find this script useful and see you in the next article 🙂