Failed to establish a new connection (user-defined metadata / tags on blob not getting displayed)
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
a) az storage fs file metadata show -p {path} -f {filesystem} --account-name {account-name} --auth-mode login
b) az storage blob tag list -n {path} --container-name {filesystem/container_name} --account-name {account-name} --auth-mode login
c) az storage blob filter --tag-filter "@container='{container_name}' and "{key}"='{value}'" --query "[].name" --output tsv --only-show-errors --account-name {account-name} --auth-mode login
**Describe the bug**
I want to be able to view the key and tag values using the CLI command (a) or (b) given the blob specified by {path}.
Or, list the blobs meeting the tag-filter conditions in (c).
Error message displayed:
a) : Failed to establish a new connection: [Errno -2] Name or service not known
b) : Failed to establish a new connection: [Errno -2] Name or service not known
c) : Failed to establish a new connection: [Errno -2] Name or service not known
**To Reproduce**
Login to the VM with the customised role (see permission granted below): az login --identity
Run either of the commands above (a) or (b) or (c)
**Expected behavior**
The command should display the key and values for
a) Metadata
b) Blob index tags
or
c) list the blobs meeting the tag-filter conditions
**Environment summary**
{
"azure-cli": "2.39.0",
"azure-cli-core": "2.39.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"storage-blob-preview": "0.6.1"
}
}
**Additional context**
Permissions:
Microsoft.Storage/storageAccounts/fileServices/read
Microsoft.Storage/storageAccounts/blobServices/containers/read
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/tags/read
Microsoft.Storage/storageAccounts/blobServices/containers/blobs/filter/action
Contributor guide
Assessment
This issue has not been assessed yet.