In this series we will learn the basic of powershell. It is command line shell and scripting language which is mainly used for the task automation.
What is Powershell
Powershell is command line shell and scripting language. It started out as a framework to automate administrative tasks in Windows. PowerShell has grown into a cross-platform tool that's used for many kinds of tasks.
Powershell help to automate task in
Managing Azure Resources
By Default Powershell installed with windows 8 or later so if you have lower version then follow here --> https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.4
Windows PowerShell ISE --> Powershell with Editor
WIndows PowerShell --> Powershell with Shell only
You can follow instruction from -->
Visual Studio Code with Powershell Extenstion
We can run the Powershell using the Visual Studio code after installing the Extension. I highly recommend to used the VS code you dont have already
Download VS code for free -->https://code.visualstudio.com/
Install PowerShell Extension
Open VS CODE --> Extension --> Powershell --> Install
Run your first Powershell Command
write-host "Hello Powershell"
Using VS Code
With the Powershell we have thousands of the commands installed. That is also called as built in command.
Each command has concept of and we call it as cmdlets.
Get-Command --> Helps to display all the commads exist in the systems
Get-Help --> Helps to understand more on specific command
Get-Command -Verb Get -Noun File*