Describe the solution you'd like
Regarding the recommendation: upgrade-persistent-volumes-using-in-tree-drivers-to-azure-csi-drivers
It appears this could be automated using an ARG query as the resource JSON does include the properties to check. For example:
"storageProfile": {
"diskCSIDriver": {
"enabled": true
},
"fileCSIDriver": {
"enabled": true
},
Describe alternatives you've considered
An example ARG query to catch the recommendation:
resources
| where type =~ 'Microsoft.ContainerService/managedClusters'
| where properties.storageProfile.diskCSIDriver.enabled != true or
properties.storageProfile.fileCSIDriver.enabled != true or
properties.storageProfile.blobCSIDriver.enabled != true
Additional context
Doc link show example property value after enablement:
docs
Describe the solution you'd like
Regarding the recommendation: upgrade-persistent-volumes-using-in-tree-drivers-to-azure-csi-drivers
It appears this could be automated using an ARG query as the resource JSON does include the properties to check. For example:
"storageProfile": {
"diskCSIDriver": {
"enabled": true
},
"fileCSIDriver": {
"enabled": true
},
Describe alternatives you've considered
An example ARG query to catch the recommendation:
resources
| where type =~ 'Microsoft.ContainerService/managedClusters'
| where properties.storageProfile.diskCSIDriver.enabled != true or
properties.storageProfile.fileCSIDriver.enabled != true or
properties.storageProfile.blobCSIDriver.enabled != true
Additional context
Doc link show example property value after enablement:
docs