Skip to content

Conversation

Gijsreyn
Copy link
Contributor

PR Summary

This pull request adds the loadTextContent() and loadFileAsBase64() functions, along with their corresponding reference documentation.

PR Context

Fix #1189.

Comment on lines +28 to +31
> [!IMPORTANT]
> This function loads file content at compile time. The file must be accessible
> when the configuration is compiled and executed. For runtime file operations, use an
> appropriate resource.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true for bicep, but not true for DSC as we don't have a "compile" step and this function will be used at runtime. However, this does bring up an interesting problem. If this function only exists in bicep and not ARM, then a DSC config using this function would be executed at bicep compile time and thus DSC will never see the function call.

I wonder if it makes sense then to call this something else to avoid the confusion as the DSC function would execute at runtime. This is a good topic to discuss at next WG meeting.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep the PR open and put the other functions on hold as mentioned in the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Functions for filesystem operations

2 participants