PSRule.Rules.Azure icon indicating copy to clipboard operation
PSRule.Rules.Azure copied to clipboard

Replace resource name not working

Open Dylan-Prins opened this issue 2 years ago • 0 comments

Error:

  • Name name: The value '{{Resource.Object.Object.Object}}' does not match the expression '^[a-z0-9][a-z0-9_.-]{0,62}[a-z0-9_]$'.
var vNetName  = replace(namingConvention, '%abbr', 'vnet')

module virtualNetwork 'br/BicepFeatures:virtualnetwork:v2.2.0' = {
  name: 'virtualNetworkLZ-${nameSuffix}'
  scope: resourceGroup(resourceGroupName)
  dependsOn: [resourceGroupLZ]
  params: {
    customName: vNetName
    applicationName: ''
    environmentName: ''
    index: 1
    regionName: ''
    vNetPrefix: ['10.11.0.0/16']
    subnets: subnets
    workloadName: ''
    tags: tags
  }
}

Dylan-Prins avatar Apr 28 '23 10:04 Dylan-Prins