microsoft / microsoft/sre-agent

[Feature] Full IaC provisioning of S360 connector via Bicep without interactive OAuth

Open
#223 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PowerShell
Stars
160
Forks
97
Avg merge
2d 5h
Merged PRs (30d)
12

Description

## Feature description

I want to be able to deploy a S360 connector via bicep with zero portal touches, but it appears that the S360Connector extends KustoApiHubConnector, which requires delegated user OAuth via Microsoft.Web/connections, blocking fully automated deployment.

In addition, we need to be able to set the Service Tree ID for the connector via bicep, or at least via a script that can be run as part of a bicep `deploymentScript` resource (using managed identity). Right now this is controlled in the data layer, which makes this more difficult.

## Use case

Our team does 100% of our azure deployment via bicep. We don't want to have to configure anything in the azure portal or rely on individual user permissions like the current implementation does.

## Current workaround

No work around other than manually creating the resource in the azure portal using oauth (not acceptable for our team).

## Proposed approach

A new S360 connector mode where identity: 'system' uses the agent's MI to query Kusto directly via SdkKustoClient (runtime plumbing already exists in CheckKustoViaSdkAsync()). This would require the MI to have RBAC reader on the necessary S360 Kusto clusters, which is not ideal.

## More details

I'm currently trying to deploy via bicep the following bicep but hit errors:

```
resource s360Connector 'Microsoft.App/agents/connectors@2026-01-01' = {
parent: sreAgent
name: 'bicep-s360'
properties: {
dataConnectorType: 'S360'
#disable-next-line use-secure-value-for-secure-inputs // Placeholder — ARM requires a valid HTTPS URI but runtime ignores it for S360 (GitHub #839)
dataSource: 'https://placeholder.azure-apihub.net'
identity: 'system'
}
}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the S360Connector and KustoApiHubConnector relationship described in the issue, then inspect the Microsoft.App/agents/connectors@2026-01-01 Bicep resource and CheckKustoViaSdkAsync(). Determine how system identity and Service Tree ID could work without delegated OAuth, and validate the result against the provided Bicep deployment scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.