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
we tested ARM/AzurePolicies with the indexOf/ lastIndexOf functions. Both support arrays according to docs. But the vscode extension complains that only strings are supported:
"[
indexOf(
parameters('testingArray'),
'test02')
]"
Template validation failed: The template variable 'test' is not valid: The template language function 'indexOf' expects its parameters to be of type string and string. The provided value is of type 'Array' and 'String'. Please see https://aka.ms/arm-template-expressions#indexOf for usage details.. Please see https://aka.ms/arm-template-expressions for usage details.arm-template (validation)
The template is working as expected when deployed to azure.
The Azure Policy Extension has the same Bug so i expect the error somewhere deeper, but i couldn't find a Repo for the language server. So please let me know if this can be fixed for both extensions in the language server or I need to open another issue for the other extension.
Best regards
Thimo
The text was updated successfully, but these errors were encountered:
Hey,
we tested ARM/AzurePolicies with the
indexOf
/lastIndexOf
functions. Both support arrays according to docs. But the vscode extension complains that only strings are supported:We used the following template as a test:
The template is working as expected when deployed to azure.
The Azure Policy Extension has the same Bug so i expect the error somewhere deeper, but i couldn't find a Repo for the language server. So please let me know if this can be fixed for both extensions in the language server or I need to open another issue for the other extension.
Best regards
Thimo
The text was updated successfully, but these errors were encountered: