Azure / Azure/azure-quickstart-templates

Add ability to convert bool to int in ARM template

Open
#2,019 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

When you attempt to pass a bool value to the `int()` ARM template function you receive the following error

```
The template language function 'int' expects its first parameter to be one of the following types 'Integer, String'.
The provided value is of type 'Boolean'.
Please see http://aka.ms/arm-template-expressions for usage details.
```

Please add support for this. Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

No repository file, test, or entry point is named. First verify whether ARM template function behavior belongs in azure-quickstart-templates or the ARM/Bicep implementation, then find the existing int() behavior and tests. Done requires an agreed boolean-conversion rule and implementation coverage for passing a bool to int().

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.