def create_nsg(access_token, subscription_id, resource_group, nsg_name, location):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', resource_group,<EOL>'<STR_LIT>', nsg_name,<EOL>'<STR_LIT>', NETWORK_API])<EOL>nsg_body = {'<STR_LIT:location>': location}<EOL>body = json.dumps(nsg_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create network security group (use create_nsg_rule() to add rules to it).

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        nsg_name (str): Name of the new NSG.
        location (str): Azure data center location. E.g. westus.

    Returns:
        HTTP response. NSG JSON body.