Azure / Azure/Microsoft-Defender-for-Cloud
EnableDefenderForSqlOnMachines.ps1 needs to provide multi subscription Env.
- 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
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