Skip to content

chore: Remove unused parameters and definitions from main.parameters.json #369

Open
Harmanpreet-Microsoft wants to merge 7 commits intodevfrom
psl-paramupdates
Open

chore: Remove unused parameters and definitions from main.parameters.json #369
Harmanpreet-Microsoft wants to merge 7 commits intodevfrom
psl-paramupdates

Conversation

@Harmanpreet-Microsoft
Copy link
Contributor

Purpose

This pull request simplifies the infrastructure parameter files by removing several unused or redundant parameters related to backend/frontend resource existence, environment variable definitions, principal IDs, and AI model deployments. The changes help streamline deployment configuration and reduce complexity in both infra/main.parameters.json and infra/main.waf.parameters.json.

Parameter cleanup and simplification:

  • Removed parameters for backend and frontend resource existence (backendExists, frontendExists) from both infra/main.parameters.json and infra/main.waf.parameters.json to reduce unnecessary configuration. [1] [2] [3]
  • Removed detailed environment variable definitions (backendDefinition, frontendDefinition) from both parameter files, eliminating unused settings and comments. [1] [2]
  • Removed principal ID parameter (principalId) from both files, as it is no longer needed for deployment. [1] [2]
  • Removed AI model deployment configuration (aiModelDeployments) from both files, streamlining the parameter structure. [1] [2]
  • ...

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.

What to Check

Verify that the following are valid

  • ...

Other Information

Copy link
Contributor

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 streamlines the Azure deployment parameter files by removing legacy/unused parameters so the infra/main*.parameters.json inputs better match the current Bicep template surface area and reduce configuration noise.

Changes:

  • Removed legacy backend/frontend “exists” flags and environment-variable definition blocks from both parameter files.
  • Removed legacy principalId and aiModelDeployments parameter entries from both parameter files.

Reviewed changes

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

File Description
infra/main.parameters.json Removes a set of legacy parameters to simplify the default deployment parameter set.
infra/main.waf.parameters.json Mirrors the same parameter cleanup for the WAF/production parameter set.

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

Comment on lines 44 to 49
"vmAdminUsername": {
"value": "${AZURE_ENV_JUMPBOX_ADMIN_USERNAME}"
},
"vmAdminPassword": {
"value": "${AZURE_ENV_JUMPBOX_ADMIN_PASSWORD}"
},
"backendExists": {
"value": "${SERVICE_BACKEND_RESOURCE_EXISTS=false}"
},
"backendDefinition": {
"value": {
"settings": [
{
"name": "",
"value": "${VAR}",
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR} to use the value of 'VAR' from the current environment."
},
{
"name": "",
"value": "${VAR_S}",
"secret": true,
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR_S} to use the value of 'VAR_S' from the current environment."
}
]
}
},
"frontendExists": {
"value": "${SERVICE_FRONTEND_RESOURCE_EXISTS=false}"
},
"frontendDefinition": {
"value": {
"settings": [
{
"name": "",
"value": "${VAR}",
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR} to use the value of 'VAR' from the current environment."
},
{
"name": "",
"value": "${VAR_S}",
"secret": true,
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR_S} to use the value of 'VAR_S' from the current environment."
}
]
}
},
"principalId": {
"value": "${AZURE_PRINCIPAL_ID}"
},
"aiModelDeployments": {
"value": [
{
"name": "gpt-4o",
"model": {
"name": "gpt-4o",
"version": "2024-08-06",
"format": "OpenAI"
},
"sku": {
"name": "GlobalStandard",
"capacity": 50
}
}
]
}
@@ -58,66 +55,6 @@
},
"enableScaling": {
"value": true
Copy link
Contributor

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 updates the Azure deployment parameter files under infra/ to simplify configuration by removing previously included (but now unused) parameters and example definitions, and adjusting how AI model deployment configuration is represented.

Changes:

  • Removed unused parameters (backendExists, frontendExists, backendDefinition, frontendDefinition, principalId) from the infra parameter files.
  • Replaced the previous hard-coded aiModelDeployments example with a new aiModelDeployments entry driven by environment variables.
  • Kept existing single-model GPT parameters (gptModel*) alongside the new aiModelDeployments array.

Reviewed changes

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

File Description
infra/main.parameters.json Removes unused parameters; reintroduces aiModelDeployments with a new schema based on env vars.
infra/main.waf.parameters.json Same cleanup as non-WAF parameters; reintroduces aiModelDeployments with the new schema.

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

Comment on lines +23 to +32
"aiModelDeployments": {
"value": [
{
"deploymentType": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}",
"modelName": "${AZURE_ENV_MODEL_NAME}",
"modelCapacity": "${AZURE_ENV_MODEL_CAPACITY}",
"modelVersion": "${AZURE_ENV_MODEL_VERSION}"
}
]
},
Comment on lines 55 to 59
"value": "${AZURE_ENV_JUMPBOX_ADMIN_USERNAME}"
},
"vmAdminPassword": {
"value": "${AZURE_ENV_JUMPBOX_ADMIN_PASSWORD}"
},
"backendExists": {
"value": "${SERVICE_BACKEND_RESOURCE_EXISTS=false}"
},
"backendDefinition": {
"value": {
"settings": [
{
"name": "",
"value": "${VAR}",
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR} to use the value of 'VAR' from the current environment."
},
{
"name": "",
"value": "${VAR_S}",
"secret": true,
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR_S} to use the value of 'VAR_S' from the current environment."
}
]
}
},
"frontendExists": {
"value": "${SERVICE_FRONTEND_RESOURCE_EXISTS=false}"
},
"frontendDefinition": {
"value": {
"settings": [
{
"name": "",
"value": "${VAR}",
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR} to use the value of 'VAR' from the current environment."
},
{
"name": "",
"value": "${VAR_S}",
"secret": true,
"_comment_name": "The name of the environment variable when running in Azure. If empty, ignored.",
"_comment_value": "The value to provide. This can be a fixed literal, or an expression like ${VAR_S} to use the value of 'VAR_S' from the current environment."
}
]
}
},
"principalId": {
"value": "${AZURE_PRINCIPAL_ID}"
},
"aiModelDeployments": {
"value": [
{
"name": "gpt-4o",
"model": {
"name": "gpt-4o",
"version": "2024-08-06",
"format": "OpenAI"
},
"sku": {
"name": "GlobalStandard",
"capacity": 50
}
}
]
}
…n.waf.parameters.json for improved clarity and organization
Copy link
Contributor

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 refactors the Azure deployment parameter files under infra/ to reduce unused configuration and simplify how model deployment settings are represented.

Changes:

  • Removes unused parameters related to backend/frontend existence flags, env var definition blocks, and principalId.
  • Replaces the previously hard-coded aiModelDeployments entry with an env-var-driven version in both parameter files.
  • Keeps WAF and non-WAF parameter sets aligned by applying the same cleanup in both files.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
infra/main.parameters.json Removes unused backend/frontend/principal parameters and updates aiModelDeployments to be driven by environment variables.
infra/main.waf.parameters.json Mirrors the same cleanup and updates aiModelDeployments for the WAF parameter set.

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

Comment on lines +23 to +27
"aiModelDeployments": {
"value": [
{
"name": "${AZURE_ENV_MODEL_NAME}",
"model": {
Comment on lines +23 to +38
"aiModelDeployments": {
"value": [
{
"name": "${AZURE_ENV_MODEL_NAME}",
"model": {
"name": "${AZURE_ENV_MODEL_NAME}",
"version": "${AZURE_ENV_MODEL_VERSION}",
"format": "OpenAI"
},
"sku": {
"name": "${AZURE_ENV_MODEL_DEPLOYMENT_TYPE}",
"capacity": "${AZURE_ENV_MODEL_CAPACITY}"
}
}
]
},
Comment on lines +23 to +27
"aiModelDeployments": {
"value": [
{
"name": "${AZURE_ENV_MODEL_NAME}",
"model": {
Copy link
Contributor

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 updates the infra deployment parameter templates to reduce unused configuration and standardize model-related defaults, simplifying how environments are configured for deployments.

Changes:

  • Removes unused parameters related to backend/frontend “exists” flags, env var definition blocks, and principalId from the parameter files.
  • Adds default values for GPT model parameters (deployment type/name/capacity/version).
  • Reintroduces/relocates aiModelDeployments with environment-driven templated values.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
infra/main.parameters.json Removes unused parameters and adds GPT model defaults + aiModelDeployments parameter value template.
infra/main.waf.parameters.json Mirrors the main parameters cleanup and GPT model defaults + aiModelDeployments template for WAF deployments.

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

Comment on lines +23 to +24
"aiModelDeployments": {
"value": [
Comment on lines 17 to 19
"gptModelCapacity": {
"value": "${AZURE_ENV_MODEL_CAPACITY}"
"value": "${AZURE_ENV_MODEL_CAPACITY=150}"
},
Comment on lines 17 to 19
"gptModelCapacity": {
"value": "${AZURE_ENV_MODEL_CAPACITY}"
"value": "${AZURE_ENV_MODEL_CAPACITY=150}"
},
@Harmanpreet-Microsoft
Copy link
Contributor Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Mar 17, 2026

@Harmanpreet-Microsoft I've opened a new pull request, #370, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits March 17, 2026 13:00
…aceholders

Co-authored-by: Harmanpreet-Microsoft <175086414+Harmanpreet-Microsoft@users.noreply.github.com>
[WIP] Chore: Remove unused parameters and definitions from main.parameters.json
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