Skip to content

Commit

Permalink
Matching on name not title.
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalvanderheiden committed Apr 26, 2024
1 parent d40b0f9 commit 9edfb7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sap-apim-discovery.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $discoveryResponse.value | ForEach-Object {
# Import API into APIC
Write-Host "Checking if API already exists in APIC..."
$api = az apic api list -g $azdenv.RESOURCE_GROUP_NAME -s $azdenv.APIC_SERVICE_NAME --output json | ConvertFrom-Json
$matchingApi = $api | Where-Object { $_.title -eq $apiName }
$matchingApi = $api | Where-Object { $_.name -eq $apiName }
if (!$matchingApi) {
Write-Host "API not found, importing..."
# AZ CLI METHOD
Expand Down

0 comments on commit 9edfb7d

Please sign in to comment.