-
Notifications
You must be signed in to change notification settings - Fork 78
Simplify Assessment CLI Prompts for Azure Synapse #1940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -125,20 +125,20 @@ def _configure_credentials(self) -> str: | |
| logger.info("Please provide Synapse Workspace settings:") | ||
| synapse_workspace = { | ||
| "name": self.prompts.question("Enter Synapse workspace name"), | ||
| "dedicated_sql_endpoint": self.prompts.question("Enter dedicated SQL endpoint"), | ||
| "serverless_sql_endpoint": self.prompts.question("Enter serverless SQL endpoint"), | ||
| "sql_user": self.prompts.question("Enter SQL user"), | ||
| "sql_password": self.prompts.question("Enter SQL password"), | ||
| "tz_info": self.prompts.question("Enter timezone (e.g. America/New_York)", default="UTC"), | ||
| "driver": self.prompts.question( | ||
| "Enter the ODBC driver installed locally", default="ODBC Driver 18 for SQL Server" | ||
| ), | ||
| } | ||
| synapse_workspace["dedicated_sql_endpoint"] = f"{synapse_workspace['name']}.sql.azuresynapse.net" | ||
| synapse_workspace["serverless_sql_endpoint"] = f"{synapse_workspace['name']}-ondemand.sql.azuresynapse.net" | ||
|
|
||
| # Azure API Access Settings | ||
| logger.info("Please provide Azure API access settings:") | ||
| azure_api_access = { | ||
| "development_endpoint": self.prompts.question("Enter development endpoint"), | ||
| "development_endpoint": f"https://{synapse_workspace['name']}.dev.azuresynapse.net", | ||
| "azure_client_id": self.prompts.question("Enter Azure client ID"), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I m also thinking of removing client id and rather have them az login? thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to this idea. For users who choose to generate a token via |
||
| "azure_tenant_id": self.prompts.question("Enter Azure tenant ID"), | ||
| "azure_client_secret": self.prompts.question("Enter Azure client secret"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch