Not Monitored
Tag not monitored by Microsoft.
40,109 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In the deprecated SDK Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition you can set the container's DNS prefix with IWithDnsPrefix.WithDnsPrefix(String)
method. What replaced it in the new .NET SDK Azure.ResourceManager.ContainerInstance
?
I think it's in the ContainerGroupData.IPAddress Property.
Example:
var containerGroupData = new ContainerGroupData(azureLocation, listContainerInstanceContainer, containerInstanceOperatingSystemType)
{
IPAddress = new ContainerGroupIPAddress(new List<ContainerGroupPort> { new (1234) }, ContainerGroupIPAddressType.Public)
{
DnsNameLabel = yourDnsPrefix
}
};