08/16/2021, 10:09 AM
Hi, I have the following code snippet from a Pulumi Azure Native project which creates apim Apis. However the probelms is that it only works the first time and successfully creates the APIs based on swagger but does not update the APIs when the list of exposed APIs from our WebApi changes
var bookingEngineApi = new Api("api", new ApiArgs
                                ResourceGroupName = resourceGroup.Name,
                                ServiceName = apiManagementService.Name,
                                ApiRevision = "1",
                                DisplayName = Settings.ApiManagementApiName,
                                Path = Settings.ApiManagementApiPathName,
                                Protocols = { Protocol.Http, Protocol.Https },
                                Format = "openapi+json-link",
                                Value = $"https://{Settings.AppServiceName}.<|>"
                            }, new CustomResourceOptions
                                DependsOn = apiAppService