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

Handle multi-subscriptions in pipe azure-web-apps-containers-deploy

Rémi Mercier April 6, 2021

I'm trying to use azure-web-apps-containers-deploy (https://bitbucket.org/microsoft/azure-web-apps-containers-deploy/src/master/) in my pipeline with a service principal.

 

The problem is that my service principal has access to several subscriptions and there is no option in the pipe to set the subscription to use (by running az account set -s "My Working Subscription").

 

Is there a workaround? or is there a possibility that this feature will added to the pipe?

2 answers

0 votes
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 6, 2021

@Rémi Mercier we have released a new version 1.1.0.

Use

pipe: atlassian/azure-web-apps-containers-deploy:1.1.0
variables:
AZURE_APP_ID: $AZURE_APP_ID
AZURE_PASSWORD: $AZURE_PASSWORD
AZURE_TENANT_ID: $AZURE_TENANT_ID
AZURE_RESOURCE_GROUP: 'your-group'
AZURE_APP_NAME: 'your-app'
DOCKER_CUSTOM_IMAGE_NAME: '...'
...
AZURE_SUBSCRIPTION: 'Azure subscription name or ID'

Looking forward to seeing your feedback.

If this does not work for you, we'll reproduce and investigate your case

Regards, Galyna

Rémi Mercier May 6, 2021

Oh nice! 

I'm back to you when I will have could try it on my side.

Thanks :)

Like Halyna Berezovska likes this
0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2021

Hi @Rémi Mercier ,

Thank you for your question!

We'll investigate the feature and notify you!

 

Cheers,
Oleksandr Kyrdan

ishetnogferre March 29, 2024

Hi @Oleksandr Kyrdan can we have the AZURE_SUBSCRIPTION on the Azure Web Apps Deploy as well?

 

(Added here)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events