Skip to content

Commit

Permalink
Add multiple product keys if input is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ebronson68 committed Sep 4, 2024
1 parent 1b07e78 commit 22b4303
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/update-azureapimanagement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ jobs:
# Associate the versioned API with a product
Set-AzApiManagementApi -InputObject $Api
Add-AzApiManagementApiToProduct -Context $Context -ApiId "$versionedApiId" -ProductId $ApiProductId
Add-AzApiManagementApiToProduct -Context $Context -ApiId "$versionedApiId" -ProductId "AZ-WebServices"
if ($ApiProductId -ne "AZ-WebServices") {
Add-AzApiManagementApiToProduct -Context $Context -ApiId "$versionedApiId" -ProductId $ApiProductId
}
# Remove the original API spec
if ($OriginalVersion) {
Expand Down

0 comments on commit 22b4303

Please sign in to comment.