Skip to content

Unable to fetch User Permissions from AzureSQL #5076

Closed
@Ayanmullick

Description

Before submitting a bug report:

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Steps to Reproduce

Get-DbaUserPermission -SqlInstance 'tcp:<AzSQL ServerName>.database.windows.net,1433' -Database <AzSQLdbName> -SqlCredential <SQLadmin> -Verbose|ft

Expected Behavior

ComputerName InstanceName SqlInstance Object Type Member RoleSecurableClass
ServerName MSSQLSERVER ServerName SERVER SERVER LOGINS CORP<Group> None
ServerName MSSQLSERVER ServerName SERVER SERVER LOGINS CORP<Group> None
ServerName MSSQLSERVER ServerName SERVER SERVER LOGINS CORP<Group> None

Actual Behavior

VERBOSE: [19:13:53][Get-DbaUserPermission] Processing [<>] on TCP:<>.database.windows.net,1433
VERBOSE: [19:13:53][Get-DbaUserPermission] Creating objects
VERBOSE: [19:13:53][Get-DbaUserPermission] Building data table for server objects
VERBOSE: [19:13:53][Get-DbaUserPermission] Building data table for [<>] objects
VERBOSE: [19:13:53][Get-DbaUserPermission] Deleting objects

Environmental data

  • PowerShell:
Name Value
PSVersion 5.1.14393.2636
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2636
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
  • SQL Server: Microsoft SQL Azure (RTM) - 12.0.2000.8 Dec 19 2018 08:43:17 Copyright (C) 2018 Microsoft Corporation

Metadata

Labels

azure sqlCommand has issue with Azure SQL due to unsupported SMO or T-SQL code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions