Skip to content

Commit

Permalink
Merge pull request #2742 from mrhoads/fix-aio-bakeries
Browse files Browse the repository at this point in the history
Fix azure-iot-ops 0.5.1b1 extension issue with azure-identity
  • Loading branch information
mrhoads authored Oct 4, 2024
2 parents 8215ecd + 18f473c commit f317c52
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,28 @@ catch {
Write-Host "`n"
Write-Host "[$(Get-Date -Format t)] INFO: Installing the Azure IoT Ops CLI extension" -ForegroundColor DarkGray
Write-Host "`n"

##############################################################
# Patching Azure IoT Ops Extension
##############################################################
Write-Host "`n"
Write-Host "[$(Get-Date -Format t)] INFO: Patching the Azure IoT Ops CLI extension" -ForegroundColor DarkGray
try {
Write-Host "Starting patching of azure-iot-ops extension..." -ForegroundColor Green
& "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe" -m pip install -U --target "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure-cli-extensions\azure-iot-ops" azure-identity==1.17.1
if ($LASTEXITCODE -eq 0) {
Write-Host "Installation of azure-iot-ops extension completed successfully." -ForegroundColor Green
} else {
Write-Host "Installation of azure-iot-ops extension failed with exit code $LASTEXITCODE." -ForegroundColor Red
}
} catch {
Write-Host "An error occurred during the patching of the azure-iot-ops extension." -ForegroundColor Red
Write-Host $_.Exception.Message -ForegroundColor Red
}
Write-Host "`n"



##############################################################
# Deploy aio
##############################################################
Expand Down

0 comments on commit f317c52

Please sign in to comment.