Add-SCACAzureDisk
Applies To: System Center 2012 R2 App Controller
Add-SCACAzureDisk
Adds a virtual hard disk to Windows Azure.
Syntax
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>]
Detailed Description
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.
Parameters
-Cloud<ACAzureSubscriptionCloud>
Specifies a Windows Azure subscription cloud object. To retrieve a subscription cloud object, use the Get-SCACAzureSubscription cmdlet.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-DisplayName<String>
Specifies a display name for the image or virtual hard disk in Windows Azure.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Force
Indicates that the image or virtual hard disk is added to Windows Azure without prompting for confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies the name of the virtual hard disk.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-OperatingSystem<OperatingSystemType>
Specifies the operating system type of the virtual hard disk. Valid values are: None, Windows, Linux.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-SourcePath<String>
Specifies a path to the source virtual hard disk.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-SourceVHD<Object>
Specifies the source virtual hard disk.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-StorageBlob<Uri>
Specifies the URI where the image or virtual hard disk is stored in Windows Azure.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
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.
Examples
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