Set-AzureServiceProject

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Set-AzureServiceProject

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

Parameter Set: Default
Set-AzureServiceProject [[-Location] <String> ] [[-Slot] <String> ] [[-Storage] <String> ] [[-Subscription] <String> ] [[-PassThru]] [ <CommonParameters>]

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

-Location<String>

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

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PassThru

Aliases

none

Required?

false

Position?

5

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Slot<String>

Specifies the slot in which the service will be hosted. This value is used whenever the service is published to the cloud. Allowed values are Production and Staging.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Storage<String>

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

Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Subscription<String>

Specifies 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 cmdlet.

Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

This example sets a service project so that when 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.

PS C:\> Set-AzureServiceProject -Location “North Central US”-Slot Production -Storage myStorageAccount -Subscription myAzureSubscription

New-AzureServiceProject

Import-AzurePublishSettingsFile

Publish-AzureServiceProject

Set-AzureServiceProjectRole