FOPTS-6034 Make Azure New Marketplace Products Policy Support MSP Configurations #2920
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
We changed the method used to obtain the bill connections, now instead of calling the bill-connects API we fetch cost data and get the bill connections from there, this change is required since MSP customers have a different way of configuring their bill connects, and that method would make the policy fail.
This also adds support for MCA connections.
Code change used here is based on already tested code for policy template Azure Savings Realized from Reservations.
Issues Resolved
Link to Example Applied Policy
Contribution Check List
IMPORTANT ❗❗❗
Please ignore the following message:
The linter is not able to tell that the script that this datasource uses puts the parameters according to the rule we have: