Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Python Script File For Sentinel Azure Function

SS
Regular Contributor
Regular Contributor

Hi,

Is there a python script file available of the script to create Azure functions provided in the Sentinel integration guide which we can download?

Thank you.

3 REPLIES 3

SS
Regular Contributor
Regular Contributor

@adarshk my ask is a bit different. Thank you for your inputs.

rushikeshvartak
All-Star
All-Star

Sample

import logging
import azure.functions as func

def main(req: func.HttpRequest) -> func.HttpResponse:
logging.info('Python HTTP trigger function processed a request.')

name = req.params.get('name')
if not name:
try:
req_body = req.get_json()
except ValueError:
pass
else:
name = req_body.get('name')

if name:
return func.HttpResponse(f"Hello, {name}. This HTTP triggered function executed successfully.")
else:
return func.HttpResponse(
"Please pass a name on the query string or in the request body",
status_code=400
)


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.