azure-policy icon indicating copy to clipboard operation
azure-policy copied to clipboard

"[Preview]: Configure Azure Kubernetes Service clusters to enable Defender profile" uses old API version

Open jyama4ta opened this issue 2 years ago • 1 comments

"[Preview]: Configure Azure Kubernetes Service clusters to enable Defender profile" uses old API version "2015-11-01-preview". As the result, when we apply this policy, it will be failed because we can not create LA workspace by "2015-11-01-preview" for now.

https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Kubernetes/ASC_Azure_Defender_Kubernetes_AKS_SecurityProfile_Deploy.json#L187

Please update the policy to use newer API version.

Details of the scenario you tried and the problem that is occurring

N/A

Verbose logs showing the problem

N/A

Suggested solution to the issue

update the apiVersion to "2021-06-01" or newer.

If policy is Guest Configuration - details about target node

N/A -->

jyama4ta avatar Apr 13 '22 05:04 jyama4ta

Adding @fseldow to please address the above question

nehakulkarni123 avatar Apr 15 '22 21:04 nehakulkarni123