I'm trying to figure out how to have patches installed when running the PowerShell DSC for an enterprise upgrade from 10.6.1 to 10.7.1. In the github Wiki I see "PatchesDir" in the variables page but all it says is optional. I'm wondering if this directory is where I need to download the patches to be installed or where the patches will be installed to. Would this be the same as "InstallDir"? What filepath are patches usually installed to?
Variables reference page for JSON configuration files · Esri/arcgis-powershell-dsc Wiki · GitHub
Cameron Kroeker are you able to assist? Thanks!
Hi Krystal,
"PathesDir" is the path to where the patch (.msp) file(s) reside. The file path can be a local directory or a share, and can contain more than one .msp. PowerShell will detect all the .msp files in the path and proceed to install them.
Example:
"Portal": { "LicenseFilePath": "[License File Path - Portal ]", "PortalLicenseUserTypeId": "[Portal License User Type Id- Required for 10.7 and above]", "Installer": { "Path": "[Portal Installer Path]", "WebStylesPath": "[Optional Parameter starting ArcGIS Enterprise 10.7.1 - Portal Web Styles Installer Path]", "InstallDir": "[Portal Install Dir - Ex. C:\\ArcGIS\\Portal]", "ContentDir": "[Portal Content Dir for Install- Ex. C:\\portalforarcgis\\content]", "PatchesDir": "C:\\portal_patches" },
Once installed you can find the patch(es) listed within Control Panel -> Programs -> Programs and Features -> Installed Updates.
Adding a question to this topic. When the config file asks for a Dir it is just the folder structure but when it asks for a Path that includes the actual file name and extension as well correct?
Yes, this is the workflow that worked for us in our last upgrade.
Just to confirm the recommended/supported workflow for applying patches after an upgrade, is to re-run the PowerShell module with -mode install. This is so that the upgrade can be verified and a backup/snapshot can be made prior to applying patches.
Cameron Kroeker
Does the "PatchesDir" attribute have to be under "DataStore" if you only have any patches to install for Server & Portal?
Thanks,
Dan
Hey Cameron, I couldn't tell in your response but is the PatchesDir under Installer? This is how I've setup my config file. This is based on the variables page in the github wiki.
"Portal": { "LicenseFilePath": "D:\\InstallationFiles\\1071\\ArcGIS_Enterprise_Portal_107_289384_20191127.json", "Installer": { "Path": "D:\\InstallationFiles\\1071\\Portal_for_ArcGIS_Windows_1071_169688.exe", "InstallDir": "C:\\Program Files\\ArcGIS\\Portal", "ContentDir": "D:\\", "PatchesDir": "D:\\InstallationFiles\\1071\\PortalPatches" }, "ContentDirectoryLocation": "D:\\arcgisportal\\content"
},
Github lists it like this:
Portal
Yes, that's correct. As long as the "PatchesDir" attribute is present under Portal, Server, DataStore, etc and contains a local or file share path to a location where .msp files reside then the ArcGIS PowerShell module will install all the patches that are in the specified directory.
Just to confirm, there isn't anything else the config file needs to install the patches. Just the "PatchesDir" variable under Portal and Server.
Great thanks! I'll try this out tomorrow!
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.