你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzDataBoxJob

使用指定的参数创建新作业。 现有作业不能使用此 API 进行更新,应改为使用更新作业 API 进行更新。

语法

New-AzDataBoxJob
   -Name <String>
   -ResourceGroupName <String>
   -Location <String>
   -SkuName <SkuName>
   -TransferType <TransferType>
   [-SubscriptionId <String>]
   [-DeliveryInfoScheduledDateTime <DateTime>]
   [-DeliveryType <JobDeliveryType>]
   [-Detail <IJobDetails>]
   [-IdentityType <String>]
   [-SkuDisplayName <String>]
   [-SkuFamily <String>]
   [-Tag <Hashtable>]
   [-UserAssignedIdentity <Hashtable>]
   [-DefaultProfile <PSObject>]
   [-AsJob]
   [-NoWait]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

说明

使用指定的参数创建新作业。 现有作业不能使用此 API 进行更新,应改为使用更新作业 API 进行更新。

示例

示例 1:创建 Databox 导入作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$details = New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails
$DebugPreference = "Continue"
# You can use `$DebugPreference = "Continue"`, with any example/usecase to get exact details of error in below format when creation command fails.
# {
#   "Error": {
#     "Code": "StaticValidationGenericCountryCodeHasInvalidLength",
#     "Message": "The attribute country code does not meet length constraints.\r\nEnter a value with 2 characters for country code.",
#     "Details": [
#       null
#     ],
#     "Target": null
#   }
# } 
$resource = New-AzDataBoxJob -Name "ImportTest" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"
$resource
$resource.Detail
$resource.Detail.ShippingAddress

Name         Location Status        TransferType  SkuName IdentityType DeliveryType Detail
----         -------- ------        ------------  ------- ------------ ------------ ------
ImportTest WestUS   DeviceOrdered ImportToAzure DataBox None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails


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


AddressType City          CompanyName Country PostalCode StateOrProvince StreetAddress1  StreetAddress2 StreetAddress3 ZipExtendedCode
----------- ----          ----------- ------- ---------- --------------- --------------  -------------- -------------- ---------------
Commercial  San Francisco             US      94107      CA              101 TOWNSEND ST

你可以以类似的方式扩展和可视化其他对象的详细信息和寄送地址。

示例 2:创建 Databox 导出作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$transferConfigurationType = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"}
$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataExportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"; "TransferConfiguration"= $transferConfigurationType} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails
$resource = New-AzDataBoxJob -Name "ExportTest" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ExportFromAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"

Name      Location Status        TransferType    SkuName IdentityType DeliveryType Detail
----      -------- ------        ------------    ------- ------------ ------------ ------
ExportTest WestUS   DeviceOrdered ExportFromAzure DataBox None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails

创建一个 Databox 导出作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 3:使用托管磁盘帐户创建 Databox 导入作业

$managedDiskAccount=New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk"
$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"
$details = New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$managedDiskAccount; AccountDetailDataAccountType = "ManagedDisk"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails
New-AzDataBoxJob -Name "PwshManagedDisk" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"

Name            Location Status        TransferType  SkuName IdentityType DeliveryType Detail
----            -------- ------        ------------  ------- ------------ ------------ ------
PwshManagedDisk WestUS   DeviceOrdered ImportToAzure DataBox None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails

使用托管磁盘帐户创建 Databox 导入作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 4:使用用户分配的标识创建 Databox 导入作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$keyEncryptionDetails = New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"
$details = New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -KeyEncryptionKey $keyEncryptionDetails
New-AzDataBoxJob -Name "PowershellMSI" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"  -IdentityType "UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}}

Name          Location Status        TransferType  SkuName IdentityType DeliveryType Detail
----          -------- ------        ------------  ------- ------------ ------------ ------
PowershellMSI WestUS   DeviceOrdered ImportToAzure DataBox UserAssigned NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails

使用用户分配的标识创建一个 Databox 导入作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 5:使用自己的密钥创建一个 Databox 作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$details = New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randmPass@12345"
$resource = New-AzDataBoxJob -Name "PowershellBYOK" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"

Name           Location Status        TransferType  SkuName IdentityType DeliveryType Detail
----           -------- ------        ------------  ------- ------------ ------------ ------
PowershellBYOK WestUS   DeviceOrdered ImportToAzure DataBox None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxJobDetails

使用自己的密钥创建一个 Databox 作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 6:使用自己的密钥创建 databoxHeavy 作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$details = New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10
$resource = New-AzDataBoxJob -Name "DbxHeavy" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBoxHeavy"

Name    Location Status        TransferType  SkuName      IdentityType DeliveryType Detail
----    -------- ------        ------------  -------      ------------ ------------ ------
DbxHeavy WestUS  DeviceOrdered ImportToAzure DataBoxHeavy  None        NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxHeavyJobDetails

使用自己的密钥创建 databoxHeavy 作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 7:使用自己的 Passkey 创建 databoxDisk 作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$details = New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18
New-AzDataBoxJob -Name "pwshDisk" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBoxDisk"

Name     Location Status        TransferType  SkuName     IdentityType DeliveryType Detail
----     -------- ------        ------------  -------     ------------ ------------ ------
pwshDisk WestUS   DeviceOrdered ImportToAzure DataBoxDisk None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails

使用自己的 Passkey 创建 databoxDisky 作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 8:创建启用了双重加密的 Databox 作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName"
$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"
$details = New-AzDataBoxJobDetailsObject -Type "DataBox"  -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Preference @{EncryptionPreferenceDoubleEncryption="Enabled"}
New-AzDataBoxJob -Name "pwshDoubEncy" -SubscriptionId "SubscriptionId" -ResourceGroupName "resourceGroupName" -TransferType "ImportToAzure" -Detail $details -Location "WestUS" -SkuName "DataBox"

Name        Location Status        TransferType  SkuName     IdentityType DeliveryType Detail
----        -------- ------        ------------  -------     ------------ ------------ ------
pwshDoubEncy WestUS   DeviceOrdered ImportToAzure DataBox None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.DataBoxDiskJobDetails

创建启用了双重加密的 Databox 作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 9:创建 Data Box Customer Disk 导入作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Storage/storageAccounts/YourStorageAccount"
$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "XXXX XXXX" -EmailList @("emailId") -Phone "0000000000"
$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "XXXX XXXX" -StateOrProvince "XX" -Country "XX" -City "XXXX XXXX" -PostalCode "00000" -AddressType "Commercial"
$importDiskDetailsCollection = @{"XXXXXX"= @{ManifestFile = "xyz.txt"; ManifestHash = "xxxx"; BitLockerKey = "xxx"}}    
$customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataImportDetail  @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ImportDiskDetailsCollection $importDiskDetailsCollection -ReturnToCustomerPackageDetailCarrierAccountNumber "00000"

New-AzDataBoxJob -Name "testJobName1" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ImportToAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk"

Name         Location Status                  TransferType  SkuName             IdentityType DeliveryType Detail        
----         -------- ------                  ------------  -------             ------------ ------------ ------        
testJobName1 westus   AwaitingShipmentDetails ImportToAzure DataBoxCustomerDisk None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails

创建将数据导入 Azure 的 Databox 客户磁盘作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

示例 10:创建 Data Box Customer Disk 导出作业

$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroup/providers/Microsoft.Storage/storageAccounts/YourStorageAccount"
$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "XXXX XXXX" -EmailList @("emailId") -Phone "0000000000"
$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "XXXX XXXX" -StateOrProvince "XX" -Country "XX" -City "XXXX XXXX" -PostalCode "00000" -AddressType "Commercial"
$transferConfiguration = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="False"}
$customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataExportDetail  @(@{ AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"; "TransferConfiguration"=$transferConfiguration }) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ReturnToCustomerPackageDetailCarrierAccountNumber "00000"

New-AzDataBoxJob -Name "testJobName2" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ExportFromAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk"

Name              Location Status                  TransferType    SkuName             IdentityType DeliveryType Detail
----              -------- ------                  ------------    -------             ------------ ------------ ------
testJobName2      westus   AwaitingShipmentDetails ExportFromAzure DataBoxCustomerDisk None         NonScheduled Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails

创建用于从 Azure 导出数据的 Databox 客户磁盘作业。 对于使用 $DebugPreference = “Continue” 重新运行的任何失败,如示例 1 中提及所示

参数

-AsJob

以作业身份运行命令

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

-Confirm

提示你在运行 cmdlet 之前进行确认。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DeliveryInfoScheduledDateTime

计划日期时间。

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

-DeliveryType

作业的传递类型。

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

-Detail

作业运行的详细信息。 仅发送此字段以用于展开详细信息筛选器。 若要构造,请参阅 DETAIL 属性的 NOTES 部分并创建哈希表。

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

-IdentityType

标识类型

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

-Location

资源的位置。 这是受支持和注册的 Azure 区域之一(例如美国西部、美国东部、东南亚等)。 创建资源后,无法更改资源的区域,但如果在更新请求时指定了相同的区域,则请求将成功。

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

-Name

指定资源组中作业资源的名称。 作业名称长度必须介于 3 到 24 个字符之间,并且仅使用任何字母数字和下划线

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

-NoWait

异步运行命令

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

-ResourceGroupName

资源组名称

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

-SkuDisplayName

SKU 的显示名称。

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

-SkuFamily

SKU 系列。

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

-SkuName

SKU 名称。

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

-SubscriptionId

订阅 ID

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Tag

描述资源的键值对的列表。 这些标记可用于查看和分组此资源(跨资源组)。

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

-TransferType

数据传输的类型。

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

-UserAssignedIdentity

用户分配的标识

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

-WhatIf

显示运行该 cmdlet 时会发生什么情况。 cmdlet 未运行。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

输出

IJobResource

备注

别名

复杂参数属性

若要创建下面所述的参数,请构造一个包含相应属性的哈希表。 有关哈希表的信息,请运行 Get-Help about_Hash_Tables。

DETAIL <IJobDetails>:作业运行的详细信息。 仅发送此字段以用于展开详细信息筛选器。

  • ContactDetail <IContactDetails>:有关通知和发货的联系人详细信息。
    • ContactName <String>:联系人的联系人姓名。
    • EmailList <String[]>:要通知有关作业进度的电子邮件 ID 的列表。
    • Phone <String>:电话联系人的号码。
    • [Mobile <String>]:联系人的手机号码。
    • [NotificationPreference <INotificationPreference[]>]:作业阶段的通知首选项。
      • SendNotification <Boolean>:需要通知或不需要通知。
      • StageName <NotificationStageName>:阶段的名称。
    • [PhoneExtension <String>]:电话联系人的分机号码。
  • Type <ClassDiscriminator>:指示作业详细信息的类型。
  • [DataExportDetail <IDataExportDetails[]>]:要从 Azure 导出的数据的详细信息。
    • AccountDetailDataAccountType <DataAccountType>:要传输的数据的帐户类型。
    • TransferConfiguration <ITransferConfiguration>:数据传输的配置。
      • Type <TransferConfigurationType>:传输的配置类型。
      • [TransferAllDetail <ITransferConfigurationTransferAllDetails>]:筛选类型和要传输所有数据的详细信息的映射。 仅当 TransferConfigurationType 作为 TransferAll 提供时,才需要此字段
        • [IncludeDataAccountType <DataAccountType?>]:数据的帐户类型
        • [IncludeTransferAllBlob <Boolean?>]:若要指示是否必须传输所有 Azure Blob
        • [IncludeTransferAllFile <Boolean?>]:指示是否必须转移所有Azure 文件存储
      • [TransferFilterDetail <ITransferConfigurationTransferFilterDetails>]:筛选器类型和要筛选的详细信息的映射。 仅当 TransferConfigurationType 作为 TransferUsingFilter 提供时,才需要此字段。
        • [AzureFileFilterDetailFilePathList <String[]>]:要传输的文件的完整路径的列表。
        • [AzureFileFilterDetailFilePrefixList <String[]>]:要传输的 Azure 文件的前缀列表。
        • [AzureFileFilterDetailFileShareList <String[]>]:要传输的文件共享列表。
        • [BlobFilterDetailBlobPathList <String[]>]:要传输的 blob 的完整路径的列表。
        • [BlobFilterDetailBlobPrefixList <String[]>]:要传输的 Azure Blob 的前缀列表。
        • [BlobFilterDetailContainerList <String[]>]:要传输的 Blob 容器的列表。
        • [IncludeDataAccountType <DataAccountType?>]:数据的帐户类型。
        • [IncludeFilterFileDetail <IFilterFileDetails[]>]:用于数据传输的筛选器文件的详细信息。
          • FilterFilePath <String>:包含要传输的所有项的详细信息的文件的路径。
          • FilterFileType <FilterFileType>:筛选器文件的类型。
    • [AccountDetailSharePassword <String>]:在设备上创建的所有共享的密码。 不应为 TransferType:ExportFromAzure 作业传递。 如果未传递,服务将生成密码本身。 这不会在“获取呼叫”中返回。 密码要求:密码必须至少为 12 个字符,最多 64 个字符。 密码必须至少有一个大写字母,一个数字和一个特殊字符。 密码不能具有以下字符:IilLoO0 密码只能有字母、数字和以下字符: @#-$%^!+=;:_()]+
    • [LogCollectionLevel <LogCollectionLevel?>]:要收集的日志级别。
  • [DataImportDetail <IDataImportDetails[]>]:要导入 Azure 的数据的详细信息。
    • AccountDetailDataAccountType <DataAccountType>:要传输的数据的帐户类型。
    • [AccountDetailSharePassword <String>]:在设备上创建的所有共享的密码。 不应为 TransferType:ExportFromAzure 作业传递。 如果未传递,服务将生成密码本身。 这不会在“获取呼叫”中返回。 密码要求:密码必须至少为 12 个字符,最多 64 个字符。 密码必须至少有一个大写字母,一个数字和一个特殊字符。 密码不能具有以下字符:IilLoO0 密码只能有字母、数字和以下字符: @#-$%^!+=;:_()]+
    • [LogCollectionLevel <LogCollectionLevel?>]:要收集的日志级别。
  • [ExpectedDataSizeInTeraByte <Int32?>]:需要在此作业中传输的数据的预期大小(以 TB 为单位)。
  • [KeyEncryptionKey <IKeyEncryptionKey>]:有关正在使用哪个密钥加密类型的详细信息。
    • KekType <KekType>:用于密钥加密的加密密钥的类型。
    • [IdentityProperty <IIdentityProperties>]:用于密钥加密的托管标识属性。
      • [Type <String>]:托管服务标识类型。
      • [UserAssignedResourceId <String>]:用于提取 MSI 令牌的用户分配标识的 Arm 资源 ID。
    • [KekUrl <String>]:密钥加密密钥。 如果客户管理的 KekType,则需要它。
    • [KekVaultResourceId <String>]:Kek 保管库资源 ID。如果客户管理的 KekType,则需要它。
  • [Preference <IPreferences>]:订单的首选项。
    • [EncryptionPreferenceDoubleEncryption <DoubleEncryption?>]:定义基于软件的加密启用的辅助层。
    • [EncryptionPreferenceHardwareEncryption <HardwareEncryption?>]:定义硬件级别加密(仅适用于磁盘)
    • [PreferredDataCenterRegion <String[]>]:首选数据中心区域。
    • [ReverseTransportPreferencePreferredShipmentType <TransportShipmentTypes?>]:指示客户首选的发货物流类型。
    • [StorageAccountAccessTierPreference <StorageAccountAccessTier[]>]:与存储帐户的访问层相关的首选项。
    • [TransportPreferencePreferredShipmentType <TransportShipmentTypes?>]:指示客户首选的发货物流类型。
  • [ReverseShippingDetail <IReverseShippingDetails>]:订单的可选反向发货详细信息。
    • [ContactDetailContactName <String>]:联系人的联系人姓名。
    • [ContactDetailMobile <String>]:联系人的手机号码。
    • [ContactDetailPhone <String>]:电话联系人的号码。
    • [ContactDetailPhoneExtension <String>]:电话联系人的分机号码。
    • [ShippingAddress <IShippingAddress>]:客户希望接收设备的寄送地址。
      • Country <String>:国家/地区的名称。
      • StreetAddress1 <String>:街道地址行 1。
      • [AddressType <AddressType?>]:地址类型。
      • [City <String>]:City 的名称。
      • [CompanyName <String>]:公司名称。
      • [PostalCode <String>]:邮政编码。
      • [SkipAddressValidation <Boolean?>]:用于指示客户是否已选择跳过默认地址验证的标志
      • [StateOrProvince <String>]:州或省的名称。
      • [StreetAddress2 <String>]:街道地址行 2。
      • [StreetAddress3 <String>]:街道地址行 3。
      • [TaxIdentificationNumber <String>]:税务标识号
      • [ZipExtendedCode <String>]:扩展的邮政编码。
  • [ShippingAddress <IShippingAddress>]:客户的寄送地址。