Event banner
Configuration as Code in Microsoft Intune
Event details
Join Microsoft’s Customer Acceleration Team to learn about how Microsoft Graph and Azure DevOps can be used for automating common tasks. Walk through common scenarios using configuration as code to maintain Intune configuration across different tenants.
This session is part of the Microsoft Technical Takeoff: Windows + Intune. Add it to your calendar, RSVP for event reminders, and post your questions and comments below! This session will also be recorded and available on demand shortly after conclusion of the live event. |
32 Comments
- SigurdWernerIron ContributorDo you have an example on how to integrate Azure KeyVault for authentication to the tenant? In your example you just stored credentials in variables in Azure DevOps?
- Nina Desnica
Microsoft
Yes, have a look at this one: Use Azure Key Vault secrets in Azure Pipelines https://learn.microsoft.com/en-us/azure/devops/pipelines/release/azure-key-vault?view=azure-devops&tabs=yaml
- ZebulonSmithIron ContributorAmazing content so far. Just in case it's not covered in the presentation, what's the best way to authenticate to graph from an automation platform where you wouldn't want to store a username and password?
- Nina Desnica
Microsoft
Hi Zeb! Here's a good starter link: Authentication and authorization basics https://learn.microsoft.com/en-us/graph/auth/auth-concepts. When working with config as code, you need to use userless authentication, as described here https://learn.microsoft.com/en-us/graph/auth-v2-service, and then for storing the variables that you need such as app id, app secret you can use Azure Key Vault: https://azure.microsoft.com/en-us/products/key-vault/ https://learn.microsoft.com/en-us/azure/key-vault/resource-graph-samples?tabs=azure-cli. Hope this helps! - UniverseCitiz3nCopper ContributorAzure Service Principal with right permissions. Such service principal can be linked with project and then used with built-in feature so that its credentials are safe and are not stored anywhere 🙂
- RainerP250458Iron ContributorMicrosoft X-Ray (Edge Dev Tools) is a GREAT Tip! Many THX 🙂
- FlorentinaB
Microsoft
Thank you for your feedback! Well received.
- RainerP250458Iron ContributorAre there any parallels to DSC (Desired State Configuration?
- Nina Desnica
Microsoft
Thank you for bringing that up Rainer! In DSC we do have some Intune resources available for Intune: Overview - Microsoft365DSC - Your Cloud Configuration.
With Configuration as Code by using MS Graph natively, we can work with any resources, so there are parallels with DSC.- RainerP250458Iron ContributorTHX 🙂 cool ...
- Heather_Poulsen
Community Manager
Welcome to Configuration as Code in Microsoft Intune at the Microsoft Technical Takeoff. Let's get started! We’ll be here in chat for the full half hour to answer your questions. Have a question? Post it here in the Comments.