Skip to content
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

Decompiler inaccurately converts template with 'format()' function #5881

Closed
anthony-c-martin opened this issue Feb 5, 2022 · 0 comments · Fixed by #5887
Closed

Decompiler inaccurately converts template with 'format()' function #5881

anthony-c-martin opened this issue Feb 5, 2022 · 0 comments · Fixed by #5887

Comments

@anthony-c-martin
Copy link
Member

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "variables": {
        "foo": "abc",
        "bar": "[format('{0}', guid(subscription().id, 'xxxx', variables('foo')))]",
        "abc": "[format('{0}', guid('blah'))]"
    }
}

Gets converted to:

var foo = 'abc'
var bar = '${subscription().id}xxxx${foo}'
var abc = 'blah'

Note that the guid function is not present in the output.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant