Deploy whole infrastructure for IIS Web App Deployment Using WinRM extension in one click.
- Create a new app registration on Azure to be able to authenticate from Azure/login task.
- Add federated credentials as a way of authentication. It's also possible to use client secrets, but WIF is recommended approach.
- Add
AZURE_CLIENT_ID
,AZURE_SUBSCRIPTION_ID
,AZURE_TENANT_ID
to repository secrets. - Generated a new Azure DevOps PAT with build permissions and add it to repository secrets with this key:
AZURE_DEVOPS_PAT
- Add you Azure DevOps organization URL to secrets with this key:
AZURE_DEVOPS_ORG
- Create a new self-hosted agent pool in your Azure DevOps organization and name it Self-Hosted
- Now you're ready to start the Deploy Infrastructure pipeline.
In the end your repository secrets should look like this:
![image](https://private-user-images.githubusercontent.com/50652041/294172303-dcd4a681-b3de-49b1-80f8-981d867f692d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTAyNzUsIm5iZiI6MTczOTE4OTk3NSwicGF0aCI6Ii81MDY1MjA0MS8yOTQxNzIzMDMtZGNkNGE2ODEtYjNkZS00OWIxLTgwZjgtOTgxZDg2N2Y2OTJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEyMTkzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU1ODQ2NWY2NGVkZWZjMGE4Yzk0ZWE3YjlhMDMxNGY5YTAxZTQ1ZmM5NDEzYmQ2MjRjMjIwMWY3MGRkMzdlMDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.x0qXL0iVmuiBWUwRMCiBefAlj1J9OZKdStuAiN4MLjM)
Secret name | Description |
---|---|
AZURE_CLIENT_ID | Application (client) ID from Azure App registration. |
AZURE_DEVOPS_ORG | Link to your Azure DevOps organization in this format: https://dev.azure.com/MyOrganizationName |
AZURE_DEVOPS_PAT | Azure DevOps PAT token with Build permissions. Needs to register the build agent. |
AZURE_SUBSCRIPTION_ID | Your Azure subscription ID. |
AZURE_TENANT_ID | Directory (tenant) ID from Azure App registration. |