Open
Description
When generating the main.bicep
file in the Azure publisher, we use a parameter named environmentName
and use it to generate the resource group name:
aspire/src/Aspire.Hosting.Azure/AzurePublishingContext.cs
Lines 69 to 70 in 6a3c091
aspire/src/Aspire.Hosting.Azure/AzurePublishingContext.cs
Lines 86 to 91 in 6a3c091
There are 2 things about this that are surprising:
- It is always prefixed with
rg-
. Do people always need/want their Resource Group to be prefixed withrg-
? - The parameter name "Environment Name" is too ambiguous. It probably comes from
azd
's concept of an environment when youazd init
.
We should consider changing this code:
- Name the parameter
resourceGroupName
- Drop the mandatory prefix
rg-
and just use the resourceGroupName directly.