Select to view content in your preferred language

Powershell DSC multiple ArcGIS Server sites

337
4
03-24-2026 05:08 AM
MikaelJ
Regular Contributor

Hey Guys,

 

after reading various posts can on this site and analyzing wiki page, do I understand correctly that currently in the config file you can have one entry per role?

E.g. You cannot have base deployment and three separate GIS Server sites specified in the same config file, however you would need to use 4 different config files?

 

Regards,

Mikael J

 

0 Kudos
4 Replies
JakeSkinner
Esri Esteemed Contributor

Hi @MikaelJ,

This should be possible using one config file.  Take a look at the below sample:

https://github.com/Esri/arcgis-powershell-dsc/blob/main/SampleConfigs/v4/v4.5.0/Base%20Deployment/Ba...

0 Kudos
MikaelJ
Regular Contributor

@JakeSkinner  I thought it might be this, but

"ServerDirectoriesRootLocation": "\\\\[Fileshare Machine Name 1]\\[Fileshare Name]\\arcgisserver\\directories",
"ConfigStoreLocation": "\\\\[Fileshare Machine Name 1]\\[Fileshare Name]\\arcgisserver\\config-store",

what about these keys? how it will change the name from one site to another?

0 Kudos
JakeSkinner
Esri Esteemed Contributor

Sorry @MikaelJ, I misread your question.  I read it as a multi-machine site.  Yes, you will need multiple config files when deploying multiple ArcGIS Server sites.  The config files separate from the base deployment will include the web adaptor, ArcGIS Server, and federation details.  Ex:

{
    "AllNodes": [
        {
            "NodeName": "arcgis-mapping",
            "Role": [
                "Server"
            ]
        },
        {
            "NodeName": "arcgis-webadaptor",
            "Role": [
                "WebAdaptor"
            ],
            "WebAdaptorConfig": [
                {
                    "Role": "Server"
                }
            ]
        }
    ],
    "ConfigData": {
        "Version": "11.1",
        "ServerContext": "mapping",
        "ServerRole": "GeneralPurposeServer",
        "Credentials": {
            "ServiceAccount": {
                "PasswordFilePath": "D:\\automationFiles\\passwords\\serviceAccount.txt",
                "UserName": "domain\\svc_arcgis",
                "IsDomainAccount": true,
                "IsMSAAccount": false
            }
        },
        "Server": {
            "LicenseFilePath": "D:\\automationFiles\\licenses\\ArcGISGISServerAdvanced_ArcGISServer_1428926.prvc",
            "Installer": {
                "Path": "D:\\automationFiles\\software\\ArcGIS11.1\\ArcGIS_Server_Windows_111_185208.exe",
                "InstallDir": "D:\\Program Files\\ArcGIS\\Server"                
            },
            "ServerDirectoriesRootLocation": "D:\\arcgisserver\\directories",
            "ConfigStoreLocation": "D:\\arcgisserver\\config-store",
            "ExternalLoadBalancer": "maps.domain.com",
            "PrimarySiteAdmin": {
                "UserName": "siteadmin",
                "PasswordFilePath": "D:\\automationFiles\\passwords\\siteadmin.txt"
            }
        },
        "WebAdaptor": {
            "AdminAccessEnabled": true,
            "Installer": {
                "Path": "D:\\automationFiles\\software\\ArcGIS11.1\\ArcGIS_Web_Adaptor_for_Microsoft_IIS_111_185222.exe"                
            }
        },
        "Federation": {
            "PortalHostName": "maps.domain.com",
            "PortalPort": "443",
            "PortalContext": "portal",
            "PortalAdministrator": {
                "UserName": "portaladmin",
                "PasswordFilePath": "D:\\automationFiles\\passwords\\portaladmin.txt"
            },
            "RestrictedPublishing": false
        }
    }
}
0 Kudos
MikaelJ
Regular Contributor

Thank you for confirming this!

0 Kudos