Skip to content

Commit

Permalink
Clarify MySQL AAD requirements (#3349)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthchr authored Oct 3, 2023
1 parent 1be55e1 commit b2375a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions v2/samples/dbformysql/v1api/v1_user_aad.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
apiVersion: dbformysql.azure.com/v1
kind: User
# IMPORTANT: Before creating an AAD user on MySQL you must ensure that the MySQL Flexible Server is configured
# correctly to accept AAD users. See https://learn.microsoft.com/azure/mysql/flexible-server/how-to-azure-ad#grant-permissions-to-user-assigned-managed-identity.
# The key points are:
# * The Flexible Server MUST be assigned a user-assigned identity.
# * That user-assigned identity MUST have the following Graph permissions: User.Read.All, GroupMember.Read.All, and Application.Read.ALL
# * The FlexibleServer must have an AAD Administrator configured. The identity of the administrator must be the identity
# used by ASO to provision the user (so that ASO is connecting to the MySQL Flexible Server as the admin).
metadata:
name: sampleaaduser
namespace: default
Expand Down

0 comments on commit b2375a6

Please sign in to comment.