kmanjt
DefaultAzureCredential Saying AZ CLI is not installed when it is
can anyone please help me fix DefaultAzureCredential not using the AZ CLI locally? its saying its not installed when I run in Visual Studio
reason for that is the Visual Studio Credential is not working for me because I login to the Azure Portal through GitHub
3 replies
Azure DevOps Pipelines: Environment Variables Not Available in dotnet test Command
I'm using Azure DevOps and have an AzureCLI task set up to run integration tests with the
dotnet test
command. I'm encountering an issue where environment variables set in the task do not seem to be available when dotnet test
is executed.
Here is the relevant part of my pipeline configuration:
The variables like TENANT_ID are set using ##vso[task.setvariable] and also attempted to be set in the script's session scope using $env: for use in the same script. However, these variables do not seem to be accessible or correctly passed to the dotnet test command.
What could be causing this issue, and how can I ensure that these environment variables are correctly passed to and accessible by the dotnet test command within the same Azure CLI task?3 replies
How to Override CosmosClient Configuration in WebApplicationFactory for Integration Testing
Hi everyone,
I'm trying to override the CosmosClient configuration in my Program.cs for my integration tests using WebApplicationFactory, but I'm running into issues. Here's the relevant code from Program.cs:
I tried removing the existing CosmosClient service like this, but it doesn't seem to work:
1 replies
Testcontainers CosmosDB / WebApplication Factory ConnectionString Not Working
anyone familiar with WebApplicationFactory / Testcontainers?
The below is giving me
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
someone mentioned ports earlier?29 replies
Resolving External $ref Paths With Nested Refs in NSwag for OpenAPI Specification in C#
When attempting to generate the C# client, I encounter errors like System.InvalidOperationException: Could not resolve the path '#/components/schemas/SomeSchema'. This error suggests that NSwag cannot resolve the external references, even though the paths are correctly specified.
Here is what the ref looks like:
EDIT: Here is an example of the SomeSchema definition - the issue are the nested references I believe:
Has anyone successfully resolved external $ref paths with nested schemas using NSwag?
2 replies
NetArchTests Not Detecting Project References
anyone here familiar with netarchtests? I am trying to enforce clean architecture, and for some reason, it is not detecting project references:
The above test should fail, but isnt -- note: assume namespace strings are correct
2 replies
Resolving External Components with Nested Components in NSwag for OpenAPI specs
I am using NSwag to generate a C# client from an OpenAPI spec
I want this spec to reference an external component schema which has nested references in its own file, but I have not been able to resolve the nested components
The paths are correct, and when I simplify the ref to not have nested references that does work
Please help thank you
2 replies
Programmatically issue API Management Subscription Keys
Hello, does anyone know how (or where I can learn about) programmatically issuing / managing Azure API management subscription keys in .NET?
My current idea is that users authenticated via JWT can hit an endpoint to receive a subscription key to interact with the APIs programmatically
Thank you
6 replies
situation where the response to an InfluxDB query can be huge (10+ MB easily)
hello I have a situation where the response to an InfluxDB query can be huge (10+ MB easily), which is going into a single list object like so: List<Metric> metrics = await _influxDBService.MachineRead(sql, "metrics"); - this is creating a memory leak and memory fragmentation
please what approach could I take to mitigate this
22 replies