Skip to content
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

azurerm_api_management_diagnostic - prevent sending operationNameFormat field for azuremoniton diagnostic #22545

Closed

Conversation

nd-brown
Copy link

Azure API does not allow to sent operationNameFormat field while creating/updating azuremoniton diagnostic. This field is required only for applicationinsights.

It's not possible to create azuremonitor diagnostic right now because of the error:

Property 'OperationNameFormat' is only supported for Application Insights diagnostics.

Fixes #19970

@@ -113,7 +113,6 @@ func resourceApiManagementDiagnostic() *pluginsdk.Resource {
"operation_name_format": {
Type: pluginsdk.TypeString,
Optional: true,
Default: string(apimanagement.OperationNameFormatName),
Copy link
Member

Choose a reason for hiding this comment

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

it would be a breaking change to remove the default here as this could break things for existing users who are using this default. However, we could potentially use the features.FourPointOhBeta() flag here so that the remove default can be optionally used. There are some examples of the flag being used in the contributors guide here

@stephybun
Copy link
Member

Thanks for this PR @nd-brown.

Since we haven't heard back in a while I'm going to close this PR in favour of #23736 which should fix the issue at hand.

Thanks again for your contribution!

@stephybun stephybun closed this Oct 31, 2023
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

For azurerm_api_management_diagnostic, Event Hub Configuration not working
3 participants