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.

Add support for Azure Regions

See original GitHub issue

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Operating System:

    • Ubuntu 18.04, Node 14
  • Browser:

    • N/A, using CLI
  • Using Azure by setting the connection details in the .env file.

Expected Behavior

Expected to receive a report based on the Azure usage.

Actual Behavior

Error message.

EstimationRequestValidationError: Not a valid region for this account
    at new EstimationRequestValidationError (/home/{redacted}/cloud-carbon-footprint/packages/common/src/Errors.ts:13:5)
    at validate (/home/{redacted}/cloud-carbon-footprint/packages/app/src/CreateValidRequest.ts:66:11)
    at Object.CreateValidFootprintRequest (/home/{redacted}/cloud-carbon-footprint/packages/app/src/CreateValidRequest.ts:134:3)
    at Object.<anonymous> (/home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:54:29)
    at step (/home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:52:23)
    at (/home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:33:53)
    at /home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:27:71
    at new Promise (<anonymous>)
    at __awaiter (/home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:23:12)
    at Object.cli [as default] (/home/{redacted}/cloud-carbon-footprint/packages/cli/src/cli.ts:89:12)

To Reproduce

  • Configure for Azure
  • run yarn start-cli --startDate 2021-08-03 --region "AustraliaEast" --groupBy service --format csv --endDate 2021-08-04

Additional Information

The following code in CreateValidRequest.ts shows that the system only references AWS regions.

  if (region && !contains(region, values(configLoader().AWS.CURRENT_REGIONS))) {
    errors.push('Not a valid region for this account')

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

ghostcommented, May 23, 2022

Pretty sure that I just hardcoded some values to get around this, but haven’t touched the project in a long time. Sorry I can’t help further.

ericksodcommented, May 23, 2022

Hi @LvffY ! Yes, it is the same issue as #592 , which has been added to the project and planning board with more specific requirements. I’ll close this one to avoid confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Products available by region
View Azure products and features available by region. Azure makes it easy to choose the datacenter and regions right for you and your...
Read more >
Choose the Right Azure Region for You
Each Azure geography contains one or more regions and meets specific data ... Overview; Geographies; Choose your region; Customer stories; New regions ......
Read more >
What are Azure regions and availability zones?
Azure regions and availability zones are designed to help you achieve reliability for your business-critical workloads.
Read more >
Azure region access request process
Reserved access regions · In the New support request page, complete the following: In Issue Type, select Service and subscription Limit (quotas).
Read more >
Azure services that support availability zones
Azure regions with availability zone support ; Central US, North Europe, Japan East ; East US, Norway East, Korea Central.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found