Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Publish-AzureServiceProject

Publish-AzureServiceProject

microsoft.windowsazure.commands.dll

Synopsis

Publish the current service to the cloud

Syntax

Publish-AzureServiceProject [-ServiceName] [-Package] [-Configuration] [-StorageAccountName] [-Location] [-Slot] [-Launch] [-AffinityGroup] [-DeploymentName] [<CommonParameters>]

Detailed Description

Publish the current service to the cloud. Publishing configuration (Subscription, StorageAccountName, Location, Slot) can be specified on the command line, or in local settings via the Set-AzureServiceProject commands.

Parameters

-ServiceName <String>

The name to be used for the service when publishing to the cloud. The name determines the subdomain label in the cloudapp.net subdomain that will be used to address the service when hosted in Azure (that is, <Name>.cloudapp.net). Any name specified while publishing the service will override the name given when creating the service (see the New-AzureServiceProject commandlet).

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Package <String>

The package file to deploy. Possible value are either a local .cspkg file or a blob uri containing the package. When you use this option, you don't need to specify 'ServiceName' parameter.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Configuration <String>

The service configuration file. This value is used together with the 'Package' parameter.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-StorageAccountName <String>

The Microsoft Azure storage account name to be used while publishing the service to the cloud. This value is not used until the service is published to the cloud. If no storage account name is provided, the storage account specified by the last call to Set-AzureServiceProject will be used. If no storage account was ever specified, a storage account matching the name of the service will be used. If no such storage account exists, the commandlet will attempt to create a new one - this may fail if a storage account matching the service name exists in another subscription.

Aliases

None

Required?

false

Position

named

Default value

Value taken from the current service settings or the current publish profile

Accept pipeline input?

false

Accept wildcard characters?

false

-Location <String>

The region in which the application will be hosted. Possible values are: Anywhere Asia, Anywhere Europe, Anywhere US, East Asia, East US, North Central US, North Europe, South Central US, Southeast Asia, West Europe, West US. If no Location is specified, the location specified in the last call to Set-AzureServiceProject will be used. If no Location was ever specified, the Location will be randomly chosen from 'North Central US' and 'South Central US' locations.

Aliases

None

Required?

false

Position

named

Default value

value from current service settings

Accept pipeline input?

false

Accept wildcard characters?

false

-Slot <String>

The deployment slot to be used for this service. Possible values are 'Staging' and 'Production'. If no slot is specified, the slot provided in the last call to Set-AzureDeploymentSlot will be used. If no slot was ever specified, the 'Production' slot will be used.

Aliases

None

Required?

false

Position

named

Default value

Value from current service settings

Accept pipeline input?

false

Accept wildcard characters?

false

-Launch <SwitchParameter>

If specified, launch a browser window to view the application after it is deployed to Azure

Aliases

None

Required?

false

Position

named

Default value

Off

Accept pipeline input?

false

Accept wildcard characters?

false

-AffinityGroup <>

The affinity group name

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-DeploymentName <>

The deployment name

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

node-dev, php-dev, python-dev

Examples

-------------- Default --------------

C:\PS>

Publishes the current service, using the current service settings and the current Azure publish profile

Publish-AzureServiceProject

Import-AzurePublishSettingsFile
New-AzureServiceProject
Set-AzureServiceProject
Set-AzureServiceProjectRole