Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Getting started with Powershell for Azure Cloud Shell

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

In the previous article, we looked at the Azure Cloud Shell overview and learned that Cloud Shell runs inside the container through the Azure container service, and you can either subscribe to the container itself or free of charge. The only cost of Cloud Shell is the storage account that is created and associated with it. When you first open Cloud Shell from the Azure portal, you need to choose whether you need Bash or PowerShell, and I chose PowerShell. After that, you can choose to subscribe, and Azure will automatically create storage accounts and resource groups. If you pass the advanced option, it will provide you with the ability to use a pre-existing storage account. This article will introduce you to getting started with Powershell in Azure Cloud Shell.

1. First, click the "Cloud Shell" button in the top navigation bar of the Azure portal

Entering the CloudShell window, I chose powershell when I first used cloud shell in the previous article, so this time I went directly to powershell. If you want to switch to bash, you can select it in the red box in the following figure

two。 Run normal azure powershell commands in cloud shell

View date, VM status

Use the dir command to view subscriptions under the account

Run cd to switch to the preferred subscription

3. View all Azure resources under the current subscription

Type dir to list multiple views of Azure resources

View all resource views

You can use the cd command to go to the ResourceGroups directory and find virtual machines in a specific resource group

4. Open the monaco editor with the code command

The upper right corner provides menus such as save, close editor, open file, etc.

In addition, you can also view the preferred account subscription, as shown in the following figure

If isDefault is true, it is the preferred account subscription.

Finally, cloudshell can be launched through the exit command.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report