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

Add support for different Azure Cloud environments in Metricbeat #20988

Closed
kaltman opened this issue Sep 4, 2020 · 2 comments · Fixed by #21044
Closed

Add support for different Azure Cloud environments in Metricbeat #20988

kaltman opened this issue Sep 4, 2020 · 2 comments · Fixed by #21044
Assignees
Labels
enhancement Metricbeat Metricbeat module Team:Platforms Label for the Integrations - Platforms team

Comments

@kaltman
Copy link

kaltman commented Sep 4, 2020

Metricbeat Azure module currently does not have an option to override the resource manager endpoint or the active directory endpoint.

Example:
Attempting to use Metricbeat Azure module against Azure Govcloud results in:

failed to retrieve resources: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://management.azure.com/subscriptions/{SUBSCRIPTION_ID}/resources?%24filter=resourceType+eq+%27Microsoft.ContainerInstance%2FcontainerGroups%27&api-version=2019-03-01: StatusCode=400 -- Original Error: adal: Refresh request failed. Status Code = '400'. Response body: {"error":"invalid_request","error_description":"AADSTS900439: Confidential Client requests are not supported on the public endpoint (login.microsoftonline.com) for tenants in the Azure Government cloud. Send your login requests to https://login.microsoftonline.us instead. Please see https://devblogs.microsoft.com/azuregov/azure-government-aad-authority-endpoint-update/ for more details}

Currently we have a way to control the endpoint in Filebeat via: resource_manager_endpoint would be great to have a similar option in Metricbeat.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 4, 2020
@kaltman kaltman added the Team:Platforms Label for the Integrations - Platforms team label Sep 4, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 4, 2020
@bhoskins7
Copy link

I'm curious is their a short term workaround to change the endpoint to something other than public azure endpoint in metricbeat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Metricbeat Metricbeat module Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants