Azure App Service deployment through Azure CLI

sujith reddy komma 76 Reputation points
2020-09-21T10:27:12.393+00:00

Hi,

i have JavaScript webapp and i am trying to deploy it through Azure CLI. I have created a a Zip file of my code.

i did the Azlogin and ran the command like below

az webapp deployment source config-zip --resource-group RGUSDIGTEST --name AZ --src xx.zip

i get the below error

The command failed with an unexpected error. Here is the traceback:

HTTPSConnectionPool(host='azusdecommontestapp.scm.dev001.ase.frk.com', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))
Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\contrib\pyopenssl.py", line 456, in wrap_socket
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL\SSL.py", line 1915, in do_handshake
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL\SSL.py", line 1647, in _raise_ssl_error
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\pyOpenSSL\OpenSSL_util.py", line 54, in exception_from_error_queue
OpenSSL.SSL.Error: [('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 600, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 343, in _make_request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 839, in _validate_conn
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connection.py", line 344, in connect
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\util\ssl_.py", line 347, in ssl_wrap_socket
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\contrib\pyopenssl.py", line 462, in wrap_socket
ssl.SSLError: ("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\adapters.py", line 449, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\connectionpool.py", line 638, in urlopen
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-4ppkskoa\urllib3\urllib3\util\retry.py", line 399, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='azusdecommontestapp.scm.dev001.ase.frk.com', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\knack\knack\cli.py", line 206, in invoke
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core\commands__init__.py", line 603, in execute
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core\commands__init__.py", line 661, in _run_jobs_serially
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core\commands__init__.py", line 654, in _run_job
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\six\six.py", line 693, in reraise
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core\commands__init__.py", line 631, in _run_job
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core\commands__init__.py", line 305, in call
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli-core\azure\cli\core__init__.py", line 485, in default_command_handler
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\azure-cli\azure\cli\command_modules\appservice\custom.py", line 325, in enable_zip_deploy
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\api.py", line 116, in post
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\api.py", line 60, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\sessions.py", line 533, in request
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\sessions.py", line 646, in send
File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-install-qxmmnr17\requests\requests\adapters.py", line 514, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='azusdecommontestapp.scm.dev001.ase.frk.com', port=443): Max retries exceeded with url: /api/zipdeploy?isAsync=true (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),))

Can you please help me with this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.