code: def list_vms_sub(access_token, subscription_id):
      '''List VMs in a subscription.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
  
      Returns:
          HTTP response. JSON body of a list of VM model views.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/providers/Microsoft.Compute/virtualMachines',
                          '?api-version=', COMP_API])
      return do_get_next(endpoint, access_tokenf list_vms_sub(access_token, subscription_id):
      '''List VMs in a subscription.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
  
      Returns:
          HTTP response. JSON body of a list of VM model views.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/providers/Microsoft.Compute/virtualMachines',
                          '?api-version=', COMP_API])
      return do_get_next(endpoint, access_token)
docs: List VMs in a subscription.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
  
      Returns:
          HTTP response. JSON body of a list of VM model views.