Share via


az edgeorder order-item

Note

This reference is part of the edgeorder extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az edgeorder order-item command. Learn more about extensions.

Manage order item with edgeorder sub group order-item.

Commands

Name Description Type Status
az edgeorder order-item cancel

Cancel order item.

Extension GA
az edgeorder order-item create

Create an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API.

Extension GA
az edgeorder order-item delete

Delete an order item.

Extension GA
az edgeorder order-item list

List order item at resource group level. And List order item at subscription level.

Extension GA
az edgeorder order-item return

Return order item.

Extension GA
az edgeorder order-item show

Get an order item.

Extension GA
az edgeorder order-item update

Update the properties of an existing order item.

Extension GA
az edgeorder order-item wait

Place the CLI in a waiting state until a condition of the order-item is met.

Extension GA

az edgeorder order-item cancel

Cancel order item.

az edgeorder order-item cancel --reason
                               [--ids]
                               [--name --order-item-name]
                               [--resource-group]
                               [--subscription]

Examples

CancelOrderItem

az edgeorder order-item cancel --reason "Order cancelled" --name "TestOrderItemName1" --resource-group "TestRG"

Required Parameters

--reason

Reason for cancellation.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --order-item-name -n

The name of the order item.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item create

Create an order item. Existing order item cannot be updated with this api and should instead be updated with the Update order item API.

az edgeorder order-item create --name --order-item-name
                               --order-item-resource
                               --resource-group
                               [--no-wait]

Examples

CreateOrderItem

az edgeorder order-item create --name "TestOrderItemName01" --order-item-resource "{\"___location\":\"eastus\",\"tags\":{\"carrot\":\"vegetable\",\"mango\":\"fruit\"},\"orderItemDetails\":{\"orderItemType\":\"Purchase\",\"preferences\":{\"transportPreferences\":{\"preferredShipmentType\":\"MicrosoftManaged\"}},\"productDetails\":{\"hierarchyInformation\":{\"configurationName\":\"edgep_base\",\"productFamilyName\":\"azurestackedge\",\"productLineName\":\"azurestackedge\",\"productName\":\"azurestackedgegpu\"}}},\"addressDetails\":{\"forwardAddress\":{\"contactDetails\":{\"contactName\":\"Petr Cech\",\"emailList\":[\"ssemmail@microsoft.com\",\"vishwamdir@microsoft.com\"],\"phone\":\"3213131190\",\"phoneExtension\":\"\"},\"shippingAddress\":{\"addressType\":\"None\",\"city\":\"San Francisco\",\"companyName\":\"Microsoft\",\"country\":\"US\",\"postalCode\":\"94107\",\"stateOrProvince\":\"CA\",\"streetAddress1\":\"16 TOWNSEND ST\",\"streetAddress2\":\"UNIT 1\"}}},\"orderId\":\"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/TestRG/providers/Microsoft.EdgeOrder/locations/eastus/orders/TestOrderItemName01\"}" --resource-group "TestRG"

Required Parameters

--name --order-item-name -n

The name of the order item.

--order-item-resource

Order item details from request body. Expected value: json-string/json-file/@json-file.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item delete

Delete an order item.

az edgeorder order-item delete [--ids]
                               [--name --order-item-name]
                               [--no-wait]
                               [--resource-group]
                               [--subscription]
                               [--yes]

Examples

DeleteOrderItemByName

az edgeorder order-item delete --name "TestOrderItemName01" --resource-group "TestRG"

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --order-item-name -n

The name of the order item.

Property Value
Parameter group: Resource Id Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item list

List order item at resource group level. And List order item at subscription level.

az edgeorder order-item list [--expand]
                             [--filter]
                             [--resource-group]
                             [--skip-token]

Examples

ListOrderItemsAtResourceGroupLevel

az edgeorder order-item list --resource-group "TestRG"

ListOrderItemsAtSubscriptionLevel

az edgeorder order-item list

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--expand

$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.

--filter

$filter is supported to filter based on order id. Filter supports only equals operation.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--skip-token

$skipToken is supported on Get list of order items, which provides the next page in the list of order items.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item return

Return order item.

az edgeorder order-item return --return-reason
                               [--contact-details]
                               [--ids]
                               [--name --order-item-name]
                               [--no-wait]
                               [--resource-group]
                               [--service-tag]
                               [--shipping-address]
                               [--shipping-box-required {false, true}]
                               [--subscription]

Examples

ReturnOrderItem

az edgeorder order-item return --name "TestOrderName1" --resource-group "TestRG" --return-reason "Order returned"

Required Parameters

--return-reason

Return Reason.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--contact-details

Contact details for the address.

Usage: --contact-details contact-name=XX phone=XX phone-extension=XX mobile=XX email-list=XX

contact-name: Required. Contact name of the person. phone: Required. Phone number of the contact person. phone-extension: Phone extension number of the contact person. mobile: Mobile number of the contact person. email-list: Required. List of Email-ids to be notified about job progress.

Property Value
Parameter group: Return Address Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --order-item-name -n

The name of the order item.

Property Value
Parameter group: Resource Id Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--service-tag

Service tag (located on the bottom-right corner of the device).

--shipping-address

Shipping details for the address.

Usage: --shipping-address street-address1=XX street-address2=XX street-address3=XX city=XX state-or-province=XX country=XX postal-code=XX zip-extended-code=XX company-name=XX address-type=XX

street-address1: Required. Street Address line 1. street-address2: Street Address line 2. street-address3: Street Address line 3. city: Name of the City. state-or-province: Name of the State or Province. country: Required. Name of the Country. postal-code: Postal code. zip-extended-code: Extended Zip Code. company-name: Name of the company. address-type: Type of address.

Property Value
Parameter group: Return Address Arguments
--shipping-box-required

Shipping Box required.

Property Value
Accepted values: false, true
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item show

Get an order item.

az edgeorder order-item show [--expand]
                             [--ids]
                             [--name --order-item-name]
                             [--resource-group]
                             [--subscription]

Examples

GetOrderItemByName

az edgeorder order-item show --name "TestOrderItemName01" --resource-group "TestRG"

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--expand

$expand is supported on device details, forward shipping details and reverse shipping details parameters. Each of these can be provided as a comma separated list. Device Details for order item provides details on the devices of the product, Forward and Reverse Shipping details provide forward and reverse shipping details respectively.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--name --order-item-name -n

The name of the order item.

Property Value
Parameter group: Resource Id Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item update

Update the properties of an existing order item.

az edgeorder order-item update [--contact-details]
                               [--encryption-preferences]
                               [--ids]
                               [--if-match]
                               [--mgmt-preferences]
                               [--name --order-item-name]
                               [--no-wait]
                               [--notif-email-list]
                               [--notif-preferences]
                               [--resource-group]
                               [--shipping-address]
                               [--subscription]
                               [--tags]
                               [--transport-preferences]

Examples

UpdateOrderItem

az edgeorder order-item update --name "TestOrderItemName01" --contact-details contact-name="Updated contact name" email-list="testemail@microsoft.com" phone="2222200000" --transport-preferences preferred-shipment-type="CustomerManaged" --tags ant="insect" pigeon="bird" tiger="animal" --resource-group "TestRG"

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--contact-details

Contact details for the address.

Usage: --contact-details contact-name=XX phone=XX phone-extension=XX mobile=XX email-list=XX

contact-name: Required. Contact name of the person. phone: Required. Phone number of the contact person. phone-extension: Phone extension number of the contact person. mobile: Mobile number of the contact person. email-list: Required. List of Email-ids to be notified about job progress.

Property Value
Parameter group: Forward Address Arguments
--encryption-preferences

Preferences related to the Encryption.

Usage: --encryption-preferences double-encryption-status=XX

double-encryption-status: Double encryption status as entered by the customer. It is compulsory to give this parameter if the 'Deny' or 'Disabled' policy is configured.

Property Value
Parameter group: Preferences Arguments
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

Property Value
Parameter group: Resource Id Arguments
--if-match

Defines the If-Match condition. The patch will be performed only if the ETag of the order on the server matches this value.

--mgmt-preferences

Preferences related to the Management resource.

Usage: --mgmt-preferences preferred-management-resource-id=XX

preferred-management-resource-id: Customer preferred Management resource ARM ID.

Property Value
Parameter group: Preferences Arguments
--name --order-item-name -n

The name of the order item.

Property Value
Parameter group: Resource Id Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--notif-email-list

Additional notification email list.

--notif-preferences

Notification preferences.

Usage: --notif-preferences stage-name=XX send-notification=XX

stage-name: Required. Name of the stage. send-notification: Required. Notification is required or not.

Multiple actions can be specified by using more than one --notification-preferences argument.

Property Value
Parameter group: Preferences Arguments
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Property Value
Parameter group: Resource Id Arguments
--shipping-address

Shipping details for the address.

Usage: --shipping-address street-address1=XX street-address2=XX street-address3=XX city=XX state-or-province=XX country=XX postal-code=XX zip-extended-code=XX company-name=XX address-type=XX

street-address1: Required. Street Address line 1. street-address2: Street Address line 2. street-address3: Street Address line 3. city: Name of the City. state-or-province: Name of the State or Province. country: Required. Name of the Country. postal-code: Postal code. zip-extended-code: Extended Zip Code. company-name: Name of the company. address-type: Type of address.

Property Value
Parameter group: Forward Address Arguments
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Property Value
Parameter group: Resource Id Arguments
--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--transport-preferences

Preferences related to the shipment logistics of the order.

Usage: --transport-preferences preferred-shipment-type=XX

preferred-shipment-type: Required. Indicates Shipment Logistics type that the customer preferred.

Property Value
Parameter group: Preferences Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az edgeorder order-item wait

Place the CLI in a waiting state until a condition of the order-item is met.

az edgeorder order-item wait --order-item-name
                             --resource-group
                             [--created]
                             [--custom]
                             [--deleted]
                             [--exists]
                             [--expand]
                             [--interval]
                             [--timeout]
                             [--updated]

Required Parameters

--order-item-name

The name of the order item.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--created

Wait until created with 'provisioningState' at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

Property Value
Parameter group: Wait Condition Arguments
--deleted

Wait until deleted.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--exists

Wait until the resource exists.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--expand

$expand is supported on device details, forward shipping details and reverse shipping details parameters.

--interval

Polling interval in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 30
--timeout

Maximum wait in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False