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
gMSA failures when used in PsDscRunAsCredential #364
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
Module Version
3.3.0
Affected Resource(s)
ArcGIS_Server
ArcGIS_Portal
Configuration Files
Expected Behavior
Portal: The PersistStorageCredentials and CreatePortalContentFolder Script resources should execute successfully and add the Azure storage account key to Windows Credential Manager for the gMSA account and create the root folder for portal content.
Server: The PersistConfigStoreCloudStorageCredentials and PersistServerDirectoriesCloudStorageCredentials should execute successfully and add the Azure storage account key to Windows Credential Manager for the gMSA account.
Actual Behavior
The resources fails with the error The user name or password is incorrect on Test.
Steps to Reproduce
I created a test configuration to illustrate the issue.
To execute, copy/paste the config into powershell and then copy/paste the below commands which will fail with the error The user name or password is incorrect.
Community Note
Module Version
Affected Resource(s)
Configuration Files
Expected Behavior
Portal: The
PersistStorageCredentials
andCreatePortalContentFolder
Script resources should execute successfully and add the Azure storage account key to Windows Credential Manager for the gMSA account and create the root folder for portal content. Server: ThePersistConfigStoreCloudStorageCredentials
andPersistServerDirectoriesCloudStorageCredentials
should execute successfully and add the Azure storage account key to Windows Credential Manager for the gMSA account.Actual Behavior
The resources fails with the error
The user name or password is incorrect
on Test.Steps to Reproduce
I created a test configuration to illustrate the issue.
To execute, copy/paste the config into powershell and then copy/paste the below commands which will fail with the error
The user name or password is incorrect
.Important Factoids
This affects both the Server and Portal configurations when they attempt to store Azure storage account keys as the gMSA.
References
https://github.com/Esri/arcgis-powershell-dsc/blob/6a8456bedc0993b8ad4cf6fbaee56d4949b049b4/Modules/ArcGIS/Configurations-OnPrem/ArcGISServer.ps1#L336
https://github.com/Esri/arcgis-powershell-dsc/blob/6a8456bedc0993b8ad4cf6fbaee56d4949b049b4/Modules/ArcGIS/Configurations-OnPrem/ArcGISServer.ps1#L362
https://github.com/Esri/arcgis-powershell-dsc/blob/6a8456bedc0993b8ad4cf6fbaee56d4949b049b4/Modules/ArcGIS/Configurations-OnPrem/ArcGISPortal.ps1#L271
https://github.com/Esri/arcgis-powershell-dsc/blob/6a8456bedc0993b8ad4cf6fbaee56d4949b049b4/Modules/ArcGIS/Configurations-OnPrem/ArcGISPortal.ps1#L293