You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running arm-ttk tests locally, I noticed an error [-] URIs Should Be Properly Constructed (17 ms) Function 'concat' found within 'LogAnaltyicsUri' Line: 95, Column: 6 Function 'concat' found within 'LogAnaltyicsUri' Line: 101, Column: 6
But looking into the branch, lots of other users have contributed with the above format itself, I dont know why this fails.
I tried using a different approach,
"LogAnaltyicsUri": "[format('https://%s.ods.opinsights.azure.com', parameters('AzureSentinelWorkspaceId'))]",
This too led to the following error, Function 'format' found within 'LogAnaltyicsUri' Line: 95, Column: 6
@ashwinvenkatesha, the problem is manual construction of variables that have 'url' or 'uri' contained in the name must have been formed used uri() which would not work for your use case as you create the URI yourself; one workaround for you simply remove uri from your variable name.
A real problem here that does need to be solved is the following Bicep:
Though primaryEndpoints.blob is a URI, it is converted by bicep into something TTK deems unsafe. The problem is uri() is used to construction URI's with path components and so I am unable to see how to fix this problem.
Here, is the variable in use
`"variables" : {
"LogAnaltyicsUri":"[replace(environment().portal, 'https://portal', concat('https://', toLower(parameters('WorkspaceId')), '.ods.opinsights'))]"
}`
While running arm-ttk tests locally, I noticed an error
[-] URIs Should Be Properly Constructed (17 ms) Function 'concat' found within 'LogAnaltyicsUri' Line: 95, Column: 6 Function 'concat' found within 'LogAnaltyicsUri' Line: 101, Column: 6
But looking into the branch, lots of other users have contributed with the above format itself, I dont know why this fails.
I tried using a different approach,
"LogAnaltyicsUri": "[format('https://%s.ods.opinsights.azure.com', parameters('AzureSentinelWorkspaceId'))]",
This too led to the following error,
Function 'format' found within 'LogAnaltyicsUri' Line: 95, Column: 6
I am creating this as an issue based on my initial question over here https://learn.microsoft.com/en-us/answers/questions/1660160/arm-ttk-validation-help?comment=question#newest-question-comment
The text was updated successfully, but these errors were encountered: