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
120 stars 62 forks source link

Automated Data Store Configuration #565

Closed ae-daenchrisarmada closed 1 month ago

ae-daenchrisarmada commented 1 month ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

{
    "AllNodes": [
        {
            "NodeName": "EC2AMAZ-UPRFRTV",
            "DataStoreTypes": [
                "Relational"
            ],
            "Role": [
                "DataStore",
            ],
            "WebAdaptorConfig":[
                {
                    "Role": "Portal"
                },
                {
                    "Role": "Server"
                }
            ]
        }
    ],
    "ConfigData": {
        "Version": "11.1",
        "ServerContext": "server",
        "PortalContext": "portal",
        "ServerRole": "GeneralPurposeServer",
        "DownloadSetups": false,
        "DownloadSetupsToSharedPath": false,
        "DownloadPatches": false,
        "SkipPatchInstalls": false,
        "DataStore": {
            "ContentDirectoryLocation": "C:\\arcgisdatastore",
            "EnableFailoverOnPrimaryStop": false,
            "EnablePointInTimeRecovery": false,
            "Installer": {
                "Path": "C:\\s3\\ArcGIS_DataStore_Windows_111_185221.exe",
                "IsSelfExtracting": false,
                "InstallDir": "C:\\ArcGIS\\DataStore",
                "InstallAllFeatures": true
            }
        }
    }
}

Expected Behavior

I expect that the GIS Server, Username and Password can be autoamtically configured.

Actual Behavior

Only installs the ArcGIS DataStore Configuration then Data

Steps to Reproduce

Important Factoids

References

cameronkroeker commented 1 month ago

Hi @ae-daenchrisarmada,

You will need to pass in the Server Role node attributes, and ConfigData.Server attributes, otherwise the DSC ArcGIS module won't be able to construct the parameters needed to register the data store with server (like the server url, and site username/password).

Thanks, Cameron K.

ae-daenchrisarmada commented 1 month ago

Which ConfigData.Server attributes are required? I only aim to have a Relational Type when I check the DataStores page in the Server Manager