Closed minagim closed 3 years ago
Hello @minagim
To achieve this you will need to generate separate json files (4 total). One that installs the web adaptor and server, and then a second one that contains an identical copy of the server information but has new information for the second web adaptor node name, ServerContext, and AdminAccess. Then repeat this for the third and fourth web adaptors.
Thanks, Cameron K.
@cameronkroeker Thanks for your prompt response. After reading #134, I thought it would be possible. But I guess that is when there is a separate web adapator machine for each AGS server.
Thanks for confirming it. I will close the case.
I am getting a couple of new errors while running the modified script.
First error is about the server license.
Second error is about the the portal default role.
PowerShell DSC resource ArcGIS_Portal failed to execute Set-TargetResource functionality with error message: [Error] - Set-PortalUserDefaults Response:- Invalid values for role and/or user license type parameters.
The SendConfigurationApply function did not succeed.
I have the following parameters set in the script.
"EnableAutomaticAccountCreation": "true", "DefaultRoleForUser": "account_user", "DefaultUserLicenseTypeIdForUser": "viewerUT",
I am getting a couple of new errors while running the modified script.
First error is about the server license.
Second error is about the the portal default role.
PowerShell DSC resource ArcGIS_Portal failed to execute Set-TargetResource functionality with error message: [Error] - Set-PortalUserDefaults Response:- Invalid values for role and/or user license type parameters. The SendConfigurationApply function did not succeed.
I have the following parameters set in the script.
"EnableAutomaticAccountCreation": "true", "DefaultRoleForUser": "account_user", "DefaultUserLicenseTypeIdForUser": "viewerUT",
Hello @minagim ,
The first error is indicating that the ArcGIS Server Authorization Wizard is returning an error when attempting to authorize the license. I recommend checking the license file to ensure it is valid (correct version, contains all necessary info like email, address, etc), and even perhaps attempt to manually authorize to see if it gives the same error.
The second error, try modifying "EnableAutomaticAccountCreation": "true",
to "EnableAutomaticAccountCreation": true,
. Boolean (true|false) should be all lowercase and not contain quotes.
Hi, @cameronkroeker,
Thanks for your answers. I just tried to validate the license manually on the server and it worked. What could it the issue?
Also, for the "EnableAutomaticAccountCreation" parameter, the double quotes around the boolean values in the sample script threw me off. I am new to Powershell and have a lot to learn. I made the change and still got the same error.
Hi @minagim ,
Hm I'm not quite sure what could be wrong with the ArcGIS Server authorization. Two other suggestions I have are, 1. Try moving the authorization file to another location, 2. Try to manually authorize it silently, as this is how the PowerShell Module does it:
For the second issue, try a combination of things. For example:
"DefaultRoleForUser": "org_user",
"DefaultUserLicenseTypeIdForUser": "viewerUT",
or
"DefaultRoleForUser": "account_user",
"DefaultUserLicenseTypeIdForUser": "editorUT",
I suspect the issue here is these user types must be compatible with the defaultRoleForUser that has been specified.
Values: fieldWorkerUT | GISProfessionalStdUT | GISProfessionalBasicUT | GISProfessionalAdvUT | creatorUT | editorUT | insightsAnalystUT
https://developers.arcgis.com/rest/users-groups-and-items/set-user-default-settings.htm
Hello @minagim were you able to make any progress on this issue?
Hi, Cameron.
I am so sorry for the delay in reply. I wasn’t able to make it work for both issues.
For the first issue, I moved the location around to see if it had any affect but couldn’t make it work. I am planning to test it a little more for PROD environment as I am done with our base deployment in STG.
For the second issue, I was wondering if it was a version-related issue as I was installing 10.8. I tried different combinations but nothing worked.
I am excited to test upgrading to 10.8.1. I will close the case and if I run into same issues in v3.1.0, I will open a new case.
Thanks for all your help.
Mina
Community Note
Module Version
Affected Resource(s)
Configuration Files
1 BaseDeployment_STG_DataStore_Server_Portal_WA_DNS_MK_Github.json.txt
Expected Behavior
ArcGIS Servers & Portal are configured and federated with IWA.
Actual Behavior
4 ArcGIS Servers & a Portal configured and federated
Steps to Reproduce
Invoke-ArcGISConfiguration -ConfigurationParametersFile D:\Scripts\script.json -Mode InstallLicenseConfigure
Important Factoids
Hi,
I am trying to install 10.8 data store, 4 servers & a portal with federation on 8 VMs with Windows Server 2019 but getting the following error.
I am trying to install 4 different web adapters for 4 AGSs on one web server. How do you configure a system with multiple AGSs? Is it possible? Any advice would be appreciated.
Mina
References