def create_affinity_group(self, name, label, location, description=None):
_validate_not_none('<STR_LIT:name>', name)<EOL>_validate_not_none('<STR_LIT:label>', label)<EOL>_validate_not_none('<STR_LIT:location>', location)<EOL>return self._perform_post(<EOL>'<STR_LIT:/>' + self.subscription_id + '<STR_LIT>',<EOL>_XmlSerializer.create_affinity_group_to_xml(name,<EOL>label,<EOL>description,<EOL>location))<EOL>
Creates a new affinity group for the specified subscription.

name:
    A name for the affinity group that is unique to the subscription.
label:
    A name for the affinity group. The name can be up to 100 characters
    in length.
location:
    The data center location where the affinity group will be created.
    To list available locations, use the list_location function.
description:
    A description for the affinity group. The description can be up to
    1024 characters in length.