Share via


ServerVulnerabilityAssessmentOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creating a server vulnerability assessment on a resource, which will onboard a resource for having a vulnerability assessment on it

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.ServerVulnerabilityAssessment> CreateOrUpdateAsync (this Microsoft.Azure.Management.Security.IServerVulnerabilityAssessmentOperations operations, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Security.IServerVulnerabilityAssessmentOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.ServerVulnerabilityAssessment>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IServerVulnerabilityAssessmentOperations, resourceGroupName As String, resourceNamespace As String, resourceType As String, resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServerVulnerabilityAssessment)

Parameters

operations
IServerVulnerabilityAssessmentOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the user's subscription. The name is case insensitive.

resourceNamespace
String

The Namespace of the resource.

resourceType
String

The type of the resource.

resourceName
String

Name of the resource.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to