Skip to content

No activity log registered for DENY policy when creating Azure Synapse Workspace using az workspace create #31054

@jamelachahbar

Description

@jamelachahbar

Describe the bug

When the customer tries to create an Azure Synapse Workspace using this Azure CLI command:
'az synapse workspace create'
link:https://learn.microsoft.com/en-us/cli/azure/synapse/workspace?view=azure-cli-latest#az-synapse-workspace-create

they get denied by Azure policy, but the activity log doesn't show this deny policy message.
The customer relies on this logged message to allow customers to ask for an exemption, but due to this log missing, they can't. It happens irrespective of the DENY policy that is assigned.

Please check out the screenshot.
When they use an arm template, Bicep or Azure portal to deploy Azure Synapse, the deny policy message gets logged in the Activity Log in the portal.

It only has this wrong behavior when using the Azure CLI command.

Screenshot:
Image

Related command

az synapse workspace create

Errors

When the customer tries to create an Azure Synapse Workspace using this Azure CLI command:
'az synapse workspace create'
link:https://learn.microsoft.com/en-us/cli/azure/synapse/workspace?view=azure-cli-latest#az-synapse-workspace-create

they get denied by Azure policy, but the activity log doesn't show this deny policy message.
The customer relies on this logged message to allow customers to ask for an exemption, but due to this log missing, they can't. It happens irrespective of the DENY policy that is assigned.

Issue script & Debug output

Expected behavior

deployment works and acivity logs in Azure show relevant logging information

Environment Summary

azure-cli (latest)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.Synapseact-codegen-extensibility-squadbugThis 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions