I want to fetch user principal IDs from Azure and then cache them so I don't have to call azure every time to get what is going to be essentially static data. What is the best way to approach this? The lookup is not entirely ideal because I already need to have the principal ID for that to work: https://www.pulumi.com/registry/packages/azuread/api-docs/user/#look-up
I can make a dynamic resource which loads based on the principal name, but I'm not sure if that is the right thing to do either.
I suspect that a dynamic resource would be the only real option unless I want to do it entirely independently of Pulimi