Calling Atlas Dev server from Python Azure Functions

317
0
12-01-2022 08:29 AM
Labels (2)
FC1984
by
New Contributor

Hi, I have an Azure Function written in Python 3.9 that connects to an Atlas (v 10.9.1) dev server deployed on an Azure virtual machine.

My Azure Function connects to the GIS server and creates a new user with specific credentials if it does not find it there already.

My problem: this function works ok only when it's in local debug mode (with Visual Studio Code).

Once the function is deployed to the cloud and it's triggered, I get the following error message:

 

A connection error has occurred: HTTPSConnectionPool(host=<host_url_here>, port=443): Max retries exceeded with url: /gisportal/sharing/rest/info?f=json (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe75deed5b0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

 

 

Does this mean that my function needs to first be authorised to access the server? And if so, how to do that?

0 Kudos
0 Replies