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

AzFilesHybrid - Add parametrized AD Credential for use with admin account or service account #222

Open
jhauray opened this issue Jun 10, 2024 · 0 comments

Comments

@jhauray
Copy link

jhauray commented Jun 10, 2024

In our business use cas, we have a seperated account for admin tasks. This admin account is highly securized : Strong password, MFA, and it can't open a session.

I am not able to use the module as released. So I forked it to add a "credential" parameter in cmdlet. Example :

Join-AzStorageAccount `
         -ResourceGroupName $ResourceGroupName `
         -StorageAccountName $StorageAccountName `
         -DomainAccountType $DomainAccountType `
         -OrganizationalUnitDistinguishedName $OuDistinguishedName `
         -Credential $credential

And I overloaded all ActiveDirectory module cmdlet call in AzFilesHybrid, with credential. In this way, I was able to use the module with my admin account.

Can you add this feature by design in your original module ?

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

No branches or pull requests

1 participant