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

Automatically Domain Join Azure Files for AD DS #10

Closed
edm-ms opened this issue Jan 13, 2022 · 5 comments
Closed

Automatically Domain Join Azure Files for AD DS #10

edm-ms opened this issue Jan 13, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@edm-ms
Copy link
Contributor

edm-ms commented Jan 13, 2022

It may be possible for us to automatically domain join an Azure Files storage account using a deployment script and Azure Image Builder.

We could prompt for domain credentials, and then pass parameters to the deployment script that AIB will inject into the VM. The VM can be domain joined, download the PowerShell cmdlets, run the commands, and then delete the VM.

We would likely use a service principal or potentially a managed identity attached to the VM (need to test) so that we could authenticate to Azure. This tends to be a challenging step in the deployment so if we could automate this it would be very beneficial.

@edm-ms edm-ms added the enhancement New feature or request label Jan 13, 2022
@edm-ms
Copy link
Contributor Author

edm-ms commented Jan 15, 2022

Thinking more about this we don't need AIB. We can deploy any marketplace Windows VM, use the domain join extension, and then use a custom script extension to domain join the storage account.

  1. Create Windows x VM
  2. Assign managed identity with access to authenticate to Azure
  3. Domain join VM
  4. Run custom script extension to join storage account to domain
  5. Delete VM

@danycontre danycontre self-assigned this Mar 1, 2022
@danycontre
Copy link
Collaborator

Investigating available options

@danycontre
Copy link
Collaborator

Missing VM deletion

cc: @nataliakon

@danycontre
Copy link
Collaborator

@nataliakon created/tested the code to deliver this feature.

We still need to build the code to delete the VM.

@danycontre
Copy link
Collaborator

VM role changed to a management VM that will be used for additional workflows, no need to be deleted for now

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

No branches or pull requests

4 participants