Azure / azure-cli

Azure Command-Line Interface
MIT License
4.04k stars 3.01k forks source link

az iot dps delete: The full name required for the Hub #12884

Closed djaus2 closed 6 months ago

djaus2 commented 4 years ago

In most az cli commands, the IoT Hub name (a single word) without a path is what required. For this command, the full 'path' for the name is required.
.azure-devices.net needs to attached to the hub name. This need to be made clear.

OR IS IT A BUG IN THE API?


Document Details

The given syntax for the command is

az iot dps delete [--ids]
                  [--name]
                  [--only-show-errors]
                  [--resource-group]
                  [--subscription]

The example given is:

az iot dps delete --name MyDps  --resource-group MyResourceGroup

The name needs to be MyDPs.azure-devices.net

az iot dps delete --name MyDPs.azure-devices.net  --resource-group MyResourceGroup

NB There might be other DPS commands with this issue??

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ghost commented 4 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @iluican, @jlian.

yonzhan commented 4 years ago

iot

jlian commented 4 years ago

@digimaun and @iluican thoughts?

vilit1 commented 2 years ago

I cannot reproduce the error here - I can delete a dps instance by only giving it the name (without the azure-devices-provisioning.net). Can you update your azure-iot extension and let me know if the error still shows up?

vilit1 commented 6 months ago

Closing since there are no recent updates. Feel free to reopen if you have any other issues