Add-SCACAzureImage

Add-SCACAzureImage

Adds a virtual hard drive to the Windows Azure image store.

構文

Parameter Set: SourcePath
Add-SCACAzureImage -Cloud <ACAzureSubscriptionCloud> -DisplayName <String> -Name <String> -OperatingSystem <OperatingSystemType> {Windows | Linux} -SourcePath <String> -StorageBlob <Uri> [-Force] [ <CommonParameters>]

Parameter Set: SourceVHD
Add-SCACAzureImage -Cloud <ACAzureSubscriptionCloud> -DisplayName <String> -Name <String> -OperatingSystem <OperatingSystemType> {Windows | Linux} -SourceVHD <Object> -StorageBlob <Uri> [-Force] [ <CommonParameters>]

詳細説明

The Add-SCACAzureImage cmdlet adds a virtual hard drive to the Windows Azure image store.

You must import the Virtual Machine Manager (VMM) module into your session to run this cmdlet.

パラメーター

-Cloud<ACAzureSubscriptionCloud>

Specifies a Windows Azure subscription cloud object. To retrieve a subscription cloud object, use the Get-SCACAzureSubscription cmdlet.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-DisplayName<String>

Specifies a display name for the image in Windows Azure.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-Force

Indicates that the image is added to the Windows Azure image store without prompting for confirmation.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-Name<String>

Specifies the name of the image.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-OperatingSystem<OperatingSystemType>

Specifies the operating system type for the virtual hard disk. Valid values are: Windows, Linux.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-SourcePath<String>

Specifies a path to the source image.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-SourceVHD<Object>

Specifies the source virtual hard disk object.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

-StorageBlob<Uri>

Specifies the URI where the image is stored in Windows Azure.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

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

false

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Add a VHD image to the Windows Azure image store

The first command gets the Windows Azure subscription object named “AzureSubscription01” and stores the object in the $Subscription variable.

The second command gets the virtual hard disk object named VHD01.vhd and stores the object in the $VHD variable.

The last command adds the VHD image to the image store and names it Image01.

PS C:\> $Subscription = Get-SCACAzureSubscription –Name “AzureSubscription01”
PS C:\> $VHD = Get-SCVirtualHardDisk -Name "VHD01.vhd"
PS C:\> Add-SCACAzureImage –Name "Image01" -DisplayName "Image01" -Cloud $Subscription -StorageBlob "http://container01.blob.core.windows.net/vhds/VHD01.vhd" -SourceVHD $VHD -OperatingSystem "Windows"

関連トピック

Get-SCACAzureSubscription

Add-SCACAzureDisk