-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to install rdbms-connect from deployment script in azure arm template #6425
Comments
Thank you for opening this issue, we will look into it. |
Thank you for your feedback. This has been routed to the support team for assistance. |
@smartouss Thanks for reaching out to us and reporting this issue. Could you please update your Azure CLI to the most recent version and then please run the |
@navba-MSFT thank you for your reply, the latest version allowed in arm is "2.48.1", after using this version and making the script as following the script failed, following the the logs: |
@smartouss Thanks for getting back. Looking at the below error its pretty clear that the issue is with the Network name resolution.
Your Postgres server name doesn't seem to be correct. Hence it is failing to resolve the hostname.
Please check your AzCLI script again for the below 2 parameters again and ensure that it is using the right variable values.
|
@navba-MSFT thanks for the heads up, i fixed the name and the same old behavior happened again, the script stuck for an hour and fail with the following error: |
@smartouss Apologies for the late reply. Regarding the error message:
If this issue still persist, this would require a detailed troubleshooting. Could you please open a support ticket with Microsoft support so that our support professionals can get in touch with you and troubleshoot the above error? |
@smartouss I hope you had a chance to look at my above comment. Please open a support ticket with Microsoft so that we can assist you better in resolving this issue. |
@navba-MSFT thank you for your support, it was Microsoft support who asked me to open an issue here, however they will continue with me in the ticket. Thanks again :) |
Describe the bug
Hello,
I'm trying to execute a script file on a PostgreSql flexible server on azure from an arm template, to do so im using a deployment script that use azure cli, following is the commands im running
az config set extension.use_dynamic_install=yes_without_prompt az extension add -n rdbms-connect az postgres flexible-server execute --name $psqlServerName --admin-user $psqlAdminLogin --admin-password $psqlAdminPassword --database-name $psqlDatabaseName --file-path $scriptPath --debug"
The command fail after an hour, I opened a ticket with azure and they provided me with the logs and they informed me that .py files being used from the rdbms-connect command are not configured to run pip v3 which is what the CLI is attempting to use
Related command
az extension add -n rdbms-connect
Errors
ERROR: Could not find a version that satisfies the requirement psycopg2==2.9.3 (from rdbms-connect) (from versions: 2.0.10, 2.0.11, 2.0.12, 2.0.13, 2.0.14, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.4, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.5, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6, 2.6.1, 2.6.2, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.7.3.1, 2.7.3.2, 2.7.4, 2.7.5, 2.7.6, 2.7.6.1, 2.7.7, 2.8, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.8.6, 2.9, 2.9.1, 2.9.2, 2.9.3, 2.9.4, 2.9.5, 2.9.6) ERROR: No matching distribution found for psycopg2==2.9.3 Exception information: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 94, in resolve result = self._result = resolver.resolve
Issue script & Debug output
i wasn't able to add the --debug result as its too long and github doesn't allow it
Expected behavior
rdbms-connect to get installed and the pg script run
Environment Summary
2.34.1
Additional context
No response
The text was updated successfully, but these errors were encountered: