Set-AzureServiceProject
Sets default location, subscription, slot, and storage account for the current service.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.
Important
Cloud Services (classic) is now deprecated for new customers and will be retired on August 31st, 2024 for all customers. New deployments should use the new Azure Resource Manager based deployment model Azure Cloud Services (extended support).
Syntax
Set-AzureServiceProject
[-Location <String>]
[-Slot <String>]
[-Storage <String>]
[-PassThru]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
The Set-AzureServiceProject cmdlet 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.
Examples
Example 1: Basic settings
PS C:\> Set-AzureServiceProject -Location "North Central US" -Slot Production -Storage myStorageAccount -Subscription myAzureSubscription
Sets the deployment location for the service to the North Central US region. Sets the deployment slot to Production. Sets the storage account that 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.
Parameters
-Location
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Indicates that this cmdlet returns an object representing the item on which it operates. By default, this cmdlet does not generate any output.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Slot
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Storage
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Notes
- node-dev, php-dev, python-dev