Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

AzureMLService Linked Service which uses a System Assigned Managed ID created with Set-AzSynapseLinkedService is not picking up typeProperties.authentication #21930

Open gitmadness opened 1 year ago

gitmadness commented 1 year ago

Description

Failure I'm seeing is like https://github.com/Azure/azure-powershell/issues/17288 but for Set-AzSyanpseLinkedService.

I would create a Linked Service to an Azure ML Workspace using Synapse Workspace's System Assigned Managed ID using the following definition.

{
    "name": "test",
    "type": "Microsoft.Synapse/workspaces/linkedservices",
    "properties": {
        "type": "AzureMLService",
        "connectVia": {
            "referenceName": "AutoResolveIntegrationRuntime",
            "type": "IntegrationRuntimeReference"
        },
        "annotations": [],
        "typeProperties": {
            "subscriptionId": "xxxxxxx",
            "resourceGroupName": "myrg",
            "mlWorkspaceName": "myaml",
            "authentication": "MSI"
        }
    }
}

The cmdlet returns without errors.

However, I would get the error 9512 when I test the connection from the studio because "authentication":"MSI" property is missing from "typeProperties". I'm using 3.0.0 version of Az.Synapse.

image

Issue script & Debug output

Set-AzSynapseLinkedService -WorkspaceName 'myaml' -Name 'test' -DefinitionFile $tempFile -Verbose

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
OS                             Microsoft Windows 10.0.xxxxx
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.12.3                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     3.0.0                 Az.Synapse                          {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBaseline, Convert-AzSynapseSqlPoolVulnerabilityAssessmentScan…}

Error output

Cmdlet succeed
ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

SaurabhSharma-MSFT commented 1 year ago

@gitmadness We are looking into it and get back to you for any additional information.

SaurabhSharma-MSFT commented 1 year ago

@gitmadness I am able to reproduce this and redirecting this to service team to look into it.

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @wonner, @v-yanjungao.

Issue Details
### Description Failure I'm seeing is like https://github.com/Azure/azure-powershell/issues/17288 but for Set-AzSyanpseLinkedService. I would create a Linked Service to an Azure ML Workspace using Synapse Workspace's System Assigned Managed ID using the following definition. ```json { "name": "test", "type": "Microsoft.Synapse/workspaces/linkedservices", "properties": { "type": "AzureMLService", "connectVia": { "referenceName": "AutoResolveIntegrationRuntime", "type": "IntegrationRuntimeReference" }, "annotations": [], "typeProperties": { "subscriptionId": "xxxxxxx", "resourceGroupName": "myrg", "mlWorkspaceName": "myaml", "authentication": "MSI" } } } ``` The cmdlet returns without errors. However, I would get the error 9512 when I test the connection from the studio because ``"authentication":"MSI"`` property is missing from ``"typeProperties"``. I'm using 3.0.0 version of Az.Synapse. ![image](https://github.com/Azure/azure-powershell/assets/32003089/d24a18b8-6803-44d6-b210-dd9e8aeeb70d) ### Issue script & Debug output ```PowerShell Set-AzSynapseLinkedService -WorkspaceName 'myaml' -Name 'test' -DefinitionFile $tempFile -Verbose ``` ### Environment data ```PowerShell Name Value ---- ----- PSVersion 7.3.4 PSEdition Core GitCommitId 7.3.4 OS Microsoft Windows 10.0.xxxxx Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0 ``` ### Module versions ```PowerShell ModuleType Version PreRelease Name ExportedCommands ---------- ------- ---------- ---- ---------------- Script 2.12.3 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…} Script 3.0.0 Az.Synapse {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynapseSqlPoolVulnerabilityAssessmentRuleBaseline, Convert-AzSynapseSqlPoolVulnerabilityAssessmentScan…} ``` ### Error output ```PowerShell Cmdlet succeed ```
Author: gitmadness
Assignees: SaurabhSharma-MSFT
Labels: `Service Attention`, `bug`, `customer-reported`, `Synapse`
Milestone: -