MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.27k stars 21.45k forks source link

How do I enable missing components using API? #116446

Open ankkp opened 1 year ago

ankkp commented 1 year ago

[Enter feedback here] Customers frequently asked the question is how to enable missing components in below screenshot without going on UI? image

Here is the solution.

for Linux image Run API below. Put: https://management.azure.com/subscriptions/<subscriptionId>/providers/Microsoft.Security/settings/WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW?api-version=2022-05-01 with body below.

{
      "type": "Microsoft.Security/settings",
      "kind": "DataExportSettings",
      "properties": {
        "enabled": false
      }
}

For 2012/2016 unified solution image Run API below Put: https://management.azure.com/subscriptions/<subscriptionId>/providers/Microsoft.Security/settings/WDATP_UNIFIED_SOLUTION?api-version=2022-05-01 with body below

    {
      "type": "Microsoft.Security/settings",
      "kind": "DataExportSettings",
      "properties": {
        "enabled": true
      }
    },

Please add my findings to the public document to better educate our customers.

Add a note "as this setting can't be reverted on UI, Same applies with API or any other methods. These API settings CAN NOT BE REVERTED."


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ManoharLakkoju-MSFT commented 1 year ago

@ankkp Thanks for your feedback! We will investigate and update as appropriate.

SaibabaBalapur-MSFT commented 1 year ago

@ankkp Thanks for bringing this to our attention. I'm going to assign this to the document author so they can take a look at it accordingly.

@dcurwin Can you please check and add your comments on this doc update request as applicable.

dcurwin commented 1 year ago

label:"backlog-item-created"