Skip to content

Conversation

@detienne20
Copy link
Contributor

Description

Customer reported template specs issue (Azure/template-specs#37) where the contents of multiline strings were replaced with #Azure CLI#. This was the result of the _remove_comments_from_json function used to process the template input. This function is typically used in deployments for processing template inputs; multiline strings are processed to prompt for parameters. The full functionality is not needed for creating a template spec from a template input therefore the function has been replaced by process_template_spec in _packing_engine.py.

Example:

Template Input:
{
"variables": {
"myVar": "[if(equals(parameters('kind'), ''),
variables('resources')[variables('provider')][variables('resourceType')],
variables('resources')[variables('provider')][variables('resourceType')][parameters('kind')]))]"
}
}

Template Specs Created:
{
"variables": {
"myVar": "#Azure Cli#"
}
}

Testing Guide
az ts create -g resource_group --name Issue37 -v 1.0 -l westus --template-file original.json

--> Multiline strings starting on lines 2644, 2657, and 2661 should not be replaced by "#Azure CLI#"

-->Can compare template spec created with postTsCreation.json (showcases issue).

Issue37Templates.zip

dkmiller and others added 30 commits April 27, 2020 16:13
…e stamp added to deployment_name, excess file removed in commit, launch,json reverted
jiasli and others added 13 commits October 29, 2020 11:37
* [Compute] Fix update permission check issue

* Fix vmss update instance with image version
… cosmosdb, dls, hdinsight, policyinsights, iot, role, security, servicefabric (#15710)

* fix aks tests

* fix advisor

* fix appconfig

* cognitiveservices

* fix cosmosdb

* fix dls tests

* fix hdinsight

* fix policyinsights tests

* fix iot tests

* fix role tests

* fix security tests

* clean up resource

* fix servicefabric tests

* revert domain change
* index.html

* history

* Commit mode condition

* fix date and time

* azdev

* azdev

* module db

* db

* db

* db

* db

* add retry

* retry

* revert

* Remove iotcentral

* Support testing Azure CLI extensions

* fix syntax error

* log

* command order

* Improve index.html. Move report link inside table.

* Display number of tests in link name.

* remove duplicate reports

* decrease maxParallel to 5

* Fix a small problem of job condition.
* feat: ephemeral os functionality for aks

* fix: unused import

* fix: typo
@detienne20 detienne20 changed the title [ARM] Hotfix: Multiline Strings No Long [ARM] Hotfix: Multiline Strings Supported For Template Inputs Nov 2, 2020
@detienne20 detienne20 changed the title [ARM] Hotfix: Multiline Strings Supported For Template Inputs [ARM] Hotfix: Template Specs Multiline Strings Supported For Template Inputs Nov 2, 2020
@detienne20 detienne20 changed the title [ARM] Hotfix: Template Specs Multiline Strings Supported For Template Inputs {Release} Hotfix: Template Specs Multiline Strings Supported For Template Inputs Nov 2, 2020
@detienne20 detienne20 changed the title {Release} Hotfix: Template Specs Multiline Strings Supported For Template Inputs {Release} Hotfix: TS Multiline Strings Support for Template Inputs Nov 2, 2020
@detienne20 detienne20 changed the title {Release} Hotfix: TS Multiline Strings Support for Template Inputs {Release} Hotfix: TS Multiline String Support for Template Inputs Nov 2, 2020
@detienne20 detienne20 marked this pull request as draft November 2, 2020 16:31
@detienne20 detienne20 changed the base branch from dev to release November 2, 2020 16:32
@yonzhan yonzhan requested a review from jsntcy November 2, 2020 22:24
@yonzhan yonzhan added this to the S178 milestone Nov 2, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented Nov 2, 2020

TS Multiline String Support

@zhoxing-ms
Copy link
Contributor

What is the relationship between this PR and #15760?

@detienne20 detienne20 closed this Nov 3, 2020
@detienne20 detienne20 deleted the daetienn/ExpressionsIssue37 branch December 2, 2020 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.