This is a stand-alone version of a script (pullAzureCacheForRedisStats.py
) for pulling raw usage data from Azure Cache for Redis.
We assume you have Azure CLI installed. Python 3.8 or greater is required.
# Clone:
git clone https://github.com/Redislabs-Solution-Architects/acrp2acre.git
# Prepare virtualenv:
cd acrp2acre
python -m venv .\venv
# Activate virtualenv
.\venv\Scripts\activate.bat
# Install necessary libraries
pip install -r requirements.txt
# Log in to your Azure account
az login
#Execute
python pullAzureCacheForRedisStats.py
The output will be in a file called AzureStats.xlsx
in the current directory.
# Clone:
git clone https://github.com/Redislabs-Solution-Architects/acrp2acre.git
# Prepare virtualenv:
cd acrp2acre
python3 -m venv .venv
# Activate virtualenv
source .venv/bin/activate
# Install necessary libraries
pip3 install -r requirements.txt
# Log in to your Azure account
az login
#Execute
python3 pullAzureCacheForRedisStats.py
The PowerShell version of the script is experimental
The Azure PowerShell Az module is required. See this page for installation instructions
This script has been tested on Windows PowerShell 5.1 and PowerShell 7.2
.\Pull-Azure-Cache-For-Redis-Stats.ps1
Please note that the code contained in this repository is not officially supported or product-approved code.