Azure Notes¶
Using Active Directory for remote login¶
Register a new web application¶
- Select Azure Active Directory
- Choose App registrations
- Click on New Application registration - current layout close to top toolbar.
- Enter the name
- Application type - web app/API
- Sign-on Url
- End-point that will process and determine if the user is logged in.
- http://{wordpress-site}/wp-login.php is the endpoint for wordpress
Creating keys for API access¶
- Select Azure Active Directory
- Click on App registrations
- Click on your app
- Click on All Settings - current layout - bottom right corner.
- Click on Keys under Api Access
- Under keys
- Enter a description
- Choose duration
- Click save icon
- Copy secret key. Will go away when navigating away from this page.
- Settings
- Application ID - Can also be referred to as the Client ID. Refers to your application so Azure can tell where to authenticate.
- API Key - Generate under All Settings -> Api Key
Determine Tenant ID¶
- Tenant Id is the the id of the Azure Directory you are using.
- Click on Azure Active Directory - far right column under main list of services
- Click on Properties
- Directory ID is the same equivalent of Tenant ID when referring to this Active Directory.
Deploying to Azure Container Registry Service with Azure Pipelines¶
- Setup a free account with Azure
- Enable devops
- Create container registry to push docker image to
-
Use docker image for command line client.
-
docker run -it mcr.microsoft.com/azure-cli
-
Azure Devops Notes
- https://docs.microsoft.com/azure/devops/pipelines/languages/docker
- Created a resource group
- PaseoWordpress
- Region: South Africa North
- Subscription: Free Trial
- Create a registry
- nziswanomultisite.azurcr.io - docker registry
- Create a new devops organization
- Under settings, create a Service connections
- Service name is nziswano docker registry
-
Under devops use My Azure DevOps Orgnizations
-
Seperate build and push operations https://stackoverflow.com/questions/60287354/i-am-using-azure-devops-to-build-and-push-my-docker-image-how-can-i-pass-argume
Variables $(GITHUB_AUTH) $(image_name)
Last update: April 13, 2020 18:45:56