Skip to content
Discussion options

You must be logged in to vote

Hi @jikuja,

This is not a Bicep issue, this is just how the Azure Security Center API behaves. Some APIs have intelligence built-in to handle multiple requests at once, some don't.

The way to solve this is to add the batchSize decorator. Ex:

@batchSize(1)

This will make sure the request to the Security Center API is done sequentially and not in parallel.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/file#resource-and-module-decorators

Create a loop to iterate over the plans to simplify your code.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jikuja
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rs-service
Comment options

@jikuja
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants