The term ‘Get-AzContainerApp’ is not recognized

In this Azure PowerShell article, we will discuss how to fix the error “The term ‘Get-AzContainerApp’ is not recognized as the name of a cmdlet” that I got while executing the ‘Get-AzContainerApp’ PowerShell command.

The term ‘Get-AzContainerApp’ is not recognized

I was working on a requirement where I was executing the ‘Get-AzContainerApp’ PowerShell command, the moment I executed this command, I got this error.

The complete error message is as below

Get-AzContainerApp : The term 'Get-AzContainerApp' is not recognized as the name of a 
cmdlet, function, script file, or operable program. Check the spelling of the name, 
or if a path was included, verify that the path is correct and try again.
At line:2 char:1
+ Get-AzContainerApp -ResourceGroupName MyNewResGrp
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AzContainerApp:String) [], Command 
   NotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

You can see the same error below

The term 'Get-AzContainerApp' is not recognized

Now, let’s discuss how I fixed this error.

The term ‘Get-AzContainerApp’ is not recognized [Solved]

The Get-AzContainerApp command is part of Az.App module. So to fix this issue, you can run the below PowerShell command to install the Az.App module.

Install-Module Az.App

Click on the yes to all button to confirm the installation.

Install-Module Az.App
Install Az.App module

Once, the installation of the Az.App module was done, and I can able to execute the ‘Get-AzContainerApp’ PowerShell command without any issue. You can see it below.

Get-AzContainerApp

You may also like following the below articles

Conclusion

In this Azure PowerShell article, we discussed how to fix the error “The term ‘Get-AzContainerApp’ is not recognized as the name of a cmdlet”. Thanks for reading this article !!!