-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AzMetric returns no data #20044
Comments
Most of that error output is from my previous call to Body: |
@charliekunkel could you share detail steps of creating vm and how to get data from Portal CLI? We need to compare the difference. |
The VMs have existed for years. They were created via the Azure portal GUI via going to the VMs resource page, then clicking +Create. If I go to the Azure portal and click the Cloud Shell icon, then enter this: PS /home/ckunkel> $webserver = "fuzeweb01" It works. PS /home/ckunkel> write-output $creditsRemaining.Data.Average I need to be able to run this from powershell on the VMs though. It doesn't work on any of them. The same thing happens. It outputs the warnings, but no data is returned to the $creditsRemaining variable. Thanks |
any update? Still, to date, occasionally |
Description
This DOES work from the Azure Portal CLI. Just not from any of the VMs and I need to run it on the VMs as part of a scheduled task. I tried capturing the results in a variable and outputting .Data.Average property (per #8970), but that doesn't work either for me. I've already spent 4 hours on this with no results. Yes, I've completely uninstalled and re-installed the Az Module and rebooted several times. Please help.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: