-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close #2636: added json schemas for Aspire.Hosting.AppHost and Aspire…
….Hosting.Azure (#4912) Description fixed an issues with intellisense inside appsettings.json when using Aspire.Hosting.AppHost or Aspire.Hosting.Azure Changes: added AspireAppHostConfiguration.json file and included it into Aspire.Host.AppHosting nuget package added src/Aspire.Hosting.Azure/AspireAzureConfigurationSchema.json and included it into Aspire.Host.Azure package * fix: added appsettings intellisence to show Parameters json property * feat: added Aspire Hosting Azure json schema * fixed PR comments * PR feedback Add some more descriptions and tweak wording. Fix #2636 --------- Co-authored-by: Eric Erhardt <[email protected]>
- Loading branch information
1 parent
9757b4f
commit 4251f91
Showing
6 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"Parameters": { | ||
"description": ".NET Aspire parameter configuration. A parameter's value will be retrieved from the property with the same name.", | ||
"type": "object" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/Aspire.Hosting.Azure/AspireAzureConfigurationSchema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"Azure": { | ||
"description": "Azure provisioning information. This section is used to create Azure resources for the app.", | ||
"type": "object", | ||
"properties": { | ||
"SubscriptionId": { | ||
"description": "Azure Subscription Id that will be used to host the resources.", | ||
"type": "string" | ||
}, | ||
"ResourceGroup": { | ||
"description": "Azure Resource Group name where to create resources.", | ||
"type": "string" | ||
}, | ||
"ResourceGroupPrefix": { | ||
"description": "Azure Resource Group prefix used in resource groups names created.", | ||
"type": "string" | ||
}, | ||
"AllowResourceGroupCreation": { | ||
"description": "Flag that shows if it is allowed to create a resource group if not exists. Defaults to false if ResourceGroup is provided.", | ||
"type": "boolean" | ||
}, | ||
"Location": { | ||
"description": "Azure Location that will be used to create resources.", | ||
"type": "string" | ||
}, | ||
"CredentialSource": { | ||
"description": "Configures which Azure credential to use for provisioning.", | ||
"enum": [ | ||
"AzureCli", | ||
"AzurePowerShell", | ||
"VisualStudio", | ||
"VisualStudioCode", | ||
"AzureDeveloperCli", | ||
"InteractiveBrowser", | ||
"Default" | ||
], | ||
"default": "Default" | ||
} | ||
} | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/Aspire.Hosting.Azure/buildTransitive/Aspire.Hosting.Azure.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Project> | ||
<ItemGroup> | ||
<JsonSchemaSegment Include="$(MSBuildThisFileDirectory)..\AspireAzureConfigurationSchema.json" | ||
FilePathPattern="appsettings\..*json" /> | ||
</ItemGroup> | ||
</Project> |