Skip to content

Conversation

@simonkurtz-MSFT
Copy link
Member

Adds the load balancing sample with various prioritized and weighted examples.

@simonkurtz-MSFT simonkurtz-MSFT requested a review from Copilot May 27, 2025 18:46
@simonkurtz-MSFT simonkurtz-MSFT added documentation Improvements or additions to documentation enhancement New feature or request labels May 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new load balancing sample including APIM policies, backend pool modules, and an accompanying notebook to demonstrate various load balancing configurations.

  • Fixes a typo in a comment (constitute).
  • Introduces a sleepMs parameter in multi-request functions for custom sleep intervals.
  • Updates Bicep modules and templates to support the load balancing sample and refactors module parameter handling.

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated no comments.

Show a summary per file
File Description
shared/python/apimtypes.py Corrects a spelling mistake in a comment
shared/python/apimrequests.py Removes raise_for_status() in _request and adds sleepMs parameter
shared/bicep/modules/* Updates descriptions, removes defaults, and adjusts parameters
samples/load-balancing/* Introduces the load balancing sample and supporting policy XML files
samples/_TEMPLATE/, infrastructure/ Refactors resources and updated policy file loading methods
README.md Adds a sample list table and improves sample descriptions
Comments suppressed due to low confidence (5)

shared/python/apimrequests.py:78

  • The removal of 'response.raise_for_status()' in _request may hide HTTP errors that could help with debugging. If this omission is intentional, please add a clarifying comment to explain the decision.
response.raise_for_status()

samples/load-balancing/main.bicep:97

  • The module name 'aca-webapi29-priority-pool-1' is inconsistent with the related backend module names (which use 'aca-webapi429-1'). Consider renaming it to 'aca-webapi429-priority-pool-1' for clarity and consistency.
name: 'aca-webapi29-priority-pool-1'

samples/load-balancing/main.bicep:121

  • The module name 'aca-webapi29-priority-pool-2' seems inconsistent with the backend module naming convention. It may be clearer to change it to 'aca-webapi429-priority-pool-2'.
name: 'aca-webapi29-priority-pool-2'

samples/load-balancing/main.bicep:145

  • Consider renaming 'aca-webapi29-priority-pool-3' to 'aca-webapi429-priority-pool-3' to align with the naming used in the backend modules.
name: 'aca-webapi29-priority-pool-3'

samples/load-balancing/main.bicep:169

  • The module name 'aca-webapi29-priority-pool-4' appears inconsistent with other related module names. Renaming it to 'aca-webapi429-priority-pool-4' could improve clarity.
name: 'aca-webapi29-priority-pool-4'

@github-actions
Copy link

Python 3.12 Test Results

84 tests  ±0   84 ✅ ±0   1s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit a63a532. ± Comparison against base commit 92c32c2.

@github-actions
Copy link

Python 3.13 Test Results

84 tests  ±0   84 ✅ ±0   0s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit a63a532. ± Comparison against base commit 92c32c2.

@simonkurtz-MSFT simonkurtz-MSFT merged commit d0fc096 into main May 27, 2025
7 checks passed
@simonkurtz-MSFT simonkurtz-MSFT deleted the feature/load-balancing branch May 27, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants