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

Pipeline 'azure-functions-deploy' failing because it can't find resource group Edited

Mark I'm New Here Jan 15, 2020

I am using the pipeline configuration below in order to deploy an azure function to a tenant. 

 

However, when activating the manual deployment step, i am continuously getting the following error:

✖ Could not get the resource group associated with function xxxx-dlt-tst-rg.

 

I have looked at the answer provided by the other user who had the same problem here (https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Pipeline-azure-functions-deploy-failing-because-it-can-t-find/qaq-p/1056786) but this isn't so in my case, since the service principal which i created only has access to one subscription. 

 

Any clue as to what the issue could be would be great!



image
: microsoft/dotnet:sdk pipelines: default: - step: name: Build caches: - dotnetcore script: - export PROJECT_NAME=myproj.csproj - apt-get update - apt-get install -y zip - dotnet restore - dotnet build $PROJECT_NAME -c Release -o ./bin
- cd ./bin - zip ../package.zip artifacts: - package.zip - step: deployment: staging name: Deploy zip (Staging) trigger: manual script: - export DATE=$(date +%Y%m%d%H%M) - mv package.zip $DATE.zip - export FILENAME=$DATE'.zip' - ls - echo $FILENAME - pipe: microsoft/azure-functions-deploy:1.0.0 variables: AZURE_APP_ID: $AZURE_APP_ID AZURE_PASSWORD: $AZURE_PASSWORD AZURE_TENANT_ID: $AZURE_TENANT_ID ZIP_FILE: $FILENAME FUNCTION_APP_NAME: $FUNCTION_APP_NAME DEBUG: $true

 

1 answer

1 accepted

0 votes
Answer accepted
Mark I'm New Here Jan 15, 2020

This was a case of me being overwhelmingly silly. My variable for the FUNCTION_APP_NAME was incorrect!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

522 views 0 1
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