Skip to content

Commit

Permalink
fix no ports in container group (#1276)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Sep 29, 2021
1 parent 04a76aa commit edc5d88
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,10 @@ public IDnsConfigFork WithNetworkProfileId(string subscriptionId, string resourc
ContainerGroupNetworkProfile containerGroupNetworkProfile = new ContainerGroupNetworkProfile();
containerGroupNetworkProfile.Id = networkProfileId;
this.Inner.NetworkProfile = containerGroupNetworkProfile;
if (this.Inner.IpAddress == null)
if (this.Inner.IpAddress != null)
{
this.Inner.IpAddress = new IpAddress();
this.Inner.IpAddress.Type = ContainerGroupIpAddressType.Private.ToString();
}
this.Inner.IpAddress.Type = ContainerGroupIpAddressType.Private.ToString();
return this;
}

Expand Down

0 comments on commit edc5d88

Please sign in to comment.