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

Within with wildcard match #272

Closed
BernieWhite opened this issue Aug 17, 2019 · 0 comments · Fixed by #273
Closed

Within with wildcard match #272

BernieWhite opened this issue Aug 17, 2019 · 0 comments · Fixed by #273
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@BernieWhite
Copy link
Member

Currently the Within keyword performs a match of a field against one or many objects.

The match is exact with either case sensitive or insensitive options available.

For example:

Rule 'ResourceExample' {
    Within 'ResourceType' @(
        # Compute: Batch
        'Microsoft.Batch/batchAccounts'
        'Microsoft.Batch/batchAccounts/applications'
        'Microsoft.Batch/batchAccounts/applications/versions'
        'Microsoft.Batch/batchAccounts/certificates'
        'Microsoft.Batch/batchAccounts/pools'
    )
}

Would like to do something more like:

Rule 'ResourceExample' {
    Within 'ResourceType' -Like @(
        # Compute: Batch
        'Microsoft.Batch/batchAccounts'
        'Microsoft.Batch/batchAccounts/*'
    )
}
@BernieWhite BernieWhite added the enhancement New feature or request label Aug 17, 2019
BernieWhite added a commit that referenced this issue Aug 17, 2019
@BernieWhite BernieWhite added this to the v0.9.0 milestone Aug 17, 2019
@BernieWhite BernieWhite self-assigned this Aug 17, 2019
BernieWhite added a commit that referenced this issue Aug 17, 2019
@BernieWhite BernieWhite mentioned this issue Sep 21, 2019
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant