Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
WebApp for Containers template #8054
Conversation
|
Are templates that require the existence of a service principal supposed to be validated manually? The "Deploy Template (prereqs)" step fails with a Please advise how to proceed to get this PR accepted and merged. |
|
You should be able to use GEN-AZUREAD-OBJECTID to replace GEN-GUID for parameter servicePrincipalObjectId in prereq.azuredeploy.parameters.json. |
|
Thanks for the suggestion. This placeholder should probably be mentioned in the contribution guidelines. Now the validation of the prereqs template succeeds. The deployment validation of the main template however fails with an How are the |
|
You can find all the placeholders there: https://github.com/Azure/azure-quickstart-templates/blob/master/test/ci-gen-setup/.config.json |
|
@MCKLMT Yes, using the It still doens't create an actual service principal which is required for the validation of the main template to succeed. So the question remains, should I set the validation type to "Manual" in the |
|
@bmoore-msft Can you provide guidance to @mgnsm to get his PR validated please? |
|
I updated the param files to use the existing SP, there is another failure now that looks like configuration (that I'm not familiar with... |
|
It fails becase there is no container uploaded to the ACR. So in between the deployment of the prereqs template (ACR) and the actual template (WebApp), an image has to be uploaded to the ACR for the WebApp to be able to fetch it. The script does this:
How to do the same in the build pipeline, i.e. run a custom Bash script in between the deployment of the prereqs template and the main template? |
| password=$(az ad sp create-for-rbac --name $servicePrincipalName --skip-assignment --query password --output tsv) | ||
| appId=$(az ad sp show --id $servicePrincipalName --query appId --output tsv) | ||
| servicePrincipalObjectId=$(az ad sp show --id $appId --query objectId --output tsv) | ||
|
|
bmoore-msft
Sep 28, 2020
Collaborator
remove this file, or if you want to keep if for svc principal creation, remove everything after line 11
remove this file, or if you want to keep if for svc principal creation, remove everything after line 11
mgnsm
Sep 29, 2020
•
Author
The Bash script is provided as an example of how to deploy the template including the prereqs outside the context of this repository. It's not meant to be used in the validation of the template itself.
Should I perhaps rename the folder to something else than scripts?
The Bash script is provided as an example of how to deploy the template including the prereqs outside the context of this repository. It's not meant to be used in the validation of the template itself.
Should I perhaps rename the folder to something else than scripts?
bmoore-msft
Nov 6, 2020
Collaborator
All templates in the repo are deployed the same inside and outside of the repo - having every sample provide their own deployment script creates confusion and a maintenance problem...
All templates in the repo are deployed the same inside and outside of the repo - having every sample provide their own deployment script creates confusion and a maintenance problem...
mgnsm
Nov 23, 2020
Author
I removed the script and added instructions for how to deploy the resources in the README file. The build fails for some reason?
I removed the script and added instructions for how to deploy the resources in the README file. The build fails for some reason?
|
|
||
| Before you use it, you should create a service principal and an ACR using the [pre-requisite template](prereqs/prereq.azuredeploy.json). | ||
|
|
||
| You can use [this Bash script](scripts/deploy.sh) to deploy all required resources. The script uses the Azure CLI to do the following: |
bmoore-msft
Sep 28, 2020
Collaborator
update this when you remove the script
update this when you remove the script
| password=$(az ad sp create-for-rbac --name $servicePrincipalName --skip-assignment --query password --output tsv) | ||
| appId=$(az ad sp show --id $servicePrincipalName --query appId --output tsv) | ||
| servicePrincipalObjectId=$(az ad sp show --id $appId --query objectId --output tsv) | ||
|
|
bmoore-msft
Nov 6, 2020
Collaborator
All templates in the repo are deployed the same inside and outside of the repo - having every sample provide their own deployment script creates confusion and a maintenance problem...
All templates in the repo are deployed the same inside and outside of the repo - having every sample provide their own deployment script creates confusion and a maintenance problem...
|
This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |


PR Checklist
Check these items before submitting a PR...
Contribution Guide
Best Practice Guide
Changelog
101-webapp-for-containers\scriptsthat demonstrates how to deploy all required resources.