Creating app registration TEST-SP-AI in azure #15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: azure-create-app-registrations-using-terraform | |
on: | |
workflow_dispatch: | |
inputs: | |
app_registration_name: | |
type: string | |
description: 'Azure App Registation Name' | |
required: true | |
app_registration_description: | |
type: string | |
required: false | |
description: 'Provide description for your application if any. Donot enclose in quotes' | |
app_registration_owners: | |
type: string | |
required: true | |
description: 'Owners of Application registration. Seperate by comma if more than one owner.' | |
app_registation_expiry: | |
default: "60" | |
type: choice | |
options: | |
- 30 | |
- 60 | |
- 90 | |
- 120 | |
- 150 | |
- 180 | |
- 270 | |
- 360 | |
run-name: Creating app registration ${{ inputs.app_registration_name }} in azure | |
jobs: | |
azure-create-app-registrations-using-terraform: | |
runs-on: ubuntu-latest | |
env: | |
ARM_CLIENT_ID: ${{ secrets.OWNER_SP_APP_ID }} | |
ARM_CLIENT_SECRET: ${{ secrets.OWNER_SP_APP_SECRET }} | |
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref_name }} # checcks out the same branch as the workflow is run from | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: "1.6.0" | |
- name: Execute Terraform | |
run: | | |
bash terraform.sh | |
- name: Application created in azure | |
run: | | |
echo App registration created - ${{ inputs.app_registration_name }} | |
- name: Process Completed | |
run: echo "Completed...." |