From e450787cf9e4651fa3ad8c4956db1e3eb438fa1e Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Fri, 9 May 2025 12:27:27 -0600
Subject: [PATCH 1/8] code base
---
.../README.md} | 52 +++++++++++++++++++
1 file changed, 52 insertions(+)
rename 0_Azure/1_AzureData/1_Databases/demos/{11_enablingAutoscaleIOPSmySQL.md => 11_enablingAutoscaleIOPSmySQL/README.md} (68%)
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
similarity index 68%
rename from 0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL.md
rename to 0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
index 7eb93955e..31d0a5524 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
@@ -25,6 +25,7 @@ Last updated: 2025-05-09
- [How to provision](#how-to-provision)
- [How to enable IOPS](#how-to-enable-iops)
- [How to Monitor IOPS Scaling](#how-to-monitor-iops-scaling)
+- [Azure CLI Script to Enable Autoscale IOPS](#azure-cli-script-to-enable-autoscale-iops)
@@ -80,6 +81,57 @@ Last updated: 2025-05-09
https://github.com/user-attachments/assets/19b96128-e37f-40b4-8e23-8a5384bc6686
+## Azure CLI Script to Enable Autoscale IOPS
+
+> [!NOTE]
+> The script below will execute:
+> - Using Python 3.13.3
+> - Checks if Azure CLI is available at the specified path.
+> - Lists all MySQL Flexible Servers.
+> - Tries to get each server’s resource group.
+> - If the resource group is missing, it prompts you to enter it.
+> - Asks for confirmation before enabling autoscale IOPS.
+
+```python
+import subprocess
+import json
+
+# Step 1: Get list of MySQL Flexible Servers
+servers_output = subprocess.check_output(
+ ["az", "mysql", "flexible-server", "list", "--query", "[].name", "-o", "tsv"],
+ text=True
+)
+servers = servers_output.strip().splitlines()
+
+# Step 2: Loop through each server and enable autoscale IOPS
+for server in servers:
+ # Get the resource group for the server
+ rg_output = subprocess.check_output(
+ ["az", "mysql", "flexible-server", "show", "--name", server, "--query", "resourceGroup", "-o", "tsv"],
+ text=True
+ )
+ resource_group = rg_output.strip()
+
+ print(f"Enabling autoscale IOPS for {server} in {resource_group}...")
+
+ # Update the server to enable autoscale IOPS
+ subprocess.run([
+ "az", "mysql", "flexible-server", "update",
+ "--name", server,
+ "--resource-group", resource_group,
+ "--iops", "Auto"
+ ])
+```
+
+## How to execute it Azure CLI Script to Enable Autoscale IOPS
+
+1. Download [the script](./enable_autoscale_iops.py) to your local machine or a cloud shell environment.
+2. Make sure you're logged in: `az login`
+4. Run the script: `py enable_autoscale_iops.py`
+
+> Example: enabling Autoscale IOPS on three different servers, each hosted in a separate resource group but under the same subscription.
+
+
From 135d099613ce7fce3062c90bbce7ad2e44244cd1 Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Fri, 9 May 2025 12:28:21 -0600
Subject: [PATCH 2/8] just overview here
---
.../11_enablingAutoscaleIOPSmySQL/README.md | 54 -------------------
1 file changed, 54 deletions(-)
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
index 31d0a5524..f2998185c 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
@@ -25,7 +25,6 @@ Last updated: 2025-05-09
- [How to provision](#how-to-provision)
- [How to enable IOPS](#how-to-enable-iops)
- [How to Monitor IOPS Scaling](#how-to-monitor-iops-scaling)
-- [Azure CLI Script to Enable Autoscale IOPS](#azure-cli-script-to-enable-autoscale-iops)
@@ -81,59 +80,6 @@ Last updated: 2025-05-09
https://github.com/user-attachments/assets/19b96128-e37f-40b4-8e23-8a5384bc6686
-## Azure CLI Script to Enable Autoscale IOPS
-
-> [!NOTE]
-> The script below will execute:
-> - Using Python 3.13.3
-> - Checks if Azure CLI is available at the specified path.
-> - Lists all MySQL Flexible Servers.
-> - Tries to get each server’s resource group.
-> - If the resource group is missing, it prompts you to enter it.
-> - Asks for confirmation before enabling autoscale IOPS.
-
-```python
-import subprocess
-import json
-
-# Step 1: Get list of MySQL Flexible Servers
-servers_output = subprocess.check_output(
- ["az", "mysql", "flexible-server", "list", "--query", "[].name", "-o", "tsv"],
- text=True
-)
-servers = servers_output.strip().splitlines()
-
-# Step 2: Loop through each server and enable autoscale IOPS
-for server in servers:
- # Get the resource group for the server
- rg_output = subprocess.check_output(
- ["az", "mysql", "flexible-server", "show", "--name", server, "--query", "resourceGroup", "-o", "tsv"],
- text=True
- )
- resource_group = rg_output.strip()
-
- print(f"Enabling autoscale IOPS for {server} in {resource_group}...")
-
- # Update the server to enable autoscale IOPS
- subprocess.run([
- "az", "mysql", "flexible-server", "update",
- "--name", server,
- "--resource-group", resource_group,
- "--iops", "Auto"
- ])
-```
-
-## How to execute it Azure CLI Script to Enable Autoscale IOPS
-
-1. Download [the script](./enable_autoscale_iops.py) to your local machine or a cloud shell environment.
-2. Make sure you're logged in: `az login`
-4. Run the script: `py enable_autoscale_iops.py`
-
-> Example: enabling Autoscale IOPS on three different servers, each hosted in a separate resource group but under the same subscription.
-
-
-
-
Total Visitors
From f2c6ce363eaa7230a5f362d8311c3cdcec0d2135 Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Mon, 12 May 2025 15:03:51 -0600
Subject: [PATCH 3/8] in progress ' need to be cleaned
---
.../AutoscaleMultiple-IOPS.md | 103 ++++++++++++++++++
1 file changed, 103 insertions(+)
create mode 100644 0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
new file mode 100644
index 000000000..e5039c1ff
--- /dev/null
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
@@ -0,0 +1,103 @@
+# Autoscale IOPS for multiple Azure MySQL Flexible Server
+
+Costa Rica
+
+[](https://github.com/)
+[brown9804](https://github.com/brown9804)
+
+Last updated: 2025-05-09
+
+----------
+
+> Using [Python 3.7+](https://www.python.org/downloads/source/)
+
+> [!NOTE]
+> Enable Autoscale IOPS via REST API, as now this is the only way to automate enabling Autoscale IOPS since, Azure CLI and PowerShell do not support this setting yet.
+
+> [!IMPORTANT]
+> Autoscale IOPS is `only available` for the `General Purpose` and `Business Critical tiers`. `Burstable tier` (B-series) servers (e.g., B1ms) `do not support autoscale IOPS`.
+
+## Pre-requisites
+
+- Install azure-identity with: `py -m pip install azure-identity requests`
+
+

+
+- [Install Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) to work with both Terraform and Azure commands.
+
+

+
+## By Resource Group
+
+> - Automatically retrieves your **Azure subscription ID** using the Azure CLI.
+> - Prompts you only for the **resource group name**.
+> - Lists all MySQL Flexible Servers in that resource group.
+> - Sends a `PATCH request`` to enable `autoIoScaling` for each server using the `Azure REST API`
+
+1. Make sure you're logged in: `az login`
+
+
+## Across a Subscription
+
+> You can also enable autoscale IOPS across an entire subscription, it requires:
+> - Listing all MySQL Flexible Servers in the subscription.
+> - For each server, retrieving its resource group.
+> - Applying the update if the server is in a supported tier (General Purpose or Business Critical).
+
+## Azure CLI Script to Enable Autoscale IOPS
+
+> [!NOTE]
+> The script below will execute:
+> - Using Python 3.13.3
+> - Checks if Azure CLI is available at the specified path.
+> - Lists all MySQL Flexible Servers.
+> - Tries to get each server’s resource group.
+> - If the resource group is missing, it prompts you to enter it.
+> - Asks for confirmation before enabling autoscale IOPS.
+
+```python
+import subprocess
+import json
+
+# Step 1: Get list of MySQL Flexible Servers
+servers_output = subprocess.check_output(
+ ["az", "mysql", "flexible-server", "list", "--query", "[].name", "-o", "tsv"],
+ text=True
+)
+servers = servers_output.strip().splitlines()
+
+# Step 2: Loop through each server and enable autoscale IOPS
+for server in servers:
+ # Get the resource group for the server
+ rg_output = subprocess.check_output(
+ ["az", "mysql", "flexible-server", "show", "--name", server, "--query", "resourceGroup", "-o", "tsv"],
+ text=True
+ )
+ resource_group = rg_output.strip()
+
+ print(f"Enabling autoscale IOPS for {server} in {resource_group}...")
+
+ # Update the server to enable autoscale IOPS
+ subprocess.run([
+ "az", "mysql", "flexible-server", "update",
+ "--name", server,
+ "--resource-group", resource_group,
+ "--iops", "Auto"
+ ])
+```
+
+## How to execute it Azure CLI Script to Enable Autoscale IOPS
+
+1. Download [the script](./enable_autoscale_iops.py) to your local machine or a cloud shell environment.
+2. Make sure you're logged in: `az login`
+4. Run the script: `py enable_autoscale_iops.py`
+
+> Example: enabling Autoscale IOPS on three different servers, each hosted in a separate resource group but under the same subscription.
+
+

+
+
+
+
Total Visitors
+

+
From 5e6e9582664dcc3a9ba55f489070b3fa8aec4295 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Mon, 12 May 2025 21:04:03 +0000
Subject: [PATCH 4/8] Update last modified date in Markdown files
---
.../11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md | 2 +-
.../1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
index e5039c1ff..1eb0b33b7 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
@@ -5,7 +5,7 @@ Costa Rica
[](https://github.com/)
[brown9804](https://github.com/brown9804)
-Last updated: 2025-05-09
+Last updated: 2025-05-12
----------
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
index f2998185c..87d78cc8f 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
@@ -5,7 +5,7 @@ Costa Rica
[](https://github.com/)
[brown9804](https://github.com/brown9804)
-Last updated: 2025-05-09
+Last updated: 2025-05-12
----------
From 0798596d1d1bd9979967abd3295247a731e8d9a8 Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Mon, 12 May 2025 15:42:44 -0600
Subject: [PATCH 5/8] format
---
.../3_AzureAI/9_AzureOpenAI/demos/10_AssistantsPlayground.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/0_Azure/3_AzureAI/9_AzureOpenAI/demos/10_AssistantsPlayground.md b/0_Azure/3_AzureAI/9_AzureOpenAI/demos/10_AssistantsPlayground.md
index 709713b97..694ac570a 100644
--- a/0_Azure/3_AzureAI/9_AzureOpenAI/demos/10_AssistantsPlayground.md
+++ b/0_Azure/3_AzureAI/9_AzureOpenAI/demos/10_AssistantsPlayground.md
@@ -12,8 +12,6 @@ Last updated: 2025-03-03
> [!NOTE]
> Currently, there is no specific timeline for the full release of Azure OpenAI Assistants. It is typical for Azure services to stay in the preview phase for several months. During this period, we collect feedback and make necessary improvements.
-## Wiki
-
Table of Contents (Click to expand)
From c0e3c862592854ea3b824d18bc44e2240c7b19f4 Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Mon, 12 May 2025 15:44:13 -0600
Subject: [PATCH 6/8] deployment models format
---
.../demos/2_ModelsDeploymentOverview.md | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/0_Azure/3_AzureAI/9_AzureOpenAI/demos/2_ModelsDeploymentOverview.md b/0_Azure/3_AzureAI/9_AzureOpenAI/demos/2_ModelsDeploymentOverview.md
index ffcb204db..5ec7d359c 100644
--- a/0_Azure/3_AzureAI/9_AzureOpenAI/demos/2_ModelsDeploymentOverview.md
+++ b/0_Azure/3_AzureAI/9_AzureOpenAI/demos/2_ModelsDeploymentOverview.md
@@ -9,6 +9,22 @@ Last updated: 2024-11-19
----------
+
+List of References (Click to expand)
+
+- [Overview: Deploy AI models in Azure AI Foundry portal](https://learn.microsoft.com/en-us/azure/ai-foundry/concepts/deployments-overview)
+
+
+
+
+Table of Contents (Click to expand)
+
+- [Overview](#overview)
+- [How to](#how-to)
+- [Example API Call](#example-api-call)
+
+
+
## Overview
> `Deployments` in Azure OpenAI Studio involve making AI models, workflows, and applications available for use in production environments. This includes hosting models on servers or in the cloud and creating APIs or other interfaces for users to interact with the models.
@@ -90,4 +106,4 @@ print(response.choices[0].text)
Total Visitors

-
\ No newline at end of file
+
From 5a288c0aeee0cb6a15443c728e6535cdde937177 Mon Sep 17 00:00:00 2001
From: Timna Brown <24630902+brown9804@users.noreply.github.com>
Date: Tue, 13 May 2025 09:08:04 -0600
Subject: [PATCH 7/8] overview going to be moved
---
.../AutoscaleMultiple-IOPS.md | 46 +------------------
1 file changed, 2 insertions(+), 44 deletions(-)
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
index 1eb0b33b7..a9cfb5dcb 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
@@ -34,8 +34,7 @@ Last updated: 2025-05-12
> - Lists all MySQL Flexible Servers in that resource group.
> - Sends a `PATCH request`` to enable `autoIoScaling` for each server using the `Azure REST API`
-1. Make sure you're logged in: `az login`
-
+Review [the script](./enable_autoscale_iops_byRG.py), and download it to your local machine.
## Across a Subscription
@@ -44,47 +43,7 @@ Last updated: 2025-05-12
> - For each server, retrieving its resource group.
> - Applying the update if the server is in a supported tier (General Purpose or Business Critical).
-## Azure CLI Script to Enable Autoscale IOPS
-
-> [!NOTE]
-> The script below will execute:
-> - Using Python 3.13.3
-> - Checks if Azure CLI is available at the specified path.
-> - Lists all MySQL Flexible Servers.
-> - Tries to get each server’s resource group.
-> - If the resource group is missing, it prompts you to enter it.
-> - Asks for confirmation before enabling autoscale IOPS.
-
-```python
-import subprocess
-import json
-
-# Step 1: Get list of MySQL Flexible Servers
-servers_output = subprocess.check_output(
- ["az", "mysql", "flexible-server", "list", "--query", "[].name", "-o", "tsv"],
- text=True
-)
-servers = servers_output.strip().splitlines()
-
-# Step 2: Loop through each server and enable autoscale IOPS
-for server in servers:
- # Get the resource group for the server
- rg_output = subprocess.check_output(
- ["az", "mysql", "flexible-server", "show", "--name", server, "--query", "resourceGroup", "-o", "tsv"],
- text=True
- )
- resource_group = rg_output.strip()
-
- print(f"Enabling autoscale IOPS for {server} in {resource_group}...")
-
- # Update the server to enable autoscale IOPS
- subprocess.run([
- "az", "mysql", "flexible-server", "update",
- "--name", server,
- "--resource-group", resource_group,
- "--iops", "Auto"
- ])
-```
+Review [the script](./enable_autoscale_iops.py), and download it to your local machine.
## How to execute it Azure CLI Script to Enable Autoscale IOPS
@@ -96,7 +55,6 @@ for server in servers:
-
Total Visitors

From 173f5a6794a9feb1a7196e6b900245712fec23ab Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
Date: Tue, 13 May 2025 15:08:19 +0000
Subject: [PATCH 8/8] Update last modified date in Markdown files
---
.../11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md | 2 +-
.../1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
index a9cfb5dcb..71b6b497a 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/AutoscaleMultiple-IOPS.md
@@ -5,7 +5,7 @@ Costa Rica
[](https://github.com/)
[brown9804](https://github.com/brown9804)
-Last updated: 2025-05-12
+Last updated: 2025-05-13
----------
diff --git a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
index 87d78cc8f..4ba6e31db 100644
--- a/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
+++ b/0_Azure/1_AzureData/1_Databases/demos/11_enablingAutoscaleIOPSmySQL/README.md
@@ -5,7 +5,7 @@ Costa Rica
[](https://github.com/)
[brown9804](https://github.com/brown9804)
-Last updated: 2025-05-12
+Last updated: 2025-05-13
----------