Skip to content

Commit

Permalink
feat(naming): add azure service bus resource type and conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGottinger committed Jun 13, 2024
1 parent 8fd548f commit aefffc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/naming/convention.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type namingConvention struct {
Case caseSensitivity
}

// https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-name-rules
var namingConventions = []namingConvention{
{resources.ResourceGroup, 3, 90, true, true, true, CaseInsensitive},
{resources.SqlServer, 3, 63, true, true, false, LowerCase},
Expand Down Expand Up @@ -51,6 +52,7 @@ var namingConventions = []namingConvention{
{resources.StorageBackupVault, 2, 50, true, true, false, CaseInsensitive},
{resources.DataFactory, 3, 63, true, true, false, CaseInsensitive},
{resources.ElasticSearch, 3, 90, true, true, false, CaseInsensitive},
{resources.ServicebusNamespace, 6, 50, true, true, false, CaseInsensitive},
}

func findNamingConvention(resourceType resources.AzureResourceType) namingConvention {
Expand Down
1 change: 1 addition & 0 deletions pkg/naming/resources/azure_resource_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ const (
StorageBackupVault AzureResourceType = "sbv"
DataFactory AzureResourceType = "df"
ElasticSearch AzureResourceType = "es"
ServicebusNamespace AzureResourceType = "sbus"
)

0 comments on commit aefffc0

Please sign in to comment.