Comments (10)
Thank you for your feedback. Tagging and routing to the team member best able to assist.
from azure-sdk-for-net.
@baryoloraul Could you share the codes to invoke RegenerateKeyAsync()
and the detailed error messages?
I cannot reproduce this error under Azure.ResourceManager.CosdmosDB
version 1.3.2
and Azure.Identity
version 1.12.0-beta.2
.
Here are my codes (REDACTED):
using AzureEventSourceListener consoleListener = AzureEventSourceListener.CreateConsoleLogger(EventLevel.Informational);
var client = new ArmClient(new InteractiveBrowserCredential(), "{your subscription id}", new ArmClientOptions()
{
Diagnostics = { IsLoggingContentEnabled = true }
});
ResourceGroupResource rg = client.GetDefaultSubscription().GetResourceGroup("{your resource group}");
CosmosDBAccountResource account = rg.GetCosmosDBAccount("{your cosmos account}");
await account.RegenerateKeyAsync(WaitUntil.Completed, new CosmosDBAccountRegenerateKeyContent(CosmosDBAccountKeyKind.Secondary));
Here is some key traffic content:
[Informational] Azure-Core: Request [xxxxxxxx] POST https://management.azure.com/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.DocumentDB/databaseAccounts/xxxxxx/regenerateKey?api-version=2022-11-15
[Informational] Azure-Core: Response [xxxxxxx] 202 Accepted (01.6s)
......
[Informational] Azure-Core: Request [yyyyy] GET https://management.azure.com/subscriptions/xxx/providers/Microsoft.DocumentDB/locations/eastus2/operationsStatus/xxxxxxxxxxx?api-version=2022-11-15
[Informational] Azure-Core: Response [yyyyy] 200 Ok (00.6s)
......
[Informational] Azure-Core: Request [zzzzz] GET https://management.azure.com/subscriptions/xxx/resourceGroups/xxxx/providers/Microsoft.DocumentDB/databaseAccounts/xxxxxxxx/regenerateKey/operationResults/xxxxxxxxx?api-version=2022-11-15
[Informational] Azure-Core: Response [zzzzz] 200 Ok (00.6s)
Apparently, the polling is successful.
from azure-sdk-for-net.
Hi @baryoloraul. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-net.
Hi @baryoloraul, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
from azure-sdk-for-net.
Hi @archerzz, the error details in the bug description is all I have, next is the code I am using to rotate the keys:
var cosmosDbAccountId = CosmosDBAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, cosmosDbAccountName);
var cosmosDbAccount = armClient.GetCosmosDBAccountResource(cosmosDbAccountId);
var operationResult = await cosmosDbAccount.RegenerateKeyAsync(WaitUntil.Completed, new CosmosDBAccountRegenerateKeyContent(CosmosDBAccountKeyKind.SecondaryReadonly), cancellationToken).ConfigureAwait(false);
Worth mentioning that this error does not show up every time I try to rotate the keys, I haven't found a pattern though. Retrying the same failed operation succeeds some times.
I am running this in .Net 6 in CBL-Mariner 2.0.
from azure-sdk-for-net.
I compared our test recording and found there could be a status problem on backend.
- See our test recording of regenerating keys: https://github.com/Azure/azure-sdk-assets/blob/6f2e7f0c2ec8320d22226026a9055ccc9f14749a/net/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/tests/SessionRecords/DatabaseAccountTests/DatabaseAccountListKeysAndRegenerateKeysTest.json#L866 It returns
"status": "Enqueued"
for the 1st request. - But from the error diagnostics given in this issue, the initial response body is
{"status":"Dequeued"}
. - I checked the test recordings and found that normally the status should be
Enqueued
, thenDequeued
, thenSucceeded
. So, I'm wondering if there is something wrong on backend. That could also explain why this issue is intermittent.
Hi cosmos team,
Can you check x-ms-request-id: a7d25542-9579-44be-882b-4fc4a265c5be
to see if there is something wrong on backend? Thanks.
from azure-sdk-for-net.
@baryoloraul Is it possible you enable diagnostics on your codes? like below:
// or other listener to collect logs
using AzureEventSourceListener consoleListener = AzureEventSourceListener.CreateConsoleLogger(EventLevel.Informational);
var client = new ArmClient(new AzureDefaultCredential(), "xxxx", new ArmClientOptions()
{
Diagnostics = { IsLoggingContentEnabled = true }
});
We cannot reproduce this error. And after analyzing existing error messages, there is no clue on what was wrong. Some detailed logs are greatly appreciated. Thanks.
from azure-sdk-for-net.
Hi @baryoloraul. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
from azure-sdk-for-net.
Hi @baryoloraul, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
from azure-sdk-for-net.
Hi @baryoloraul, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
from azure-sdk-for-net.
Related Issues (20)
- [QUERY] Azure Service Bus: Time Spent in Queue is Large HOT 2
- [FEATURE REQ] Use change feed when available for Blob triggers HOT 1
- [BUG] BlobContainerClient under DataLakeFileSystemClient does not honor the audience set to DataLakeFileSystemClient HOT 1
- [BUG] EntityRecognitionSkill is deprecated, but EntityRecognitionSkillV3 is not public HOT 5
- [QUERY] "Invalid Audience" error instead of "Entity Not Found" HOT 12
- The pagesize parameter is not taken effect during the pageable operation
- Cognitive Vision Service Access Denied 401 Error
- AnalyzeDocumentFromUriAsync Does not exist HOT 5
- [BUG] OpenTelemetry Exporter for Monitor/App Insights omits LoggerRecord CategoryName HOT 3
- [BUG] Clarification on Handling Escape Characters in Azure Key Vault Secrets HOT 3
- [FEATURE REQ] Restore include options in DefaultAzureCredentialOptions. HOT 12
- [FEATURE REQ] Controlling the "type" name of an OTEL activity in Application Insights HOT 5
- [FEATURE REQ] SqlDatabaseResource.ExportAsync() / DatabaseExportDefinition to allow Managed Identity HOT 4
- Does uploading files by azure core is supported HOT 3
- [BUG] Unable to use Multipart Form data content types with Azure Core functionalities. HOT 3
- [BUG] Provisioning of zone redundant Hyperscale database with geo backup redundancy is not supported. Zone redundant Hyperscale databases must use either zone or geo zone backup redundancy. HOT 2
- Azure AI Translation Text Samples Issue HOT 1
- [QUERY] Monitoring ServiceBusProcessor HOT 7
- [QUERY] How to reproduce the dependency behavior from the app insights SDK? HOT 9
- Using LogExporter to connect to AppInsights and set message and Custom Dimensions field HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.