Skip to content

[QUERY] Is it possible to set DnsNameLabelReusePolicy/autoGeneratedDomainNameLabelScope during creation of a new ContainerGroup? #42341

Open

Description

Query/Question
Is it possibe to explicitly set a value for the member autoGeneratedDomainNameLabelScope of IpAddress during the creation of a ContainerGroup when using the fluent creation style shown below?
If this currently isn't possible, what would be feasible workarounds in the context of the usage of Java?

  ContainerGroup containerGroup = azureResourceManager.containerGroups().define(aciName)
      .withRegion(Region.US_WEST)
      .withNewResourceGroup(rgName)
      .withLinux()
      .withPublicImageRegistryOnly()
      .withoutVolume()
      .defineContainerInstance(aciName + "-1")
          .withImage(containerImageName1)
          .withExternalTcpPort(80)
          .withCpuCoreCount(.5)
          .withMemorySizeInGB(0.8)
          .attach()
      .defineContainerInstance(aciName + "-2")
          .withImage(containerImageName2)
          .withoutPorts()
          .withCpuCoreCount(.5)
          .withMemorySizeInGB(0.8)
          .attach()
      .withRestartPolicy(ContainerGroupRestartPolicy.NEVER)
      .withDnsPrefix(aciName)
      .create();

(Source: https://github.com/Azure-Samples/aci-java-create-container-groups/blob/master/src/main/java/com/azure/resourcemanager/containerinstance/samples/ManageContainerInstanceWithMultipleContainerImages.java#L45C1-L65C27)

Why is this not a Bug or a feature Request?
Depending on the answer or simple workarounds, a feature request might result from this.

Setup (please complete the following information if applicable):

  • Library/Libraries: com.azure.resourcemanager:azure-resourcemanager:2.43.0

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Query Added
  • Setup information Added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

ARMMgmtThis issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions