Citrix Cloud | Trying to add Azure Host connection fails with error “The host server cannot be contacted” on Cloud Studio

Citrix Cloud | Trying to add Azure Host connection fails with error “The host server cannot be contacted” on Cloud Studio

book

Article ID: CTX310737

calendar_today

Updated On:

Description

Citrix Cloud | Trying to add Azure Host connection fails with the below error:
The host server cannot be contacted. Check that the connection has a valid host address, and that the host server is powered on and working properly.
Error: Could not connect to Azure. One or more errors occurred.

Azure.png
Error Id: XDDS: D2089BCC
Exception:
DesktopStudio_PowerShellHistory: TestHypervisorConnectionScript
3/11/2021 11:06:32 AM
Error Source: Citrix Studio
StackTrace: Citrix.Console.Common.CitrixAggregateException. One or more parallel operations failed
at Citrix.Console.Common.CitrixParallel.InternalForEach[TIn](IEnumerable`1 items, Action`1 operation, Int32 maxSimultaneous)
at Citrix.Orchestration.Base.PowerShellSdk.HypervisorService.Scripts.TestHypervisorConnectionScript.RunScript()
at Citrix.Orchestration.Base.PowerShellInteraction.PowerShellScript`1.Run()
at Citrix.Console.Hypervisors.UI.Pages.AzureRMHypervisorDetailsViewModel.ValidateNewConnection()
at Citrix.Console.Hypervisors.UI.Pages.AzureRMHypervisorDetailsViewModel.RetryValidateNewConnection(TimeSpan timeSpan)
at Citrix.Console.Hypervisors.UI.Pages.AzureRMHypervisorDetailsViewModel.ValidatePage()
at Citrix.Console.CommonControls.Wizard.PageContainerViewModel.<>c__DisplayClass15_0.<ValidateAndMoveToPage>b__0()

Inner Exception:
DesktopStudio_ErrorId : UnknownError
ErrorCategory : ResourceUnavailable
 

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Resolution

Increase the value of token lifetime policies in Azure.
This link has steps to configure it: https://docs.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifetimes.
Setting this value to 60 mins resolved the issue.
 

Problem Cause

The access token lifetime response was only 899 seconds.
 

Issue/Introduction

This article explains the issue in creating Azure hosting Connection from Citrix Cloud Studio.

Additional Information

https://docs.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifetimes.