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 |
---|---|---|---|---|
setting
|
path | True |
The kind of the server vulnerability assessments setting |
|
subscription
|
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: |
The kind of the server vulnerability assessments setting. |
properties.selectedProvider | True |
The selected vulnerability assessments provider on Azure servers in the defined scope. |
Responses
Name | Type | Description |
---|---|---|
200 OK | ServerVulnerabilityAssessmentsSetting: |
OK |
201 Created | ServerVulnerabilityAssessmentsSetting: |
Created |
Other Status Codes |
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 |
---|---|
Azure |
A vulnerability assessments setting on Azure servers in the defined scope. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Server |
The selected vulnerability assessments provider on Azure servers in the defined scope. |
Server |
The kind of the server vulnerability assessments setting |
Server |
The kind of the server vulnerability assessments setting |
system |
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: |
The kind of the server vulnerability assessments setting. |
name |
string |
The name of the resource |
properties.selectedProvider |
The selected vulnerability assessments provider on Azure servers in the defined scope. |
|
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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 |
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 |
The type of identity that last modified the resource. |