Azure / Azure/azure-powershell

Set-AzSynapseLinkedService Overriding Azure Function Auth Method

Open
#22,567 2 comments 1 reaction 0 assignees View on GitHub
act-codegen-extensibility-squad bug Service Attention Synapse
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

**Possible Similar Support Issues**
This may be the same issue as [Issue 21930](https://github.com/Azure/azure-powershell/issues/21930)
**Summary**
While invoking "Set-AzSynapseLinkedService" against an Azure Function linked service, using the System Assigned Managed Identity authentication type in the source reference file, the command succeeds and correctly deploys everything in the source code definition file, but overrides the authentication type with "Anonymous". instead of the correct authentication method value in the definition file of "MSI"
**Command**
`Set-AzSynapseLinkedService -WorkspaceName -Name -DefinitionFile `
**Definition File Json**
![image](https://github.com/Azure/azure-powershell/assets/28696732/d1d4487c-2126-4192-84e4-ecb3b498f809)
**Output**
![image](https://github.com/Azure/azure-powershell/assets/28696732/7e3918f5-d947-440b-a21e-4d00d4909a78)

### Issue script & Debug output

```PowerShell
Set-AzSynapseLinkedService -WorkspaceName -Name -DefinitionFile
```

### Environment data

```PowerShell
PS C:\WINDOWS\system32> $PSVersionTable

Name Value
---- -----
PSVersion 5.1.17763.4644
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.4644
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```

### Module versions

```PowerShell
ModuleType Version Name ExportedCommands
---------- ------- ---- ---------------
Script 2.12.5 Az.Accounts {Disable-AzDataCollection, Disable-AzContextAutosave, Enab...
Script 2.2.0 Az.Synapse {Get-AzSynapseSparkJob, Stop-AzSynapseSparkJob, Submit-AzS...
```

### Error output

```PowerShell
No error output, succeeds and correctly deploys everything else in the source code definition file, but overrides authentication method with Anonymous (see screenshots).
```

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.