Azure / Azure/azure-cli

Definitions created using 'az synapse spark-job-definition create' do not show in the Workspace UI with Git Integration enabled

Open
#23,348 16 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported needs-team-attention Service Attention Synapse
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az synapse spark-job-definition create --workspace-name --name --file @"folder\sparkjob.json"`

**Describe the bug**
When using 'az synapse spark-job-definition create' command I am able to create a sparkjob definition, however that definition is not then visible in the Synapse Workspace UI. I am however able to see it when calling 'az synapse spark-job-definition list'

I have Git integration enabled on that workspace, checked all the branches and can't find the job definition I've created in the UI.

**To Reproduce**
1. Export existing job definition from Synapse UI
2. Change jobProperties.name to be unique.
3. Run `az synapse spark-job-definition create --workspace-name --name --file @"folder\sparkjob.json" using the previously exported file.
4. Run `az synapse spark-job-definition list --workspace-name ` and verify newly create job definition is visible.
5. Check UI.

**Expected behavior**
The created spark job definition is also visible in Synapse Workspace UI

**Environment summary**
```
Windows-10-10.0.19044-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.38.0

Extensions:
azure-cli-ml 1.41.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1
```

**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.