Server Vulnerability Assessments Settings - Create Or Update

Create or update a server vulnerability assessments setting of the requested kind on the subscription

PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/azureServersSetting?api-version=2023-05-01

URI Parameters

Name In Required Type Description
settingKind
path True

ServerVulnerabilityAssessmentsSettingKindName

The kind of the server vulnerability assessments setting

subscriptionId
path True

string

uuid

The ID of the target subscription. The value must be an UUID.

api-version
query True

string

The API version to use for this operation.

Request Body

AzureServersSetting

A vulnerability assessments setting on Azure servers in the defined scope.

Name Required Type Description
kind True string:

AzureServersSetting

The kind of the server vulnerability assessments setting.

properties.selectedProvider True

ServerVulnerabilityAssessmentsAzureSettingSelectedProvider

The selected vulnerability assessments provider on Azure servers in the defined scope.

Responses

Name Type Description
200 OK ServerVulnerabilityAssessmentsSetting:

AzureServersSetting

OK

201 Created ServerVulnerabilityAssessmentsSetting:

AzureServersSetting

Created

Other Status Codes

ErrorResponse

Error response describing why the operation failed

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Set a server vulnerability assessments setting of the kind settingKind on the subscription

Sample request

PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/azureServersSetting?api-version=2023-05-01

{
  "kind": "AzureServersSetting",
  "properties": {
    "selectedProvider": "MdeTvm"
  }
}

Sample response

{
  "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/azureServersSetting",
  "name": "azureServersSetting",
  "type": "Microsoft.Security/serverVulnerabilityAssessmentsSettings",
  "kind": "AzureServersSetting",
  "properties": {
    "selectedProvider": "MdeTvm"
  },
  "systemData": {
    "createdBy": "user@contoso.com",
    "createdByType": "User",
    "createdAt": "2022-01-12T13:47:50.328Z",
    "lastModifiedBy": "user@contoso.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2022-01-12T13:47:50.328Z"
  }
}
{
  "id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/azureServersSetting",
  "name": "azureServersSetting",
  "type": "Microsoft.Security/serverVulnerabilityAssessmentsSettings",
  "kind": "AzureServersSetting",
  "properties": {
    "selectedProvider": "MdeTvm"
  },
  "systemData": {
    "createdBy": "user@contoso.com",
    "createdByType": "User",
    "createdAt": "2023-05-12T13:47:50.328Z",
    "lastModifiedBy": "user@contoso.com",
    "lastModifiedByType": "User",
    "lastModifiedAt": "2023-05-12T13:47:50.328Z"
  }
}

Definitions

Name Description
AzureServersSetting

A vulnerability assessments setting on Azure servers in the defined scope.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ServerVulnerabilityAssessmentsAzureSettingSelectedProvider

The selected vulnerability assessments provider on Azure servers in the defined scope.

ServerVulnerabilityAssessmentsSettingKind

The kind of the server vulnerability assessments setting

ServerVulnerabilityAssessmentsSettingKindName

The kind of the server vulnerability assessments setting

systemData

Metadata pertaining to creation and last modification of the resource.

AzureServersSetting

A vulnerability assessments setting on Azure servers in the defined scope.

Name Type Description
id

string

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

kind string:

AzureServersSetting

The kind of the server vulnerability assessments setting.

name

string

The name of the resource

properties.selectedProvider

ServerVulnerabilityAssessmentsAzureSettingSelectedProvider

The selected vulnerability assessments provider on Azure servers in the defined scope.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ServerVulnerabilityAssessmentsAzureSettingSelectedProvider

The selected vulnerability assessments provider on Azure servers in the defined scope.

Name Type Description
MdeTvm

string

Microsoft Defender for Endpoints threat and vulnerability management.

ServerVulnerabilityAssessmentsSettingKind

The kind of the server vulnerability assessments setting

Name Type Description
AzureServersSetting

string

ServerVulnerabilityAssessmentsSettingKindName

The kind of the server vulnerability assessments setting

Name Type Description
azureServersSetting

string

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.