-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_sentinel_alert_rule_scheduled
- remove the limit on number of entity_mapping
and sentinel_entity_mapping
#27832
Conversation
…of `entity_mapping` and `sentinel_entity_mapping`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ziyeqf, whether we remove the validation and rely on the API's validation depends on the behaviour and the error message that's returned. Does the API return a helpful error message when this limit is exceeded?
What is the correct limit for both entity_mapping
and sentinel_entity_mapping
now?
} | ||
|
||
// the max number of `sentinel_entity_mapping` and `entity_mapping` together is 5 | ||
if entityMappingCount+sentinelEntityMappingCount > 5 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has the limit for the sentinel entity mapping also been affected?
While, per further testing, it requires an API update, will close this PR and open another to upgrade the API version first. |
Community Note
Description
The limit of the number changed to 10 from 5, since the limit is on service side, can we remove the limit and let the service return that error?
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_sentinel_alert_rule_scheduled
- remove the limit on number ofentity_mapping
andsentinel_entity_mapping
[azurerm_sentinel_alert_rule_scheduled
- remove the limit on number ofentity_mapping
andsentinel_entity_mapping
#27832]This is a (please select all that apply):
Related Issue(s)
Fixes #27722
Note
If this PR changes meaningfully during the course of review please update the title and description as required.