question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible issue with Azure Stack

See original GitHub issue

https://github.com/Azure/azure-cli/blob/8fcb30cba06b035bee374c4949dcbfc21ad034b0/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/custom.py#L187

Got confirmation after a discussion with @bganapa that AzureStack metadata endpoint does not fill storage_endpoint, and that this is not gonna happen for any dataplane. We should get the value from

client.storage_accounts.get_properties(rg,name).primary_endpoints.blob
client.storage_accounts.get_properties(rg,name).primary_endpoints.queue
client.storage_accounts.get_properties(rg,name).primary_endpoints.table
client.storage_accounts.get_properties(rg,name).primary_endpoints.file

https://docs.microsoft.com/en-us/python/api/azure.mgmt.storage.v2017_06_01.models.endpoints?view=azure-python

Maybe you have a workaround to fill the storage_endpoint even if it’s not in the metadata endpoint, in that case I’m curious to understand what it is (didn’t find it in the CLI code).

Creating this issue just in case, feel free to close it if CLI has a hack I don’t know.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Juliehzlcommented, Dec 10, 2019

After discussion with @bganapa , it is hard to fiund a way to get the storage data plane endpoint information automatically from storage RP or ARM. @lmazuel method assumes that there is a storage account exists, which is not expected. In this way, we decide to keep current behavior to ask user to provide the storage endpoint and keyvault data plane while registering the code.

0reactions
bganapacommented, Dec 10, 2019

in Azure stack, we explicitly ask user to provide the storage endpoint and keyvault data plane while registering the code. az cloud register -n <environmentname> --endpoint-resource-manager “https://management.local.azurestack.external” --suffix-storage-endpoint “local.azurestack.external” --suffix-keyvault-dns “.vault.local.azurestack.external” --endpoint-vm-image-alias-doc <URI of the document which contains VM image aliases> --profile “2019-03-01-hybrid”

As laurent mentioned, if CLI can read the storage data plane endpoint from the storage RP somehow(Im not sure what call would get the dataplane endpoint from storage RP), we can avoid the extra parameter

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Stack Hub known issues - Microsoft Learn
This article lists known issues in Azure Stack Hub releases. The list is updated as new issues are identified. To access known issues...
Read more >
Troubleshooting VM known issues on Azure Stack Hub
Known issues: VMs on Azure Stack Hub · Portal doesn't show correct VM name · VM boot diagnostics · VM diagnostics storage account...
Read more >
Troubleshoot issues in Azure Stack Hub - Microsoft Learn
Learn how to troubleshoot Azure Stack Hub, including issues with VMs, storage, and App Service.
Read more >
Usage connectivity issues and errors in Azure Stack Hub
Unauthorized, The Azure bridge is unable to push data to the usage service in Azure, because the Azure service is unable to authenticate...
Read more >
Known issues in Azure Stack Hub ruggedized - Microsoft Learn
This article lists known issues in Azure Stack Hub ruggedized. The list is updated as new issues are identified.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found