Creating markdown table for workbook - Bicep escaping #8572
-
Hello, I'm trying to create a dynamic markdown table for an Azure workbook. Because of some loop limitiations and the that the data is stored, I make use of powershell to create a string and pass the string as parameter to the bicep file. The powershell created the string: | Name | Protocols | Source adresses | Destination Addresses | Destination FQDNS | Destination Ports | \n| ------------- | ------------- | ------------- | ------------- | ------------- | ------------- | \n|Name1|TCP|0.0.0.0|0.0.0.0||8001| \n Bicep code: var workbookFirewallRules = [for rule in firewallRulesJson: { var workbookContent = { The expected string that Azure needs is the same as the created powershell string. But after the deployment bicep, arm or azure is escaping the \n to \ \n (without white space) The \n represents a enter after every row for the markdown table. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
does the following work var test = '''
I am a string
on a multiline
''' |
Beta Was this translation helpful? Give feedback.
-
Creating markdown table for workbook - Bicep escaping #8573 |
Beta Was this translation helpful? Give feedback.
Creating markdown table for workbook - Bicep escaping #8573