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.

Cosmos DB --network-acl-bypass-resource-ids need to be validated further

See original GitHub issue

Related command az cosmosdb update --name MyCosmosDBDatabaseAccount–resource-group MyResourceGroup–network-acl-bypass AzureServices --network-acl-bypass-resource-ids “/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Synapse/workspaces/wsName”

Describe the bug It’s possible to input resource id without leading ‘/’ in URI, and this cause Cosmos DB Analytical Store to be unable to identify the mentioned resources and by-pass on network acl checking. Without the leading ‘/’ in resource URI, CLI execution won’t report any errors or indicate it’s actually an invalid format. Cosmos DB can still store the invalid URI at last, but no help to allow querying from Synapse.

To Reproduce az cosmosdb update --name MyCosmosDBDatabaseAccount–resource-group MyResourceGroup–network-acl-bypass AzureServices --network-acl-bypass-resource-ids “subscriptions/subId/resourceGroups/rgName/providers/Microsoft.Synapse/workspaces/wsName”

Expected behavior Please validate the input values of --network-acl-bypass-resource-ids, to ensure customer configuring their resource correctly.

Environment Summary

Linux-5.4.0-1091-azure-x86_64-with-glibc2.35 (Cloud Shell), CBL-Mariner/Linux
Python 3.9.13
Installer: RPM

azure-cli 2.40.0

Extensions:
kusto 0.4.0
cosmosdb-preview 0.17.0
ai-examples 0.2.5
ml 2.7.1
ssh 1.1.2

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
navba-MSFTcommented, Oct 18, 2022

@chshihMSFT The PR was merged a while ago. The fix is part of this milestone Targeted for 2022-11-01 and not yet released. https://github.com/Azure/azure-cli/milestone/123 .

0reactions
chshihMSFTcommented, Oct 18, 2022

Thanks! Looking forward to it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update-AzCosmosDBAccount (Az.CosmosDB) | Microsoft Learn
Valid values include: 'WellDefined' and 'FullFidelity'. Type: String. Position: Named. Default value: None. Accept pipeline input: False.
Read more >
Disable Schema Validation for Cosmos DB? - Stack Overflow
So I'm wondering is it possible to disable schema validation so I can query on the new comment attribute, without getting this error...
Read more >
How to: Using managed identities to access Cosmos DB data ...
Historically, authenticating against Microsoft's Cosmos DB service has only been possible in one of two ways: Either by using keys - long ...
Read more >
azure-native.documentdb.DatabaseAccount - Pulumi
An Azure Cosmos DB database account. ... AzureServices, networkAclBypassResourceIds: ... To learn more about resource properties and how to use them, ...
Read more >
Configure multi-region write in Azure Cosmos DB SQL API
Your browser can't play this video. Learn more. Switch camera.
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