What hash function does the Azure Container Instances (ACI) DNS reuse policy use?

Reuben Cummings 50 Reputation points
2024-01-18T19:28:14.47+00:00

I need to programmatically set ACI fqdn, but this is made difficult since the default DNS name reuse policy adds a random portion to the fqdn which is a hash of the DNS name and the tenant ID. If I knew the hash function I could generate the hash and thus know what the actual fqdn will be.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
669 questions
0 comments No comments
{count} votes

Accepted answer
  1. Prrudram-MSFT 22,941 Reputation points
    2024-01-22T09:35:55.63+00:00

    Hi @Reuben Cummings
    Thank you for reaching out to the Microsoft Q&A platform.

    I understand that you want to programmatically set the fully qualified domain name (FQDN) for your Azure Container Instance (ACI), but you are having difficulty doing so because the default DNS name reuse policy adds a random portion to the FQDN which is a hash of the DNS name and the tenant ID. Unfortunately, the hash function used to generate the random portion of the FQDN is not publicly documented, so it is not possible to generate the hash yourself.

    However, you can set the DNS name reuse policy to "noReuse" when creating the ACI, which will prevent the random portion from being added to the FQDN.

    Hope this helps!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful