Author: Sreedhar Ande
This Function App calls the Qualys Vulnerability Management (VM) - KnowledgeBase (KB) API (https://www.qualys.com/docs/qualys-api-vmpc-user-guide.pdf) to pull vulnerability data from the Qualys KB.
V2.0
-
User can select date for first ingestion - From date to pull vulnerability data from the Qualys KB
-
User can change Azure function trigerring schedule
-
Store Qualys API Password and Log Analytics Workspace Primary/Secondary Key in Azure KeyVault
-
Select the preferred Subscription, Resource Group and Location
Note
Best practice : Create new Resource Group while deploying - all the resources of your custom Data connector will reside in the newly created Resource Group -
Enter parameters value in the ARM template while deployment
-
Qualys API Password and Log Analytics Workspace Key will be placed as "Secrets" in the Azure KeyVault
<<Function App Name>><<uniqueid>>
with only Azure Function access policy. If you want to see/update these secrets,a. Go to Azure KeyVault `<<Function App Name>><<uniqueid>>` b. Click on "Access Policies" under Settings c. Click on "Add Access Policy" i. Configure from template : Secret Management ii. Key Permissions : GET, LIST, SET iii. Select Prinicpal : <<Your Account>> iv. Add d. Click "Save"
-
The
TimerTrigger
makes it incredibly easy to have your functions executed on a schedule. This sample demonstrates a simple use case of calling your function based on your schedule provided while deploying. If you want to change the schedulea. Click on Function App "Configuration" under Settings b. Click on "Schedule" under "Application Settings" c. Update your own schedule using cron expression.
Note: For a
TimerTrigger
to work, you provide a schedule in the form of a cron expression(See the link for full details). A cron expression is a string with 6 separate expressions which represent a given schedule via patterns. The pattern we use to represent every 10 minutes is0 */10 * * * *
. This, in plain text, means: "When seconds is equal to 0, minutes is divisible by 10, for any hour, day of the month, month, day of the week, or year".