Azure-Samples / Azure-Samples/azure-files-samples

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

Open
#222 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
261
Forks
202
Avg merge
1d 5h
Merged PRs (30d)
4

Description

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 :

```powershell
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 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.