Skip to content

BCP036 throwing for valid value in Storage resource #6787

Open

Description

Bicep version
Bicep CLI version 0.6.1 (73193aa)

Describe the bug
According to the documentation, valid values for the bypass parameter are "any combination of Logging,Metrics,AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics."

The linter rule and Intellisense both throw a warning that 'AzureServices,Logging,Metrics' is invalid and that it should be any single one of the values, not all of the above.

To Reproduce
Steps to reproduce the behavior:

The following will get you a yellow squiggly in VS Code and a warning BCP036 at build:

resource SA 'Microsoft.Storage/storageAccounts@2021-04-01' = {
  //...
  properties: {
    networkAcls: {
      bypass: 'AzureServices,Logging,Metrics'
      //...
    }
  }
}

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions