-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzOps Pull – Bicep #523
Comments
Hi guys, any update on this one? |
Moving forward our long-term plans are in the following direction: To expand AzOps capabilities by enabling Bicep file generation confidently with existing Pull operation (dependent on Bicep CLI) we have spent a few cycles experimenting with the bicep decompile workflow. We need the use of AzOps to be predictable/reliable to avoid a flood of community issues due to uncertainty in decompile quality and cause. The main challenge we see pivots around the “best-effort” nature in the chain of “two” decompile events:
AzOps journey to add bicep support for the Pull operations hinges on the following items:
The “best-effort” nature becomes less of an issue with the addition of establishing a baseline testing for popular resource providers and the AzOps community just as always can raise issues and introduce new providers. Why not just test all the resource providers in Azure?
|
I think that we should look into using the "insert resource" function that's available in Bicep here. It will export the resource and clean up the template based on the Bicep type system to make sure that read-only properties and other noise is removed. At the moment it's only available in the VSCode extension, but it can be added to Bicep CLI as well. There is a feature request open to add it but it is not top priority at the moment, Azure/bicep#5696. In my opinion I would say that a baseline of most used resource types that should be prioritized can be skipped. If the export of a bicep template/decompile fails we could fallback to exporting an ARM template instead of Bicep. |
I really like this suggestion by @StefanIvemo (although I would prefer |
I did not come across your comment before now, but this would be preferred. Using inbuilt logic from the binary would be to considerate as the most optimal. I will highlight this for the Bicep-team (as you have done), but their backlog is huge. Utilizing this, it will save AzOps team for creating and maintaining all the logic at least.. Sidenote: Be able to prioritze Run what-if against compiled bicep file > Would really be to get "rid off" (dream) human interaction with |
Update AzOps Pull to pull the exported templates in Bicep, is an added option to give customer more flexibility.
The text was updated successfully, but these errors were encountered: