Skip to content

fix: update GPT model version to 2024-11-20 across configuration files#446

Merged
Roopan-Microsoft merged 3 commits into
devfrom
codemod-versionupgrade-1106
Jun 11, 2026
Merged

fix: update GPT model version to 2024-11-20 across configuration files#446
Roopan-Microsoft merged 3 commits into
devfrom
codemod-versionupgrade-1106

Conversation

@Ragini-Microsoft

Copy link
Copy Markdown
Contributor

Purpose

This pull request updates the default GPT model version used in the deployment templates and infrastructure, and changes the Azure role assignment for the application service principal. It also includes updates to the generated ARM templates and minor dependency order adjustments.

Model version update:

  • Changed the default GPT model version from 2024-08-06 to 2024-11-20 in documentation, Bicep parameters, and ARM templates to ensure deployments use the latest model version. [1] [2] [3] [4]

Role assignment changes:

  • Updated the roleDefinitionIdOrName for the application service principal from 'Cognitive Services OpenAI Contributor' to the GUID for 'Cognitive Services OpenAI User' in both Bicep and ARM templates, tightening permissions. [1] [2] [3]

Infrastructure and template updates:

  • Regenerated ARM templates (infra/main.json) to reflect the updated Bicep version (0.44.1.10279) and new template hashes, ensuring consistency with the latest Bicep tooling. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Dependency order adjustments:

  • Minor reordering of resource dependencies in the generated ARM templates to improve deployment reliability and correctness. [1] [2] [3]

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

  • I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • I have validated the deployment process successfully and all services are running as expected with this change.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the solution’s default GPT model version in the infrastructure templates and documentation, and tightens the app service principal’s Azure AI permissions by switching to the Cognitive Services OpenAI User role. It also includes regenerated ARM output from a newer Bicep compiler and minor dependency ordering changes.

Changes:

  • Updated default gptModelVersion from 2024-08-06 to 2024-11-20 in Bicep, generated ARM templates, and docs.
  • Changed the AI Services role assignment for the app identity from OpenAI Contributor to OpenAI User (GUID 5e0bd9bd-7b93-4f28-af87-19fc36ad61bd) in both main and custom infra templates (and reflected in ARM output).
  • Regenerated infra/main.json with Bicep 0.44.1.10279, including updated template hashes and some dependsOn ordering adjustments.

Reviewed changes

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

File Description
infra/main.json Regenerated ARM template reflecting the new GPT model version default, updated role assignment GUID, and updated dependency ordering/template hashes.
infra/main.bicep Updates the default GPT model version and switches the app’s AI role assignment to OpenAI User.
infra/main_custom.bicep Mirrors main.bicep changes to keep custom deployments aligned (model version + role assignment).
docs/CustomizingAzdParameters.md Updates the documented default GPT model version for AZURE_ENV_GPT_MODEL_VERSION.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

@Roopan-Microsoft Roopan-Microsoft merged commit b4f17b5 into dev Jun 11, 2026
7 checks passed
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.

3 participants