Esri / arcgis-powershell-dsc

This repository contains scripts, code and samples for automating the install and configuration of ArcGIS (Enterprise and Desktop) using Microsoft Windows PowerShell DSC (Desired State Configuration).
Apache License 2.0
116 stars 62 forks source link

Federation error on base deployment configuration. #379

Closed vassilo closed 2 years ago

vassilo commented 2 years ago

When doing a multi machine base deployment I get the below error when it tries to federate the hosting ArcGIS Server to Portal.

image

Community Note

Module Version

Affected Resource(s)

Configuration Files

# Copy-paste your DSC JSON configurations here - for large configs,
# please use a service like Dropbox and share a link to the ZIP file.

{
    "AllNodes": [
<removed>
    ],
    "ConfigData": {
        "ProVersion": "2.8",
        "Version": "10.8.1",
        "ServerContext": "hosting",
        "PortalContext": "portal",
        "FileShareLocalPath": "F:\\Software",
        "FileShareName": "\\\\mneu-t-a-agsh10.anglo.local\\Software",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "Password": "gWWhLg8xPTMTk9AQPgKF",
                "UserName": "anglo\\az-t-svc-arcgis",
                "IsDomainAccount": true,
                "IsMSAAccount": false
            }
        },
        "Server": {
            "LicenseFilePath": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Licenses\\gis-server-adv.ecp",
            "Installer": {
                "Path": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\ArcGIS_Server_Windows_1081_175203.exe",
                "InstallDir": "E:\\Program Files\\ArcGIS\\Server",
                "InstallDirPython": "E:\\Python27",
                "PatchesDir": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Patches_DSC\\Server",
                "PatchInstallOrder": [
                    "ArcGIS-1081-S-UN1-Patch.msp",
            "ArcGIS-1081-S-PFP-Patch.msp",
                    "ArcGIS-1081-S-PS-Patch.msp",
                    "ArcGIS-1081-S-FSP-Patch.msp",
                    "ArcGIS-1081-S-GSOP-Patch.msp",
                    "ArcGIS-1081-S-IS-Patch.msp",
                    "ArcGIS-1081-S-UN2-PatchB.msp",
                    "ArcGIS-1081-S-PSTE-Patch.msp",
                    "ArcGIS-1081-S-RWAP-PatchB.msp",
                    "ArcGIS-1081-S-SAA-Patch.msp",
                    "ArcGIS-1081-S-GRS-Patch.msp",
                    "ArcGIS-1081-S-MFSS-Patch.msp",
                    "ArcGIS-1081-S-UN3-Patch.msp",
                    "ArcGIS-1081-S-SEC2021U1-Patch.msp",
                    "ArcGIS-1081-S-TGP-Patch.msp",
                    "ArcGIS-1081-S-DFPI-Patch.msp",
                    "ArcGIS-1081-S-SRL-Patch.msp",
                    "ArcGIS-1081-S-OP-Patch.msp" ,
                    "ArcGIS-1081-S-ALPI-Patch.msp",
                    "ArcGIS-1081-S-UN5-PatchB.msp",
                    "ArcGIS-1081-S-RR-Patch.msp",
                    "ArcGIS-1081-S-SEC2021U2-Patch.msp",
                    "ArcGIS-1081-S-SA-Patch.msp",
                    "ArcGIS-1081-S-UN6-Patch.msp",
                    "ArcGIS-1081-S-Log4j-Patch.msp"
                ]
            },
            "ServerDirectoriesRootLocation": "\\\\mneusttestarcgishub001.file.core.windows.net\\arcgis",
            "ConfigStoreLocation": "\\\\mneusttestarcgishub001.file.core.windows.net\\arcgis", 
            "LocalRepositoryPath": "F:\\arcgis\\hosting\\local",
            "ServerLogsLocation": "F:\\arcgis\\hosting\\logs",                        
            "ExternalLoadBalancer": "gishub-test.ap.angloamerican.com",
            "InternalLoadBalancer": "",
            "PrimarySiteAdmin": {
                "UserName": "siteadmin",
                "Password": "<removed>"
            },
            "ConfigStoreCloudStorageAccount":{
                "UserName": "mneusttestarcgishub001.file.core.windows.net",
                "Password": "<removed>",
                "CloudStorageType": "AzureFiles",
                "AzureFileShareName": "arcgis",
                "CloudNamespace": "hosting-config"
            },
            "ServerDirectoriesCloudStorageAccount":{
                "UserName": "mneusttestarcgishub001.file.core.windows.net",
                "Password": "<removed>",
                "CloudStorageType": "AzureFiles",
                "AzureFileShareName": "arcgis",
                "CloudNamespace": "hosting-diretories"
            }
        },
        "Portal": {
            "LicenseFilePath": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Licenses\\ArcGIS_Enterprise_Portal_1081_336614_20201210.json",
            "PortalLicenseUserTypeId": "creatorUT",
            "Installer": {
                "Path": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\Portal_for_ArcGIS_Windows_1081_175214.exe",
                "WebStylesPath": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\Portal_for_ArcGIS_Web_Styles_Windows_1081_175215.exe",
                "InstallDir": "E:\\Program Files\\ArcGIS\\Portal",
                "ContentDir": "F:\\arcgis\\portal",
                "PatchesDir": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Patches_DSC\\Portal",
                "PatchInstallOrder": [
                    "ArcGIS-1081-PFA-MMMM-Patch.msp",
            "ArcGIS-1081-PFA-AWG-Patch.msp",
                    "ArcGIS-1081-PFA-ES1-Patch.msp",
                    "ArcGIS-1081-PFA-IN1-Patch.msp",
                    "ArcGIS-1081-PFA-ES2-Patch.msp",
                    "ArcGIS-1081-PFA-HA-Patch.msp",
                    "ArcGIS-1081-PFA-RWAP-Patch.msp",
                    "ArcGIS-1081-PFA-HAR-Patch.msp",
                    "ArcGIS-1081-PFA-ES3-Patch.msp",
                    "ArcGIS-1081-PFA-IN2-Patch.msp",
                    "ArcGIS-1081-PFA-SEC2021U1-Patch.msp",
                    "ArcGIS-1081-PFA-UMLL-Patch.msp",
                    "ArcGIS-1081-PFA-Log4j-Patch.msp"
                ]

            },
            "ContentDirectoryLocation":"\\\\mneusttestarcgishub001.file.core.windows.net\\arcgis", 
            "ExternalLoadBalancer": "gishub-test.ap.angloamerican.com",
            "InternalLoadBalancer": "",
            "EnableAutomaticAccountCreation": true,
            "DefaultRoleForUser": "iAAAAAAAAAAAAAAA",
            "DefaultUserLicenseTypeIdForUser": "viewerUT",
            "PortalAdministrator": {
                "UserName": "portaladmin",
                "Email": "portaladmin@localhost.com",
                "Password": "<removed>",
                "SecurityQuestionIndex": 1,
                "SecurityAnswer": "<removed>"
            },
            "PortalContentCloudStorageAccount":{
                "UserName": "mneusttestarcgishub001.file.core.windows.net",
                "Password": "<removed>",
                "CloudStorageType": "AzureFiles",
                "AzureFileShareName": "arcgis",
                "CloudNamespace": "portal-content"
            }     
        },
        "DataStore": {
            "ContentDirectoryLocation": "F:\\arcgis\\datastore",
            "EnableFailoverOnPrimaryStop": true,
            "Installer": {
                "Path": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\ArcGIS_DataStore_Windows_1081_175216.exe",
                "InstallDir": "E:\\Program Files\\ArcGIS\\Datastore",
                "PatchesDir": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Patches_DSC\\Datastore",
                "PatchInstallOrder": [
                ]
            },
            "Backups":{
                "Relational":[{
                    "Name": "arcgishub-datastore-relational-backup",
                    "Type": "fs",
                    "Location": "E:\\arcgis\\backups",
                    "ForceBackupLocationUpdate": true,
                    "IsDefault": true
                }]
            }    
        },
        "WebAdaptor": {
            "AdminAccessEnabled": true,
            "Installer": {
                "Path": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\ArcGIS_Web_Adaptor_for_Microsoft_IIS_1081_175217.exe",
                "PatchesDir": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Patches_DSC\\Webadaptor",
                "PatchInstallOrder": [
                    "ArcGIS-1081-WAI-S-Patch.msp"
                ]                
            }
        },
        "SQLServerClient": [
            {
                "Name": "Microsoft ODBC Driver 17 for SQL Server",
                "InstallerPath": "\\\\mneu-t-a-agsh10.anglo.local\\Software\\Esri\\ArcGIS\\10.8.1\\Installs_DSC\\msodbcsql_17.8.1.1_x64.msi",
                "ProductId": "7453C0F5-03D5-4412-BB8F-360574BE29AF",
                "Arguments": " /quiet /qn IACCEPTMSODBCSQLLICENSETERMS=YES ADDLOCAL=ALL"
            }
        ]
    }
}

Expected Behavior

Expected ArcGIS Server to be federated with Portal.

Actual Behavior

Failed with above error message.

Steps to Reproduce

Important Factoids

References

cameronkroeker commented 2 years ago

Hi @vassilo,

This error is being caused by the ConfigData.Portal.InternalLoadBalancer attribute value being blank. When this attribute is present it is used to generate the portal url to send the federation request to. If you do not have an actual internal load balancer you can simply set it to the internal portal fqdn or remove the attribute all together. If you set the ConfigData.Portal.InternalLoadBalancer attribute it will also use this to set the privatePortalUrl in portal system properties.

Thanks, Cameron K.