Skip to main content

service_principals

Creates, updates, deletes, gets or lists a service_principals resource.

Overview

Nameservice_principals
TypeResource
Idazure.automanage.service_principals

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.
authorizationSetbooleanReturns the contributor RBAC Role exist or not for the Service Principal Id.
servicePrincipalIdstringThe Service Principal Id for the subscription.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectsubscription_idGet the Automanage AAD first party Application Service Principal details for the subscription id.
list_by_subscriptionexecsubscription_idGet the Automanage AAD first party Application Service Principal details for the subscription id.

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
subscription_idstring

SELECT examples

Get the Automanage AAD first party Application Service Principal details for the subscription id.

SELECT
id,
name,
authorizationSet,
servicePrincipalId,
systemData,
type
FROM azure.automanage.service_principals
WHERE subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Get the Automanage AAD first party Application Service Principal details for the subscription id.

EXEC azure.automanage.service_principals.list_by_subscription 
@subscription_id='{{ subscription_id }}' --required
;