Skip to content

Commit ea1aa0d

Browse files
authored
Add AspireExport coverage for Aspire.Hosting.Azure.Storage (#14420)
* Add AspireExport coverage for Aspire.Hosting.Azure.Storage Add [AspireExport] attributes to 15 public extension methods and [AspireExportIgnore] to 2 incompatible methods in AzureStorageExtensions.cs, enabling polyglot (TypeScript) app host support for Azure Storage. Exported methods: - addAzureStorage, runAsEmulator - withDataBindMount, withDataVolume - withBlobPort, withQueuePort, withTablePort, withApiVersionCheck - addBlobs, addDataLake, addTables, addQueues - addBlobContainer, addDataLakeFileSystem, addQueue Ignored methods: - AddBlobContainer(AzureBlobStorageResource) - obsolete - WithRoleAssignments - params StorageBuiltInRole[] not ATS-compatible Includes TypeScript validation app host in playground/polyglot. * Remove .aspire/ folders from playground/polyglot tracking Remove the gitignore un-ignore rule for playground/polyglot/**/.aspire/ so these machine-specific settings (channels, SDK versions, local paths) are not tracked. The global .aspire/ ignore rule now applies uniformly. * Fix review
1 parent 32d6b11 commit ea1aa0d

File tree

7 files changed

+1057
-0
lines changed

7 files changed

+1057
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"appHostPath": "../apphost.ts",
3+
"language": "typescript/nodejs",
4+
"channel": "pr-13970",
5+
"sdkVersion": "13.2.0-pr.13970.g9fb24263",
6+
"packages": {
7+
"Aspire.Hosting.Azure.Storage": "13.2.0-pr.13970.g9fb24263"
8+
}
9+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"profiles": {
3+
"https": {
4+
"applicationUrl": "https://localhost:52066;http://localhost:47700",
5+
"environmentVariables": {
6+
"ASPNETCORE_ENVIRONMENT": "Development",
7+
"DOTNET_ENVIRONMENT": "Development",
8+
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:62976",
9+
"ASPIRE_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:34207"
10+
}
11+
}
12+
}
13+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { createBuilder } from './.modules/aspire.js';
2+
3+
const builder = await createBuilder();
4+
5+
const storage = await builder.addAzureStorage("storage");
6+
await storage.runAsEmulator();
7+
8+
// Callbacks are currently not working
9+
// await storage.runAsEmulator({
10+
// configureContainer: async (emulator) => {
11+
// await emulator.withBlobPort(10000);
12+
// await emulator.withQueuePort(10001);
13+
// await emulator.withTablePort(10002);
14+
// await emulator.withDataVolume();
15+
// await emulator.withApiVersionCheck({ enable: false });
16+
// }
17+
// });
18+
19+
await storage.addBlobs("blobs");
20+
await storage.addTables("tables");
21+
await storage.addQueues("queues");
22+
await storage.addQueue("orders");
23+
await storage.addBlobContainer("images");
24+
25+
await builder.build().run();

0 commit comments

Comments
 (0)