Skip to content
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

chore: Update Get-StorAcctInfo.ps1 script for Azure Files Storage dat… #3

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

JCoreMS
Copy link
Owner

@JCoreMS JCoreMS commented Jun 28, 2024

…a collection Incorrect math for storage available percent

Overview/Summary

Fixes the storage calculation script in the runbook which was yielding a much higher remaining value than truly existed. Values were in the 99.xx% range vs actual for remaining meaning the alert may never trigger when remaining storage is truly low.

This PR fixes/adds/changes/removes

  1. Script: Get-StorAcctInfo.ps1 line 46
    Was --- $RemainingPercent = 100 - ($shareUsageInGB / $shareQuota)
    New --- $RemainingPercent = 100 - ($shareUsageInGB / $shareQuota * 100)

Breaking Changes

  1. N/A

As part of this Pull Request I have

  • Read the Contribution Guide and ensured this PR is compliant with the guide
  • Checked for duplicate Pull Requests
  • Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Ensured PR tests are passing
  • Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

…a collection Incorrect math for storage available percent
@JCoreMS JCoreMS merged commit 8c1fb67 into main Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant