Write-Error: There are duplicate target meters for the same region.

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
powershell
Domain
cloud

Research direction

Start with step 3 in Perform-RegionComparison.ps1 and inspect how it reads ..\1-Collect\resources.json and identifies target meters by region. Reproduce the run with the two tenant/subscription folders, then trace why the second input produces duplicate target meters; done means the report completes without this error for both tenants.

Written by the indexing model from the issue text.

Description

Hello,

I need to run this code for 2 tentants & different subscriptions.

I created 2 different folders to run the report.

For the first tenant it worked, but for the second tenant I get the following error.

When running step 3

3-CostInformation
.\Perform-RegionComparison.ps1 -regions $regions -outputFormat json -resourceFile ..\1-Collect\resources.json

Write-Error: There are duplicate target meters for the same region. Please report this issue to the script author.

Can you assist me in solving this.

Thx

Dominant language
PowerShell
Stars
13
Forks
17
Avg merge
3d 9h
Merged PRs (30d)
1

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.

Similar issues

More Cloud issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.