service_principals
Creates, updates, deletes, gets or lists a service_principals resource.
Overview
| Name | service_principals |
| Type | Resource |
| Id | azure.automanage.service_principals |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
authorizationSet | boolean | Returns the contributor RBAC Role exist or not for the Service Principal Id. |
servicePrincipalId | string | The Service Principal Id for the subscription. |
systemData | object | 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". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | subscription_id | Get the Automanage AAD first party Application Service Principal details for the subscription id. | |
list_by_subscription | exec | subscription_id | Get 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.
| Name | Datatype | Description |
|---|---|---|
subscription_id | string |
SELECT examples
- get
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
- list_by_subscription
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
;