code: def export_template(access_token, subscription_id, rgname):
      '''Capture the specified resource group as a template
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourcegroups/', rgname,
                          '/exportTemplate',
                          '?api-version=', RESOURCE_API])
      rg_body = {'options':'IncludeParameterDefaultValue', 'resources':['*']}
      body = json.dumps(rg_body)
      return do_post(endpoint, body, access_tokenf export_template(access_token, subscription_id, rgname):
      '''Capture the specified resource group as a template
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourcegroups/', rgname,
                          '/exportTemplate',
                          '?api-version=', RESOURCE_API])
      rg_body = {'options':'IncludeParameterDefaultValue', 'resources':['*']}
      body = json.dumps(rg_body)
      return do_post(endpoint, body, access_token)
docs: Capture the specified resource group as a template
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          rgname (str): Azure resource group name.
  
      Returns:
          HTTP response. JSON body.