使用 Azure PowerShell 命令可创建一个空的云服务容器Use an Azure PowerShell command to create an empty cloud service container

本文介绍如何使用 Azure PowerShell cmdlet 快速创建云服务容器。This article explains how to quickly create a Cloud Services container using Azure PowerShell cmdlets. 请执行以下步骤:Please follow the steps below:

  1. Azure PowerShell 下载 页安装 Azure PowerShell cmdlet。Install the Azure PowerShell cmdlet from the Azure PowerShell downloads page.

  2. 打开 PowerShell 命令提示符。Open the PowerShell command prompt.

  3. 使用 Add-AzureAccount 登录。Use the Add-AzureAccount to sign in.

    Note

    有关安装 Azure PowerShell cmdlet 和连接到 Azure 订阅的更多说明,请参阅如何安装和配置 Azure PowerShellFor further instruction on installing the Azure PowerShell cmdlet and connecting to your Azure subscription, refer to How to install and configure Azure PowerShell.

  4. 使用 New-AzureService cmdlet 创建一个空的 Azure 云服务容器。Use the New-AzureService cmdlet to create an empty Azure cloud service container.

    New-AzureService [-ServiceName] <String> [-AffinityGroup] <String> [[-Label] <String>] [[-Description] <String>] [[-ReverseDnsFqdn] <String>] [<CommonParameters>]
    New-AzureService [-ServiceName] <String> [-Location] <String> [[-Label] <String>] [[-Description] <String>] [[-ReverseDnsFqdn] <String>] [<CommonParameters>]
    
  5. 请按照本示例操作以调用 cmdlet:Follow this example to invoke the cmdlet:

    New-AzureService -ServiceName "mytestcloudservice" -Location "China North" -Label "mytestcloudservice"
    

有关创建 Azure 云服务的详细信息,请运行:For more information about creating the Azure cloud service, run:

Get-help New-AzureService

后续步骤Next steps