Applying the Portal for ArcGIS Log4j Patch on an Azure deployment may cause the Portal for ArcGIS service to fail to start (BUG-000148416). This applies to Azure deployments that use the Azure Blob Storage to store the Portal for ArcGIS content directory. The attached PowerShell script can be used to correct this issue.
Note: New patches have been released to prevent this defect on Azure deployments. The B patches are available for the following releases: 10.7.1, 10.8.1, and 10.9.1. If the B patch is available for the release you have deployed, it is recommended to install the B patch rather than running the script.
The script is provided to address issues introduced on an Azure deployment after installing the Portal for ArcGIS Log4j patch on 10.6, 10.6.1, and 10.9 releases.
The attached PowerShell script should be downloaded and executed on an Azure instance where the Log4j patch has been installed and the Portal for ArcGIS service fails to restart.
Download the zip file. Ensure that the file has not been tampered with by computing the sha256 checksum as follows:
Extract the PowerShell script from the zip file.
The PowerShell script must be executed as an administrator.