Governance Assignments - Delete

Delete a GovernanceAssignment over a given scope

DELETE https://management.azure.com/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments/{assignmentKey}?api-version=2022-01-01-preview

URI Parameters

Name In Required Type Description
assessmentName
path True

string

The Assessment Key - A unique key for the assessment type

Regex pattern: ^[-\w\._\(\)]+$

assignmentKey
path True

string

The governance assignment key - the assessment key of the required governance assignment

scope
path True

string

The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'

api-version
query True

string

API version for the operation

Responses

Name Type Description
200 OK

OK - Governance assignment was deleted

204 No Content

No Content - Governance assignment does not exist

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

Delete security assignment

Sample request

DELETE https://management.azure.com/subscriptions/c32e05d9-7207-4e22-bdf4-4f7d9c72e5fd/resourceGroups/compute_servers/providers/Microsoft.Compute/virtualMachines/win2012/providers/Microsoft.Security/assessments/6b9421dd-5555-2251-9b3d-2be58e2f82cd/governanceAssignments/6634ff9f-127b-4bf2-8e6e-b1737f5e789c?api-version=2022-01-01-preview

Sample response