Azure Cloud Shell -> Azure Cloud Shell is an interactive, authenticated, browser-accessible shell for managing Azure resources. It provides the flexibility of choosing the shell experience that best suits the way you work, either Bash or PowerShell.
Azure Cloud Shell Features ->
1. Azure PowerShell can be launched directly from a portal and it is temporary.
2. Azure PowerShell provides an integrated graphical text editor.
3. Azure PowerShell authenticates directly so no need to enter login details again and again.
4. Azure PowerShell runs on a temporary host.
5. Azure PowerShell requires a resource group and storage account, When you launch Azure Cloud Shell and if you have not created a Storage account, One pop up will prompt and ask to create an account automatically.
6. Azure PowerShell uses the same Azure file share for both Bash and PowerShell. Bash for Linux users and PowerShell for Windows.
7. Azure PowerShell is assigned one machine per user.
Login to Azure Portal
Click on PowerShell icon -> once you click on Cloud PowerShell icon one below page will open.
If you want to open for windows , click PowerShell.
One Storage account will be created if you don’t have an existing one.
It will take 2-3 minutes and PowerShell will launch.
Later if you want to switch to Bash you can switch also you can re-launch PowerShell.
Create Resource Group using CloudShell
To perform any activity on Azure CloudShell or PowerCli you need to login with your subscription ID.
Login to Azure Account -> To login Azure subscription use below command.
Login-AzAccount -UseDeviceAuthentication
Then Open the link below and enter the Authentication Code.
https://microsoft.com/devicelogin
Now close this page as Authentication has already done.
Use Below Command to Create a Resource Group.
New-AzResourceGroup -Name RG_PowerShell -Location 'EastUS'
Use Below Command to Get a list of created Resource Groups.
Get-AzResourceGroup
Use Below Command to Delete Resource Group
Remove-AzResourceGroup -Name RG_PowerShell
RG_PowerShell -> Resource Group Name
No comments:
Post a Comment