Skip to content

[AVM Module Issue]: avm/res/container-instance/container-group autoGeneratedDomainNameLabelScope paramter usage #3501

Open
@jikuja

Description

@jikuja

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

Module Name

avm/res/container-instance/container-group

(Optional) Module Version

No response

Description

Module autoGeneratedDomainNameLabelScope and dnsNameServers has really weird interaction

      ipAddress: {
        type: ipAddressType
        autoGeneratedDomainNameLabelScope: !empty(dnsNameServers) ? autoGeneratedDomainNameLabelScope : null
        dnsNameLabel: dnsNameLabel
        ports: ipAddressPorts
      }
@description('Optional. Specify level of protection of the domain name label.')
@allowed([
  'Noreuse'
  'ResourceGroupReuse'
  'SubscriptionReuse'
  'TenantReuse'
  'Unsecure'
])
param autoGeneratedDomainNameLabelScope string = 'TenantReuse'

@description('Optional. The Dns name label for the resource.')
param dnsNameLabel string?

@description('Optional. List of dns servers used by the containers for lookups.')
param dnsNameServers array?

Why usage of domain label protection level requires parameter dnsNameServers?

Also documentation should mention autoGeneratedDomainNameLabelScope condition if dnsNameServers is needed. Now template's default setting of autoGeneratedDomainNameLabelScope is being ignored unless dnsNameServers is configured.

(Optional) Correlation Id

No response

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status

    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions