Get the App
SLTechnology News&Howtos  ›  Servers  › 

Environmental preparation of Windows Azure PowerShell

Shulou Source: shulou.com Published: 2022-06-02 20:54:25 10月02日 Update

PowerShell can implement all the Azure management functions, Powershell can do what can be done on Portal, and PowerShell can do things that Portal cannot do, such as creating a series of DS virtual machines.

This paper first introduces the environmental preparation of Windows Azure PowerShell.

1. Download and install Windows Azure PowerShell: http://www.windowsazure.cn/zh-cn/downloads/#cmd-line-tools from the official website

two。 After installation, run as administrator. Right-click the PowerShell icon and select run as administrator.

3. Set the execution policy. As a security test, PowerShell's execution policy defines the conditions under which scripts and files can be executed. For example, you can specify that only signed scripts are allowed to avoid running * * scripts incorrectly. The Windows Azure Powershell command set requires the execution policy to be RemoteSigned, Unrestricted, or Bypass. To set the execution policy, run Windows AzurePowershell as an administrator, and then set it through the Set-ExecutionPolicy command, as shown in the following figure.

4. Execute the command Get-AzurePublishSettingsFile-Environment "AzureChinaCloud". After executing the command, you will open the azure page. Enter your user name and password and log in to azure to download your Windows Azure Subscription release configuration file.

Download release profile

5. Execute Import-AzurePublishSettingsFile "release profile local storage path" in PowerShell

At this point, the environment is ready to complete.

Tags: Commands files management runs policies administrators scripts identity configuration environment preparation pages security following figure things premises functions icons security passwords Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Xiaomi Shulou Technology vpn Apple