New-AzEdgeOrderPreferencesObject
This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.
Create an in-memory object for Preferences.
Syntax
Default (Default)
New-AzEdgeOrderPreferencesObject
[-EncryptionPreference <IEncryptionPreferences>]
[-ManagementResourcePreference <IManagementResourcePreferences>]
[-NotificationPreference <INotificationPreference[]>]
[-TransportPreference <ITransportPreferences>]
[<CommonParameters>]
Description
Create an in-memory object for Preferences.
Examples
Example 1: Create a preference object
$preference = New-AzEdgeOrderPreferencesObject -EncryptionPreference @{DoubleEncryptionStatus = "Disabled"} -TransportPreference @{PreferredShipmentType = "MicrosoftManaged"} -ManagementResourcePreference @{PreferredManagementResourceId = "/subscriptions/managementSubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/1GPUtest"}
Creates a in-memory preference object to set transport, encryption and management resource preference.
Parameters
-EncryptionPreference
Preferences related to the Encryption.
Parameter properties
| Type: | IEncryptionPreferences |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ManagementResourcePreference
Preferences related to the Management resource.
Parameter properties
| Type: | IManagementResourcePreferences |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-NotificationPreference
Notification preferences.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-TransportPreference
Preferences related to the shipment logistics of the order.
Parameter properties
| Type: | ITransportPreferences |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.