To configure Github to be able to perform an `azd up` command or an `azd deploy` command, GitHub needs to use an Azure identity with appropriate permissions.
These steps were done after a successful `azd up`. I ran `azd pipeline config` on the main branch because if you run it on a separate branch, it adds roles/permissions to your Azure Entra service principal you probably don't want. If you have a dev branch or some other branch you general want to push from, other than the default branch, run `azd pipeline config` from that branch.
1. Login to Azure Developer CLI with `azd auth login`
2. Find a template from pipeline docs which closely matches your infrastructure. https://learn.microsoft.com/en-us/azu...
3. Go to that sample repository and copy the `azure-dev.yaml` into your own `./github/workflows/` folder.
4. If the `azure.dev.yaml` doesn't have a `name` property at the top of the file, add your own, for example: `name: AZD Deploy`. This makes it easier to find in the list of actions in your repo.
5. Configure pipeline `azd pipeline config`
sign in to GitHub
see service principal (Azure identity) name and id in output
6. Copy the service principal name and id in the output. This will make it easier to find later when you need to add roles, or federated credentials.
7. View changes to Azure in Azure portal
use Azure Entra ID
view all applications
view certificates and secrets to see federated credentials
view roles and administrators to see Cloud Application Administrator role
8. View changes to GitHub repository changes
view repo settings
view security secrets and variables
view actions secrets and variables
view repository variables
Azure service principal's variables are listed
Blog post: https://dev.to/dfberry/deploy-to-azur...
Cloud native todo repo: https://github.com/dfberry/cloud-nati...
azure-dev.yml: https://github.com/dfberry/cloud-nati...
На этой странице сайта вы можете посмотреть видео онлайн CloudNative005-01 Configure deployment from GitHub to Azure with Azure Developer CLI длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь DFBerry 10 Декабрь 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 57 раз и оно понравилось 1 зрителям. Приятного просмотра!