diff --git a/src/DataBox/docs/New-AzDataBoxContactDetailsObject.md b/src/DataBox/docs/New-AzDataBoxContactDetailsObject.md index e1b3d8deb1fc..b2806ff3d21f 100644 --- a/src/DataBox/docs/New-AzDataBoxContactDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxContactDetailsObject.md @@ -25,8 +25,7 @@ Create an in-memory object for ContactDetails. ### Example 1: Create a in-memory object for ContactDetails ```powershell -$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" -$contactDetail +New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" ``` ```output diff --git a/src/DataBox/docs/New-AzDataBoxDiskJobDetailsObject.md b/src/DataBox/docs/New-AzDataBoxDiskJobDetailsObject.md index d3842be311dc..1fc83b20af68 100644 --- a/src/DataBox/docs/New-AzDataBoxDiskJobDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxDiskJobDetailsObject.md @@ -27,9 +27,17 @@ Create an in-memory object for DataBoxDiskJobDetails. ### Example 1: DataBoxDisk details in-memory object ```powershell -$details = New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 +$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-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 ``` +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type Passkey +------ -------------------- -------------------------- -------------------------- ---- ------- + 18 DataBoxDisk randm@423jarABC +``` DataBoxDisk details in-memory object ## PARAMETERS diff --git a/src/DataBox/docs/New-AzDataBoxHeavyJobDetailsObject.md b/src/DataBox/docs/New-AzDataBoxHeavyJobDetailsObject.md index 35f90d042161..e648598950b8 100644 --- a/src/DataBox/docs/New-AzDataBoxHeavyJobDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxHeavyJobDetailsObject.md @@ -26,9 +26,17 @@ Create an in-memory object for DataBoxHeavyJobDetails. ### Example 1: Create a in-memory object for DataBoxHeavyJobDetails ```powershell -$details = New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 +$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-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 ``` +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type DevicePassword +------ -------------------- -------------------------- -------------------------- ---- -------------- + 10 DataBoxHeavy randm@423jarABC +``` Create a in-memory object for DataBoxHeavyJobDetails ## PARAMETERS diff --git a/src/DataBox/docs/New-AzDataBoxJobDetailsObject.md b/src/DataBox/docs/New-AzDataBoxJobDetailsObject.md index 9922e78c6726..30ce329eba9c 100644 --- a/src/DataBox/docs/New-AzDataBoxJobDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxJobDetailsObject.md @@ -26,8 +26,10 @@ Create an in-memory object for DataBoxJobDetails. ### Example 1: Creates a databox job detail in memory object ```powershell -$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -$details +$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 ``` ```output diff --git a/src/DataBox/docs/New-AzDataBoxKeyEncryptionKeyObject.md b/src/DataBox/docs/New-AzDataBoxKeyEncryptionKeyObject.md index 5e3d51108f58..3d3d02e3df46 100644 --- a/src/DataBox/docs/New-AzDataBoxKeyEncryptionKeyObject.md +++ b/src/DataBox/docs/New-AzDataBoxKeyEncryptionKeyObject.md @@ -24,8 +24,7 @@ Create an in-memory object for KeyEncryptionKey. ### Example 1: Create a in-memory object for KeyEncryptionKey ```powershell -$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" -$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" ``` ```output diff --git a/src/DataBox/docs/New-AzDataBoxManagedDiskDetailsObject.md b/src/DataBox/docs/New-AzDataBoxManagedDiskDetailsObject.md index b47b257ffaec..6d562c6dc0fb 100644 --- a/src/DataBox/docs/New-AzDataBoxManagedDiskDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxManagedDiskDetailsObject.md @@ -24,9 +24,14 @@ Create an in-memory object for ManagedDiskDetails. ### Example 1: ManagedDisk object ```powershell -$managedDiskAccount=New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" +New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" ``` +```output +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 diff --git a/src/DataBox/docs/New-AzDataBoxShippingAddressObject.md b/src/DataBox/docs/New-AzDataBoxShippingAddressObject.md index 3a5ed28d30b6..a79b78fb3dbc 100644 --- a/src/DataBox/docs/New-AzDataBoxShippingAddressObject.md +++ b/src/DataBox/docs/New-AzDataBoxShippingAddressObject.md @@ -25,8 +25,7 @@ Create an in-memory object for ShippingAddress. ### Example 1: Shipping Address object ```powershell -$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -$ShippingDetails +New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" ``` ```output diff --git a/src/DataBox/docs/New-AzDataBoxStorageAccountDetailsObject.md b/src/DataBox/docs/New-AzDataBoxStorageAccountDetailsObject.md index f6caf8e7faba..c0f600c0abfb 100644 --- a/src/DataBox/docs/New-AzDataBoxStorageAccountDetailsObject.md +++ b/src/DataBox/docs/New-AzDataBoxStorageAccountDetailsObject.md @@ -24,8 +24,7 @@ Create an in-memory object for StorageAccountDetails. ### Example 1: Storage account in-memory object ```powershell -$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" -$dataAccount +New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" ``` ```output diff --git a/src/DataBox/docs/New-AzDataBoxTransferConfigurationObject.md b/src/DataBox/docs/New-AzDataBoxTransferConfigurationObject.md index b618b5f75089..14c4d8b7e59e 100644 --- a/src/DataBox/docs/New-AzDataBoxTransferConfigurationObject.md +++ b/src/DataBox/docs/New-AzDataBoxTransferConfigurationObject.md @@ -25,7 +25,7 @@ Create an in-memory object for TransferConfiguration. ### Example 1: In-memory object for export job transfer configuration ```powershell -$transferConfigurationType = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} +New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} ``` Create a in-memory object for export jobs TransferConfiguration diff --git a/src/DataBox/docs/Update-AzDataBoxJob.md b/src/DataBox/docs/Update-AzDataBoxJob.md index c054ddf1db94..a56f8acdd1d4 100644 --- a/src/DataBox/docs/Update-AzDataBoxJob.md +++ b/src/DataBox/docs/Update-AzDataBoxJob.md @@ -86,8 +86,10 @@ For any failure re-run with $DebugPreference = "Continue" as mentioned in exampl ### Example 3: Update databox job from system assigned to user assigned with customer managed key encryption ```powershell -$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" -$updateSystemToUserAssigned = Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} +$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" + +Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} ``` Update databox job from system assigned to user assigned with customer managed key encryption. diff --git a/src/DataBox/examples/New-AzDataBoxContactDetailsObject.md b/src/DataBox/examples/New-AzDataBoxContactDetailsObject.md index 769f9674af29..7ed056a91c60 100644 --- a/src/DataBox/examples/New-AzDataBoxContactDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxContactDetailsObject.md @@ -1,7 +1,6 @@ ### Example 1: Create a in-memory object for ContactDetails ```powershell -$contactDetail = New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" -$contactDetail +New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" ``` ```output diff --git a/src/DataBox/examples/New-AzDataBoxDiskJobDetailsObject.md b/src/DataBox/examples/New-AzDataBoxDiskJobDetailsObject.md index cd289a322c3c..e69a4682bb79 100644 --- a/src/DataBox/examples/New-AzDataBoxDiskJobDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxDiskJobDetailsObject.md @@ -1,8 +1,16 @@ ### Example 1: DataBoxDisk details in-memory object ```powershell -$details = New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 +$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-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey "randm@423jarABC" -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 ``` +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type Passkey +------ -------------------- -------------------------- -------------------------- ---- ------- + 18 DataBoxDisk randm@423jarABC +``` DataBoxDisk details in-memory object diff --git a/src/DataBox/examples/New-AzDataBoxHeavyJobDetailsObject.md b/src/DataBox/examples/New-AzDataBoxHeavyJobDetailsObject.md index b7efe81876b0..2f679edcec46 100644 --- a/src/DataBox/examples/New-AzDataBoxHeavyJobDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxHeavyJobDetailsObject.md @@ -1,7 +1,15 @@ ### Example 1: Create a in-memory object for DataBoxHeavyJobDetails ```powershell -$details = New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 +$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-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword "randm@423jarABC" -ExpectedDataSizeInTeraByte 10 ``` +```output +Action ChainOfCustodySasKey ExpectedDataSizeInTeraByte ReverseShipmentLabelSasKey Type Passkey +------ -------------------- -------------------------- -------------------------- ---- ------- + 18 DataBoxDisk randm@423jarABC +``` Create a in-memory object for DataBoxHeavyJobDetails diff --git a/src/DataBox/examples/New-AzDataBoxJobDetailsObject.md b/src/DataBox/examples/New-AzDataBoxJobDetailsObject.md index 0f4a4ccca3f3..2408c62364a2 100644 --- a/src/DataBox/examples/New-AzDataBoxJobDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxJobDetailsObject.md @@ -1,7 +1,9 @@ ### Example 1: Creates a databox job detail in memory object ```powershell -$details = New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -$details +$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 ``` ```output diff --git a/src/DataBox/examples/New-AzDataBoxKeyEncryptionKeyObject.md b/src/DataBox/examples/New-AzDataBoxKeyEncryptionKeyObject.md index 81b154d7128b..574496ff243d 100644 --- a/src/DataBox/examples/New-AzDataBoxKeyEncryptionKeyObject.md +++ b/src/DataBox/examples/New-AzDataBoxKeyEncryptionKeyObject.md @@ -1,7 +1,6 @@ ### Example 1: Create a in-memory object for KeyEncryptionKey ```powershell -$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" -$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" ``` ```output diff --git a/src/DataBox/examples/New-AzDataBoxManagedDiskDetailsObject.md b/src/DataBox/examples/New-AzDataBoxManagedDiskDetailsObject.md index 5fdec3e3d552..9fcf94e53e53 100644 --- a/src/DataBox/examples/New-AzDataBoxManagedDiskDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxManagedDiskDetailsObject.md @@ -1,7 +1,12 @@ ### Example 1: ManagedDisk object ```powershell -$managedDiskAccount=New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" +New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" ``` +```output +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 diff --git a/src/DataBox/examples/New-AzDataBoxShippingAddressObject.md b/src/DataBox/examples/New-AzDataBoxShippingAddressObject.md index 70476b350fd6..3353e305d4ca 100644 --- a/src/DataBox/examples/New-AzDataBoxShippingAddressObject.md +++ b/src/DataBox/examples/New-AzDataBoxShippingAddressObject.md @@ -1,7 +1,6 @@ ### Example 1: Shipping Address object ```powershell -$ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" -$ShippingDetails +New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" ``` ```output diff --git a/src/DataBox/examples/New-AzDataBoxStorageAccountDetailsObject.md b/src/DataBox/examples/New-AzDataBoxStorageAccountDetailsObject.md index b27b59d1f384..71070d1f4a1b 100644 --- a/src/DataBox/examples/New-AzDataBoxStorageAccountDetailsObject.md +++ b/src/DataBox/examples/New-AzDataBoxStorageAccountDetailsObject.md @@ -1,7 +1,6 @@ ### Example 1: Storage account in-memory object ```powershell -$dataAccount = New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" -$dataAccount +New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" ``` ```output diff --git a/src/DataBox/examples/New-AzDataBoxTransferConfigurationObject.md b/src/DataBox/examples/New-AzDataBoxTransferConfigurationObject.md index 362b9334c033..ba654e3354b1 100644 --- a/src/DataBox/examples/New-AzDataBoxTransferConfigurationObject.md +++ b/src/DataBox/examples/New-AzDataBoxTransferConfigurationObject.md @@ -1,6 +1,6 @@ ### Example 1: In-memory object for export job transfer configuration ```powershell -$transferConfigurationType = New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} +New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} ``` Create a in-memory object for export jobs TransferConfiguration diff --git a/src/DataBox/examples/Update-AzDataBoxJob.md b/src/DataBox/examples/Update-AzDataBoxJob.md index e6367e59ed15..bb880e7dd92e 100644 --- a/src/DataBox/examples/Update-AzDataBoxJob.md +++ b/src/DataBox/examples/Update-AzDataBoxJob.md @@ -59,8 +59,10 @@ Update databox job encryption from microsoft managed to customer managed to cust ### Example 3: Update databox job from system assigned to user assigned with customer managed key encryption ```powershell -$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" -$updateSystemToUserAssigned = Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} +$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" + +Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} ``` Update databox job from system assigned to user assigned with customer managed key encryption. For any failure re-run with $DebugPreference = "Continue" as mentioned in example 1