question

DeBi-8084 avatar image
0 Votes"
DeBi-8084 asked SwathiDhanwada-MSFT commented

Azure Automation Hybrid Worker can't connect to a local Azure Stack Hub

Hello, we use for several tasks Azure Automation with Hybrid Workers.
This works fine for common tasks.
We try now to connect from Azure Automation to a local (disconnected) Azure Stack Hub 2008 with ADFS.

If we run Add-AzEnvironment -Name "AzureStack" -ArmEndpoint $ArmEndpoint, we get the following message from Azure Automation output:
Add-AzEnvironment : An error occurred while sending the request.

With "debug"
Add-AzEnvironment : A command that prompts the user failed because the host program or the command type does not
support user interaction. The host was attempting to request confirmation with the following message: A command that
prompts the user failed because the host program or the command type does not support user interaction. The host was
attempting to request confirmation with the following message: Are you sure you want to perform this action?
Performing the operation "adding environment" on target "AzureStack".

From the Hybrid Worker VM (local) works the cmdlet fine and Add-AzEnvironmet add the new environmet successfully.
But not from Azure Automation.

We found also the following connection error to the Azure Stack Hub endpoint:
From Hybrid Worker VM: We can connect and test with Invoke-WebRequest to the management endpoint.
From Azure Automation: We can't connect with Invoke-WebRequest to the management endpoint.

The question is, where are here the differences?

azure-automationazure-stack-hub
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just to keep the community updated- we reached out to @DeBi-8084 offline, we will update the thread with relevant findings/solution.

0 Votes 0 ·

0 Answers