-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add Log Analytics workspace and diagnostics for deployment infrastructure #300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0b48f94
feat: add Log Analytics workspace and diagnostics for deployment cont…
mawasile f2f9bf6
feat: add search index configuration script with data fetching and up…
mawasile 343b017
feat: add time sleep resources for network readiness and OpenAI provi…
mawasile 3f60019
fix: adjust dependency declaration for OpenAI provisioning wait and a…
mawasile 8ef947a
fix: update AZURE_ENV_NAME to handle pull request context
mawasile 05b168d
feat: add diagnostic settings for Azure resources to enhance monitori…
mawasile 2c4ec6d
fix: remove unused azd_env_seed variable from naming configuration
mawasile 4295ab1
fix: update naming conventions for Power Platform NSGs in diagnostic …
mawasile 3e1c840
fix: update comment for Azure AI Search Service diagnostic settings a…
mawasile 653b416
Merge branch 'main' into mawasile/add-additional-logging-to-infra
mawasile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Troubleshooting tips | ||
|
|
||
| ## Quota error during deployment | ||
|
|
||
| If you see an InsufficientQuota error mentioning "Tokens Per Minute", the requested `scale.capacity` (thousands of TPM) exceeds your subscription's available quota — lower `scale.capacity` in TFVARS or request a quota increase in the Azure portal. | ||
|
|
||
| ## Private endpoint fails with AccountProvisioningStateInvalid | ||
|
|
||
| This occurs when Terraform tries to create the private endpoint before the Azure OpenAI (Cognitive Services) account leaves the `Accepted` state; wait until the resource shows `Succeeded` (portal or `az resource show`) and re-run the provisioning (`azd provision`). | ||
|
|
||
| ## Use GitHub Copilot to help troubleshoot | ||
|
|
||
| If you're unsure how to fix a deployment error, open the relevant files in VS Code and use GitHub Copilot for suggestions. Copilot can propose TFVARS overrides, sample values, terraform plan snippets, or concise support-request wording; always review and test generated suggestions before applying them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright (c) Microsoft Corporation. | ||
| # Licensed under the MIT license. | ||
|
|
||
| # Resource Group Configuration and Management | ||
| # This file contains resource group resources and related diagnostic settings | ||
|
|
||
| # Resource group logic - use existing or create new | ||
| locals { | ||
| use_existing_resource_group = var.resource_group_name != null && var.resource_group_name != "" | ||
| resource_group_name = local.use_existing_resource_group ? var.resource_group_name : azurerm_resource_group.this[0].name | ||
| resource_group_id = local.use_existing_resource_group ? data.azurerm_resource_group.existing[0].id : azurerm_resource_group.this[0].id | ||
| } | ||
|
|
||
| # Data source to validate existing resource group exists | ||
| data "azurerm_resource_group" "existing" { | ||
| count = local.use_existing_resource_group ? 1 : 0 | ||
| name = var.resource_group_name | ||
| } | ||
|
|
||
| # The Resource Group that will contain the resources managed by this module (only created if not using existing) | ||
| resource "azurerm_resource_group" "this" { | ||
| count = local.use_existing_resource_group ? 0 : 1 | ||
| location = local.primary_azure_region | ||
| name = azurecaf_name.main_names.results["azurerm_resource_group"] | ||
| tags = merge(var.tags, local.env_tags) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.