Custom naming automatically created DevTest resources

Alex Tripp 1 Reputation point
2021-08-26T22:18:06.153+00:00

Hi all,
We have a strict naming convention in our organisation.
We are introducing DevTest Labs.
We are deploying using ARM templates.
I am able to name the vNetwork and associated subnets, and the DevTest Lab itself.
However, storage accounts, key vaults, shared networking (Public IP, Availability set and load balancer) are using the lab name and random numbers.
Any one else managed to address this issue?

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
261 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 25,071 Reputation points Microsoft Employee
    2021-08-27T02:40:02.593+00:00

    Hello, @Alex Tripp !

    Azure does not support renaming resources or resource groups (although this has been a popular request) so the types of resource names that you are describing where names are based on your configuration values but have additional characters are to be expected.

    When it comes to resource groups there is a bit of a workaround. You are able to move resources from one group to another so you can create a new resource group with the name you want, move your resources to that new resource group, and then delete the old resource group:
    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription