Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 2.66 KB

cloud-services-powershell-create-cloud-container.md

File metadata and controls

51 lines (42 loc) · 2.66 KB

title: Create a cloud service container with PowerShell | Microsoft Docs description: This article explains how to create a cloud service container with PowerShell. The container hosts web and worker roles. services: cloud-services documentationcenter: .net author: cawaMS manager: timlt editor: ''

ms.assetid: c8f32469-610e-4f37-a3aa-4fac5c714e13 ms.service: cloud-services ms.devlang: dotnet ms.topic: article ms.tgt_pltfrm: powershell ms.workload: na ms.date: 11/18/2016 ms.author: cawa


Use an Azure PowerShell command to create an empty cloud service container

This article explains how to quickly create a Cloud Services container using Azure PowerShell cmdlets. Please follow the steps below:

  1. Install the Microsoft Azure PowerShell cmdlet from the Azure PowerShell downloads page.

  2. Open the PowerShell command prompt.

  3. Use the Add-AzureAccount to sign in.

    [!NOTE] For further instruction on installing the Azure PowerShell cmdlet and connecting to your Azure subscription, refer to How to install and configure Azure PowerShell.

  4. 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. Follow this example to invoke the cmdlet:

    New-AzureService -ServiceName "mytestcloudservice" -Location "Central US" -Label "mytestcloudservice"

For more information about creating the Azure cloud service, run:

Get-help New-AzureService

Next steps