---
title: "Comment by Ľuboš Nikolíni on \"Import new (or update existing) PowerShell module (including its dependencies!) into Azure Automation Account using PowerShell\" | Hashnode"
description: "Ahoj Ondreji, I noticed the error message when using \"-RuntimeVersion 7.1\" parameter as you mentioned in the article (personally I do not need v7.1, but reporti"
url: "https://hashnode.com/posts/import-new-or-update-existing-powershell-module-including-its-dependencies-into-azure-automation-account-using-powershell/65afddd7c2dd0c6f6b7cf2e9/comment/65b22eec47a58fab5a592793"
---

[Discussion](https://hashnode.com/posts/import-new-or-update-existing-powershell-module-including-its-dependencies-into-azure-automation-account-using-powershell/65afddd7c2dd0c6f6b7cf2e9)

Comment [Import new (or update existing) PowerShell module (including its dependencies!) into Azure Automation Account using PowerShell](https://hashnode.com/posts/import-new-or-update-existing-powershell-module-including-its-dependencies-into-azure-automation-account-using-powershell/65afddd7c2dd0c6f6b7cf2e9)

[Ľuboš Nikolíni](https://hashnode.com/@najki)

[Jan 25, 2024](https://hashnode.com/posts/import-new-or-update-existing-powershell-module-including-its-dependencies-into-azure-automation-account-using-powershell/65afddd7c2dd0c6f6b7cf2e9/comment/65b22eec47a58fab5a592793)

Ahoj Ondreji, I noticed the error message when using "-RuntimeVersion 7.1" parameter as you mentioned in the article (personally I do not need v7.1, but reporting in case you would like to have a look at it).

"New-AzAutomationModule : Cannot validate argument on parameter 'RuntimeVersion'. The argument "7.1" does not belong to the set "5.1,7.2" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again."

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[Jan 25, 2024](https://hashnode.com/posts/import-new-or-update-existing-powershell-module-including-its-dependencies-into-azure-automation-account-using-powershell/65afddd7c2dd0c6f6b7cf2e9/comment/65b22eec47a58fab5a592793#reply-65b231c817c2021519ef4c6f)

Thats a funny thing. GUI shows it, but official commands (like Get-AzAutomationModule) don't support it :) So I will remove it too. Thanks for pointing this out
