Add-SCACAzureSubscription

Add-SCACAzureSubscription

Adds a Windows Azure subscription to .

構文

Parameter Set: Default
Add-SCACAzureSubscription [-Name] <String> [-Id] <Guid> [-ManagementCertificatePath] <String> [-ManagementCertificatePassword] <SecureString> [[-Description] <String> ] [-PassThru] [ <CommonParameters>]

詳細説明

The Add-SCACAzureSubscription cmdlet adds a Windows Azure subscription to .

パラメーター

-Description<String>

Provides a description for the Windows Azure subscription.

エイリアス

なし

必須?

false

位置は?

5

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Id<Guid>

Specifies a GUID that represents the ID for a Windows Azure subscription.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ManagementCertificatePassword<SecureString>

Specifies a secure string that contains a password for the management certificate.

エイリアス

なし

必須?

true

位置は?

4

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ManagementCertificatePath<String>

Specifies a file path to the management certificate.

エイリアス

なし

必須?

true

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies a name for the Windows Azure subscription.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PassThru

Returns a Windows Azure subscription object. By default, this cmdlet does not generate output.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • System.String, System.Guid, System.String, System.Security.SecureString, Microsoft.SystemCenter.CloudManager.PowerShell.ACServer

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACAzureSubscriptionCloud

Example 1: Add a Windows Azure subscription

The first command creates a secure string for the provided password and stores the secure string in the $MCPassword variable.

The second command adds the Windows Azure subscription with the ID of 1626950e-3af6-4fe8-a7d2-e489c18931a2 using the password stored in $MCPassword and gives it the name AzureSubscription01.

PS C:\> $MCPassword = ConvertTo-SecureString "PassWord!" -AsPlainText -Force
PS C:\> Add-SCACAzureSubscription –Id "1626950e-3af6-4fe8-a7d2-e489c18931a2" –ManagementCertificatePassword $MCPassword –ManagementCertificatePath "C:\CertificatePath" –Name "AzureSubscription01"

関連トピック

Remove-SCACAzureSubscription