def get_rm_endpoint():
rm_endpoint = os.environ.get('<STR_LIT>')<EOL>if rm_endpoint is None:<EOL><INDENT>return AZURE_RM_ENDPOINT<EOL><DEDENT>else:<EOL><INDENT>return rm_endpoint<EOL><DEDENT>
Set Azure Resource Manager endpoint by environment variable, else return default value.

    These functions facilitate the use of national and isolated clouds by allowing endpoints to
    be set dynamically. The default settings, if no environment varibles are used,
    are for public cloud.