To get detailed info of ec2 instance via python in AWS, we can create a lambda function and use describe-instances boto3 api to fetch the results.
I’m looking for similar solution in Azure.
To get VM information via python in azure. Kindly share the APIs like boto3 and services to accomplish this.
Thanks in advance.
2
Answers
Boto3 (AWS SDK for Python) -> Azure SDK for Python
AWS Lambda (serverless functions) -> Azure Functions
I also suggest reviewing the Azure for AWS professionals documentation.
Equivalent describe instances on AWS boto SDK in Azure is
list_all()/list()
at ComputeManagementClient.virtual_machinesCheck this example.