casstreaming.blogg.se

Mfa for active directory login
Mfa for active directory login





Our company have enforced this type of login, so I can't seem to find a way around this. From what it seems the Get-SqlDatabase command from the SqlServer module that is used does not seem to support login through MFA.

mfa for active directory login

I run into problems however with getting the database connection to work. Get-SqlColumnMasterKey -InputObject $database # List column master keys for the specified database. $database = Get-SqlDatabase -ConnectionString $connStr $connStr = "Server = " + $serverName + " Database = " + $databaseName + " Authentication = Active Directory Integrated" # Set the valid server name, database name and authentication keywords in the connection string

mfa for active directory login mfa for active directory login

I am following this guide, which offers the following sample code: # Import the SqlServer module I am trying to set up a PowerShell script to enable Always Encrypted on our Azure SQL Server databases.







Mfa for active directory login