Skip to main content

office_consents

Creates, updates, deletes, gets or lists an office_consents resource.

Overview

Nameoffice_consents
TypeResource
Idazure.security_insight.office_consents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
consentIdstringHelp to easily cascade among the data layers.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tenantIdstringThe tenantId of the Office365 with the consent.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, consent_id, subscription_idGets an office365 consent.
listselectresource_group_name, workspace_name, subscription_idGets all office365 consents.
deletedeleteresource_group_name, workspace_name, consent_id, subscription_idDelete the office365 consent.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets an office365 consent.

SELECT
id,
name,
consentId,
systemData,
tenantId,
type
FROM azure.security_insight.office_consents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND consent_id = '{{ consent_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Delete the office365 consent.

DELETE FROM azure.security_insight.office_consents
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND consent_id = '{{ consent_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;