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
#determines if changes were made to the IaC files since the last commit | |
- stage: verify_changes | |
displayName: "Determine updated files" | |
jobs: | |
- job: determine_changes_infra | |
displayName: Determine if infrastructure code has been updated. | |
steps: | |
- powershell: | | |
$changedFiles = git diff HEAD HEAD~ --name-only | |
git diff HEAD HEAD~ --name-only |
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
$B2CTenantName = '<B2cTenantName>' | |
if (Get-Module -ListAvailable -Name Microsoft.Graph) { | |
Write-Host "Module Microsoft.Graph exists." | |
} | |
else { | |
throw "Module Microsoft.Graph is not installed yet. Please install it first! Run 'Install-Module Microsoft.Graph'." | |
} | |
# On the initial connection to your tenant, you will need an admin account to approve the Admin Consent | |
# to access tenant resources. | |
Connect-MgGraph -TenantId "$($B2CTenantName).onmicrosoft.com" ` |