-
Archives
- May 2018
- April 2018
- December 2017
- September 2017
- August 2017
- July 2017
- June 2017
- March 2017
- February 2017
- January 2017
- October 2016
- September 2016
- August 2016
- October 2015
- July 2015
- March 2015
- January 2015
- December 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
-
Meta
Author Archives: amoghnatu
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
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
[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
[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
Analyzing PowerShell scripts with PSScriptAnalyzer
Hi, This post will show you how you can use PSScriptAnalyzer to analyze whether your PowerShell scripts or functions confirm with industry best practices or not. PSScriptAnalyzer (PSSA going forward) is a static code analyzer that checks your PowerShell scripts, … Continue reading
[Powershell-Basics] – Looping through hash table
Hi, This post will show how to loop through a hash table in PowerShell. Let’s say for example we have a hashTable object in PowerShell as shown below: $SampleTable = @{} # Syntax for creating hashtable –> @{} $SampleTable.”Name” = … Continue reading
Save with Encoding in Visual Studio
Hi, This post shows how you can save files while retaining their encoding and line endings format. For example, if you’re writing a shell script that will be run on a UNIX operating system, the script is supposed to have … Continue reading
Shell script with 10+ parameters? Remember this….
Hi, This post is mainly aimed towards shell script newbies like myself and the goal is that they don’t end up wasting time on this as I had to. So, if you are creating a new shell script that requires … Continue reading
Get output of script executed as part of Set-AzureRmVMCustomScriptExecution cmdlet
Hi, This post explains how to retrieve the output of the script that is executed as part of Set-AzureRmVMCustomScriptExecution cmdlet. The cmdlet adds a custom script virtual machine extension to a virtual machine. It lets users run custom scripts on … Continue reading
Posted in .NET, PowerShell
Tagged Azure Automation, Azure RM, Azure Runbook, Get output of Set-AzureRmVMCUstomScriptExecution, output from Set-AzureRmVMCustomScriptExecution, output of custom script execution, powershell workflow, powershell workflow automation runbook, Set-AzureRmVMCustomScriptExecution
Leave a comment
Get-AutomationVariable Vs Get-AzureRmAutomationVariable
Hi, I finally started working on PowerShell and so thought that documenting my learnings here would be useful. So in this post, we will see the difference between the 2 cmdlets Get-AzureRmAutomationVariable and Get-AutomationVariable. So let’s see the outputs of … Continue reading
Posted in PowerShell
Tagged Difference between Get-AutomationVariable and Get-AzureRmAutomationVariable, Difference between Get-AzureRmAutomationVariable and Get-AutomationVariable, Get-AutomationVariable, Get-AutomationVariable Vs Get-AzureRmAutomationVariable, Get-AzureRmAutomationVariable
Leave a comment