Skip to content

New-DbaLogin does not work on Azure SQL "Keyword or statement option 'hashed' is not supported" #5100

Closed
@cdhunt

Description

Steps to Reproduce

$connection = @{SqlInstance = $SqlInstance
                SqlCredential = $SqlCredential}
$Password = ConvertTo-SecureString -String $pass -AsPlainText -Force  
New-DbaLogin -Login $UserName -SecurePassword $Password @connection

Expected Behavior

Create a new SqlLogin.

Actual Behavior

VERBOSE: [19:04:58][New-DbaLogin] Adding as login type SqlLogin
VERBOSE: [19:04:58][New-DbaLogin] Failed to create SQLRO on sql1.database.windows.net using SMO, trying T-SQL.
WARNING: [19:04:58][New-DbaLogin] Failed to add SQLRO to sql1.database.windows.net. | Keyword or statement option 'hashed' is not supported in this version of SQL Server.

Environmental data

  • PowerShell: 5.1.14393.2791
  • SQL Server: Microsoft SQL Azure (RTM) - 12.0.2000.8 Dec 19 2018 08:43:17

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions