Hi
I'm trying to create a $filter for the "List Resources by Subscription" Azure Connector. The reason I need to filter this is because the results are more than 5000 and are getting paginated, and because of that I'm losing data.
However, no matter what I do, I get an "Invalid $filter"
According to documentation, List Resources by Subscription should return a ResourceListResult, with the following values
Name Path Type Description
value | value | array of GenericResource | The list of resources. |
Next Link | nextLink | string | The URL to get the next set of results. |
This is the Schema autogenerated from the response:
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"Pragma": {
"type": "string"
},
"x-ms-ratelimit-remaining-subscription-reads": {
"type": "string"
},
"x-ms-request-id": {
"type": "string"
},
"x-ms-correlation-request-id": {
"type": "string"
},
"x-ms-routing-request-id": {
"type": "string"
},
"Strict-Transport-Security": {
"type": "string"
},
"X-Content-Type-Options": {
"type": "string"
},
"Timing-Allow-Origin": {
"type": "string"
},
"x-ms-apihub-cached-response": {
"type": "string"
},
"Cache-Control": {
"type": "string"
},
"Date": {
"type": "string"
},
"Content-Length": {
"type": "string"
},
"Content-Type": {
"type": "string"
},
"Expires": {
"type": "string"
}
}
},
"body": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"location": {
"type": "string"
},
"tags": {
"type": "object",
"properties": {
"Application": {
"type": "string"
},
"Team": {
"type": "string"
},
"Environment": {
"type": "string"
}
}
},
"sku": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"tier": {
"type": "string"
}
}
},
"managedBy": {
"type": "string"
},
"kind": {
"type": "string"
},
"identity": {
"type": "object",
"properties": {
"principalId": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"type": {
"type": "string"
}
}
}
},
"required": [
"id",
"name",
"type",
"location"
]
}
},
"nextLink": {
"type": "string"
}
}
}
}
}
I want to filter by "type", where type equals a specific value.
Example:
type equals Microsoft.Compute/virtualMachines
I've tried (and failed):
type eq "value"
type eq 'value'
body/properties/value/items/properties/type eq value
properties/value/items/properties/type eq value
value/items/properties/type eq value
items/properties/type eq value
properties/type eq value
I'm running out of options and I don't know any other way of solving the pagination....