11

Anyone have any idea on how i can rename azure resources?

For example: I have a schedule job collection. I would like to rename the collection to get better organized. In fact, i also would like to rename Azure Resource Groups.

David Makogon
  • 2,768
  • 1
  • 20
  • 29
Paul0515
  • 237
  • 1
  • 4
  • 9
  • 1
    I'm pretty sure it can't be done, at least not in the web portal. It may be possible with PowerShell. – joeqwerty May 19 '16 at 21:40

3 Answers3

5

Using the new portal, you can move a resources in a resource group to another resource group. The capability only became available recently. You can read more about it here: Move resources to new resource group or subscription

bloudraak
  • 462
  • 2
  • 5
  • 14
  • although this answers only part of the question, there is a thread about [renaming resources](https://feedback.azure.com/forums/281804-azure-resource-manager/suggestions/19048513-rename-resources-in-azure-resource-manager-or-powe), feel free to vote as this should exist – Guillaume Sep 17 '19 at 06:00
2

Unfortunately it cannot be done. Neither on resource name or on resource group name.

The correct naming ruling put in place from the very beginning is one of the most important aspects. Try to define yourself as early as possible the criteria for that.

If not, working with ARM templates may ease your pain by helping you redeploy "bad" resources faster and easier.

  • correct naming ruling? This 'feature' has a name? I this by design and intended functionality? So, it's also not going to change? I'd certainly hope not ... – Paul0515 May 20 '16 at 17:14
2

The Answer is: Yes it not possible (yet?) but there is a mechnismn for doing it by deleting recreating any ressource. Now everybody would say: Are you serroius? Yes it is not that difficult!

The Azure Cli / Powershell allows you to export the whole resourcegroup Definition (except for some resources!).

--> Export the Definition,

--> rename Names in the exportet template

--> Deploy Template

--> Voila! Every resource has it's old configuration except the name.

It takes some time to get familiar to that process, but afterwars you are pretty fast rename, clone, do anything with complete ressources!

TheShadow
  • 131
  • 6