Configurations-OnPrem/Upgrades/PortalPostUpgradeV2.ps1
Configuration PortalPostUpgradeV2 { param( [parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] $PortalSiteAdministratorCredential, [parameter(Mandatory = $false)] [System.Boolean] $SetOnlyHostNamePropertiesFile = $False, [parameter(Mandatory = $false)] [System.String] $Version ) Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DSCResource -ModuleName @{ModuleName="ArcGIS";ModuleVersion="3.3.0"} Import-DscResource -Name ArcGIS_PortalUpgrade Node $AllNodes.NodeName { $NodeName = $Node.NodeName $MachineFQDN = (Get-FQDN $NodeName) if($Node.Thumbprint){ LocalConfigurationManager { CertificateId = $Node.Thumbprint } } ArcGIS_PortalUpgrade PortalUpgrade { PortalAdministrator = $PortalSiteAdministratorCredential PortalHostName = $MachineFQDN LicenseFilePath = $Node.PortalLicenseFilePath SetOnlyHostNamePropertiesFile = $SetOnlyHostNamePropertiesFile Version = $Version } } } |