13 thoughts on “Azure Files SMB Access with Windows AD

  1. Hello there I have been trying to follow your Youtube VID, and getting stuck trying to join teh storge account to my AD. I keep getting the following

  2. Hello I have been following along in your youtube VID. I seem to be getting stuck joining the Storage account to my local AD. Any idea what my issue is here.
    Error I am getting is below

    Unable to find type [Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount].
    At C:\Users\bdpbmain\Documents\WindowsPowerShell\Modules\AzFilesHybrid\0.1.2.0\AzFilesHybrid.psm1:3496 char:9
    + [Microsoft.Azure.Commands.Management.Storage.Models.PSStorage …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (Microsoft.Azure…SStorageAccount:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

  3. I’m not able to import the AzFilesHybrid module, I get this error when attempting that:

    PS C:\temp\AzFilesHybrid> Import-Module -Name AzFilesHybrid -Force
    Import-Module : The specified module ‘Az.Network’ was not loaded because no valid module file was found in any module directory.
    At C:\Program Files\WindowsPowerShell\Modules\AzFilesHybrid\0.2.0.0\AzFilesHybrid.psm1:947 char:5
    + Import-Module -Name Az.Network -Global -ErrorAction Stop
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (Az.Network:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    Import-Module : The module to process ‘AzFilesHybrid.psm1’, listed in field ‘ModuleToProcess/RootModule’ of module manifest ‘C:\Program
    Files\WindowsPowerShell\Modules\AzFilesHybrid\0.2.0.0\AzFilesHybrid.psd1’ was not processed because no valid module was found in any module directory.
    At line:1 char:1
    + Import-Module -Name AzFilesHybrid -Force
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (AzFilesHybrid:String) [Import-Module], PSInvalidOperationException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    I also tried installing the Az module first (Install-Module -Name Az -AllowClobber -Scope CurrentUser), then rerunning the AzFilesHybrid module – still fails…

    Any idea what the root cause is?

    1. I ran in to this and had to install the az.network module first. I also copied the directory to C:\Windows\System32\WindowsPowerShell\v1.0\Modules but I don’t think it was necessary.

      Install-Module az.network

  4. Hi, Great article – I also watched your videos on Youtube.

    Couple of questions regarding the DNS setup for the endpoint…watching some content from MS they have a setup where they leverage a DNS conditional forwarder to point to a set of DNS server is their Azure environment, which in turn has a forwarder configured to point to an IP, which according to them is a special reserved IP address and is the same in every vNET. This is WAY more complicated that the setup you reference on your video….Can you speak to this at all? I understand the DNS piece, I’m just wondering why architecturally they would opt for something so complex….

    They went on to say they would have ARM templates available to provide this setup, but I haven’t been able to find these anywhere – I don’t suppose you have knowledge of that either?

    Thanks!
    BEN

  5. Hi, great video. Question, do I have to do the mount as Super User for each VM in a given VNET for then to be able to access as one of the Users in the Domain Groups?
    Because I managed to add the NTFS access to a given group but when I try to connect from another VM it does not work. Thanks.

  6. Hi,

    Your command `Import-Module -Name AzFilesHybrid` does not seem to work:

    PS C:\Users\azureuser\Downloads\AzFilesHybrid> Import-Module -Name AzFilesHybrid
    Request-PowerShellGetModule : PowerShellGet was not successfully installed, and is a requirement of this module. See
    https://docs.microsoft.com/powershell/scripting/gallery/installing-psget for information on how to manually troubleshoot the PowerShellGet installation.
    At C:\Program Files\WindowsPowerShell\Modules\AzFilesHybrid\0.2.0.0\AzFilesHybrid.psm1:5562 char:5
    + Request-PowerShellGetModule
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Request-PowerShellGetModule

    Import-Module : The module to process ‘AzFilesHybrid.psm1’, listed in field ‘ModuleToProcess/RootModule’ of module manifest ‘C:\Program
    Files\WindowsPowerShell\Modules\AzFilesHybrid\0.2.0.0\AzFilesHybrid.psd1’ was not processed because no valid module was found in any module directory.
    At line:1 char:1
    + Import-Module -Name AzFilesHybrid
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (AzFilesHybrid:String) [Import-Module], PSInvalidOperationException
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

    PS C:\Users\azureuser\Downloads\AzFilesHybrid>

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.