Azure / Azure/azure-cli

Unclear how to manage the trustedServiceBypassEnabled with azure cli

Open
#28,362 1 comment 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported Service Attention Synapse
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
isTrustedServiceBypassEnabled=$(az synapse workspace show --resource-group $resourceGroupName --name $synapseWorkspaceName --query "trustedServiceBypassEnabled" -o tsv)
echo $isTrustedServiceBypassEnabled
if [ $isTrustedServiceBypassEnabled != 'true' ]; then
echo "isTrustedServiceBypassEnabled is NOT ENABLED. Enabling..."
az synapse workspace update --resource-group $resourceGroupName --name $synapseWorkspaceName --allow-azure-services-access true
else
echo "isTrustedServiceBypassEnabled is ENABLED."
fi

**Is your feature request related to a problem? Please describe.**
The command --allow-azure-services-access true suggested by copilot does not work.

**Describe the solution you'd like**
enable and disable --allow-azure-services-access

**Describe alternatives you've considered**
manually setup.

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.