Add support for Azure Regions
See original GitHub issuePreflight 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.
/home/{redacted}/cloud-carbon-footprint/packages/common/src/Errors.ts:13
super(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 Object.next (/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:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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.