Open tusharshahrs opened 3 years ago
Hey @tusharshahrs
We get examples from the Azure Open API specs repo and convert them to Pulumi examples. Usually, a missing example in our docs means there is no example in the source repo. For example, I don't see any examples for WebApp here: https://github.com/Azure/azure-rest-api-specs/tree/master/specification/web/resource-manager/Microsoft.Web/stable/2020-12-01/examples
Do you suggest us starting creating additional examples manually? Or maybe you know another source?
We can close this issue as we depend on Azure Open API specs and the examples don't exist there yet.
I think we should leave this issue open? At the end of the day, this impacts our end user experience. For example, could we open up issues upstream to suggest they include examples for proper usage of those underlying APIs? I could also imagine something along the lines of tracking each resource that's missing examples to see if community members feel like we need examples for those resources or hand-implementing the examples ourselves after some time if the upstream repo never includes them? @mikhailshilkov what do you think?
could we open up issues upstream to suggest they include examples for proper usage of those underlying APIs?
We should chat with Azure folks about this. We can open the issues, of course, but I'd love to understand if they have any policies for this.
tracking each resource that's missing examples
We can generate this list from the schema. I'm not yet sure how to use it.
hand-implementing the examples ourselves
This would be fairly low on the impact/effort scale for us. I think we should rather search for more sources of examples. ARM Templates? Somehow get the grip of successful requests that our users are making (with some sort of consent)?
So I've gone through all the modules now and got a more concise list of resources without examples:
Let me know if you want this in another format or the spreadsheet I've got this in
Thank you for this work @pierskarsenbarg
It looks like web
is the most problematic and highly used module. Also, we are missing examples for our own mixin resources in storage
.
Problem description
Azure Native has multiple resources that are missing examples in ALL the languages.
Blob WebApp WebAppSlot WebAppFunction WorkspaceCollection Job AttestationProvider
Contrast this with SecurityRules which HAS examples in ALL languages.
Suggestions for a fix
Have examples generated for the missing ones.