Closed sajudaniel closed 5 years ago
The logic is not wrong. The given policy aims to scan networkInterface resource type, then retrieve its fields namely ipconfigurations along with associated PIP if any. Still with ipconfigurations, it tries to access to subnet field. You need to populate a list of subnets in format of resource ID (e.g /subscriptions/{subscription_id}/resourcegroups/{resource_group)/providers/microsoft.network/virtualnetworks/{vnet}/subnets/{subnet-name}
The description of the subnetIds parameter gives an example of what it is expected. It is expecting a list of subnet IDs. I will update the display name of the parameter to better reflect that.
It looks like
needs the ID of the subnets to be passed and NOT a list of subnets as the document suggests. Please review and amend the logic OR the doc to maintain functionality. Regards, Saju