Skip to content

Add support for provisioning Azure AI Search via the CDK#2820

Merged
mitchdenny merged 2 commits intomicrosoft:mainfrom
tg-msft:search-cdk
Mar 13, 2024
Merged

Add support for provisioning Azure AI Search via the CDK#2820
mitchdenny merged 2 commits intomicrosoft:mainfrom
tg-msft:search-cdk

Conversation

@tg-msft
Copy link
Copy Markdown
Member

@tg-msft tg-msft commented Mar 12, 2024

Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 12, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Mar 12, 2024
/// <param name="name">The name of the Azure AI Search resource.</param>
/// <param name="configureResource">Callback to configure the Azure AI Search resource.</param>
/// <returns>A reference to the <see cref="IResourceBuilder{AzureSearchConstructResource}"/>.</returns>
public static IResourceBuilder<AzureSearchConstructResource> AddAzureConstructSearch(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these would work better for customers if we called it AddAzureSearchConstruct because then it'll appear in intellisense next to the vanilla AddAzureSearch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to polish all of these depending on what our decision is around CDK exposure.

}
}

output connectionString string = 'Endpoint=https://${searchService_7WkaGluF0.name}.search.windows.net'
Copy link
Copy Markdown
Member

@mitchdenny mitchdenny Mar 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this get acquired via a property. This may not be valid in non public clouds. The domain suffixes aren't universal across different clouds.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

@mitchdenny mitchdenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment on how the connection string is formed,ideally we can get the entire URI back from ARM instead of constructing it ourselves to avoid different DNS suffixes in different clouds.

@mitchdenny mitchdenny merged commit ab13bfa into microsoft:main Mar 13, 2024
@tg-msft tg-msft deleted the search-cdk branch March 13, 2024 07:45
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants