Eksportuj (0) Drukuj
Rozwiń wszystko
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

New-AzureService

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

New-AzureService

Creates a new Windows Azure service.

 

Parameter Set: ParameterSetAffinityGroup
New-AzureService [-ServiceName] <String> [-AffinityGroup] <String> [[-Label] <String> ] [[-Description] <String> ] [ <CommonParameters>]

Parameter Set: ParameterSetLocation
New-AzureService [-ServiceName] <String> [-Location] <String> [[-Label] <String> ] [[-Description] <String> ] [ <CommonParameters>]




 

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

The New-AzureService cmdlet creates a new Windows Azure service in the current subscription.

 

-AffinityGroup<String>

Specifies the affinity group associated with the subscription. An affinity group is required if the Location isn't specified.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Description<String>

Specifies a description for the service. The description may be up to 1024 characters in length.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Label<String>

Specifies a label for the service. The label may be up to 100 characters in length.


Aliases

none

Required?

false

Position?

3

Default Value

Service name

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Location<String>

Specifies the location for the service. A location is required if there isn't a specified Affinity Group.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServiceName<String>

Specifies the name of the new service. The name must be unique to the subscription.


Aliases

none

Required?

true

Position?

1

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 (http://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.

 

-------------- Example 1 --------------

This command creates a new service named "MySvc1" in the South Central US location.


C:\PS>New-AzureService -ServiceName "MySvc1" -Label "MyTestService" -Location "South Central US"

-------------- Example 2 --------------

This command creates a new service named "MySvc1" using the NorthRegion affinity group.


C:\PS>New-AzureService -ServiceName "MySvc1" -AffinityGroup NorthRegion

Related topics

Pokaż:
© 2014 Microsoft