def create_public_ip(access_token, subscription_id, resource_group, public_ip_name, dns_label,<EOL>location):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', resource_group,<EOL>'<STR_LIT>', public_ip_name,<EOL>'<STR_LIT>', NETWORK_API])<EOL>ip_body = {'<STR_LIT:location>': location}<EOL>properties = {'<STR_LIT>': '<STR_LIT>'}<EOL>properties['<STR_LIT>'] = {'<STR_LIT>': dns_label}<EOL>ip_body['<STR_LIT>'] = properties<EOL>body = json.dumps(ip_body)<EOL>return do_put(endpoint, body, access_token)<EOL>
Create a public ip address.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        public_ip_name (str): Name of the new public ip address resource.
        dns_label (str): DNS label to apply to the IP address.
        location (str): Azure data center location. E.g. westus.

    Returns:
        HTTP response. Public IP address JSON body.