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
110 stars 61 forks source link

LicensePassword and LicensePasswordFilePath are not supported/implemented for ArcGIS Pro #492

Closed sverkerEsriSE closed 7 months ago

sverkerEsriSE commented 10 months ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

{
    "AllNodes": [
        {
            "NodeName": "MYCOMPUTER",
            "Role": [
                "Pro"
            ]
        }
    ],
    "ConfigData": {
        "ProVersion": "3.1",
        "Pro": {
            "LicenseFilePath": "C:\\ArcGISDSC\\License\\ArcGISProAdvanced_SingleUse_XXXXX.eslf",
            "LicensePassword": "thisisthepassword",
            "AuthorizationType": "SINGLE_USE",
            "LockAuthSettings": false,
            "BlockAddIns": "0",
            "SoftwareClass": "Professional",
            "AllUsers": "1",
            "EnableEUEI": false,
            "CheckForUpdatesAtStartup": true,
            "Installer": {
                "Path": "C:\\ArcGISDSC\\media\\ArcGISPro\\ArcGISPro.msi",
                "DotnetDesktopRuntimePath": "C:\\ArcGISDSC\\media\\windowsdesktop-runtime-6.0.21-win-x64.exe",
                "IsSelfExtracting": false,
                "InstallDir": "c:\\Program Files\\ArcGIS\\Pro",
                "PatchesDir": "C:\\ArcGISDSC\\media\\ArcGISPro\\Patches"
            }
        }
    }
}

Expected Behavior

The software is installed and licensed properly using the provided .eslf file that is password protected

Actual Behavior

We get an error message when the ArcGISLicense DSC Job is run: _PowerShell DSC resource ArcGISLicense failed to execute Set-TargetResource functi onality with error message:

Steps to Reproduce

  1. Prepare all the installation files and other stuff that's needed
  2. Get a password protected .eslf licensing file from MyEsri (Note: many customers will probably not have this option)
  3. Save the above config to Pro-SingleUse.json and modify to your liking
  4. Run Invoke-ArcGISConfiguration -Mode InstallLicenseConfigure -ConfigurationParametersFile .\Pro-SingleUse.json
  5. Wait for the licensing to fail

References

See pull request #491

cameronkroeker commented 7 months ago

This has been added to release v4.2.0. Thanks!

https://github.com/Esri/arcgis-powershell-dsc/releases/tag/v4.2.0