gpt4 book ai didi

sql - SQL 用户在 Azure 中导出 bacpac 所需的最低角色是什么?

转载 作者:行者123 更新时间:2023-12-03 05:14:12 24 4
gpt4 key购买 nike

我们通过 New-AzSqlDatabaseExport 将 bacpac 从 Azure SQL 数据库导出到存储帐户。该命令的文档:https://learn.microsoft.com/en-us/powershell/module/az.sql/new-azsqldatabaseexport

SQL 用户执行此操作所需的最低角色是什么?我们正在努力维持最低权限规则。

拥有一个可以为服务器中的所有数据库导出 bacpac 的 SQL 用户是可以接受的。

最佳答案

应该是db_backupoperator :

Members of the db_backupoperator fixed database role can back up thedatabase.

请注意,db_backupoperator 角色不适用于 Azure SQL 数据库(非托管实例)和 Azure Synapse 无服务器池,因为备份和还原 T-SQL 命令不可用。

用户需要是 dbmanager 的成员:

Can create and delete databases. A member of the dbmanager role thatcreates a database, becomes the owner of that database, which allowsthat user to connect to that database as the dbo user. The dbo userhas all database permissions in the database. Members of the dbmanagerrole don't necessarily have permission to access databases that theydon't own.

关于sql - SQL 用户在 Azure 中导出 bacpac 所需的最低角色是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75431482/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com