Skip to content

[AVM Module Issue]: adding LAW requires a shared key, which is not required when using the resource directly #39

Open
@kewalaka

Description

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Module specific issue

  • I confirm that this issue is about this AVM module and not about the resource itself, or how to use Terraform.

Issue Type?

Feature Request

(Optional) Module Version

0.1.2

(Optional) Correlation Id

No response

Description

When specifying log analytics, it is necessary to specify both the customer ID and customer key.

This is because we are using AzAPI under the hood, and that appears to be the requirement there

https://learn.microsoft.com/en-us/azure/templates/microsoft.app/managedenvironments?pivots=deployment-language-terraform#loganalyticsconfiguration-2

It is not clear from the docs if the key is optional

By comparison, when using AzureRM, only the workspace ID is required:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_app_environment#log_analytics_workspace_id

This is preferable, as it avoids have to fetch & pass the LAW key.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    In Development

Relationships

None yet

Development

No branches or pull requests

Issue actions