Modifier

Partager via


New-AzDataBoxManagedDiskDetailsObject

Create an in-memory object for ManagedDiskDetails.

Syntax

New-AzDataBoxManagedDiskDetailsObject
   -ResourceGroupId <String>
   -StagingStorageAccountId <String>
   -DataAccountType <DataAccountType>
   [-SharePassword <String>]
   [<CommonParameters>]

Description

Create an in-memory object for ManagedDiskDetails.

Examples

Example 1: ManagedDisk object

New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk"

DataAccountType SharePassword ResourceGroupId                                                StagingStorageAccountId                                                                                                      
--------------- ------------- ---------------                                                -----------------------                                                                                                      
ManagedDisk                   /subscriptions/SubscriptionId/resourceGroups/resourceGroupName /subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName

Creates a in-memory managed disk object

Parameters

-DataAccountType

Account Type of the data to be transferred.

Type:DataAccountType
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupId

Resource Group Id of the compute disks.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SharePassword

Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#-$%^!+=;:_()]+.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StagingStorageAccountId

Resource Id of the storage account that can be used to copy the vhd for staging.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

ManagedDiskDetails