azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri} is invaild

Open zh0903 opened this issue 1 year ago • 7 comments

Describe the bug

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Related command

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Errors

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Issue script & Debug output

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Expected behavior

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Environment Summary

Customer reported : "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" is invalid now. I can reproduce his error with all fine configuration and resource. But az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name} works well.

Additional context

No response

zh0903 avatar Sep 18 '23 02:09 zh0903

Thank you for opening this issue, we will look into it.

yonzhan avatar Sep 18 '23 02:09 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-iot-cli-triage.

Hi

For the az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri} - do you include the SAS token key as part of the URI's? This is noted in the help: image

If you use the alternate az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name}, the cli will retrieve the necessary SAS token for you.

If you add the SAS token to the ibcu/obcu version and still have issues, please post the error message so I can debug your issue.

vilit1 avatar Oct 02 '23 19:10 vilit1

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-iot-cli-triage.

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

Hi

For the az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri} - do you include the SAS token key as part of the URI's? This is noted in the help: image

If you use the alternate az iot hub device-identity import -n {iothub_name} --ibc {input_blob_container_name} --isa {input_storage_account_name} --obc {output_blob_container_name} --osa {output_storage_account_name}, the cli will retrieve the necessary SAS token for you.

If you add the SAS token to the ibcu/obcu version and still have issues, please post the error message so I can debug your issue.

Yes, we included them. You may test if "az iot hub device-identity import -n {iothub_name} --ibcu {input_sas_uri} --obcu {output_sas_uri}" works

zh0903 avatar Oct 30 '23 07:10 zh0903

Can you post the error message? I cannot debug without it.

vilit1 avatar May 13 '24 17:05 vilit1