Hi @Christopher J Nuss ,
I understand that you are encountering error related to setting up SMB access for a Storage Account.
As per the provided error message, it seems that the Encryption Type
parameter is not a valid parameter for the Join-AzStorageAccountForAuth
cmdlet. Which also indicates that Join-AzStorageAccount
cmdlet does not recognize the -EncryptionType
parameter. This could be due to couple reasons. In order to resolve this issue. Please follow the below suggestions:
- Please check and make sure you are using the correct version of the AzFilesHybrid PowerShell module that supports the parameters you need. The
-EncryptionType
parameter might not be available in the version you currently have installed. - Please check the documentation for the
Join-AzStorageAccount
cmdlet to verify if the-EncryptionType
parameter is a valid option. If it has been deprecated or removed in your version, you will need to modify your command accordingly. - If you are setting up encryption for your storage account, please follow the recommended method outlined in the Azure documentation. This may involve using different cmdlets or parameters.
- Since you mentioned that you are using both ISE and PowerShell 7, please ensure you are running the commands in an environment compatible with the cmdlet and its parameters. It is recommended to use Windows PowerShell 5.1 for certain cmdlets. The cmdlet must be run from a client machine that is domain-joined to the Microsoft Entra Domain Services domain.
- Also, if the
EncryptionType
is not necessary, try removing it and run the cmdlet again to check if rest of the command works as expected. - Please check the below documentation or try using
Get-Command Join-AzStorageAccount -Syntax
to see the available parameters accordingly.
Please refer the documentation here:
I hope this helps! Please do let us know if you any further quires in the comments sections. We will be glad to assist you closely.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.