VMware Cloud Community
akulbe_ks
Contributor
Contributor
Jump to solution

How do you get the AWS ARN for a VM that resides in VMC-on-AWS?

Exactly like the title says. How do I get the AWS ARN (Amazon Resource Name) for the VMs that reside in VMC?

Thanks.

Reply
0 Kudos
1 Solution

Accepted Solutions
akulbe_ks
Contributor
Contributor
Jump to solution

I got this figured out. 

(this all assumes you're already authenticated)

aws backup-gateway list-hypervisors (and get the ARN of the hypervisor where your VM resides)

Copy the value from the K/V pair of ResourceArn, with the quotes.

Then:

aws backup-gateway list-virtual-machines --hypervisor-arn "arn:aws:backup-gateway:us-west-2:987654321098:hypervisor/hype-12345678" (these are obviously bogus numbers, but you get the idea)

And then you will see the ResourceArn values for your VMs in the results!

Thank you AWS Support. They were the ones that helped me with this. I figured it would be VMware I'd need to contact first.

View solution in original post

Reply
0 Kudos
1 Reply
akulbe_ks
Contributor
Contributor
Jump to solution

I got this figured out. 

(this all assumes you're already authenticated)

aws backup-gateway list-hypervisors (and get the ARN of the hypervisor where your VM resides)

Copy the value from the K/V pair of ResourceArn, with the quotes.

Then:

aws backup-gateway list-virtual-machines --hypervisor-arn "arn:aws:backup-gateway:us-west-2:987654321098:hypervisor/hype-12345678" (these are obviously bogus numbers, but you get the idea)

And then you will see the ResourceArn values for your VMs in the results!

Thank you AWS Support. They were the ones that helped me with this. I figured it would be VMware I'd need to contact first.

Reply
0 Kudos