Hi,
i'm getting the following error.
./Create_vmCostInfo.ps1 MyVmName
C:\Create_vmCostInfo.ps1 : Cannot validate
argument on parameter 'VMName'. The "Get-AzVM -Name $_" validation script for the argument with value "MyVmName" did
not return a result of True. Determine why the validation script failed, and then try the command again.
At line:1 char:25
- ./Create_vmCostInfo.ps1 MyVmName
-
- CategoryInfo : InvalidData: (:) [Create_vmCostInfo.ps1], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationError,Create_vmCostInfo.ps1