New-AzDataBoxJobDetailsObject

Create an in-memory object for DataBoxJobDetails.

Syntax

New-AzDataBoxJobDetailsObject
   -ContactDetail <IContactDetails>
   -Type <ClassDiscriminator>
   [-DevicePassword <String>]
   [-DataExportDetail <IDataExportDetails[]>]
   [-DataImportDetail <IDataImportDetails[]>]
   [-ExpectedDataSizeInTeraByte <Int32>]
   [-KeyEncryptionKey <IKeyEncryptionKey>]
   [-Preference <IPreferences>]
   [-ReverseShippingDetail <IReverseShippingDetails>]
   [-ShippingAddress <IShippingAddress>]
   [<CommonParameters>]

Description

Create an in-memory object for DataBoxJobDetails.

Examples

Example 1: Creates a databox job detail in memory object

$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891"
$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial"

New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails

Action                     :
ChainOfCustodySasKey       :
ContactDetail              : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ContactDetails
CopyLogDetail              :
CopyProgress               :
DataExportDetail           :
DataImportDetail           : {Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataImportDetails}
DeliveryPackage            : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails
DevicePassword             :
ExpectedDataSizeInTeraByte : 0
JobStage                   :
KeyEncryptionKey           : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.KeyEncryptionKey
LastMitigationActionOnJob  : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.LastMitigationActionOnJob
Preference                 : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.Preferences
ReturnPackage              : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.PackageShippingDetails
ReverseShipmentLabelSasKey :
ShippingAddress            : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.ShippingAddress
Type                       : DataBox

Create a in-memory object for DataBoxJobDetails

Parameters

-ContactDetail

Contact details for notification and shipping. To construct, see NOTES section for CONTACTDETAIL properties and create a hash table.

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

-DataExportDetail

Details of the data to be exported from azure. To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table.

Type:IDataExportDetails[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DataImportDetail

Details of the data to be imported into azure. To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table.

Type:IDataImportDetails[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DevicePassword

Set Device password for unlocking Databox. 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

-ExpectedDataSizeInTeraByte

The expected size of the data, which needs to be transferred in this job, in terabytes.

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

-KeyEncryptionKey

Details about which key encryption type is being used. To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table.

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

-Preference

Preferences for the order. To construct, see NOTES section for PREFERENCE properties and create a hash table.

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

-ReverseShippingDetail

Optional Reverse Shipping details for order. To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table.

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

-ShippingAddress

Shipping address of the customer. To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table.

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

-Type

Indicates the type of job details.

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

Outputs

DataBoxJobDetails