Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
384 stars 1.25k forks source link

The documentation for import export devices does not clearly call out how the storage SAAS URL needs to be generated #654

Open jlian opened 5 years ago

jlian commented 5 years ago

Please assign this issue to me.

We should have a link to how to generate SAS token as well as an example like this to make it more clear

az iot hub device-identity export --bcu https://myaccount.blob.core.windows.net/sascontainer/sasblob.txt?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D --ik --resource-group my-rg --hub-name my-hub

Document Details

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

linsqi commented 5 years ago

Hi Lian, thanks for helping improve on this. We could also provide the example CLI(with bcu value quoated) as below to help customer avoid running into possible invalid argument issue.

az iot hub device-identity export --bcu "<blob container uri>" --ik --resource-group my-rg --hub-name my-hub

Example blob container uri: https://myaccount.blob.core.windows.net/sascontainer/sasblob.txt?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D

ghost commented 4 years ago

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

yonzhan commented 4 years ago

iot

yiyiguo commented 4 years ago

@Azure/azure-iot-cli-triage

yiyiguo commented 4 years ago

@jlian @philmea

jlian commented 4 years ago

@gxyjenny who said she could help