Azure / Azure/Microsoft-Defender-for-Cloud

EnableDefenderForSqlOnMachines.ps1 needs to provide multi subscription Env.

Open
#932 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.9k
Forks
871
Avg merge
3d 10h
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
The script currently works only when the input parameters belong to the same subscription. For example, if the subscription information for the $SubscriptionId and $WorkspaceResourceId parameters is different, an error occurs, and the script does not work properly.

**Describe the solution you'd like**
In the multiple subscriptions environment, the script needs to be improved to operate in scenarios where a custom Log Analytics Workspace (LAW) located in a different subscription.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Research direction

Start with EnableDefenderForSqlOnMachines.ps1 and trace how the $SubscriptionId and $WorkspaceResourceId parameters are resolved and used. Reproduce the failure with those parameters from different subscriptions, then verify the script operates with a custom Log Analytics Workspace in another subscription.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.