Monthly Archives: May 2018

Global Subscription and Directory Filter in Azure Portal

Azure portal allows us to apply global subscription and directory filter that gets applied to your entire portal session. This will cause that directory and/or subscription to persist throughout the¬†Azure portal session displaying only the resources from the selected subscription/Directory. … Continue reading

Posted in Azure | Tagged , , , , , , | Leave a comment

2 ways to retrieve content of Azure Automation Runbook within another runbook

In this post, we’ll see how we can retrieve content of azure automation runbook from within another runbook. This content is loaded in memory. There could be multiple reasons why we would want to¬†retrieve content of azure automation runbook. One … Continue reading

Posted in PowerShell | Tagged , , , , , , | Leave a comment

[PowerShell Tip] – Assign array elements to separate variables in single line of code

Hi, In this post, we’ll see how we can assign array elements to separate variables in a single line of code Consider a sample array $TestArray = @(“FirstElement”, “SecondElement”) Now, to get the value of the elements into separate variables, … Continue reading

Posted in PowerShell | Tagged , , , , | Leave a comment

[PowerShell Tip] – Prevent cmdlet from printing anything to output

Hi, In this short post, we’ll see how we can prevent a PowerShell cmdlet from printing anything to the std output stream. There are two ways you can do this. Piping the output of the cmdlet to Out-Null e.g. Set-AzureRmContext … Continue reading

Posted in PowerShell | Tagged , , , , | Leave a comment