Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,52 @@
"application/json"
]
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/listServicePrincipalId": {
"post": {
"tags": [
"ServicePrincipalId"
],
"operationId": "Automanage_ListServicePrincipalId",
"description": "Returns the Automanage ADD first party Application Service Principal Id for the subscription.",
"x-ms-examples": {
"List service principal id": {
"$ref": "./examples/listServicePrincipalId.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Returns the Automanage ADD first party Application Service Principal Id for the subscription.",
"schema": {
"$ref": "#/definitions/ServicePrincipalId"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": false,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"produces": [
"application/json"
],
"consumes": [
"application/json"
]
}
}
},
"definitions": {
Expand Down Expand Up @@ -1611,6 +1657,17 @@
"description": "Error message, if any, returned when deploying the resource."
}
}
},
"ServicePrincipalId": {
"description": "The Service Principal Id for the subscription.",
"type": "object",
"properties": {
"servicePrincipalId": {
"type": "string",
"readOnly": true,
"description": "The Service Principal Id for the subscription."
}
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@
"operation": "Microsoft.Automanage/configurationProfileAssignments/reports/read",
"description": "Get report for configuration profile assignment."
}
},
{
"name": "Microsoft.Automanage/listServicePrincipalId/action",
"display": {
"provider": "Microsoft Automanage",
"resource": "Microsoft.Automanage/listServicePrincipalId",
"operation": "List Service Principal Id",
"description": "Retrieves the Service Principal Id for the subscription. This Service Principal Id is used to grant the Contributor RBAC permission to Automanage ADD first party Application."
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "mySubscriptionId",
"api-version": "2021-04-30-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"servicePrincipalId": "<servicePrincipalId>"
}
}
}
}