Skip to content

BuiltIn Policy for virtual network flow log missing constraints #1522

@picccard

Description

@picccard

BuiltIn Policy DisplayName: Configure virtual network to enable Flow Log and Traffic Analytics
Policy Id: 3e9965dc-cc13-47ca-8259-a4252fd0cf7b

This issue is both in the azure policy and in the resource providers API.

The parameter retentionDays has no constraints. However setting the value to 400 results in an error in the portal. The resource provider does not have any constraints either, they allow any integer value.

Image

The parameter should be limited to any int between 0 and 365, if that is what the resource allows.

"parameters": {
  "retentionDays": {
    "type": "integrer",
    "schema": {
      "minimum": 0,
      "maximum": 365
    }    
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions