Azure / Azure/azure-powershell
Why is Az.Reservation not included in the Azure PowerShell MSI Installer?
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
Hi,
For reasons that are not relevant here I use the MSI installer. When I tried to use the Get-AzReservation I get this message:
WARNING: The command Get-AzReservation is part of Azure PowerShell module "Az.Reservations" and it is not installed. Run "Install-Module Az.Reservations" to install it.
Get-AzReservation : The term 'Get-AzReservation' 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:1 char:1
+ Get-AzReservation
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AzReservation:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I tried installing the latest MSI (9.3) and the error is the same, checked ${env:ProgramFiles}\WindowsPowerShell\Modules and Az.Reservation is not there so it seems it is not included in the MSI installer...
Is there a reason for this?
### Script or Debug output
_No response_
### Environment data
_No response_
### Module versions
_No response_
### Error output
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.