DB mail configuration on Azure managed instance - azure-sql-database

How to configure dbmail on azure managed instance?
What should be smtp server name? email account?
Will on_prem smtp server work?
And how SMTP authentication should configure on azure mi?

Azure SQL managed instance support Database Mail.
Please learn from the document and it will can help you configure the Database mail step by step.
About your questions, you all can get the answers from the document.
For example:
Configure Database Mail:
This topic describes how to enable and configure Database Mail using the Database Mail Configuration Wizard, and create a Database Mail Configuration script using templates.
Hope this helps.

This article from Microsoft goes into detail about how to configure Database Mail on Azure Managed Instance:
https://techcommunity.microsoft.com/t5/azure-sql-database/sending-emails-in-azure-sql-managed-instance/ba-p/386235
It also refers to this article for troubleshooting:
https://techcommunity.microsoft.com/t5/azure-sql-database/troubleshooting-database-mail-issues-in-azure-sql-managed/ba-p/583018

Related

Exchange 2010 mail enabled public folder migration to Exchange 2013

I have to migrate a couple of hundred mail-enabled public folders from Exchange 2010 to Exchange 2013. Microsoft's documentation (https://learn.microsoft.com/en-us/exchange/collaboration/public-folders/batch-migration-from-previous-versions?view=exchserver-2016&viewFallbackFrom=exchserver-2013) describes almost the complete migration process, except how to migrate the SMTP mail addresses to the new public folders.
My question is: Does those powershell scripts migrate the SMTP proxyaddresses, too or do I have to configure them manually afterwards?
If so, can you share some powershell commands or scripts to realize the mail capabilites, please?
Thanks in advance
Not required, because the batch migration will transfer all mail addresses to the new Exchange server.

Error while creating Azure IR:Check the linked service configuration is correct

Error while creating an Azure IR data factory.
Cannot connect to SQL Database:
'mysqlserversowmya.database.windows.net', Database: 'master', User:
'adminuser'. Check the linked service configuration is correct, and
make sure the SQL Database firewall allows the integration runtime to
access.
Make sure you have open the SQL database firewall: add client ip and Allow Azure services and resources to access this server On portal:
To see: Server-level IP firewall rules
Hope this helps.

I need to download a database with the given details

I've been given some credentials for a database hosted through Azure. I need to download the contents of the database but am not sure where I go from here.
Here are the details provided.
define('DB_NAME', '****');
define('DB_USER', '****');
define('DB_PASSWORD', '****');
define('DB_HOST', 'au-cdbr-azure-southeast-a.cloudapp.net');
How do I use this to download what I need?
Thanks
You have these Azure SQL database credentials. But if the Azure SQL DB doesn't open the database firewall for you, you can't do anything with it.
It means that you could not connect to the Azure SQL database or download the contents of it.
For more details, please see: Azure SQL Database and SQL Data Warehouse IP firewall rules.
If you are added to the database firewall role, you can connect to the Azure SQL database and download it.
Please see: Export an Azure SQL database to a BACPAC file.
Hope this helps.

Can I link a server that I only have read-access to?

Trying to link a server that I only have read-access to and uses windows authentication to log me in. I'm trying to link it to my local database so I can combine commands in both databases because my web application executes stored procedures.
Is this possible?
https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-addlinkedserver-transact-sql?view=sql-server-2017
Yes, you can.
From your description, you want to uses windows authentication to log in the linked server.
When a linked server is created by using sp_addlinkedserver, a default self-mapping is added for all local logins. As a result, if the windows account for the local server also exist in the remote account, you can log in the linked server via the current windows account.
Besides after adding the linked server, you can also create a mapping between a login on the local instance of SQL Server and a security account on a remote server. For detailed information, please refer to the sp_addlinkedsrvlogin (Transact-SQL).

sending email from sql azure

Hey all,
just quick question about sql azure. My App is running on windows azure and the database is on sql azure. Everything is working great. However, I would like to send email to a user, as soon as he\she became a member.I don't want to Use
- third party service
- send email from the code.
Is there any way to send email by using a trigger and stored procedure? For example: run trigger after each updated for user table and trigger will run stored procedure.
Thanks in advance . Matt
As far as I know, there is no way to send an email from SQL Azure directly. You will have to use a web, worker or VM role to actually send email. In general, sending email from Azure data centers is tricky because spam filters flag Azure IP addresses as unsafe (see https://alinirimie.sys-con.com/node/1404827). To avoid this problem, you must use a third party SMTP service (we use Amazon SES) or your own SMTP server. If you want to connect to your own SMTP server through a firewall, you can use Windows Azure Connect to establish a secure tunnel from Azure to your local network.
I realize you stated that you do not want to use a 3rd party services, but for others that might be reading this and would be open to this. Cotega allows you to send emails directly from SQL Azure.
Full disclosure, I work on Cotega.
There is some documentation on hacks you can do here: http://vpolizzi.wordpress.com/2010/09/11/database-mail-on-sql-azure/
However I think using a worker role would be more robust and maintainable.