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
 

Set-AzureServiceProject

Set-AzureServiceProject

microsoft.windowsazure.commands.dll

Synopsis

Sets default location, subscription, slot, and storage account for the current service

Syntax

Set-AzureServiceProject [-Location] [-Slot] [-Storage] [-Subscription] [<CommonParameters>]

Detailed Description

Sets the deployment location, slot, storage account, and subscription for the current service. These values are used whenever the service is published to the cloud.

Parameters

-Location <String>

The region in which the service will be hosted. This value is used whenever the service is published to the cloud. 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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Slot <String>

The slot (production or staging) in which the service will be hosted. This value is used whenever the service is published to the cloud. Possible values are: Production, Staging.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Storage <String>

The storage account to be used when uploading the service package to the cloud. If the storage account doesn't exist, it will be created when the service is published to the cloud.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

-Subscription <String>

The subscription that will host the service in the cloud. This value is used whenever the service is published to the cloud. You will need to register credentials for this subscription by using the Import-AzurePublishSettingsFile commandlet.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

node-dev, php-dev, python-dev

Examples

-------------- Basic Settings --------------

C:\PS>

Sets the deployment location for the service to the North Central US region. Sets the deloyment slot to Production. Sets the storage account ahat will be used to stage the service definition to 'myStorageAccount'. Sets the subscription that will host the service to 'mySubscription'. Whenever the service is published to the cloud, it will be hosted in a data center in the North Central US region, it will update the deployment slot, and it will use the specified subscription and storage account.

Set-AzureServiceProject -Location "North Central US" -Slot Production -Storage myStorageAccount -Subscription myAzureSubscription

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