This pull request introduces significant changes to the Scenarios/Secure-Baseline/bicepWithAVM project, focusing on improving the naming conventions used for resource creation. The changes are primarily in the 01-Hub/main.bicep file and the commonModules/naming directory. The main changes include updating the parameters used in getResourceName and getResourceNameFromParentResourceName functions, adding new abbreviations for resource types and locations, and introducing new helper functions for string manipulations and calculations.
Changes in parameters and resource names:
01-Hub/main.bicep: The getResourceName and getResourceNameFromParentResourceName functions' parameters have been updated to include more descriptive names, such as resourceGroup and virtualNetwork, instead of abbreviations like rg and vnet. This change affects multiple resources, including the resource group, virtual network, firewall, bastion, and log analytics workspace. [1][2][3][4]
commonModules/naming/functions.bicep: New helper functions have been introduced for string manipulations and calculations, such as arrayToString, sumIntegers, and getRemainingSize. Also, the getResourceName and getResourceNameFromParentResourceName functions have been updated to use these new helper functions and the new abbreviations.
New resource type and location types:
commonModules/naming/types.bicep: New resource type and location types have been introduced, such as resourceGroup, virtualNetwork, and centralus.
This pull request introduces significant changes to the
Scenarios/Secure-Baseline/bicepWithAVM
project, focusing on improving the naming conventions used for resource creation. The changes are primarily in the01-Hub/main.bicep
file and thecommonModules/naming
directory. The main changes include updating the parameters used ingetResourceName
andgetResourceNameFromParentResourceName
functions, adding new abbreviations for resource types and locations, and introducing new helper functions for string manipulations and calculations.Changes in parameters and resource names:
01-Hub/main.bicep
: ThegetResourceName
andgetResourceNameFromParentResourceName
functions' parameters have been updated to include more descriptive names, such asresourceGroup
andvirtualNetwork
, instead of abbreviations likerg
andvnet
. This change affects multiple resources, including the resource group, virtual network, firewall, bastion, and log analytics workspace. [1] [2] [3] [4]New abbreviations and helper functions:
commonModules/naming/abbreviations.json
: New abbreviations for resource types have been added, such asresourceGroup
forrg
andvirtualNetwork
forvnet
.commonModules/naming/locations.json
: Abbreviations for Azure locations have been added, such ascentralus
forcu
andwesteurope
forwe
.commonModules/naming/functions.bicep
: New helper functions have been introduced for string manipulations and calculations, such asarrayToString
,sumIntegers
, andgetRemainingSize
. Also, thegetResourceName
andgetResourceNameFromParentResourceName
functions have been updated to use these new helper functions and the new abbreviations.New resource type and location types:
commonModules/naming/types.bicep
: New resource type and location types have been introduced, such asresourceGroup
,virtualNetwork
, andcentralus
.