Azure / Azure/bicep

Add option to gzip file in loadFileAsBase64 function

Open
#8,794 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

**Is your feature request related to a problem? Please describe.**
Azure VM Custom Script extension can take a gzip-compressed base64 encoded script file as input.
Currently, while loading file as base64 we're limited by the maximum length of a string literal. If we prior compress the file with gzip we'll be able to load larger files in the template

**Describe the solution you'd like**
I'd like to have an optional parameter in `loadFileAsBase64` where I could specify if file should be compressed before converting to base64 or not. default value would be false.

Contributor guide

Open the contributing guide

Research direction

Start by locating the loadFileAsBase64 function in the Bicep codebase and inspect how it currently loads and encodes files. The work is complete when an optional compression choice supports the Azure VM Custom Script extension use case while leaving the default behavior unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.