question

ajiraj2411 avatar image
0 Votes"
ajiraj2411 asked SaurabhSharma-msft answered

How can we get disable policies count in Azure Security Center (ASC) Default from Rest API ?

I need to find out how many disable policies in ASC default using Rest API. PFA for Azure Console Screenshot for required data. Here my expected was disable policies are 7 in my ASC Default from my subscription97948-screenshot-2021-05-19-at-92947-pm.png.


azure-security-center
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ajiraj2411,

Thanks for using Microsoft Q&A !!
I am checking internally on this and get back to you.

Thanks
Saurabh

1 Vote 1 ·

1 Answer

SaurabhSharma-msft avatar image
0 Votes"
SaurabhSharma-msft answered

Hi @ajiraj2411,

You can try looking into Azure Policy API as this is not part of ASC REST API but I do not think any direct API can provide the information you are looking for. There are few API's available which gives you summarized data like Policy States - Summarize For Subscription Level Policy Assignment and Policy States - Summarize For Policy Set Definition but it does not gives you data you are looking for.
Also, you could look into Policy definitions for against your ASC assignment (ASC Default....).

I suggest you to please provide this as a product feedback at Azure Governance so that community can upvote and products team can include in their future release plans.

Thanks
Saurabh


Please do not forget to "Accept the answer" wherever the information provided is useful to help others in the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.