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?
@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
Oh nice!
I'm back to you when I will have could try it on my side.
Thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rémi Mercier ,
Thank you for your question!
We'll investigate the feature and notify you!
Cheers,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Oleksandr Kyrdan can we have the AZURE_SUBSCRIPTION on the Azure Web Apps Deploy as well?
(Added here)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.