| 
									
										
										
										
											2024-10-24 02:29:46 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | title: How to enable Azure Auth | 
					
						
							|  |  |  | slug: /deployment/azure-auth | 
					
						
							|  |  |  | collate: false | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # AZURE resources on Postgres/MySQL Auth
 | 
					
						
							| 
									
										
										
										
											2025-04-10 12:41:19 +05:30
										 |  |  | [Azure Reference Doc](https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-extensions#how-to-use-postgresql-extensions) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-24 02:29:46 -07:00
										 |  |  | # Requirements
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 1. Azure Postgres or MySQL Cluster with auth enabled | 
					
						
							|  |  |  | 2. User on DB Cluster with authentication enabled | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # How to enable Azure Auth on postgresql
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Set the environment variables | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```Commandline | 
					
						
							|  |  |  |   DB_PARAMS="azure=true&allowPublicKeyRetrieval=true&sslmode=require&serverTimezone=UTC"  | 
					
						
							|  |  |  |   DB_USER_PASSWORD=none | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Either through helm (if deployed in kubernetes) or as env vars. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% note %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | The `DB_USER_PASSWORD` is still required and cannot be empty. Set it to a random/dummy string. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | {% /note %}  |