From 3986da3c866ffbd551be59550f956b4a4f327080 Mon Sep 17 00:00:00 2001 From: Matt Craddock <5796417+craddm@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:10:57 +0000 Subject: [PATCH] Give VM system assigned managed identity --- .../infrastructure/components/composite/virtual_machine.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data_safe_haven/infrastructure/components/composite/virtual_machine.py b/data_safe_haven/infrastructure/components/composite/virtual_machine.py index 71fed08246..9471991a4a 100644 --- a/data_safe_haven/infrastructure/components/composite/virtual_machine.py +++ b/data_safe_haven/infrastructure/components/composite/virtual_machine.py @@ -199,6 +199,9 @@ def __init__( ), ), vm_name=props.vm_name, + identity=compute.VirtualMachineIdentityArgs( + type=compute.ResourceIdentityType.SYSTEM_ASSIGNED, + ), opts=ResourceOptions.merge( child_opts, ResourceOptions(