Skip to content

Instantly share code, notes, and snippets.

View Basssiiie's full-sized avatar

Basssiiie

  • The Netherlands
  • 20:44 (UTC +02:00)
View GitHub Profile
@Basssiiie
Basssiiie / what-if.mjs
Last active June 3, 2024 06:50
az deployment what-if workaround for skipping reference()
/*
* Workaround for issue:
* https://github.com/Azure/arm-template-whatif/issues/157
*
* This script will evaluate various ARM functions in your Bicep/ARM template and replace them with hardcoded values where possible.
*
* 1. Converts Bicep templates to a single ARM template using `az bicep decompile`.
* 2. Parses ARM template as JSON.
* 3. Uses `eval()` to attempt to evaluate ARM functions in fields that have them.
* 4. References will either:
@Basssiiie
Basssiiie / .gitignore
Last active September 25, 2018 15:08
Unity .gitignore
###
# Unity folders and files
###
[Aa]ssets/AssetStoreTools*
[Bb]uild
[Ll]ibrary/
[Ll]ocal[Cc]ache/
[Oo]bj/
[Tt]emp/
[Uu]nityGenerated/