Posts

Showing posts from May, 2018

Create Resource Group with Powershell

This Script will ask login details and then sets the context for your subscription id. Then it tries to find Resource Group and if not found then it creates with the same name. Login-AzureRmAccount Set-AzureRmContext -SubscriptionId "your subcription id" $ResourceGroupName = 'test-rg' $Location=' Southeast Asia ' $rg = Get-AzureRmResourceGroup -Name $ResourceGroupName -ErrorAction ignore if ( -not $rg ) {               $rg = New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location -ErrorAction Stop }      

Automate Azure

From some time,  I am working on setting up DevOps Process with compliance such as SOX in my team and trying to Automate a lot  of stuff . I will share my  experience  and script samples which might help community developers  to do automation. Create Resource Group with Powershell Create storage account with Powershell Create container inside storage account with Powershell Create application insights with Powershell  Create Key Vault with Powershell Create Automation Account with Powershell  Create log analytics work space  Create App Service Plan  create azure sql server  Create Azure SQL Server Firewall rule  create azure sql database  Create Web APP/App Service  Many More Samples will come :)