如果我们有使用 powershell 的用户名,我正在寻找获取 azure sql db 的密码。我找到了 Get-AzureRmSqlDatabaseSecureConnectionPolicy cmdlet 来获取连接字符串,但它没有密码。任何帮助,将不胜感激。
谢谢,保罗
据了解,这是不可能的。如果你可以通过使用PowerShell获得密码,我认为它是不安全的。Azure 不允许这样做。
但是,您可以使用 PowerShell 重置 SQL DB 密码。只需使用Set-AzureRmSqlServer
.
PS C:\>$ServerPassword = "newpassword"
PS C:\> $SecureString = ConvertTo-SecureString $ServerPassword -AsPlainText -Force
PS C:\> Set-AzureRmSqlServer -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -SqlAdministratorPassword $secureString
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句