Azure-Samples / Azure-Samples/azure-files-samples
Feature request: Debug-AzStorageAccountAuth could check the MFA exception requirement to be more thorough
- Dominant language
- PowerShell
- Stars
- 261
- Forks
- 202
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 4
Description
I had an issue with configuring SMB for Entra Id Kerberos, and was using Debug-AzStorageAccountAuth to help identify issues. I was getting this error
> New-PSDrive : The system cannot contact a domain controller to service the authentication request. Please try again later
when trying to map a drive to the share that was setup correctly as per documentation with one exception: the sub had a Conditional Access Policy that overrode the exception I had placed per documentation to except MFA for this storage account.
Perhaps this is a known loophole where no check is possible through powershell, but if not, I think it fits in the processing this command does, and there is at least one person who has been tripped up by the red herring error message - ME. Regardless, it would make the set of checks more thorough, I think.
Contributor guide
Research direction
Start at Debug-AzStorageAccountAuth and review its existing checks alongside the Azure Files Entra ID Kerberos and MFA-exception documentation referenced in the report. Determine whether PowerShell can inspect the Conditional Access exception; done means the command reports this requirement reliably or clearly records that it cannot be checked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- authentication, cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100