Add-SCACAzureDisk
Add-SCACAzureDisk
Adds a virtual hard disk to Windows Azure.
構文
Parameter Set: SourcePath
Add-SCACAzureDisk -Cloud <ACAzureSubscriptionCloud> -DisplayName <String> -Name <String> -OperatingSystem <OperatingSystemType> {None | Windows | Linux} -SourcePath <String> -StorageBlob <Uri> [-Force] [ <CommonParameters>]
Parameter Set: SourceVHD
Add-SCACAzureDisk -Cloud <ACAzureSubscriptionCloud> -DisplayName <String> -Name <String> -OperatingSystem <OperatingSystemType> {None | Windows | Linux} -SourceVHD <Object> -StorageBlob <Uri> [-Force] [ <CommonParameters>]
詳細説明
The Add-SCACAzureDisk cmdlet adds a virtual hard disk to Windows Azure.
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 or virtual hard disk in Windows Azure.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Force
Indicates that the image or virtual hard disk is added to Windows Azure without prompting for confirmation.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of the virtual hard disk.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-OperatingSystem<OperatingSystemType>
Specifies the operating system type of the virtual hard disk. Valid values are: None, Windows, Linux.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SourcePath<String>
Specifies a path to the source virtual hard disk.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SourceVHD<Object>
Specifies the source virtual hard disk.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StorageBlob<Uri>
Specifies the URI where the image or virtual hard disk 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 to Windows Azure
The first command gets the Windows Azure subscription object named AzureSubscription01 and stores the object in the $Subscription variable.
The second command adds the virtual hard disk named VHD01.vhd to the specified container in the subscription cloud stored in $Subscription.
PS C:\> $Subscription = Get-SCACAzureSubscription –Name “AzureSubscription01”
PS C:\> Add-SCACAzureDisk -Name "VHD01" -DisplayName "VHD01.vhd" -Cloud $Subscription -StorageBlob "https://container01.blob.core.windows.net/vhds/VHD01.vhd" -SourcePath “\\FileShare\VHDs\Vhd01.vhd" -OperatingSystem "Windows" -Force