I got a requirement to write a custom RBAC policy with the following specialties Allow access to see all of the details for the virtual machines and allowing to stop/start. Manage snapshots of the manage disks attached to the virtual machines. Following are the steps I followed to create a custom RBAC Policy to achieve …

Continue reading Custom RBAC Role-Definition in your AZURE subscription (Virtual Machine, Snapshot Operator)

By default, you have only limited number of performance counters only are available in Azure Log Analytics workbook. However, you may add custom performance counters as explained in my blog post here:In this blog I have constructed a custom performance counter for Memory Pages/sec for virtual machines Here are the steps you may need to follow: Create New …

Continue reading Add custom performance counter in Azure Log Analytics workbook

Copy the following ps script to your ps1 file and run in Azure PS # Connect Azure accountConnect-AzureRmAccount# All Variables$location = “southindia”$resourceGroup = “blobtestmanu”$storageGroupName = “blobstoragemanu”$containerName = “manublobcontainer”$FileName1 = “C:\Users\mphilip\Desktop\Azure\maxresdefault.jpg”$FileName2 =”C:\Users\mphilip\Desktop\Azure\tasks.txt”$Blobname1 = “maxresdefault.jpg”$Blobname2 = “Tasks.txt”# Create new Resource GroupNew-AzureRmResourceGroup -Name $resourceGroup -Location $location# Create new blob storage account$storageAccount = New-AzureRmStorageAccount -ResourceGroupName $resourceGroup -Name $storageGroupName -Location …

Continue reading Create Blob storage, upload files and list in AZURE PS

In this blog, I am posting the basics of connecting Azure using PowerShell and deploy a virtual machine using a template available. Set the PowerShell Execution Policy as required Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Download and install the Azure module in your computer Install-Module AzureRM -AllowClobber Run the ps script for the deployment found along …

Continue reading Azure PS

Setup EC2 instance I suggest you to select latest Amazon Linux AMI and use default settings to create a new Linux EC2 instance Note: Please remember to allow port 80 in security groups settings while creating the instance so that we can access the ‘nginx’ website we install at the end of this article Install …

Continue reading Running Docker on AWS EC2