-
-
Notifications
You must be signed in to change notification settings - Fork 8
Deploy
To deploy this package, all you have to do is click the button below. It will automatically deploy the following resources for you,
- Azure Key Vault
- Azure App Service Plan
- Azure SQL server and database
- Azure App Service
You only need to provide a few parameters to complete the deployment. Before continueing to deploy you need to create an Azure AD App Registration that will be used to authenticate to the site and provide the tokens needed to use IntuneCD.
- Head over to App Registrations in Azure AD and click New registration, provide a name, choose multi tenant and click register
![Screenshot 2023-09-16 at 21 56 00](https://private-user-images.githubusercontent.com/78877636/268470979-21a2b7fc-5c97-4f83-b2a3-ab99391ffaf6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NTU4NjgsIm5iZiI6MTcyNDg1NTU2OCwicGF0aCI6Ii83ODg3NzYzNi8yNjg0NzA5NzktMjFhMmI3ZmMtNWM5Ny00ZjgzLWIyYTMtYWI5OTM5MWZmYWY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDE0MzI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM3NDI5YzJhMWFjNzY3OTQyYTI1NzlkMWIzNGM5Y2JiODYzMmRkMzIzNjFmMmI0NmFjODE5ODZjN2RlNDFhYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.exufXWZKS569xfIcP9oenI4VcXZGF7ccnuDL4PPkLik)
-
Add all API permissions as stated in the IntuneCD Documentation and grant admin consent.
-
Click on App Roles and create a new role, the Value must be set to "intunecd_admin"
![Screenshot 2023-09-18 at 15 31 22](https://private-user-images.githubusercontent.com/78877636/268660082-4ef1f1a3-16b3-4aca-a55b-dc8d93d13227.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NTU4NjgsIm5iZiI6MTcyNDg1NTU2OCwicGF0aCI6Ii83ODg3NzYzNi8yNjg2NjAwODItNGVmMWYxYTMtMTZiMy00YWNhLWE1NWItZGM4ZDkzZDEzMjI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDE0MzI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM0ZWMyMjdkNjkyMzlhYjhjZDVhNjA5MTIzMjQ0ODk0Zjk4OGY3MTYyOWNmYTlkZWIyOWQ4ZmY2OTc3MjVmYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.w0m2iLhY54ZBWv7vMdCY-LuvACBV67KjdO_Y1kC3kLc)
- Continue to create a secret for the application and save the secret value, then go to the Enterprise app and note down the Client ID and Object ID.
⚠️ IMPORTANT NOTE: Get the Object ID from the Enterprise App, not the App Registration.
Click the button below and fill out the fields that are not pre-populated, the name of the App Service will be the same as configured under IntuneCD Instance Name
NOTE: admin or administrator are not valid usernames for the SQL db user.
NOTE: Selecting the B1 IntuneCD Farm Sku might cause issues like not being able to run more than one backup/update at a time.
![Screenshot 2023-09-16 at 22 08 00](https://private-user-images.githubusercontent.com/78877636/268471196-cd1e8b8b-216d-46b2-b5be-11ba2c441c20.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NTU4NjgsIm5iZiI6MTcyNDg1NTU2OCwicGF0aCI6Ii83ODg3NzYzNi8yNjg0NzExOTYtY2QxZThiOGItMjE2ZC00NmIyLWI1YmUtMTFiYTJjNDQxYzIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDE0MzI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlNWFlNmQwYTZlMGQ3NzFiN2VmZDMxMGYzNjgxMzRmMjYwYjUyM2I1ZDM3OGJmNzY5Y2ViYjYxNjc4MmFhZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.mTdAz3bSytXdoLvNl6oVxpfQbkhXAfInzPwuJ9CQh0U)
Once succussfully deployed, go back to the App Registration and add a new Web redirection URI, add the following URIs:
- https://{your_app_service_name}.azurewebsites.net/auth/signin-oidc
- https://{your_app_service_name}.azurewebsites.net/tenants
Navigate to Azure AD Enterprise Applications and click on the IntuneCD Monitor app, add or edit an account you wish to be an admin in IntuneCD Monitor and assign the role created in prevoius steps.
That's it. After a successful deployment you will be able to navigate to https://{your_app_service_name}.azurewebsites.net and see the below window. If you see a 502 Bad Gateway
, be patient, the deployment is most likely not finished.
![Screenshot 2023-09-16 at 23 03 38](https://private-user-images.githubusercontent.com/78877636/268471281-6b084275-0b6a-4ac6-b209-3fa7bcafba33.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4NTU4NjgsIm5iZiI6MTcyNDg1NTU2OCwicGF0aCI6Ii83ODg3NzYzNi8yNjg0NzEyODEtNmIwODQyNzUtMGI2YS00YWM2LWIyMDktM2ZhN2JjYWZiYTMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDE0MzI0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZGIyMDQ5NGI2ODRkODA4ZGFjMDJhMzhhMDRkNjlhMmJmZDExYmZlNzRlOWViM2JkMWMyMjQ3NmJjMDM1MGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.q3re9HiCsh_mOQAhtyvXTPBQVjGVcjhidFAIowG14VA)