Search code examples
pythonazureazure-sdk-python

How to create tags in Resource Management of Python azure SDK?


I am working with Python azure 2.0.0rc2 SDK and looking to create few tags. Can anyone suggest me the way to do it.


Solution

  • Tag operations are included in azure.mgmt.resource.resources.operations module. You can use create_or_update(tag_name, custom_headers={}, raw=False, **operation_config) to create tags. Check azure.mgmt.resource.resources.operations.TagsOperations for details.