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

providers/azure: fetch hostname from metadata #199

Merged
merged 2 commits into from
Apr 12, 2019

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Apr 5, 2019

This implements fetching the machine name from Azure metadata.

Ref: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service
Fixes #197

@lucab
Copy link
Contributor Author

lucab commented Apr 5, 2019

WIP: this is based on quick spec reading. I haven't tested it on a real Azure instance.

@bgilbert
Copy link
Contributor

Fixes #197.

@lucab lucab marked this pull request as ready for review April 11, 2019 11:11
@lucab
Copy link
Contributor Author

lucab commented Apr 11, 2019

Double checked the behavior on a real Azure node (standard B1MS), all good. This is ready for review.

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lucab
Copy link
Contributor Author

lucab commented Apr 11, 2019

/cc @crawford as I think he's writing similar logic. If there are no concerns for conflicts, please feel free to merge.

@crawford
Copy link
Contributor

I hadn't started on my implementation yet, so this is perfect. This approach looks good to me. We'll eventually want to move the rest of the functionality over to the metadata service in order to support Azure Stack.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure: doesn't set hostname
4 participants