New to Azure

Open
#101 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, csharp
Domain
backend, cloud

Research direction

Start with Clients/AzureVirtualMachineClient.cs at lines 149 and 96, then trace the callers in BusinessLogic/UserRequestTranslatorBL.cs line 70, Workflows/VirtualMachineScheduledRequestWorkflow.cs line 83, and ScheduledRequestFunction.cs line 32. Inspect the failing Azure request and its 400 response; done means identifying the cause and documenting or implementing a verified correction.

Written by the indexing model from the issue text.

Description

Hello,

I am having an issue with getting this to work. It fails and all I see is this message, but I am not sure what it means. I've followed the instructions on Microsoft's site and found some guides but it seems its more limited for v2. And I can't seem to find anywhere that mentions this type of error.

Any assistance would be greatly appreciated.

"Message": "An error has occurred.",
"ExceptionMessage": "Response status code does not indicate success: 400 (Bad Request).",
"ExceptionType": "System.Net.Http.HttpRequestException",
"StackTrace": " at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()\r\n at StartStopAzureFunctions.Clients.AzureVirtualMachineClient.GetSubscriptionClassicVirtualMachinesAsync(String subscriptionId) in D:\a\1\s\StartStopAzureFunctions\Clients\AzureVirtualMachineClient.cs:line 149\r\n at StartStopAzureFunctions.Clients.AzureVirtualMachineClient.GetSubscriptionVirtualMachinesAsync(String subscriptionId, Boolean classicEnabled) in D:\a\1\s\StartStopAzureFunctions\Clients\AzureVirtualMachineClient.cs:line 96\r\n at StartStopAzureFunctions.BusinessLogic.UserRequestTranslatorBL.GetAccessibleVmsForSubscriptionScopesAsync(IEnumerable`1 subscriptionIds, Boolean classicEnabled) in D:\a\1\s\StartStopAzureFunctions\BusinessLogic\UserRequestTranslatorBL.cs:line 70\r\n at StartStopAzureFunctions.Workflows.VirtualMachineScheduledRequestWorkflow.StartWorkflowAsync(ScheduledRequest scheduledRequest) in D:\a\1\s\StartStopAzureFunctions\Workflows\VirtualMachineScheduledRequestWorkflow.cs:line 83\r\n at StartStopAzureFunctions.ScheduledRequestFunction.RunAsync(ScheduledRequest scheduledRequest) in D:\a\1\s\StartStopAzureFunctions\ScheduledRequestFunction.cs:line 32"
}

Dominant language
No language data
Stars
58
Forks
35
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/startstopv2-deployments

All issues in microsoft/startstopv2-deployments

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.