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

Server Manager Application to redirect to ArcGIS Enterprise Sign-in page #572

Open ae-daenchrisarmada opened 3 weeks ago

ae-daenchrisarmada commented 3 weeks ago

Community Note

Module Version

Affected Resource(s)

Configuration Files

{
    "AllNodes":  [
                     {
                         "NodeName":  "EC2AMAZ-9393J4V",
                         "Role":  [
                                      "Server",
                                      "WebAdaptor",
                                      "DataStore",
                                      "Portal"
                                  ],
                         "WebAdaptorConfig":  [
                                                  {
                                                      "Role":  "Server",
                                                      "ServerContext":  "server"
                                                  },
                                                  {
                                                      "Role":  "Portal",
                                                      "ServerContext":  "portal"
                                                  }
                                              ],
                         "DataStoreTypes":  "Relational"
                     }
                 ],
    "ConfigData":  {
                       "Version":  "11.1",
                       "ServerRole":  "GeneralPurposeServer",
                       "ServerContext":  "server",
                       "PortalContext":  "portal",
                       "Credentials":  {
                                           "ServiceAccount":  {
                                                                  "Password":  "coigisProd2024",
                                                                  "UserName":  "admin",
                                                                  "IsDomainAccount":  false,
                                                                  "IsMSAAccount":  false
                                                              }
                                       },
                       "Server":  {
                                      "LicenseFilePath":  "C:\\s3\\ArcGISGISServerAdvanced_ArcGISServer_1464359.prvc",
                                      "Installer":  {
                                                        "Path":  "C:\\s3\\ArcGIS_Server_Windows_111_185208.exe",
                                                        "InstallDir":  "C:\\ArcGIS\\Server",
                                                        "InstallDirPython":  "C:\\Python3",
                                                        "EnableArcMapRuntime":  true,
                                                        "EnableDotnetSupport":  true,
                                                        "IsSelfExtracting":  true
                                                    },
                                      "ServerDirectoriesRootLocation":  "C:\\arcgisserver\\directories",
                                      "ConfigStoreLocation":  "C:\\arcgisserver\\config-store",
                                      "PrimarySiteAdmin":  {
                                                               "UserName":  "SiteAdmin",
                                                               "Password":  "Password456!"
                                                           }
                                  },
                       "WebAdaptor":  {
                                          "AdminAccessEnabled":  true,
                                          "Installer":  {
                                                            "Path":  "C:\\s3\\ArcGIS_Web_Adaptor_for_Microsoft_IIS_111_185222.exe",
                                                            "DotnetHostingBundlePath":  "C:\\s3\\dotnet-hosting-6.0.32-win.exe",
                                                            "WebDeployPath":  "C:\\s3\\WebDeploy_amd64_en-US.msi",
                                                            "IsSelfExtracting":  true
                                                        }
                                      },
                       "DataStore":  {
                                         "ContentDirectoryLocation":  "C:\\arcgisdatastore",
                                         "EnableFailoverOnPrimaryStop":  false,
                                         "EnablePointInTimeRecovery":  false,
                                         "Installer":  {
                                                           "Path":  "C:\\s3\\ArcGIS_DataStore_Windows_111_185221.exe",
                                                           "IsSelfExtracting":  true,
                                                           "InstallDir":  "C:\\ArcGIS\\DataStore",
                                                           "InstallAllFeatures":  true
                                                       }
                                     },
                       "Portal":  {
                                      "LicenseFilePath":  "C:\\s3\\ArcGIS_Enterprise_Portal_111_465583_20240701.json",
                                      "PortalLicenseUserTypeId":  "creatorUT",
                                      "Installer":  {
                                                        "Path":  "C:\\s3\\Portal_for_ArcGIS_Windows_111_185219.exe",
                                                        "IsSelfExtracting":  true,
                                                        "InstallDir":  "C:\\ArcGIS\\Portal",
                                                        "ContentDir":  "C:\\arcgisportal"
                                                    },
                                      "ContentDirectoryLocation":  "C:\\arcgisportal\\content",
                                      "DefaultRoleForUser":  "org_user",
                                      "DefaultUserLicenseTypeIdForUser":  "creatorUT",
                                      "PortalAdministrator":  {
                                                                  "UserName":  "portaladmin",
                                                                  "Email":  "geoffrey@enterprisemapsllc.com",
                                                                  "Password":  "portalpassword",
                                                                  "SecurityQuestionIndex":  1,
                                                                  "SecurityAnswer":  "vanilla"
                                                              },
                                      "EnableHSTS":  false,
                                      "WebGISDR":  {
                                                       "PropertiesFilePath":  "C:\\arcgisportaldir",
                                                       "TimeoutInMinutes":  3600,
                                                       "RunAsAccount":  {
                                                                            "UserName":  "webgisdraccount",
                                                                            "Password":  "webgisdrpassword"
                                                                        }
                                                   }
                                  }
                   }
}

Expected Behavior

When Server Manager Application is opened, it should redirect to the login page below

Screen Shot 2024-10-18 at 5 32 47 AM

Actual Behavior

Only opens Server Manager login

Steps to Reproduce

Simply just click ArcGIS Server Manager App

Important Factoids

We were able to achieve the redirect by configuring directly via Windows RDP

References

ae-daenchrisarmada commented 3 days ago

Hello @cameronkroeker ,

Any take on this?

cameronkroeker commented 2 days ago

Hello @cameronkroeker ,

Any take on this?

Hi @ae-daenchrisarmada,

My apologies, but I do not quite understand the issue. Could you provide additional information or context?

Thanks, Cameron K.

ae-daenchrisarmada commented 2 days ago

Hello @cameronkroeker ,

Thanks for giving attention to this.

It is more of additional configuration.

Right now after installing with our template. then opening the Server Manager Application, the photo below is the result.

image (6)

But we actually wanted the photo below to show instead.

378582198-05a36dd2-a5f9-41c9-acdc-0337a6499261

Our ArcGIS Engineer did something manually to do this.

Am I clear now?

ae-daenchrisarmada commented 2 days ago

It is like, we want it to be federated. @cameronkroeker

cameronkroeker commented 2 days ago

@ae-daenchrisarmada In your web browser instead of https://EC2AMAZ-9393J4V/server/manager can you try https://EC2AMAZ-9393J4V.local/server/manager?

ae-daenchrisarmada commented 18 hours ago

It redirected to the link below when I tried https://EC2AMAZ-9393J4V.local/server/manager.. Which looks correct..

https://EC2AMAZ-9393J4V.local/portal/sharing/oauth2/authorize?client_id=arcgisonline&response_type=token&state=%7B%22portalUrl%22%3A%22https%3A%2F%2FEC2AMAZ-PSN2EBE.local%2Fportal%22%7D&expiration=20160&redirect_uri=https%3A%2F%2Fec2amaz-psn2ebe.local%2Fserver%2Fmanager%2F&hideCancel=true

I guess my question is.. How will https://EC2AMAZ-9393J4V.local/server/manager be opened in the browser when I open ArcGIS Server Manager?

cameronkroeker commented 16 hours ago

Hi @ae-daenchrisarmada, my understanding is when you browse to https://ec2amaz-9393j4v.local/server/manager it should redirect you to the portal login (since its federated with portal), then once credentials are passed in it should redirect you back to the ArcGIS Server Manager page.

ae-daenchrisarmada commented 12 hours ago

I think my main concern right now is.. Is it possible that when you click ArcGIS Server Manager Windows Application, it will open https://ec2amaz-9393j4v.local/server/manager instead of https://ec2amaz-9393j4v/server/manager?

And is it possible to set that using a configuration file only?