You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
script D4Storage-PricingEstimation-Per-Storage.ps1 requires the Az.Storage module, but it isn't listed as a #Requires
To Reproduce
try to run the D4Storage-PricingEstimation-Per-Storage.ps1 script without having the az.Storage module installed
receive error
Line |
20 | $storageAccounts = Get-AzStorageAccount -ErrorAction Stop
| ~~~~~~~~~~~~~~~~~~~~
| The term 'Get-AzStorageAccount' is not recognized as a name of a cmdlet, function, script file, or executable
| program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
Expected behavior
It should fail earlier with an error that a required module is missing. Similar to how Az.Monitor is warned about
.\D4Storage-PricingEstimation-Per-Storage.ps1
.\D4Storage-PricingEstimation-Per-Storage.ps1: The script 'D4Storage-PricingEstimation-Per-Storage.ps1' cannot be run because the following modules that are specified by the "#requires" statements of the script are missing: Az.Monitor.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
script D4Storage-PricingEstimation-Per-Storage.ps1 requires the Az.Storage module, but it isn't listed as a #Requires
To Reproduce
try to run the D4Storage-PricingEstimation-Per-Storage.ps1 script without having the az.Storage module installed
receive error
Line |
20 | $storageAccounts = Get-AzStorageAccount -ErrorAction Stop
| ~~~~~~~~~~~~~~~~~~~~
| The term 'Get-AzStorageAccount' is not recognized as a name of a cmdlet, function, script file, or executable
| program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
Expected behavior
It should fail earlier with an error that a required module is missing. Similar to how Az.Monitor is warned about
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: