diff --git a/semantic_router/encoders/zure.py b/semantic_router/encoders/zure.py
index 8a43e361e43fa1228fd57b737237d8e02aba099f..8fe2cd492546a9aa9b93df2d0af15752b0d0c5e9 100644
--- a/semantic_router/encoders/zure.py
+++ b/semantic_router/encoders/zure.py
@@ -66,10 +66,10 @@ class AzureOpenAIEncoder(BaseEncoder):
 
         try:
             self.client = openai.AzureOpenAI(
-                azure_deployment=str(deployment_name) if deployment_name else None,
-                api_key=str(api_key),
-                azure_endpoint=str(azure_endpoint),
-                api_version=str(api_version),
+                azure_deployment=str(self.deployment_name) if self.deployment_name else None,
+                api_key=str(self.api_key),
+                azure_endpoint=str(self.azure_endpoint),
+                api_version=str(self.api_version),
                 # _strict_response_validation=True,
             )
         except Exception as e: