Hi, I have the following code snippet from a Pulum...
# getting-started
w
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
Copy code
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}.<http://azurewebsites.net|azurewebsites.net>"
                            }, new CustomResourceOptions
                            {
                                DependsOn = apiAppService
                            });