Add-SCACAzureDisk

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 <StandaloneVirtualHardDisk> -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 cloud object, use the Get-SCACCloud 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<StandaloneVirtualHardDisk>

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

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

The first command gets all cloud objects and stores the objects in the $Clouds variable.

The second command adds the virtual hard disk named VHD01.vhd to the specified container in the first cloud stored in $Clouds.

PS C:\> $Clouds = Get-SCACCloud
PS C:\> Add-SCACAzureDisk -Name "VHD01" -DisplayName "VHD01.vhd" -Cloud $Clouds[0] -StorageBlob "https://container01.blob.core.windows.net/vhds/VHD01.vhd" -SourcePath “\\FileShare\VMs\Vhd01.vhd" -OperatingSystem "Windows" -Force

Add-SCACAzureImage