-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add properties of Identity. #8647
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1606,16 +1606,41 @@ | |
"type": "string", | ||
"description": "The identity type.", | ||
"enum": [ | ||
"SystemAssigned" | ||
"SystemAssigned", | ||
"UserAssigned", | ||
"SystemAssigned, UserAssigned", | ||
"None" | ||
], | ||
"x-ms-enum": { | ||
"name": "ResourceIdentityType", | ||
"modelAsString": false | ||
} | ||
}, | ||
"userAssignedIdentities": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"$ref": "#/definitions/userAssignedResourceIdentity" | ||
}, | ||
"description": "The list of user identities associated with the resource. The user identity dictionary key references will be resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." | ||
} | ||
}, | ||
"description": "Identity for the resource." | ||
}, | ||
"userAssignedResourceIdentity": { | ||
"properties": { | ||
"principalId": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The principal id of user assigned identity." | ||
}, | ||
"tenantId": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The public docs and the MSI spec seem to imply that the contract has changed to "principalId" and "clientId"... However, the contracts in ARM still have these properties. Which is correct? https://microsoft.sharepoint.com/:w:/r/teams/azureresourcemanagerteam/_layouts/15/Doc.aspx?sourcedoc=%7B66505FCE-8057-4524-B84F-4CEFE2D8A77C%7D&file=ARMResourcesWithStrongIdentity.docx&action=default&mobileredirect=true I've seen more RPs using clientId recently There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is inline with current service behavior, we are trying to make them sync for now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, please mark them as readOnly since the user is not providing these values |
||
"readOnly": true, | ||
"type": "string", | ||
"description": "The tenant id of user assigned identity." | ||
} | ||
}, | ||
"description": "Represents the user assigned identity that is contained within the UserAssignedIdentities dictionary on ResourceIdentity" | ||
}, | ||
"Resource": { | ||
"properties": { | ||
"id": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this cause breaking changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be breaking. It's adding new value to enum and added a not required property. Old schema should still be accepted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have SDK released for this? As the enum is not modeled as string, new SDK released will be broken because the values in enum could be different