Training: Instruction to develop new skills.
Hi Ayesha Arshad Hussain,
Thank you for reaching out to us on the Microsoft Q&A forum.
Understanding and Using Azure Cloud Shell
What is Azure Cloud Shell?
Azure Cloud Shell is a browser-based interactive shell environment that lets you manage Azure resources directly from your browser. It's pre-installed with common Azure tools like Azure CLI, Azure PowerShell, and other utilities.
How to Access Azure Cloud Shell
- From the Azure Portal:
- Log in to your Azure portal account.
- Look for the Cloud Shell icon, usually at the top right corner of the page.
- Click on the icon to open the Cloud Shell.
- Direct Access:
- Go to https://shell.azure.com in your browser.
Choosing Your Shell
When you first open Cloud Shell, you'll be asked to choose between Bash and PowerShell.
- Bash: A Unix-like shell commonly used by developers.
- PowerShell: A command-line shell and scripting language developed by Microsoft.
Choose the one you're most comfortable with.
Basic Usage
Once you've opened Cloud Shell, you'll see a command prompt. You can type commands here just like you would in a regular terminal.
- To run a command: Type the command and press Enter.
- To move to the next line: Simply press Enter without typing anything. This will start a new line.
- To copy and paste: Use the standard keyboard shortcuts (Ctrl+C to copy, Ctrl+V to paste).
Common Errors and Troubleshooting
If you're encountering errors, here are some common issues and solutions:
- Incorrect syntax: Double-check the spelling and syntax of your commands. Refer to the documentation for correct usage.
- Missing permissions: Ensure you have the necessary permissions to perform the action.
- Network issues: Verify your internet connection.
- Cloud Shell session timeout: If your session times out, you'll need to reopen Cloud Shell.
Additional Tips
- Explore commands: Use commands like
ls(ordirin PowerShell) to list files,cdto change directories, andmkdirto create directories. - Use tab completion: Press Tab to autocomplete commands and file names.
- Check for updates: Azure Cloud Shell is constantly being updated. Check for updates regularly to get the latest features.
If you're still facing issues, please provide more details about the specific error message or the commands you're trying to run.
If you have found the answer provided to be helpful, please click on the "Upvote and Accept Answer" button so that it is useful for other members in the Microsoft Q&A community.