Has anyone successfully used the API Poller to poll Azure? I'm in desperate need of some help to get this working. Can anyone provide some information on the steps needed to successfully poll Azure (from start to finish)? Please help!
Has anyone successfully used the API Poller to poll Azure? I'm in desperate need of some help to get this working. Can anyone provide some information on the steps needed to successfully poll Azure (from start to finish)? Please help!
sturdyerde Sure thing... I have my GET request all figured out in POSTMAN. The part I am unclear on is how to do I use token based authentication (that expire) in the Solarwinds API Poller? It only uses basic username and PW based authentication.
To give more context, I followed this blog post for my authentication and to create my GET request for the Azure resources I need.
alankar.srivastava We tested it with the default scope only. I would recommend to start with default one and once you get all the data you need try to update the scope to meet your requirement.
Let us know where you ended up.
Okay, will check and let you know.
Hello Jan,
Thanks for response. We tried with default scope and now we are getting OK for https://graph.microsoft.com but getting unauthorized ,for other sub API's like for group & Users.
Request URL - https://graph.microsoft.com/v1.0/groups
Error -
Hello jan.rachwalik , serena ,
Could you please help? I opened a case with solarwinds support for help but it seems they are not providing support for deployment.
case# 00730911
Thanks,
Alankar
alankar.srivastava Sorry for the delay on my end.
Do you have Microsoft Graph permission set: Group.Read.All, Directory.Read.All ?
Yes, it is. Attached the screenshot API permissions.
Thank You jan.rachwalik . It's working now. Hope will see more enhancement on Azure monitoring to get end to end visibility about azure network connections and details.
alankar.srivastava Thanks for the info.
To sum up - for the rest of the community:
For API Poller based on https://graph.microsoft.com URL use following OAuth2.0 scope: https://graph.microsoft.com/.default
For API Poller based on https://manage.office.com URL use following OAuth2.0 scope: https://manage.office.com/.default
For API Poller based on https://management.azure.com URL use following OAuth2.0 scope: https://management.azure.com/.default
Ensure that "Access Token URL" is correct: https://login.microsoftonline.com/XYZ/oauth2/v2.0/token where XYZ is your tenant ID
Some API Poller requests require to setup additional parameters, e.g. this URL: https://management.azure.com/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/${USERGROUP_ID}/providers/Microsoft.Web/sites/${APP_NAME}/providers/microsoft.insights/metrics?interval=PT5M&metricnames=BytesSent,Http2xx,Http3xx,Http401,Http403,Http404,Http406,Http4xx,Http5xx,Requests,BytesReceived,AverageMemoryWorkingSet,AverageResponseTime&aggregation=Average,Total&api-version=2018-01-01 requires to configure following parameters:
${SUBSCRIPTION_ID}
${USERGROUP_ID}
${APP_NAME}
You can use Custom Properties (see: https://documentation.solarwinds.com/en/Success_Center/orionplatform/content/core-creating-custom-properties-sw1391.htm) or substitute given parameter with the value you needed.
To learn more about the API Poller feature, watch API Pollers: When SNMP Won't Cut It.
Update: SAM 2020.2.5 includes the ability to edit and delete credentials on the new Manage Credentials page.
Update: SAM 2020.2.5 includes the ability to edit and delete credentials on the new Manage Credentials page.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.