-
Notifications
You must be signed in to change notification settings - Fork 728
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
Create error when using a resource id/name when using symbolic name templates #14100
Comments
The following should be blocked with an error for symbolic name templates, because it will error during deployment: listAccountSAS(storageAccount.name, '2023-01-01', { ... }) The following is still technically valid in symbolic name templates, but not optimal. Ideally it would just raise a warning, but could be an error if it's too complex to differentiate: listAccountSAS(storageAccount.id, '2023-01-01', { ... }) |
@stephaniezyen to answer this question - the latter is correct - we are trying to recommend: // here we're using a resource reference
storageAccount.listAccountSAS('2023-01-01', { ... }) Instead of: // here we're using a resource id
listAccountSAS(storageAccount.id, '2023-01-01', { ... }) |
As discussed in #12906 , we should create an error when using ".name" or ".id in symbolic name templates when using the listAccountSAS function:
Include a link to documentation on symbolic name templates
The text was updated successfully, but these errors were encountered: