Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Scm Uri Error in Python function deployment from Bitbucket pipeline to Azure using microsoft/azure-f

I have created a Bitbucket pipeline using the image python3.7.2 and I compressed the python function and pass to deployment as per the documentation in Bitbucket.But when I tried to deployed it using - pipe: microsoft/azure-functions-deploy:1.0.1,It shows some error ValueError: Failed to retrieve Scm Uri

- step:
    name: build and test
    image: python:3.7.2
     - cat /etc/os-release
     - ls
     - apt-get update && apt-get install zip
     - zip -r ./*

- step:
    name: "deploy to dev function"
    deployment: Staging
    trigger: manual
      - pipe: microsoft/azure-functions-deploy:1.0.1
          FUNCTION_APP_NAME: 'readfromip-sell-py-dev-fnap'
          ZIP_FILE: ''

INFO: Deploying zip file ERROR: Failed to retrieve Scm Uri Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/knack/", line 206, in invoke cmd_result = self.invocation.execute(args) File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/", line 328, in execute raise ex File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/", line 386, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/", line 379, in _run_job six.reraise(*sys.exc_info()) File "/usr/local/lib/python3.6/site-packages/", line 693, in reraise raise value File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/", line 356, in _run_job result = cmd_copy(params) File "/usr/local/lib/python3.6/site-packages/azure/cli/core/commands/", line 171, in call return self.handler(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/azure/cli/core/", line 452, in default_command_handler return op(**command_args) File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/", line 273, in enable_zip_deploy scm_url = _get_scm_url(cmd, resource_group_name, name, slot) File "/usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/", line 1374, in _get_scm_url raise ValueError('Failed to retrieve Scm Uri') ValueError: Failed to retrieve Scm Uri

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

549 views 15 18
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you