Problem:

The Publish_Biotics_Backups.bat file that runs daily to refresh our Bioics exports on AGOL has started throwing the following warning:

C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host 'pdxedu.maps.arcgis.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(

The backups are still being updated on AGOL so it isn't effecting the outcome. 


Reason:

According to this Esri issue, "this is not reproducible ... with ArcGIS Pro 3.4.0". So, this should be resolved once you upgrade ArcMap to 3.4.0. 


Solution:

Upgrade ArcMap to 3.4.0.
If that's not possible, resolve the problem by adding the following to the top of the .py file:
import warnings
from urllib3.exceptions import InsecureRequestWarning
warnings.simplefilter("ignore", InsecureRequestWarning)