cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Meraki API import with Python Azure Function app

Highlighted
Conversationalist

Meraki API import with Python Azure Function app

I've been trying to use Azure functions to run the Meraki API requests with my Python script, but receive a HTTP 500 error. I suspect that this is due to the Meraki SDK not being installed on the virtual machine. Does anyone have experience with using Meraki API's with Azure function apps? If so what was you approach, and if anyone has a solution or questions on this issue please fire away!

 

Thanks!

3 REPLIES 3
Highlighted
Kind of a big deal

Re: Meraki API import with Python Azure Function app

I am assuming you are using Python. This might be a good place to start.

 

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python

 

Another place to check is the NSG rules and see if anything might be blocking.

 

Last test would be try another known more open basic API

Highlighted
Conversationalist

Re: Meraki API import with Python Azure Function app

Thanks @SoCalRacer I've tried the following, the main problem is importing Meraki with 

from meraki.meraki import Meraki
Highlighted
Kind of a big deal

Re: Meraki API import with Python Azure Function app

This will fail some times depending on where the python script file is in relation to the sdk directory.

 

The 2 options I can suggest:

 

1- Write the code on your desktop and get comfortable with the layout of the sdk and script files

2- Make sure the python script you are running is located in the root of the sdk directory

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.