diff --git a/README.md b/README.md index a31e4ff..e1e4e92 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ In many infrastructure projects, dealing with existing cloud resources is a common scenario. Whether you've set up resources manually in your cloud provider's console or CLI, or used infrastructure as code tools like Terraform or AWS CloudFormation, Transible is here to help you adopt and manage those resources seamlessly. ### Supported Cloud Providers + Transible currently supports OpenStack, Azure, and Amazon AWS. Please note that the product is still in development, with ongoing enhancements and additional cloud provider support planned. Run for Openstack: @@ -30,6 +31,8 @@ AWS_PROFILE=readonly ./transible.py --from aws --to ansible Run for Azure: ```bash +AZURE_SUBSCRIPTION_ID= +AZURE_RESOURCE_GROUP= ./transible.py --from azure --to ansible ``` diff --git a/transible/plugins/az_ansible/azure_ansible.py b/transible/plugins/az_ansible/azure_ansible.py index a36826f..152c355 100644 --- a/transible/plugins/az_ansible/azure_ansible.py +++ b/transible/plugins/az_ansible/azure_ansible.py @@ -13,7 +13,7 @@ class AzureAnsible: - """Main class to generate Ansible playbooks from Amazon + """Main class to generate Ansible playbooks from Azure Args: debug (bool, optional): debug option. Defaults to False. @@ -118,7 +118,7 @@ class AzureAnsibleCalculation: """Class to generate all Ansible playbooks. Args: - data (dict): Amazon info data to be used to generate the playbooks. + data (dict): Azure info data to be used to generate the playbooks. debug (bool, optional): debug option. Defaults to False. """ def __init__(self, data, debug=False): @@ -621,7 +621,7 @@ def create_servers(self, force_optimize=conf.VARS_OPT_SERVERS, class AzureInfo: - """Retrieve information about Amazon cloud + """Retrieve information about Azure cloud Args: debug (bool, optional): debug option. Defaults to False. @@ -635,7 +635,7 @@ def __init__(self, debug=False): raise ValueError("AZURE_SUBSCRIPTION_ID environment variable not set.") self.resource_group_name = os.environ.get("AZURE_RESOURCE_GROUP") if self.resource_group_name is None: - raise ValueError("AZURE_RESOURCE_GROUP environment variable not set. It should match resource gruop name.") + raise ValueError("AZURE_RESOURCE_GROUP environment variable not set. It should match resource group name.") self.network_client = NetworkManagementClient(credential, subscription_id) self.resource_client = ResourceManagementClient(credential, subscription_id) self.compute_client = ComputeManagementClient(credential, subscription_id)