From 1181c13edde2352079e3f05c2e49a57322cd4aae Mon Sep 17 00:00:00 2001 From: pedro-cf Date: Sun, 19 Feb 2023 21:45:07 +0000 Subject: [PATCH] . --- LICENSE | 21 +++++++++++ README.md | 49 ++++++++++++++++++++++++- scheduledRefreshLog.txt | 81 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+), 2 deletions(-) create mode 100644 LICENSE create mode 100644 scheduledRefreshLog.txt diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3cd3b58 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Pedro Fernandes + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 56487b8..2583a80 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,47 @@ -# ReportWatcher -Power BI Report Watcher +# PowerBI Report Watcher + +PowerBI Report Watcher is a PowerShell script that provides various functionalities to monitor and manage Power BI reports. + +## Usage + +To use the script, you can follow these steps: +1. Open PowerShell and navigate to the directory where the script is located. +2. Run the script using the following command: + ``` + .\PowerBIReportWatcher.ps1 + ``` +3. The script will ask for your Power BI credentials. Enter your email and password, and then select the environment you want to work with. +4. Once you're authenticated, you can select from the following options: + 1. Show currently Failed Refreshes (Last ***$ignoreDays*** days) + 2. Show All Reports + 3. Show All Scheduled Refreshes + 4. Export Failed Refreshes (Last ***$ignoreDays*** days) + 5. Export All Reports + 6. Export All Scheduled Refreshes + +## Requirements + +PowerBI Report Watcher requires the following: +- Windows PowerShell 5.1 or later +- Azure Active Directory (AD) module for Windows PowerShell +- Microsoft Power BI module for Windows PowerShell + +You can install the required modules using the following commands: + +``` +Install-Module AzureAD +Install-Module -Name MicrosoftPowerBIMgmt +``` + + + +## License + +PowerBI Report Watcher is released under the MIT License. See the [LICENSE](LICENSE) file for details. + +## Support + +If you find this project useful, consider buying me a coffee! Donations help keep this project going and are greatly appreciated. + +[![Buy me a coffee](https://img.shields.io/badge/-Buy%20me%20a%20coffee-orange?logo=buy-me-a-coffee&logoColor=white&style=for-the-badge)](https://www.buymeacoffee.com/pedro_cf) + diff --git a/scheduledRefreshLog.txt b/scheduledRefreshLog.txt new file mode 100644 index 0000000..2500b6c --- /dev/null +++ b/scheduledRefreshLog.txt @@ -0,0 +1,81 @@ +********************** +Windows PowerShell transcript start +Start time: 20201215154053 +Username: DESKTOP-TTNT2P5\Pedro +RunAs User: DESKTOP-TTNT2P5\Pedro +Configuration Name: +Machine: DESKTOP-TTNT2P5 (Microsoft Windows NT 10.0.18363.0) +Host Application: Powershell.exe -executionpolicy remotesigned -File ReportWatcher.ps1 +Process ID: 13104 +PSVersion: 5.1.18362.1171 +PSEdition: Desktop +PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.18362.1171 +BuildVersion: 10.0.18362.1171 +CLRVersion: 4.0.30319.42000 +WSManStackVersion: 3.0 +PSRemotingProtocolVersion: 2.3 +SerializationVersion: 1.1.0.1 +********************** +Transcript started, output file is .\scheduledRefreshLog.txt +Printing Scheduled Refreshes... + + + + UTC Duration Dataset +----- -------- ------- +PS>TerminatingError(Invoke-WebRequest): "The remote server returned an error: (415) Unsupported Media Type." +00:00 00:01:42 DTO Africa > Erros Faturação Oficinas +00:30 --- +01:00 --- +01:30 --- +02:00 --- +02:30 --- +03:00 --- +03:30 --- +04:00 --- +04:30 --- +05:00 --- +05:30 00:02:15 DTO Xtracars > XtraCars +06:00 --- +06:30 --- +07:00 --- +07:30 --- +08:00 --- +08:30 --- +09:00 00:12:41 DTO Hyundai > Impacto de Campanhas +09:00 00:10:04 DTO Hyundai > Marketing Regional +09:00 00:11:19 DTO Africa > Dashboard Logística +09:30 --- +10:00 00:09:59 DTO Africa > Tesouraria África +10:30 --- +11:00 --- +11:30 --- +12:00 --- +12:30 --- +13:00 --- +13:30 --- +14:00 --- +14:30 00:02:15 DTO Xtracars > XtraCars +15:00 00:09:59 DTO Africa > Tesouraria África +15:30 --- +16:00 --- +16:30 --- +17:00 --- +17:30 --- +18:00 --- +18:30 --- +19:00 --- +19:30 00:02:15 DTO Xtracars > XtraCars +20:00 --- +20:30 --- +21:00 --- +21:30 --- +22:00 --- +22:30 --- +23:00 00:12:05 DTO Hyundai > Insert DW - Mediamonitor +23:30 --- + +********************** +Windows PowerShell transcript end +End time: 20201215154115 +**********************