Skip to content
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

targetScope doesn't appear to support arrays #2527

Closed
furrm opened this issue May 5, 2021 · 1 comment
Closed

targetScope doesn't appear to support arrays #2527

furrm opened this issue May 5, 2021 · 1 comment

Comments

@furrm
Copy link

furrm commented May 5, 2021

Bicep version
Bicep CLI version 0.3.255 (589f037)

Describe the bug
Declaring the target scope using an array not supported as per the bicep spec

Azure Policy Documentation "Azure Policy Definition deployments target either subscription or management group scopes."

To Reproduce
Add the following to a Bicep file containing a Policy Definition:

targetScope = [
  'managementGroup'
  'subscription'
]

VS Code Warning

Expected a value of type "'managementGroup' | 'resourceGroup' | 'subscription' | 'tenant'" but the provided value is of type "array".bicep(BCP033)

Additional context
Add any other context about the problem here.

@ghost ghost added the Needs: Triage 🔍 label May 5, 2021
@alex-frankel
Copy link
Collaborator

Closing as dup of #788, but we should try to take care of this sooner rather than later cc @majastrz / @shenglol FYI

@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants