Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.21k stars 746 forks source link

New linter rules for storage account best practices #8725

Open stan-sz opened 1 year ago

stan-sz commented 1 year ago

There's a set of best-practive property values for new storage accounts that should be set explicitly to overwrite the ARM template defaults:

resource storageAccount 'Microsoft.Storage/storageAccounts@2019-04-01' = {
  /*...*/
  kind: 'StorageV2'
  properties: {
    allowBlobPublicAccess: false
    supportsHttpsTrafficOnly: true
    minimumTlsVersion: 'TLS1_2'
  }
}

The issue is about creating a new linter rule to remind about these settings.

StephenWeatherford commented 1 year ago

Entered https://github.com/Azure/bicep/issues/8867 to update snippet for this.

StephenWeatherford commented 1 year ago

@asilverman FYI