I\'m trying to export a SQL Azure database to a .bacpac
file using the Azure portal. The administrator username on my database contains a *>
as of now, GRANT VIEW DEFINITION TO [username]
works in Azure SQL, I just verified it myself. See https://docs.microsoft.com/en-us/sql/relational-databases/security/permissions-database-engine?view=sql-server-ver15 for reference:
So in order to successfully export database as bacpak file you can created contained user (no need in CREATE LOGIN...
command) and give the following permissions:
CREATE USER [user_from_azure_AD] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [user_from_azure_AD]
GRANT VIEW DEFINITION TO [user_from_azure_AD]