Use an Azure PowerShell command to create an empty cloud service (classic) container
Important
Cloud Services (classic) is now deprecated for all customers as of September 1st, 2024. Any existing running deployments will be stopped and shut down by Microsoft and the data will be permanantly lost starting October 2024. New deployments should use the new Azure Resource Manager based deployment model Azure Cloud Services (extended support).
This article explains how to quickly create a Cloud Services container using Azure PowerShell cmdlets. Use the following steps:
Install the Azure PowerShell cmdlet from the Azure PowerShell downloads page.
Open the PowerShell command prompt.
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.
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>]
Follow this example to invoke the cmdlet:
New-AzureService -ServiceName "mytestcloudservice" -Location "China North" -Label "mytestcloudservice"
For more information about creating the Azure cloud service, run:
Get-help New-AzureService
Next steps
- To manage the cloud service deployment, refer to the Get-AzureService, Remove-AzureService, and Set-AzureService commands. For more information, see How to configure cloud services.
- To publish your cloud service project to Azure, refer to the PublishCloudService.ps1 code sample from archived cloud services repository.