Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0.0 - Portal EmailSettings - Hostname not resolved #413

Closed
lorenzmeyer77 opened this issue Sep 9, 2022 · 4 comments
Closed

v4.0.0 - Portal EmailSettings - Hostname not resolved #413

lorenzmeyer77 opened this issue Sep 9, 2022 · 4 comments
Assignees
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround

Comments

@lorenzmeyer77
Copy link

Community Note

  • 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

  • 4.0.0

Affected Resource(s)

  • ArcGISPortalSettings

Configuration Files

Just add an emailsettings property:

        "EmailSettings": {
            "SMTPServerAddress": "xxxxxx",
            "From": "no-reply@google.com",
            "Label": "Portal TEST",
            "AuthenticationRequired": false,
            "EncryptionMethod": "SSL"
        }

Expected Behavior

The EmailSettings are set in portal like it worked with the DSC Module 3.3.2.

Actual Behavior

DSC Error in ArcGISPortalSettings --> the hostname ist missing!

09.09.2022 09:36:46: Cannot bind parameter 'Uri'. Cannot convert value "https://:7443/arcgis/portaladmin/system/emailSettings/update" to type "System.Uri". Error: "Invalid URI: The hostname could not be parsed."
09.09.2022 09:36:46: PowerShell DSC resource ArcGIS_PortalSettings  failed to execute Set-TargetResource functionality with error message: Request to https://:7443/arcgis/portaladmin/system/emailSettings/update failed. Response returned NULL 
09.09.2022 09:36:46: The SendConfigurationApply function did not succeed.

Steps to Reproduce

Just add some email settings for portal an run them with DSC 4.0.0

Important Factoids

Running in Azure (westeurope)

References

@lorenzmeyer77
Copy link
Author

@scma-esrich fyi

@lorenzmeyer77
Copy link
Author

Without EMailSettings it works in DSC 4.0.0

@cameronkroeker
Copy link
Contributor

Hi @lorenzmeyer77,

Thanks for the submission. This will be addressed in the next release, in the meantime, the following workaround can be used to allow the email settings to be applied successfully.

Update:

Update-PortalEmailSettings -SMTPServerAddress $EmailSettingsSMTPServerAddress -From $EmailSettingsFrom -Label $EmailSettingsLabel -AuthenticationRequired $EmailSettingsAuthenticationRequired -Credential $EmailSettingsCredential -SMTPPort $EmailSettingsSMTPPort -EncryptionMethod $EmailSettingsEncryptionMethod -Token $token.token -Referer $Referer -Verbose

To:

Update-PortalEmailSettings -PortalHostName $PortalFQDN -SMTPServerAddress $EmailSettingsSMTPServerAddress -From $EmailSettingsFrom -Label $EmailSettingsLabel -AuthenticationRequired $EmailSettingsAuthenticationRequired -Credential $EmailSettingsCredential -SMTPPort $EmailSettingsSMTPPort -EncryptionMethod $EmailSettingsEncryptionMethod -Token $token.token -Referer $Referer -Verbose

@cameronkroeker cameronkroeker self-assigned this Sep 12, 2022
@cameronkroeker
Copy link
Contributor

Hello @lorenzmeyer77 and @scma-esrich,

This issue has been addressed in v4.0.1.

Thanks,
Cameron K.

@cameronkroeker cameronkroeker added Fixed Label for when an issue is fixed. and removed will fix labels Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fixed Label for when an issue is fixed. HasAWorkaround
Projects
None yet
Development

No branches or pull requests

2 participants