Setting up automatic policy assignment

You can set up automatic assignment of policies to virtual machines in one of the following ways:

  • By first adding tags to virtual machines in Azure and then specifying the corresponding tag names and values in HYCU for Azure policies. If the comparison of these values shows that the specified values match, the corresponding policies are automatically assigned to the virtual machines during the next virtual machine synchronization in HYCU for Azure.
  • By adding the hycu-policy tag to virtual machines in Azure. Use the following name–value pair:

    Name Value
    hycu-policy

    <PolicyName>a

    a The name of a HYCU for Azure policy (for example, Gold).

    The corresponding policy is automatically assigned to the virtual machines during the next virtual machine synchronization in HYCU for Azure.

Considerations

  • Assigning policies automatically takes precedence over assigning policies manually (see “Backing up virtual machines”) or setting a default policy (see “Setting a default policy”). This means that the tag added to the virtual machine defines which policy is assigned to it, even if the virtual machine already has an assigned policy.
  • If tags added to a virtual machine in Azure match tags specified in several HYCU for Azure policies, the policy with the lowest RPO is assigned to the virtual machine.