Skip to content

[BUG] APIM API Diagnostic - loggerId of DiagnosticContractProperties should not be a required property #33340

Open
@sinbai

Description

@sinbai

API Spec link

API Spec version

Both 2022-08-01 and 2024-05-01

Describe the bug

For ApiDiagnostic_CreateOrUpdate api, the loggerId property of DiagnosticContractProperties should not be a required property when the DiagnosticId is local. (The corresponding feature are shown in the Azure Portal settings below, where the Diagnostics Logs is specified as Local.)
Image

Expected behavior

The loggerId should not be listed as a required property because loggerId does not need to be specified when setting Diagnostics Logs to Local. (loggerId is listed as a required property, which makes TF unable to specify loggerId as null)

Actual behavior

The loggerId be listed as a required property.

Reproduction Steps

Create a APIM API Diagnostic by ApiDiagnostic_CreateOrUpdate api, specify DiagnosticId as local, do not specify loggerId, and the resource is created successfully.

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    API ManagementMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions