def METHOD_NAME(self, resource_group):
    SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID
    RESOURCE_GROUP = resource_group.name
    VIRTUAL_NETWORK_NAME = "myVirtualNetwork"
    SUBNET_NAME = "InstancePool"
    INSTANCE_POOL_NAME = "myinstancepool"
    if self.is_live:
        self.create_virtual_network(RESOURCE_GROUP, AZURE_LOCATION, VIRTUAL_NETWORK_NAME, SUBNET_NAME)