public ContainerGroup Duplicate() { var newContainerGroupName = ACIUtils.GetContainerGroupNameForAppName(ACIUtils.GetAppNameFromContainerGroupName(Name)); var newContainerGroup = new ContainerGroup(newContainerGroupName, _location, ""); foreach (var container in _containers) { newContainerGroup.AddContainer(container); } return(newContainerGroup); }
public void AddContainerGroup(ContainerGroup containerGroup) { _nextContainerIndex = 0; _containerGroups.Add(containerGroup); }