def exists(self, resource_group, name):
for container in self.connection.container_groups.list_by_resource_group(resource_group):<EOL><INDENT>if container.name == name:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Test if a container group exists

:param resource_group: the name of the resource group
:type resource_group: str
:param name: the name of the container group
:type name: str