You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment overrides let you promote the same extracted APIM artifacts across environments (dev to test to prod) while changing only environment-specific values.
3
+
When promoting API configuration across environments (dev → staging → prod), the API structure stays the same but environment-specific values change — backend URLs, secrets, credentials, and logger endpoints. Override files let you deploy the same extracted artifacts to multiple environments with different property values.
4
+
5
+
## Why overrides exist
6
+
7
+
Consider an API backend URL across environments:
8
+
9
+
-**Dev:**`https://api-dev.contoso.com`
10
+
-**Staging:**`https://api-staging.contoso.com`
11
+
-**Prod:**`https://api.contoso.com`
12
+
13
+
If you extract from dev and publish to prod without overrides, dev values can be published to prod. Overrides replace environment-specific values at publish time.
4
14
5
15
## Use with publish
6
16
@@ -17,9 +27,9 @@ apiops publish \
17
27
18
28
`apiops-cli` uses the APIOps Toolkit override layout:
- A Key Vault in each target environment with the referenced secret.
237
+
- A managed identity with `Key Vault Secrets User` access to the vault.
238
+
- `identityClientId`must reference an identity accessible to the APIM instance.
239
+
240
+
## Common patterns and gotchas
241
+
242
+
### Missing override entries
243
+
244
+
If a new environment-sensitive resource is added in source artifacts but not added to target override files, source-environment values can be published into other environments.
245
+
246
+
### Key Vault permissions
247
+
248
+
A common failure mode is valid Key Vault references with missing identity permissions on the target vault.
249
+
250
+
### Dry-run validation
251
+
252
+
Use `--dry-run` to preview publish behavior with overrides:
0 commit comments