Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RG, App registration and Service Principal creation option for complete setups from scratch #2

Open
luis261 opened this issue Aug 29, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@luis261
Copy link
Owner

luis261 commented Aug 29, 2023

Currently, running create-py-function-app.ps1 requires you to have already created a Resource Group with a corresponding App registration in AAD as well as a Service Principal (with Contributor access to that group) used for the automated deployments from Azure DevOps via the Service Connection.

The reason for that is that at my day job where I prototyped this tool, AAD access is (understandably) reserved only for the Azure team, which leaves me without any way to automatically handle that part via the CLI. I figured that the same might be true for a lot of other organizations ..

However, I will probably end up implementing an option for fully automated RG setup anyway, especially if enough people ask for it.

https://learn.microsoft.com/en-us/cli/azure/group?view=azure-cli-latest#az-group-create

https://learn.microsoft.com/de-de/cli/azure/ad/app?view=azure-cli-latest#az-ad-app-create
https://learn.microsoft.com/en-us/cli/azure/ad/sp?view=azure-cli-latest#az-ad-sp-create-for-rbac
https://learn.microsoft.com/en-us/cli/azure/role/assignment?view=azure-cli-latest#az-role-assignment-create (not needed if using integrated role assignment params via az-ad-sp-create-for-rbac)

@luis261 luis261 added the enhancement New feature or request label Aug 29, 2023
@luis261 luis261 changed the title Add automatic RG, App registration and Service Principal creation Add option for RG, App registration and Service Principal creation to complete fullauto from scratch setup Sep 3, 2023
@luis261 luis261 changed the title Add option for RG, App registration and Service Principal creation to complete fullauto from scratch setup Add option for RG, App registration and Service Principal creation for complete from scratch setup Sep 3, 2023
@luis261 luis261 changed the title Add option for RG, App registration and Service Principal creation for complete from scratch setup Add RG, App registration and Service Principal creation option for complete from scratch setups Sep 4, 2023
@luis261 luis261 changed the title Add RG, App registration and Service Principal creation option for complete from scratch setups Add RG, App registration and Service Principal creation option for complete setups from scratch Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant