'Update tags on any resource supporting tags.
:param name: Name of the network security group to create
:type name: ``str``
:param resource_group: The resource group to create the network
security group in
:type resource_group: ``str``
:param location: The location at which to create the network security
group (if None, use default location specified as \'region\' in __init__)
:type location: :class:`.NodeLocation`'

def ex_create_network_security_group(self, name, resource_group, location=None):

    if ((location is None) and self.default_location):
        location = self.default_location
    else:
        raise ValueError('location    is    required.')
    target = ('/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/networkSecurityGroups/%s' % (self.subscription_id, resource_group, name))
    data = {'location': location.id}
    self.connection.request(target, params={'api-version': '2016-09-01'}, data=data, method='PUT')
