Upgrading Policy Agent Function
Note
If the release version of the artifact zip file has not changed since the previous installation, you can skip the Agent Function upgrade.Important
If Policy Agent version is less than version 4, a new installation must be created. Carefully observe the below points:
- Create a new Container in the Storage Account for policy storage for the installation, as the version 4 policy package differs from version 3.
- To prevent overwriting production environment policies with incompatible policy package, follow Disable Protegrity Agent Function Timer Trigger after deploying the new function with arm template. Do not add the production Protect or Forwarder functions to the PROTEGRITY_PROTECT_FUNCTION environment variable of new Policy Agent until the trigger is disabled
- Skip to Disable Agent Policy Deployment and Test Policy Agent Function once installation is complete.
Upgrade Policy Agent Runtime Package
From Azure console, navigate to Function App service and select agent function app. Navigate to Settings > Environment variables.
Click on WEBSITE_RUN_FROM_PACKAGE configuration entry.
Save existing URL. You may need it to rollback upgrade.
WEBSITE_RUN_FROM_PACKAGE: _______________
Replace URL with New Agent Function Blob URL.
Click Apply then select Apply and Confirm to finalize.
Using menu on the left, navigate to Overview. Stop the function using Stop button at the top. Then start it again.
In the next section the Agent function will be tested to make sure it works as expected.
(Optional) If you need to rollback to older version of Agent Function, replace WEBSITE_RUN_FROM_PACKAGE with URL recorded in previous steps.
Feedback
Was this page helpful?