Open christopherhouse opened 1 week ago
Hey @christopherhouse ! Thank you for your suggestion. I see your point that the toolkit lacks. Creating an easy way to connect policy documents in Azure API Management with C# policy document class would help in further increasing productiveness and experience in policy document authoring.
I personally, would include that functionality with the current Azure API Management VS Code extension. At least, it looks like the place for it because all fetching, editing and deploy is already available there. We would need only to extend it to support the Policy Toolkit which would include project creation, policy document for scope creation and auto compile with optional auto deploy. @vladvino Would it be reasonable to do that?
But you mention a creation of a project. I think this is a good point that currently it is not ideal. I think, it would be reasonable to create special dotnet project template to do exactly that. This should allow seamless project kick to start and enough flexibility that it could be used manually or by VS code extension. It should be pretty easy to add that.
@mikebudzynski @juliajuju93 fyi
Proposal
I really like the direction that the policy toolkit is taking the policy authoring experience. As a C# developer, this will absolutely make me more productive in authoring policies. I think a great way to make the authoring experience even more efficient would be a VS Code extension that can automate the compilation process and even post the transpiled XML back to an API Management service instance.
This could possibly be done using the existing API Management VS Code extension. I see the user experience as something like this:
Component
Compiler
Contact Details
chhouse@microsoft.com